time tests: Don't require pid_t.
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         time tests: Don't require pid_t.
4         * tests/test-time.c: Comment out the check for pid_t.
5
6 2011-09-20  Bruno Haible  <bruno@clisp.org>
7
8         fsync tests: Avoid a test failure on mingw.
9         * tests/test-fsync.c (main): Allow a failure with EIO.
10
11 2011-09-20  Bruno Haible  <bruno@clisp.org>
12
13         euidaccess: Update comments.
14         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
15
16 2011-09-20  Bruno Haible  <bruno@clisp.org>
17
18         Ensure EBADF returns for socket functions on mingw.
19         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
20         descriptor is invalid.
21         * lib/bind.c (rpl_bind): Likewise.
22         * lib/connect.c (rpl_connect): Likewise.
23         * lib/getpeername.c (rpl_getpeername): Likewise.
24         * lib/getsockname.c (rpl_getsockname): Likewise.
25         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26         * lib/listen.c (rpl_listen): Likewise.
27         * lib/recv.c (rpl_recv): Likewise.
28         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29         * lib/send.c (rpl_send): Likewise.
30         * lib/sendto.c (rpl_sendto): Likewise.
31         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32         * lib/shutdown.c (rpl_shutdown): Likewise.
33
34 2011-09-20  Bruno Haible  <bruno@clisp.org>
35
36         select tests: EBADF tests.
37         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
38         test_bad_fd): New functions.
39         (test_function): Invoke also test_bad_fd.
40
41 2011-09-20  Bruno Haible  <bruno@clisp.org>
42
43         Tests for module 'posix_spawn_file_actions_addopen.
44         * modules/posix_spawn_file_actions_addopen-tests: New file.
45         * tests/test-posix_spawn_file_actions_addopen.c: New file.
46
47         Tests for module 'posix_spawn_file_actions_adddup2'.
48         * modules/posix_spawn_file_actions_adddup2-tests: New file.
49         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
50
51         Tests for module 'posix_spawn_file_actions_addclose'.
52         * modules/posix_spawn_file_actions_addclose-tests: New file.
53         * tests/test-posix_spawn_file_actions_addclose.c: New file.
54
55 2011-09-20  Bruno Haible  <bruno@clisp.org>
56
57         Tests for module 'unlockpt'.
58         * modules/unlockpt-tests: New file.
59         * tests/test-unlockpt.c: New file.
60         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
61
62         Tests for module 'grantpt'.
63         * modules/grantpt-tests: New file.
64         * tests/test-grantpt.c: New file.
65         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
66
67 2011-09-20  Bruno Haible  <bruno@clisp.org>
68
69         freopen tests: EBADF tests.
70         * tests/test-freopen.c: Include errno.h, unistd.h.
71         (main): Add tests for EBADF, commented out for the moment.
72
73         fclose tests: EBADF tests.
74         * tests/test-fclose.c (main): Add tests for EBADF.
75
76         fflush tests: EBADF tests.
77         * tests/test-fflush.c: Include errno.h, macros.h.
78         (main): Add tests for EBADF.
79
80         ftello tests: EBADF tests.
81         * tests/test-ftello4.sh: New file.
82         * tests/test-ftello4.c: New file.
83         * modules/ftello-tests (Files): Add them.
84         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
85
86         fseeko tests: EBADF tests.
87         * tests/test-fseeko4.sh: New file.
88         * tests/test-fseeko4.c: New file.
89         * modules/fseeko-tests (Files): Add them.
90         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
91
92         Tests for function fputc().
93         * modules/fputc-tests: New file.
94         * tests/test-fputc.c: New file.
95         * modules/stdio-tests (Depends-on): Add fputc-tests.
96
97         Tests for function fgetc().
98         * modules/fgetc-tests: New file.
99         * tests/test-fgetc.c: New file.
100         * modules/stdio-tests (Depends-on): Add fgetc-tests.
101
102         Tests for function fdopen().
103         * modules/fdopen-tests: New file.
104         * tests/test-fdopen.c: New file.
105         * modules/stdio-tests (Depends-on): Add fdopen-tests.
106
107         Tests for module 'vdprintf'.
108         * modules/vdprintf-tests: New file.
109         * tests/test-vdprintf.c: New file.
110
111         Tests for module 'dprintf'.
112         * modules/dprintf-tests: New file.
113         * tests/test-dprintf.c: New file.
114
115 2011-09-20  Bruno Haible  <bruno@clisp.org>
116
117         Tests for module 'ioctl'.
118         * modules/ioctl-tests: New file.
119         * tests/test-ioctl.c: New file.
120
121 2011-09-20  Bruno Haible  <bruno@clisp.org>
122
123         fcntl tests: EBADF tests.
124         * tests/test-fcntl.c (main): Add more tests for EBADF.
125
126 2011-09-20  Bruno Haible  <bruno@clisp.org>
127
128         utimensat tests: EBADF tests.
129         * tests/test-utimensat.c (main): Add tests for EBADF.
130
131         renameat tests: EBADF tests.
132         * tests/test-renameat.c (main): Add tests for EBADF.
133
134         mkfifoat tests: EBADF tests.
135         * tests/test-mkfifoat.c (main): Add tests for EBADF.
136
137         readlinkat tests: EBADF tests.
138         * tests/test-readlinkat.c (main): Add tests for EBADF.
139
140         symlinkat tests: EBADF tests.
141         * tests/test-symlinkat.c (main): Add tests for EBADF.
142
143         linkat tests: EBADF tests.
144         * tests/test-linkat.c (main): Add tests for EBADF.
145
146         Tests for module 'faccessat'.
147         * modules/faccessat-tests: New file.
148         * tests/test-faccessat.c: New file.
149
150         fdopendir tests: EBADF tests.
151         * tests/test-fdopendir.c (main): Add more tests for EBADF.
152
153         openat tests: EBADF tests.
154         * tests/test-fchownat.c (main): Add tests for EBADF.
155         * tests/test-fstatat.c (main): Likewise.
156         * tests/test-mkdirat.c (main): Likewise.
157         * tests/test-openat.c (main): Likewise.
158         * tests/test-unlinkat.c (main): Likewise.
159         * tests/test-fchmodat.c: New file.
160         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
161         (Makefile.am): Also run 'test-fchmodat'.
162
163 2011-09-20  Bruno Haible  <bruno@clisp.org>
164
165         utimens, futimens, fdutimensat tests: EBADF tests.
166         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
167
168         Tests for function fstat().
169         * modules/fstat-tests: New file.
170         * tests/test-fstat.c: New file.
171         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
172
173 2011-09-20  Bruno Haible  <bruno@clisp.org>
174
175         test-ttyname_r tests: EBADF tests.
176         * tests/test-ttyname_r.c (main): Add tests for EBADF.
177
178         Tests for module 'isatty'.
179         * modules/isatty-tests: New file.
180         * tests/test-isatty.c: New file.
181
182         Tests for module 'write'.
183         * modules/write-tests: New file.
184         * tests/test-write.c: New file.
185
186         Tests for module 'read'.
187         * modules/read-tests: New file.
188         * tests/test-read.c: New file.
189
190         pwrite tests: EBADF tests.
191         * tests/test-pwrite.c (main): Add tests for EBADF.
192
193         pread tests: EBADF tests.
194         * tests/test-pread.c (main): Add tests for EBADF.
195
196         lseek tests: EBADF tests.
197         * tests/test-lseek.c (main): Add more tests for EBADF.
198
199         Tests for module 'ftruncate'.
200         * modules/ftruncate-tests: New file.
201         * tests/test-ftruncate.sh: New file.
202         * tests/test-ftruncate.c: New file.
203
204         fsync tests: EBADF tests.
205         * tests/test-fsync.c (main): Add more tests for EBADF.
206
207         fdatasync tests: EBADF tests.
208         * tests/test-fdatasync.c (main): Add more tests for EBADF.
209
210         Tests for module 'fchown'.
211         * modules/fchown-tests: New file.
212         * tests/test-fchown.c: New file.
213
214         Tests for module 'fchmod'.
215         * modules/fchmod-tests: New file.
216         * tests/test-fchmod.c: New file.
217
218         fchdir tests: EBADF tests.
219         * tests/test-fchdir.c (main): Add more tests for EBADF.
220
221         dup2 tests: EBADF tests.
222         * tests/test-dup2.c (main): Add more tests for EBADF.
223
224         Tests for module 'dup'.
225         * modules/dup-tests: New file.
226         * tests/test-dup.c: New file.
227
228         Tests for module 'close'.
229         * modules/close-tests: New file.
230         * tests/test-close.c: New file.
231
232 2011-09-20  Bruno Haible  <bruno@clisp.org>
233
234         Tests for module 'shutdown'.
235         * modules/shutdown-tests: New file.
236         * tests/test-shutdown.c: New file.
237
238         Tests for module 'setsockopt'.
239         * modules/setsockopt-tests: New file.
240         * tests/test-setsockopt.c: New file.
241
242         Tests for module 'sendto'.
243         * modules/sendto-tests: New file.
244         * tests/test-sendto.c: New file.
245
246         Tests for module 'send'.
247         * modules/send-tests: New file.
248         * tests/test-send.c: New file.
249
250         Tests for module 'recvfrom'.
251         * modules/recvfrom-tests: New file.
252         * tests/test-recvfrom.c: New file.
253
254         Tests for module 'recv'.
255         * modules/recv-tests: New file.
256         * tests/test-recv.c: New file.
257
258         Tests for module 'listen'.
259         * modules/listen-tests: New file.
260         * tests/test-listen.c: New file.
261
262         Tests for module 'getsockopt'.
263         * modules/getsockopt-tests: New file.
264         * tests/test-getsockopt.c: New file.
265
266         Tests for module 'getsockname'.
267         * modules/getsockname-tests: New file.
268         * tests/test-getsockname.c: New file.
269
270         Tests for module 'getpeername'.
271         * modules/getpeername-tests: New file.
272         * tests/test-getpeername.c: New file.
273
274         Tests for module 'connect'.
275         * modules/connect-tests: New file.
276         * tests/test-connect.c: New file.
277
278         Tests for module 'bind'.
279         * modules/bind-tests: New file.
280         * tests/test-bind.c: New file.
281
282         accept4 tests: Fix for native Windows.
283         * tests/test-accept4.c: Include sockets.h.
284         (main): Invoke gl_sockets_startup.
285         * modules/accept4-tests (Depends-on): Add sockets.
286
287         accept tests: Fix for native Windows.
288         * tests/test-accept.c: Include sockets.h.
289         (main): Invoke gl_sockets_startup.
290         * modules/accept-tests (Depends-on): Add sockets.
291
292 2011-09-19  Bruno Haible  <bruno@clisp.org>
293
294         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
295         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
296         do...while(0).
297         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
298         Suggested by Paul Eggert.
299
300 2011-09-19  Bruno Haible  <bruno@clisp.org>
301
302         sched: Ensure pid_t is defined.
303         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
304         not define pid_t.
305         * lib/sched.in.h: Include <sys/types.h>.
306         * doc/posix-headers/sched.texi: Mention the pid_t problem.
307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
308
309 2011-09-19  Bruno Haible  <bruno@clisp.org>
310
311         msvc-inval: Ensure the entire expansion is a single statement.
312         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
313         of braces.
314
315 2011-09-19  Jim Meyering  <meyering@redhat.com>
316
317         tests: use printf, not echo in init.sh's warn_ function
318         * tests/init.sh (warn_): Use printf, not echo.  The latter would
319         misbehave when given strings containing a backslash or starting
320         with e.g., -n.  James Youngman suggested setting IFS.
321
322 2011-09-19  Eric Blake  <eblake@redhat.com>
323
324         futimens: enhance test
325         * tests/test-futimens.h (test_futimens): Also check for EBADF on
326         closed non-negative fd.
327
328         date: accept 'hence' as opposite of 'ago'
329         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
330         * tests/test-parse-datetime.c (main): Enhance test.
331         Suggested by Jesse Wilson.
332
333 2011-09-19  Jim Meyering  <meyering@redhat.com>
334
335         getcwd: don't fail in a deep directory on a system without openat
336         Before this change, getcwd would fail when called from a directory
337         of depth PATH_MAX / 3 or greater.  That was due to the fact that
338         the non-openat implementation used "..", "../..", "../../..", etc.
339         to access ancestor directories.  With too many, that string would
340         be longer than PATH_MAX.
341         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
342         using gnulib's openat replacement.
343         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
344         we're using the replacement function.
345
346 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
347
348         maint.mk: avoid warnings from perl about missing files
349         * top/maint.mk (def_sym_regex): Ignore files listed in
350         $(gl_other_headers_) that do not exist, say because a project
351         does not use a corresponding module.
352
353 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
354
355         stat: use pathmax.h only if needed
356         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
357         This is better for Emacs, which does not have a mingw port and
358         therefore can avoid the pathmax module.
359
360         utimens: remove dependency on dup2
361         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
362         to work around the Linux kernel bug.
363         * modules/utimens (Depends-on): Remove dup2.
364
365 2011-09-18  Bruno Haible  <bruno@clisp.org>
366
367         inet_ntop, inet_pton: Look for it also in libresolv.
368         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
369         libnsl, search for it in libresolv.
370         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
371         Needed on Solaris 7.
372
373 2011-09-18  Bruno Haible  <bruno@clisp.org>
374
375         accept, accept4 tests: Avoid link error on Solaris.
376         * modules/accept-tests (Makefile.am): Link test-accept against
377         $(LIBSOCKET).
378         * modules/accept4-tests (Makefile.am): Link test-accept4 against
379         $(LIBSOCKET).
380
381         accept4: Avoid link error on Solaris.
382         * modules/accept4 (Link): New section.
383
384         socket functions: Avoid link errors on Solaris.
385         * modules/accept (Depends-on): Add socketlib.
386         (Link): New section.
387         * modules/bind (Depends-on): Add socketlib.
388         (Link): New section.
389         * modules/connect (Depends-on): Add socketlib.
390         (Link): New section.
391         * modules/getpeername (Depends-on): Add socketlib.
392         (Link): New section.
393         * modules/getsockname (Depends-on): Add socketlib.
394         (Link): New section.
395         * modules/getsockopt (Depends-on): Add socketlib.
396         (Link): New section.
397         * modules/listen (Depends-on): Add socketlib.
398         (Link): New section.
399         * modules/recv (Depends-on): Add socketlib.
400         (Link): New section.
401         * modules/recvfrom (Depends-on): Add socketlib.
402         (Link): New section.
403         * modules/send (Depends-on): Add socketlib.
404         (Link): New section.
405         * modules/sendto (Depends-on): Add socketlib.
406         (Link): New section.
407         * modules/setsockopt (Depends-on): Add socketlib.
408         (Link): New section.
409         * modules/shutdown (Depends-on): Add socketlib.
410         (Link): New section.
411         * modules/socket (Depends-on): Add socketlib.
412         (Link): New section.
413
414 2011-09-18  Bruno Haible  <bruno@clisp.org>
415
416         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
417         * tests/test-ptsname.c (main): Terminate the test if it takes longer
418         than 5 seconds.
419         * modules/ptsname-tests (configure.ac): Test for alarm.
420
421 2011-09-18  Bruno Haible  <bruno@clisp.org>
422
423         posix_spawn_file_actions_add*: Fix module dependencies.
424         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
425         posix_spawn_file_actions_init.
426         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
427         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
428
429 2011-09-18  Bruno Haible  <bruno@clisp.org>
430
431         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
432         * tests/test-rename.h (test_rename): Allow error code EEXIST.
433         * tests/test-renameat.c (main): Likewise.
434
435 2011-09-18  Bruno Haible  <bruno@clisp.org>
436
437         Tests for module 'accept4'.
438         * modules/accept4-tests: New file.
439         * tests/test-accept4.c: New file.
440
441 2011-09-18  Bruno Haible  <bruno@clisp.org>
442
443         Tests for module 'accept'.
444         * modules/accept-tests: New file.
445         * tests/test-accept.c: New file.
446
447 2011-09-18  Bruno Haible  <bruno@clisp.org>
448
449         dup2: Support for MSVC.
450         * lib/dup2.c: Include msvc-inval.h.
451         (rpl_dup2): Handle invalid parameter notifications during dup2 and
452         _get_osfhandle calls.
453         * modules/dup2 (Depends-on): Add msvc-inval.
454         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
455
456         New module 'msvc-inval'.
457         * lib/msvc-inval.h: New file.
458         * lib/msvc-inval.c: New file.
459         * m4/msvc-inval.m4: New file.
460         * modules/msvc-inval: New file.
461
462 2011-09-17  Bruno Haible  <bruno@clisp.org>
463
464         Tests for module 'pclose'.
465         * modules/pclose-tests: New file.
466
467         New module 'pclose'.
468         * lib/stdio.in.h (pclose): New declaration.
469         * lib/pclose.c: New file.
470         * m4/pclose.m4: New file.
471         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
472         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
473         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
474         * modules/pclose: New file.
475         * modules/popen-tests (Depends-on): Add pclose.
476         * modules/popen-safer-tests (Depends-on): Likewise.
477         * doc/posix-functions/pclose.texi: Mention the new module.
478
479 2011-09-17  Bruno Haible  <bruno@clisp.org>
480
481         popen: Support for MSVC.
482         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
483         * lib/popen.c (popen): Provide alternate definition for native Windows.
484         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
486         * modules/popen (Depends-on, configure.ac): Update condition.
487         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
488         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
489         fixed.
490
491 2011-09-17  Bruno Haible  <bruno@clisp.org>
492
493         isnanl, isnand, isnanf: Work around MSVC bug.
494         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
495
496 2011-09-17  Bruno Haible  <bruno@clisp.org>
497
498         sys_socket tests: Fix recent mistake.
499         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
500
501 2011-09-17  Bruno Haible  <bruno@clisp.org>
502
503         putenv: Support for MSVC.
504         * modules/putenv (Depends-on): Add environ.
505         * lib/putenv.c (environ): Disable declaration.
506         * lib/unistd.in.h: Update comment.
507
508 2011-09-17  Bruno Haible  <bruno@clisp.org>
509
510         math: Avoid macro redefinition warnings on MSVC.
511         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
512         Undefine before redefining.
513
514 2011-09-17  Bruno Haible  <bruno@clisp.org>
515
516         doc: Mention functions which are declared as macros.
517         * doc/posix-functions/*[fl].texi: Mention that some functions are
518         defined as macros with arguments only.
519
520 2011-09-17  Bruno Haible  <bruno@clisp.org>
521
522         Add dependencies to new dirent related modules.
523         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
524         * modules/fts (Depends-on): Likewise.
525         * modules/glob (Depends-on): Likewise.
526         * modules/savedir (Depends-on): Likewise.
527         * modules/scandir (Depends-on): Likewise.
528         * modules/dirent-safer (Depends-on): Add opendir, closedir.
529         * modules/fdopendir (Depends-on): Add opendir.
530
531 2011-09-17  Bruno Haible  <bruno@clisp.org>
532
533         inet_pton: Support for MSVC on Windows Vista or newer.
534         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
535         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
536         HAVE_DECL_INET_PTON is defined.
537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
538         On platforms with <winsock2.h>, test whether inet_pton is declared in
539         <ws2tcpip.h>. If so, arrange to replace it.
540         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
541         REPLACE_INET_PTON.
542         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
543         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
544         (Depends-on, configure.ac): Update condition.
545         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
546
547 2011-09-17  Bruno Haible  <bruno@clisp.org>
548
549         inet_ntop: Support for MSVC on Windows Vista or newer.
550         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
551         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
552         HAVE_DECL_INET_NTOP is defined.
553         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
554         On platforms with <winsock2.h>, test whether inet_ntop is declared in
555         <ws2tcpip.h>. If so, arrange to replace it.
556         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
557         REPLACE_INET_NTOP.
558         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
559         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
560         (Depends-on, configure.ac): Update condition.
561         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
562
563 2011-09-16  Eric Blake  <eblake@redhat.com>
564
565         test-fsync: yet another enhancement
566         * tests/test-fsync.c (main): Also test behavior on read-only text
567         file.
568
569 2011-09-16  Bruno Haible  <bruno@clisp.org>
570
571         Enhance fsync, fdatasync tests.
572         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
573         * tests/test-fdatasync.c (main): Likewise.
574
575 2011-09-16  Bruno Haible  <bruno@clisp.org>
576
577         Support for MSVC compiler: Ensure mode_t gets defined.
578         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
579         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
581         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
582         * tests/test-fcntl-h.c: Check that mode_t is defined.
583         * tests/test-sys_stat.c: Likewise.
584         * tests/test-sys_types.c: Likewise.
585         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
586         * doc/posix-headers/sys_stat.texi: Likewise.
587         * doc/posix-headers/sys_types.texi: Likewise.
588
589 2011-09-16  Bruno Haible  <bruno@clisp.org>
590
591         sys_stat: Support for MSVC.
592         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
593         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
594         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
595         MSVC.
596
597 2011-09-16  Bruno Haible  <bruno@clisp.org>
598
599         Support for MSVC compiler: Ensure off_t gets defined.
600         * lib/unistd.in.h: Include <sys/types.h>.
601         * tests/test-fcntl-h.c: Check that off_t is defined.
602         * tests/test-sys_stat.c: Likewise.
603         * tests/test-sys_types.c: Likewise.
604
605 2011-09-16  Eric Blake  <eblake@redhat.com>
606
607         fdatasync: port to Solaris
608         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
609         * modules/fdatasync (Link): Document it.
610         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
611
612         fdatasync: port to MacOS X 10.7
613         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
614         declared.
615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
616         * modules/unistd (Makefile.am): Substitute it.
617         * lib/unistd.in.h (fdatasync): Declare on MacOS.
618         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
619
620         fdatasync: minor improvements
621         * modules/fdatasync (Depends-on): Add condition for fsync.
622         * lib/fdatasync.c (fdatasync): Add comment.
623         * tests/test-unistd-c++.cc: Test fdatasync.
624
625         unistd: update refs to newer POSIX
626         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
627         Suggested by Bruno Haible.
628
629         fdatasync: new module
630         * modules/fsync (Description): Document difference to fdatasync.
631         * modules/fdatasync: New module.
632         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
633         * lib/fdatasync.c (fdatasync): Likewise.
634         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
635         defaults.
636         * modules/unistd (Makefile.am): Set witnesses.
637         * lib/unistd.in.h (fdatasync): Declare.
638         * MODULES.html.sh: Document it.
639         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
640         * modules/fdatasync-tests: New test.
641         * tests/test-fdatasync.c: Likewise.
642
643 2011-09-16  Eric Blake  <eblake@redhat.com>
644
645         test-fsync: enhance tests
646         * modules/fsync-tests (Depends-on): Add errno, for mingw.
647         * tests/test-fsync.c (main): Enhance test.
648
649 2011-09-15  Bruno Haible  <bruno@clisp.org>
650
651         Support for MSVC compiler: Ensure ssize_t gets defined.
652         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
653         * doc/posix-headers/stdio.texi: Likewise.
654         * modules/stdio (Depends-on): Add ssize_t.
655         * modules/sys_socket (Depends-on): Likewise.
656         * modules/sys_types (Depends-on): Likewise.
657         * modules/sys_uio (Depends-on): Likewise.
658         * modules/unistd (Depends-on): Likewise.
659         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
660         * tests/test-sys_types.c: Check that ssize_t is defined.
661
662 2011-09-14  Bruno Haible  <bruno@clisp.org>
663
664         Avoid using #, the m4 comment starter character, near brackets.
665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
666         delimiter character in sed expressions.
667         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
668         Suggested by Eric Blake.
669
670         Properly quote AC_CHECK_DECLS' 4th argument.
671         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
672         argument.
673         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
674         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
675         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
676         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
677         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
678         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
679         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
680         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
681         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
683         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
684         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
685         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
686         * m4/isinf.m4 (gl_ISINF): Likewise.
687         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
688         * m4/readutmp.m4 (gl_READUTMP): Likewise.
689         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
690         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
692         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
693         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
694         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
695         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
696         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
697         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
700         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
702         Reported by Eric Blake.
703
704         Properly quote AC_CHECK_DECL's 4th argument.
705         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
706         argument.
707         * m4/argp.m4 (gl_ARGP): Likewise.
708         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
709         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
710         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
711         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
712         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
713         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
715         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
716         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
717         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
718         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
719         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
720         Reported by Eric Blake.
721
722 2011-09-14  Eric Blake  <eblake@redhat.com>
723
724         opendir: avoid compile warning
725         * lib/opendir.c (includes): Always include errno.h.
726         Reported by Tatsuro MATSUOKA.
727
728 2011-09-14  Jim Meyering  <meyering@redhat.com>
729
730         maint.mk: sc_tight_scope: propagate failure from sub-make
731         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
732         Reported by Martin von Gagern.
733
734 2011-09-13  Bruno Haible  <bruno@clisp.org>
735
736         tempname: Support for MSVC.
737         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
738         MSVC.
739         * modules/tempname (Depends-on): Add fcntl-h.
740
741 2011-09-13  Bruno Haible  <bruno@clisp.org>
742
743         sys_time: Support for MSVC.
744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
745         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
746         include <winsock2.h>.
747         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
748         function declarations that collide with POSIX.
749         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
750         (Makefile.am): Substitute HAVE_WINSOCK2_H.
751
752 2011-09-13  Bruno Haible  <bruno@clisp.org>
753
754         stat: Support for MSVC.
755         * lib/stat.c: Include pathmax.h.
756         * modules/stat (Depends-on): Add pathmax.
757
758         pathmax: Support for native Windows.
759         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
760
761 2011-09-12  Bruno Haible  <bruno@clisp.org>
762
763         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
764         * lib/dirent.in.h (struct dirent): New type.
765         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
766         DT_WHT): New macros.
767         (DIR): New type.
768         (opendir, closedir): Declare only if the module 'opendir' is enabled.
769         (readdir, rewinddir): New declarations.
770         * lib/dirent-private.h: New file.
771         * lib/opendir.c: New file.
772         * lib/readdir.c: New file.
773         * lib/rewinddir.c: New file.
774         * lib/closedir.c: New file.
775         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
776         * m4/opendir.m4: New file.
777         * m4/readdir.m4: New file.
778         * m4/rewinddir.m4: New file.
779         * m4/closedir.m4: New file.
780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
781         REPLACE_CLOSEDIR here.
782         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
783         readdir, rewinddir are declared.
784         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
785         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
786         HAVE_REWINDDIR, HAVE_CLOSEDIR.
787         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
788         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
789         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
790         * modules/opendir: New file.
791         * modules/readdir: New file.
792         * modules/rewinddir: New file.
793         * modules/closedir: New file.
794         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
795         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
796         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
797         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
798         * NEWS: Mention the 'fchdir' change.
799
800 2011-09-11  Bruno Haible  <bruno@clisp.org>
801
802         asm-underscore.m4: Support for MSVC.
803         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
804         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
805
806 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
807
808         Doc about crypt functions.
809         * doc/posix-functions/crypt.texi: Expand range of glibc versions
810         needing for _GNU_SOURCE to get crypt.
811         * doc/posix-functions/encrypt.texi: Likewise.
812         * doc/posix-functions/setkey.texi: Likewise.
813
814 2011-09-11  Bruno Haible  <bruno@clisp.org>
815
816         doc: Update regarding MSVC 9.
817         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
818         tested".
819         * doc/posix-functions/*.texi: Update with info about MSVC 9.
820         * doc/posix-headers/*.texi: Likewise.
821         * doc/pastposix-functions/*.texi: Likewise.
822         * doc/glibc-functions/*.texi: Likewise.
823         * doc/glibc-headers/*.texi: Likewise.
824
825 2011-09-11  Bruno Haible  <bruno@clisp.org>
826
827         unistd et al.: Don't assume <unistd.h> exists.
828         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
829         does not exist.
830         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
831         exist. But include <stdlib.h>.
832         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
833         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
834         symlink() does not exist.
835         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
836         include <io.h> instead.
837         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
838         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
839         include <direct.h> instead.
840         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
841         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
842         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
843         <io.h> instead.
844         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
845         correctly if the system does not have hard links.
846         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
847         <direct.h> instead.
848         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
849         it when looking for function declarations.
850         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
851         <direct.h> and <io.h> instead.
852         * doc/posix-headers/unistd.texi: More details about MSVC problem.
853
854 2011-09-11  Bruno Haible  <bruno@clisp.org>
855
856         strcase: Support for MSVC.
857         * modules/strcase (Status, Notice): Remove obsoletion mark.
858         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
859         * doc/posix-functions/strncasecmp.texi: Likewise.
860
861         strings: Don't assume <strings.h> exists.
862         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
863         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
864         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
865         * doc/posix-headers/strings.texi: Mention the MSVC problem.
866
867 2011-09-11  Bruno Haible  <bruno@clisp.org>
868
869         dirent: Don't assume <dirent.h> exists.
870         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
871         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
872         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
873         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
874
875 2011-09-11  Bruno Haible  <bruno@clisp.org>
876
877         Fix wint_t on MSVC.
878         * lib/wchar.in.h (wint_t): On MSVC, override it.
879         * lib/wctype.in.h (wint_t): Likewise.
880         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
881         MSVC.
882         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
883         * doc/posix-headers/wctype.texi: Likewise.
884
885 2011-09-11  Bruno Haible  <bruno@clisp.org>
886
887         sys_types: Fix typo.
888         * lib/sys_types.in.h: Fix typo in comment.
889         Reported by Paul Eggert.
890
891         Support for MSVC compiler: Ensure size_t gets defined.
892         * modules/strings (Depends-on): Add 'sys_types'.
893         * modules/sys_uio (Depends-on): Likewise.
894         * lib/sys_uio.in.h: Update comment.
895
896         C++ tests for module 'sys_types'.
897         * modules/sys_types-c++-tests: New file.
898         * tests/test-sys_types-c++.cc: New file.
899
900         Tests for module 'sys_types'.
901         * modules/sys_types-tests: New file.
902         * tests/test-sys_types.c: New file.
903
904         New module 'sys_types'.
905         * lib/sys_types.in.h: New file.
906         * m4/sys_types_h.m4: New file.
907         * modules/sys_types: New file.
908         * doc/posix-headers/sys_types.texi: Mention the new module and the
909         size_t problem on MSVC 9.
910
911 2011-09-11  Bruno Haible  <bruno@clisp.org>
912
913         Support for MSVC compiler: Avoid division by a literal 0.
914         * lib/math.in.h (NAN): Define through a function call also on MSVC.
915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
916         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
917         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
918         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
919         * tests/infinity.h: New file.
920         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
921         on MSVC.
922         * tests/test-ceilf1.c: Include infinity.h.
923         (main): Use Infinityf.
924         * tests/test-ceil1.c: Include infinity.h.
925         (main): Use Infinityd.
926         * tests/test-ceill.c: Include infinity.h.
927         (main): Use Infinityl.
928         * tests/test-dprintf-posix.c: Include infinity.h.
929         (test_function): Use Infinityd.
930         * tests/test-floorf1.c: Include infinity.h.
931         (main): Use Infinityf.
932         * tests/test-floor1.c: Include infinity.h.
933         (main): Use Infinityd.
934         * tests/test-floorl.c: Include infinity.h.
935         (main): Use Infinityl.
936         * tests/test-fprintf-posix.c: Include infinity.h.
937         (test_function): Use Infinityd.
938         * tests/test-frexp.c: Include infinity.h.
939         (main): Use Infinityd.
940         * tests/test-frexpl.c: Include infinity.h.
941         (main): Use Infinityl.
942         * tests/test-isfinite.c: Include infinity.h.
943         (test_isfinitef): Use Infinityf.
944         (test_isfinited): Use Infinityd.
945         (test_isfinitel): Use Infinityl.
946         * tests/test-isinf.c: Include infinity.h.
947         (test_isinff): Use Infinityf.
948         (test_isinfd): Use Infinityd.
949         (test_isinfl): Use Infinityl.
950         * tests/test-isnan.c: Include infinity.h.
951         (test_float): Use Infinityf.
952         (test_double): Use Infinityd.
953         (test_long_double): Use Infinityl.
954         * tests/test-isnanf.h: Include infinity.h.
955         (main): Use Infinityf.
956         * tests/test-isnand.h: Include infinity.h.
957         (main): Use Infinityd.
958         * tests/test-isnanl.h: Include infinity.h.
959         (main): Use Infinityl.
960         * tests/test-ldexpl.c: Include infinity.h.
961         (main): Use Infinityl.
962         * tests/test-printf-posix.h: Include infinity.h.
963         (test_function): Use Infinityd.
964         * tests/test-roundf1.c: Include infinity.h.
965         (main): Use Infinityf.
966         * tests/test-round1.c: Include infinity.h.
967         (main): Use Infinityd.
968         * tests/test-roundl.c: Include infinity.h.
969         (main): Use Infinityl.
970         * tests/test-signbit.c: Include infinity.h.
971         (test_signbitf): Use Infinityf.
972         (test_signbitd): Use Infinityd.
973         (test_signbitl): Use Infinityl.
974         * tests/test-snprintf-posix.h: Include infinity.h.
975         (test_function): Use Infinityd, Infinityl.
976         * tests/test-sprintf-posix.h: Include infinity.h.
977         (test_function): Use Infinityd, Infinityl.
978         * tests/test-truncf1.c: Include infinity.h.
979         (main): Use Infinityf.
980         * tests/test-trunc1.c: Include infinity.h.
981         (main): Use Infinityd.
982         * tests/test-truncl.c: Include infinity.h.
983         (main): Use Infinityl.
984         * tests/test-vasnprintf-posix.c: Include infinity.h.
985         (test_function): Use Infinityd, Infinityl.
986         * tests/test-vasprintf-posix.c: Include infinity.h.
987         (test_function): Use Infinityd, Infinityl.
988         * modules/ceilf-tests (Files): Add tests/infinity.h.
989         * modules/ceil-tests (Files): Likewise.
990         * modules/ceill-tests (Files): Likewise.
991         * modules/dprintf-posix-tests (Files): Likewise.
992         * modules/floorf-tests (Files): Likewise.
993         * modules/floor-tests (Files): Likewise.
994         * modules/floorl-tests (Files): Likewise.
995         * modules/fprintf-posix-tests (Files): Likewise.
996         * modules/frexp-tests (Files): Likewise.
997         * modules/frexp-nolibm-tests (Files): Likewise.
998         * modules/frexpl-tests (Files): Likewise.
999         * modules/frexpl-nolibm-tests (Files): Likewise.
1000         * modules/isfinite-tests (Files): Likewise.
1001         * modules/isinf-tests (Files): Likewise.
1002         * modules/isnan-tests (Files): Likewise.
1003         * modules/isnanf-tests (Files): Likewise.
1004         * modules/isnanf-nolibm-tests (Files): Likewise.
1005         * modules/isnand-tests (Files): Likewise.
1006         * modules/isnand-nolibm-tests (Files): Likewise.
1007         * modules/isnanl-tests (Files): Likewise.
1008         * modules/isnanl-nolibm-tests (Files): Likewise.
1009         * modules/ldexpl-tests (Files): Likewise.
1010         * modules/printf-posix-tests (Files): Likewise.
1011         * modules/roundf-tests (Files): Likewise.
1012         * modules/round-tests (Files): Likewise.
1013         * modules/roundl-tests (Files): Likewise.
1014         * modules/signbit-tests (Files): Likewise.
1015         * modules/snprintf-posix-tests (Files): Likewise.
1016         * modules/sprintf-posix-tests (Files): Likewise.
1017         * modules/truncf-tests (Files): Likewise.
1018         * modules/trunc-tests (Files): Likewise.
1019         * modules/truncl-tests (Files): Likewise.
1020         * modules/vasnprintf-posix-tests (Files): Likewise.
1021         * modules/vasprintf-posix-tests (Files): Likewise.
1022         * modules/vdprintf-posix-tests (Files): Likewise.
1023         * modules/vfprintf-posix-tests (Files): Likewise.
1024         * modules/vprintf-posix-tests (Files): Likewise.
1025         * modules/vsnprintf-posix-tests (Files): Likewise.
1026         * modules/vsprintf-posix-tests (Files): Likewise.
1027         * modules/xprintf-posix-tests (Files): Likewise.
1028
1029 2011-09-11  Bruno Haible  <bruno@clisp.org>
1030
1031         Ensure pid_t gets defined.
1032         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1033         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1034         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1035         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1036         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1037         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1038         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1039         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1040         * tests/test-fcntl-h.c: Check that pid_t is defined.
1041         * tests/test-sched.c: Likewise.
1042         * tests/test-termios.c: Likewise.
1043         * tests/test-time.c: Likewise.
1044         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1045         * doc/posix-headers/signal.texi: Likewise.
1046         * doc/posix-headers/sys_types.texi: Likewise.
1047         * doc/posix-headers/time.texi: Likewise.
1048
1049 2011-09-11  Bruno Haible  <bruno@clisp.org>
1050
1051         acl: Fix compilation on Solaris 10 (older version).
1052         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1053         of ACE_EVERYONE.
1054         * lib/set-mode-acl.c (qset_acl): Likewise.
1055         Reported by Christian Jullien <eligis@orange.fr>.
1056
1057 2011-09-10  Bruno Haible  <bruno@clisp.org>
1058
1059         iconv, unsetenv: Add support for MSVC compiler.
1060         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1062
1063 2011-09-10  Bruno Haible  <bruno@clisp.org>
1064
1065         *printf: Add support for MSVC compiler.
1066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1067         handles the exception caused by the %n directive. When cross-compiling,
1068         guess no on native Windows.
1069         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1070         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1071         emulate it through vsnprintf.
1072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1073         * doc/posix-functions/dprintf.texi: Update documentation regarding
1074         MSVC 9.
1075         * doc/posix-functions/fprintf.texi: Likewise.
1076         * doc/posix-functions/printf.texi: Likewise.
1077         * doc/posix-functions/snprintf.texi: Likewise.
1078         * doc/posix-functions/sprintf.texi: Likewise.
1079         * doc/posix-functions/swprintf.texi: Likewise.
1080         * doc/posix-functions/vdprintf.texi: Likewise.
1081         * doc/posix-functions/vfprintf.texi: Likewise.
1082         * doc/posix-functions/vprintf.texi: Likewise.
1083         * doc/posix-functions/vsnprintf.texi: Likewise.
1084         * doc/posix-functions/vsprintf.texi: Likewise.
1085         * doc/glibc-functions/asprintf.texi: Likewise.
1086         * doc/glibc-functions/obstack_printf.texi: Likewise.
1087         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1088         * doc/glibc-functions/vasprintf.texi: Likewise.
1089
1090 2011-09-10  Bruno Haible  <bruno@clisp.org>
1091
1092         nocrash: Add support for native Windows.
1093         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1094
1095 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1096             Bruno Haible  <bruno@clisp.org>
1097
1098         absolute-header, include-next: Add support for MSVC compiler.
1099         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1100         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1101         directory separator in #line directives.
1102         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1103         recognize also backslash as directory separator in #line directives.
1104
1105 2011-09-08  Jim Meyering  <meyering@redhat.com>
1106
1107         maint.mk: mark the post-release commit log with "maint: " prefix
1108         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1109         one-line commit-log summary.
1110
1111 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1112             Bruno Haible  <bruno@clisp.org>
1113
1114         Doc about crypt functions.
1115         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1116         systems.
1117         * doc/posix-functions/encrypt.texi: Likewise.
1118         * doc/posix-functions/setkey.texi: Likewise.
1119
1120 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1121
1122         * lib/gc.h: Fix copyright header.
1123
1124 2011-09-07  Bruno Haible  <bruno@clisp.org>
1125
1126         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1127         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1128         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1129
1130 2011-09-07  Bruno Haible  <bruno@clisp.org>
1131
1132         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1133         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1134         * lib/freopen.c: Likewise.
1135         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1136         * lib/lstat.c: Likewise.
1137         * lib/stat.c: Likewise.
1138         * lib/open.c: Use different syntax for include of <fcntl.h>.
1139         * lib/openat.c: Include fcntl.h again, explicitly.
1140
1141 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1142
1143         parse-datetime: document the newly accepted format
1144         * doc/parse-datetime.texi (Combined date and time of day items):
1145         New section.
1146
1147 2011-09-06  Bruno Haible  <bruno@clisp.org>
1148
1149         acl: Fix a test failure on newer Solaris 10 with ZFS.
1150         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1151         ENOSYS as no ACL.
1152         Reported by Jim Meyering.
1153
1154 2011-09-06  Bruno Haible  <bruno@clisp.org>
1155
1156         acl: Update for AIX >= 5.3 with NFS.
1157         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1158         ENOSYS as no ACL.
1159
1160         acl: Fix a test failure on AIX >= 5.3 with NFS.
1161         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1162         as no ACL.
1163
1164 2011-09-06  Bruno Haible  <bruno@clisp.org>
1165
1166         acl: Fix a test failure on IRIX 6.5 with NFS.
1167         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1168         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1169         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1170         * lib/copy-acl.c (qcopy_acl): Likewise.
1171
1172 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1173
1174         openat: port to AIX 7.1 with large files
1175         AIX 7.1 does a "#define openat open64at" if large files are in use,
1176         so we can't simply #undef openat.  Use the orig_openat trick (similar
1177         to orig_open in lib/open.c) to work around the problem.  Problem
1178         reported by Kevin Brott for GNU tar, in the thread containing
1179         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1180         * lib/openat.c (__need_system_fcntl_h): Define first.
1181         Include <fcntl.h> and <sys/types.h> before undefining.
1182         (orig_openat) [HAVE_OPENAT]: New inline function.
1183         (openat) [HAVE_OPENAT]: Do not undef.
1184         (rpl_openat): Use orig_openat, not openat.
1185
1186 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1187             Bruno Haible  <bruno@clisp.org>
1188
1189         acl: Avoid errors on NonStop Kernel.
1190         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1191         ENOTSUP errors.
1192
1193 2011-09-05  Bruno Haible  <bruno@clisp.org>
1194
1195         acl: Clean up Solaris code.
1196         * lib/acl-internal.h: Remove no-op #if.
1197         * lib/file-has-acl.c: Likewise.
1198         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1199         * lib/copy-acl.c (qcopy_acl): Likewise.
1200
1201 2011-09-05  Bruno Haible  <bruno@clisp.org>
1202
1203         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1204         binaries built on the original Solaris 10.
1205         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1206         trivial.
1207
1208 2011-09-05  Bruno Haible  <bruno@clisp.org>
1209
1210         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1211         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1212         10.
1213         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1214         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1215         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1216         instead of acl_get, facl_get, acl_set, facl_set.
1217
1218 2011-09-05  Bruno Haible  <bruno@clisp.org>
1219
1220         copy-file: Try unit tests on more file systems.
1221         * tests/test-copy-file-1.sh: New file.
1222         * tests/test-copy-file-2.sh: New file.
1223         * modules/copy-file-tests (Files): Add them.
1224         (Makefile.am): Add them to TESTS.
1225
1226         acl: Try unit tests on more file systems.
1227         * tests/test-file-has-acl-1.sh: New file.
1228         * tests/test-file-has-acl-2.sh: New file.
1229         * tests/test-set-mode-acl-1.sh: New file.
1230         * tests/test-set-mode-acl-2.sh: New file.
1231         * tests/test-copy-acl-1.sh: New file.
1232         * tests/test-copy-acl-2.sh: New file.
1233         * modules/acl-tests (Files): Add them.
1234         (Makefile.am): Add them to TESTS.
1235
1236 2011-09-04  Bruno Haible  <bruno@clisp.org>
1237
1238         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1239         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1240         10.
1241         (OLD_ALLOW, OLD_DENY): New macros.
1242         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1243         ACE_ACCESS_ALLOWED_ACE_TYPE.
1244         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1245         ACE_ACCESS_DENIED_ACE_TYPE.
1246         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1247         (NEW_ACE_EXECUTE): Fix value.
1248         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1249         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1250         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1251         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1252         NEW_ACE_SYNCHRONIZE): New macros.
1253         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1254         instead of acl_fromtext, acl_set, facl_set.
1255         Fixes a coreutils/tests/cp/perm failure.
1256
1257 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1258
1259         openat: test for fstatat (..., 0) bug
1260         Further testing with tar suggests that fstatat (..., 0)
1261         does not work in general, on AIX 7.1; see
1262         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1263         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1264         replacement fstatat (which is what older AIX releases were using
1265         anyway).
1266         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1267         use is now changed to orig_fstatat.  This was probably the right
1268         thing to do anyway.
1269         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1270         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1271         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1272         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1273         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1274         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1275         if the bug is found.
1276
1277         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1278         This tests for another fstatat bug on AIX 7.1:
1279         fstatat (AT_FDCWD, ..., 0) does not work.  See
1280         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1281         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1282         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1283         (rpl_fstatat): Adjust so that it works around either (or both)
1284         bugs if present.
1285         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1286
1287 2011-09-03  Karl Berry  <karl@gnu.org>
1288
1289         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1290         in index entries.
1291
1292 2011-09-02  Bruno Haible  <bruno@clisp.org>
1293
1294         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1295         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1296         values of AR, ARFLAGS, RANLIB.
1297         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1298
1299 2011-09-02  Bruno Haible  <bruno@clisp.org>
1300
1301         Find 'ar' program that fits with --host argument.
1302         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1303
1304 2011-09-02  Bruno Haible  <bruno@clisp.org>
1305
1306         tests: init.sh: Support any non-GNU diff.
1307         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1308         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1309         Solaris 8.
1310
1311 2011-09-02  Bruno Haible  <bruno@clisp.org>
1312
1313         tests: init.sh: work also with any non-GNU diff that supports -u
1314         * tests/init.sh: Relax check for diff -u support.
1315         Rather than checking for GNU diff via --version, simply check
1316         for support for -u itself.  Useful at least on OpenBSD 4.9,
1317         AIX 7.1, IRIX 6.5, and Solaris 10.
1318
1319 2011-09-01  Bruno Haible  <bruno@clisp.org>
1320
1321         strtoimax, strtoumax: Document problem on HP-UX 11.
1322         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1323         * doc/posix-functions/strtoumax.texi: Likewise.
1324
1325 2011-09-01  Bruno Haible  <bruno@clisp.org>
1326
1327         strtoumax: Avoid link error on OSF/1 with DTK cc.
1328         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1329         defined as a function.
1330         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1331         strtoumax is defined, not whether it is declared.
1332
1333 2011-09-01  Bruno Haible  <bruno@clisp.org>
1334
1335         strtoimax: Avoid link error on OSF/1 with DTK cc.
1336         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1337         defined as a function.
1338         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1339         strtoimax is defined, not whether it is declared.
1340
1341 2011-09-01  Bruno Haible  <bruno@clisp.org>
1342
1343         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1344         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1345         as a function.
1346         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1347         whether it is declared.
1348
1349 2011-09-01  Bruno Haible  <bruno@clisp.org>
1350
1351         imaxabs: Avoid link error on OSF/1 with DTK cc.
1352         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1353         as a function.
1354         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1355         whether it is declared.
1356
1357 2011-09-01  Bruno Haible  <bruno@clisp.org>
1358
1359         Tests for module 'strtoumax'.
1360         * modules/strtoumax-tests: New file.
1361         * tests/test-strtoumax.c: New file.
1362
1363         Tests for module 'strtoimax'.
1364         * modules/strtoimax-tests: New file.
1365         * tests/test-strtoimax.c: New file.
1366
1367         Tests for module 'imaxdiv'.
1368         * modules/imaxdiv-tests: New file.
1369         * tests/test-imaxdiv.c: New file.
1370
1371         Tests for module 'imaxabs'.
1372         * modules/imaxabs-tests: New file.
1373         * tests/test-imaxabs.c: New file.
1374
1375 2011-09-01  Bruno Haible  <bruno@clisp.org>
1376
1377         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1378         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1379         pthread_create.
1380
1381 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1382
1383         openat: work around AIX 7.1 fstatat issue
1384         This should fix the problem that was not properly fixed
1385         in the previous change, dated 2011-08-30.
1386         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1387         __need_system_stat_h defined.
1388         (orig_fstatat) [HAVE_FSTATAT]: New function.
1389         (rpl_fstatat): Go back to the old way of doing things,
1390         except call orig_fstatat instead of fstatat.
1391         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1392         Remove unnecessary check whether fstatat fills in st_size etc.
1393
1394 2011-09-01  Bruno Haible  <bruno@clisp.org>
1395
1396         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1397         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1398         just include the system's header.
1399
1400 2011-08-31  Jim Meyering  <meyering@redhat.com>
1401
1402         tests: avoid spurious assertion failure in test-float.c on ppc64
1403         * tests/test-float.c (test_long_double): Comment out an assertion,
1404         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1405         with gcc-4.4.4.
1406
1407         maint: indent with spaces, not TABs
1408         I need to get in the habit of running gnulib's "make check".
1409         Both of these would have been caught.
1410         * m4/largefile.m4: Indent with spaces, not TABs.
1411         * lib/parse-datetime.y (iso_8601_time): Likewise.
1412         Spotted by Pádraig Brady.
1413
1414         test-parse-datetime.c: accommodate a relatively strict gcc warning
1415         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1416         to avoid a warning from gcc's -Werror=missing-declarations.
1417         Insert a few spaces-before-funcall-parenthesis.
1418
1419 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1420
1421         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1422         The parser now accepts ISO 8601 date-time strings with "T" as the
1423         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1424         with a space between the date and time strings.  Now it also parses
1425         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1426         variants like "2004-02-29T16:21:42.333-07:00"
1427         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1428         of day representation using the 'T' separator character.
1429         * doc/parse-datetime.texi (General date syntax): replace use of
1430         deprecated --iso-8601 option with --rfc-3339 in example of date
1431         command output formats that can be parsed.
1432         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1433         lib/parse-datetime.y.
1434         (gmt_offset): New function.
1435         (main): Add additional test cases to validate ISO8601 extended
1436         date and time of day parsing.
1437
1438 2011-08-31  Bruno Haible  <bruno@clisp.org>
1439
1440         freopen: Documentation.
1441         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1442         name.
1443         Reported by Claudio Bley <claudio.bley@gmail.com>.
1444
1445 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1446
1447         freopen: Don't crash if the filename argument is NULL.
1448         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1449         NULL.
1450
1451 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1452
1453         openat: work around AIX 7.1 fstatat bug
1454         Problem reported by Kevin Brott for GNU tar, in the thread containing
1455         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1456         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1457         FSTATAT_ST_SIZE_ETC_BROKEN.
1458         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1459         rpl_fstatat.
1460         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1461         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1462         AC_CHECK_FUNCS_ONCE for fstatat.
1463         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1464         fchmodat, mkdirat, openat and unlinkat.
1465
1466 2011-08-30  Bruno Haible  <bruno@clisp.org>
1467
1468         Avoid endless recursions if config.h includes some header files.
1469         * lib/fopen.c (__need_FILE): Define already before including config.h.
1470         * lib/freopen.c (__need_FILE): Likewise.
1471         * lib/open.c (__need_system_fcntl_h): Likewise.
1472         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1473         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1474         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1475
1476 2011-08-25  Karl Berry  <karl@gnu.org>
1477
1478         * config/srclist.txt (ylwrap): new try.
1479         * build-aux/ylwrap: new file.
1480
1481 2011-08-23  Bruno Haible  <bruno@clisp.org>
1482
1483         tmpdir: Use a good default directory on native Windows.
1484         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1485         (P_tmpdir): Default to _P_tmpdir on native Windows.
1486         (path_search): On native Windows, try the value returned by GetTempPath
1487         before trying P_tmpdir.
1488         * modules/tmpdir (Depends-on): Add pathmax.
1489         Suggested by John Darrington <john@darrington.wattle.id.au>.
1490
1491 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1492
1493         doc: fix typo in README-release
1494         * top/README-release: Capitalize first word of a sentence.
1495
1496 2011-08-19  Jim Meyering  <meyering@redhat.com>
1497
1498         fts: do not exhaust memory when processing million-entry directories
1499         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1500         directory would require about 256*N bytes of memory.  Thus, it was
1501         easy to construct a directory too large to be processed by any of
1502         those tools.  With this change, fts' maximum memory utilization is
1503         now limited to around 30MB.
1504         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1505         (fts_read): When we've processed the final entry (i.e., when
1506         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1507         using the parent entry to read any remaining entries.  Dispatch
1508         depending on what fts_build returns:
1509         - NULL+stop, aka failure: stop
1510         - NULL otherwise: move up in the dir hierarchy
1511         - non-NULL: handle this new entry
1512         (fts_build): Declare and use new local, continue_readdir.
1513         Prepare to be called from fts_read, when the entries
1514         from a partially-read directory have just been exhausted.
1515         In that case, we'll skip the opendir and instead use the parent's
1516         fts_dirp and derive dir_fd from that.
1517         Finally, in the readdir loop, if we read max_entries entries,
1518         exit the loop ensuring *not* to call closedir.  This is required
1519         so that fts_dirp can be reused on a subsequent call.
1520         Prompted by Ben England's report of memory exhaustion in find
1521         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1522
1523         maint: fts: move decl of `dp' down into while loop; split a long line
1524         * lib/fts.c (fts_build): No semantic change.
1525
1526         fts: add/use new struct member, fts_dirp
1527         We are about to use this to manage any directory with
1528         too many entries to read all of them into memory at once.
1529         To do that, we'll need to save the DIR* pointer in each
1530         affected FTSENT struct.
1531         * lib/fts_.h: Include <dirent.h>.
1532         (struct FTSENT) [fts_dirp]: New member.
1533         * lib/fts.c (closedir_and_clear): Define.
1534         Use it in place of closedir so that we are sure to
1535         clear the new fts_dirp member when done with it.
1536         (fts_alloc): Initialize the new member.
1537         (fts_lfree): Free, if needed.
1538
1539         maint: fts: give __opendir2 a new parameter and rename
1540         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1541         than surreptitiously using sole caller's "dir_fd".
1542         (fts_opendir): Rename from __opendir2.
1543
1544         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1545         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1546
1547         maint: fts.c: correct off-by-one indentation
1548         * lib/fts.c (fts_build): Correct indentation, change style
1549         of a couple of block comments, and bracing style.
1550
1551         maint: fts.c: move __opendir2 #define "up" out of function body
1552         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1553
1554         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1555         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1556         out for a long time and besides was useful only on BSD systems.
1557
1558 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         regex: port to Stratus OpenVOS
1561         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1562         define to empty, rather than attempting nonportable optimizations.
1563         Problem reported by Paul Green in:
1564         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1565         and fix suggested by Eric Blake in:
1566         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1567
1568 2011-08-17  Eric Blake  <eblake@redhat.com>
1569
1570         getcwd: fix test failures on mingw
1571         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1572         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1573         test if long directory cannot be created, and allow mingw errno.
1574
1575         getcwd-lgpl: fix m4 to match relaxed test for BSD
1576         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1577         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1578         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1579         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1580         signature problem.
1581
1582         getcwd: fix compilation on mingw64
1583         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1584         getcwd.
1585         Reported by Marc-André Lureau.
1586
1587         pipe2: silence compiler warning
1588         * lib/pipe2.c (pipe2): Hide label if it is not used.
1589
1590 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1591
1592         relocatable-prog: fix link error
1593         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1594         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1595         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1596         into modules/relocatable-lib without noticing that
1597         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1598         also needs to build relocatable.c.
1599
1600 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1601
1602         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1604         shell code: it contained a 'break' that was not in a loop.
1605         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1606         via a shell-language loop; this may have been true in old Autoconf
1607         versions, but it's not true in Autoconf 2.68.  I found this bug
1608         when testing coreutils git on Solaris 8, whose shell complains
1609         about the syntax error.
1610
1611 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1612
1613         * lib/base64.c: Fix comment to reference RFC 4648.
1614         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1615         <gvtulder@gmail.com>.
1616
1617 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1620
1621         po/Makefile.in.in: fix make -q problem
1622         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1623         rule, since there's no file named 'check-macro-version' and its
1624         use as a file breaks make -q.
1625         (all): Don't depend on check-macro-version.
1626         (CHECK_MACRO_VERSION): New macro.
1627         (stamp-po): Use it.
1628
1629         configmake: fix make -q problem
1630         * modules/configmake (configmake.h): Update configmake.h's time stamp
1631         even if the file does not change.  Otherwise, 'make -q' fails.
1632         Problem reported by Simon Josefsson in
1633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1634
1635 2011-08-11  Jim Meyering  <meyering@redhat.com>
1636
1637         git-version-gen: correct the advice in a comment
1638         * build-aux/git-version-gen: Correct comment.
1639         Don't recommend to list .tarball-version in .gitignore.
1640
1641 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1642
1643         base64: fix off-by-one buffer size bug
1644         Problem and (trivial) fix reported by Gijs van Tulder in
1645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1646         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1647         * tests/test-base64.c (main): Catch the bug.
1648
1649 2011-08-10  Eric Blake  <eblake@redhat.com>
1650
1651         closein: correct comments
1652         * lib/closein.c (close_stdin): Improve comments.
1653
1654 2011-08-09  Bruno Haible  <bruno@clisp.org>
1655
1656         More tests for 'fseeko'.
1657         * tests/test-fseeko3.c: New file, from Eric Blake.
1658         * tests/test-fseeko3.sh: New file.
1659         * modules/fseeko-tests (Files): Add them.
1660         (TESTS): Add test-fseeko3.sh.
1661         (check_PROGRAMS): Add test-fseeko3.
1662
1663 2011-08-09  Eric Blake  <eblake@redhat.com>
1664
1665         fseeko: remove unneeded hack
1666         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1667
1668         fseeko: fix bug on glibc
1669         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1670         Reported by John W. Eaton.
1671
1672 2011-08-08  Bruno Haible  <bruno@clisp.org>
1673
1674         unictype/base: Fix interoperability with preinstalled libunistring.
1675         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1676         Reported by Simon Josefsson.
1677
1678 2011-08-08  Bruno Haible  <bruno@clisp.org>
1679
1680         iswblank: Detect declaration correctly.
1681         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1682         AC_CHECK_DECLS invocation.
1683
1684 2011-08-08  Bruno Haible  <bruno@clisp.org>
1685
1686         tcgetsid: Detect declaration correctly.
1687         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1688         AC_CHECK_DECLS invocation.
1689         Reported by Simon Josefsson.
1690
1691 2011-08-08  Eric Blake  <eblake@redhat.com>
1692
1693         largefile: fix typo that regressed large file support
1694         * modules/largefile (configure.ac-early): Fix section name.
1695
1696 2011-08-06  Karl Berry  <karl@gnu.org>
1697
1698         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1699         a separate module.
1700
1701 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1702
1703         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1704         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1705         get prototype for free.
1706
1707 2011-08-04  Bruno Haible  <bruno@clisp.org>
1708
1709         Tests for module 'pathmax'.
1710         * modules/pathmax-tests: New file.
1711         * tests/test-pathmax.c: New file.
1712
1713         canonicalize-lgpl: Support larger filenames on the Hurd.
1714         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1715         Reported by Paul Eggert.
1716
1717         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1718         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1719         * lib/chdir-long.h: Include pathmax.h.
1720         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1721         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1722         (PATH_MAX): Remove code that is done by pathmax.h.
1723         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1724         * lib/tmpfile.c: Add a comment.
1725         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1726         * modules/chdir-long (Depends-on): Add pathmax.
1727         * modules/getcwd (Depends-on): Add pathmax.
1728         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1729         is not defined.
1730         * doc/posix-headers/limits.texi: Mention the pathmax module.
1731         * NEWS: Mention the change.
1732
1733 2011-08-02  Bruno Haible  <bruno@clisp.org>
1734
1735         pthread_sigmask: Actually use results of gl_THREADLIB.
1736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1737         gl_THREADLIB, not gl_[]THREADLIB.
1738         Reported by Eric Blake.
1739
1740 2011-08-02  Jim Meyering  <meyering@redhat.com>
1741
1742         maint.mk: relax the default _gl_TS_function_match regexp
1743         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1744         space between function name and "(" in an "extern" declaration.
1745         That would fail to match a decl with no space there: extern void foo();
1746
1747 2011-07-31  Iain Nicol  <iain@thenicols.net>
1748
1749         git-version-gen: document that EXTRA_DIST must include .version
1750         * build-aux/git-version-gen: In the how-to-use comment, document
1751         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1752         will fail when run from an unpacked distribution tarball.
1753
1754 2011-08-01  Bruno Haible  <bruno@clisp.org>
1755
1756         wctype-h: Fix last change.
1757         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1758         REPLACE_TOWLOWER to 0.
1759         Reported by Sam Steingold <sds@gnu.org>.
1760
1761 2011-07-31  Bruno Haible  <bruno@clisp.org>
1762
1763         frexpl: Update autoconf test.
1764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1765         according to changes of 2011-06-20.
1766
1767 2011-07-31  Bruno Haible  <bruno@clisp.org>
1768
1769         sys_utsname: Add support for Minix.
1770         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1771         <sys/utsname.h>.
1772         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1773         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1774
1775 2011-07-31  Bruno Haible  <bruno@clisp.org>
1776
1777         strings: Add support for Minix.
1778         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1779         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1780         * doc/posix-headers/strings.texi: Document the Minix problem.
1781
1782 2011-07-31  Bruno Haible  <bruno@clisp.org>
1783
1784         wctype-h: Add support for Minix.
1785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1786         REPLACE_TOWLOWER.
1787         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1788         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1789         REPLACE_ISWCNTRL.
1790
1791 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1792
1793         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1794         This is a performance improvement for 64-bit hosts: it causes the
1795         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1796
1797 2011-07-31  Bruno Haible  <bruno@clisp.org>
1798
1799         stdioext: Add support for Minix.
1800         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1801         * lib/fpurge.c (fpurge): Likewise.
1802         * lib/freadahead.c (freadahead): Likewise.
1803         * lib/freadable.c (freadable): Likewise.
1804         * lib/freading.c (freading): Likewise.
1805         * lib/freadptr.c (freadptr): Likewise.
1806         * lib/freadseek.c (freadptrinc): Likewise.
1807         * lib/fseeko.c (rpl_fseeko): Likewise.
1808         * lib/fseterr.c (fseterr): Likewise.
1809         * lib/fwritable.c (fwritable): Likewise.
1810         * lib/fwriting.c (fwriting): Likewise.
1811         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1812         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1813
1814 2011-07-31  Bruno Haible  <bruno@clisp.org>
1815
1816         errno: Port to Minix.
1817         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1818         ECONNABORTED are defined.
1819         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1820         GNULIB_defined_ECONNABORTED): New macros.
1821         * lib/strerror-override.h (strerror_override): Test also
1822         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1823         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1824         ECONNABORTED.
1825         * doc/posix-headers/errno.texi: Mention the Minix problem.
1826
1827 2011-07-31  Bruno Haible  <bruno@clisp.org>
1828
1829         Work around declaration collisions on Minix.
1830         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1831         defined, set REPLACE_MBSINIT.
1832         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1833         defined, set REPLACE_MBRTOWC.
1834         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1835         set REPLACE_MBRLEN.
1836         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1837         defined, set REPLACE_MBSRTOWCS.
1838         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1839         defined, set REPLACE_WCRTOMB.
1840         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1841         defined, set REPLACE_WCSRTOMBS.
1842
1843 2011-07-31  Bruno Haible  <bruno@clisp.org>
1844
1845         Add support for Minix with ACK compiler.
1846         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1847         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1848         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1849
1850 2011-07-31  Bruno Haible  <bruno@clisp.org>
1851
1852         Documentation about Minix.
1853         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1854         * doc/glibc-headers/*.texi: Likewise.
1855         * doc/posix-functions/*.texi: Likewise.
1856         * doc/glibc-functions/*.texi: Likewise.
1857
1858 2011-07-31  Bruno Haible  <bruno@clisp.org>
1859
1860         snippet/warn-on-use: Fix indentation.
1861         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1862
1863 2011-07-25  Jim Meyering  <meyering@redhat.com>
1864
1865         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1866         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1867         commands.
1868
1869 2011-07-27  Jim Meyering  <meyering@redhat.com>
1870
1871         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1872         * top/maint.mk (gl_extract_significant_defines_): Now that
1873         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1874         gnulib/lib/signal.in.h, and now that we recommend to
1875         define-if-undefined those two symbols in application code,
1876         we must filter them out of the "significant" list.
1877         This avoids a "make syntax-check" failure in coreutils.
1878
1879 2011-07-26  Eric Blake  <eblake@redhat.com>
1880
1881         warnings: add comments about previous patch
1882         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1883         * m4/include_next.m4: Likewise.
1884         * m4/warn-on-use.m4: Likewise.
1885         * m4/warnings.m4: Likewise, and simplify use.
1886         Suggested by Stefano Lattarini.
1887
1888         include-next, warnings: support older autoconf
1889         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1890         AS_VAR_PUSHDEF in a way that works with older autoconf.
1891         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1892         Reported by Daniel P. Berrange.
1893
1894 2011-07-25  Bruno Haible  <bruno@clisp.org>
1895
1896         fseek, ftell: Fix doc.
1897         * doc/posix-functions/fseek.texi: Reword statement about
1898         AC_SYS_LARGEFILE.
1899         * doc/posix-functions/ftell.texi: Likewise.
1900
1901 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1902             Bruno Haible  <bruno@clisp.org>
1903
1904         Add dependencies to the 'largefile' module.
1905         * modules/fopen (Depends-on): Add 'largefile'.
1906         * modules/freopen (Depends-on): Likewise.
1907         * modules/fseeko (Depends-on): Likewise.
1908         * modules/ftello (Depends-on): Likewise.
1909         * modules/glob (Depends-on): Likewise.
1910         * modules/lseek (Depends-on): Likewise.
1911         * modules/lstat (Depends-on): Likewise.
1912         * modules/mkostemp (Depends-on): Likewise.
1913         * modules/mkostemps (Depends-on): Likewise.
1914         * modules/mkstemp (Depends-on): Likewise.
1915         * modules/mkstemps (Depends-on): Likewise.
1916         * modules/open (Depends-on): Likewise.
1917         * modules/openat (Depends-on): Likewise.
1918         * modules/pread (Depends-on): Likewise.
1919         * modules/pwrite (Depends-on): Likewise.
1920         * modules/scandir (Depends-on): Likewise.
1921         * modules/stat (Depends-on): Likewise.
1922         * modules/tmpfile (Depends-on): Likewise.
1923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1924         since the containing module now depends on the largefile module.
1925         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1926         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1927         off_t is fixed by gnulib.
1928         * doc/posix-functions/freopen.texi: Likewise.
1929         * doc/posix-functions/fseeko.texi: Likewise.
1930         * doc/posix-functions/fstatat.texi: Likewise.
1931         * doc/posix-functions/ftello.texi: Likewise.
1932         * doc/posix-functions/glob.texi: Likewise.
1933         * doc/posix-functions/lseek.texi: Likewise.
1934         * doc/posix-functions/lstat.texi: Likewise.
1935         * doc/posix-functions/mkstemp.texi: Likewise.
1936         * doc/posix-functions/open.texi: Likewise.
1937         * doc/posix-functions/openat.texi: Likewise.
1938         * doc/posix-functions/pread.texi: Likewise.
1939         * doc/posix-functions/pwrite.texi: Likewise.
1940         * doc/posix-functions/scandir.texi: Likewise.
1941         * doc/posix-functions/stat.texi: Likewise.
1942         * doc/posix-functions/tmpfile.texi: Likewise.
1943         * doc/glibc-functions/mkostemp.texi: Likewise.
1944         * doc/glibc-functions/mkostemps.texi: Likewise.
1945         * doc/glibc-functions/mkstemps.texi: Likewise.
1946
1947 2011-07-25  Bruno Haible  <bruno@clisp.org>
1948
1949         fcntl: Move AC_LIBOBJ invocation to module description.
1950         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1951         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1952
1953         fcntl: Remove call-in from fchdir.m4.
1954         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1956
1957         dup3: Remove potential call-in from fchdir.m4.
1958         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1960
1961         dup2: Move AC_LIBOBJ invocation to module description.
1962         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1963         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1964         Don't invoke AC_LIBOBJ.
1965         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1966
1967         dup2: Remove call-in from fchdir.m4.
1968         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1970
1971         fclose: Move AC_LIBOBJ invocation to module description.
1972         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1973         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1974         to 1.
1975         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1976
1977         fclose: Remove call-in from close.m4.
1978         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1979         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1980
1981         close: Move AC_LIBOBJ invocation to module description.
1982         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1983         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1984         1.
1985         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1986
1987         close: Remove call-in from fchdir.m4.
1988         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1990
1991         open: Move AC_LIBOBJ invocation to module description.
1992         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1993         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1994         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1995
1996         open: Remove call-in from fchdir.m4.
1997         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1999
2000         fchdir: Start to remove gl_REPLACE_* idiom.
2001         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2002         (gl_FUNC_FCHDIR): Invoke it.
2003
2004 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         * lib/ftell.c (ftell): Comment out cast.
2007
2008         close: use gl_REPLACE_FCLOSE only if defined
2009         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2010         is defined.  The close module doesn't depend on the fclose module
2011         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2013         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2014
2015 2011-07-24  Jim Meyering  <meyering@redhat.com>
2016
2017         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2018         * tests/test-select.h (test_function): Declare as "static".
2019
2020 2011-07-24  Bruno Haible  <bruno@clisp.org>
2021
2022         doc: Mention the effects of AC_SYS_LARGEFILE.
2023         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2024         on this function.
2025         * doc/posix-functions/aio_error.texi: Likewise.
2026         * doc/posix-functions/aio_fsync.texi: Likewise.
2027         * doc/posix-functions/aio_read.texi: Likewise.
2028         * doc/posix-functions/aio_return.texi: Likewise.
2029         * doc/posix-functions/aio_suspend.texi: Likewise.
2030         * doc/posix-functions/aio_write.texi: Likewise.
2031         * doc/posix-functions/fgetpos.texi: Likewise.
2032         * doc/posix-functions/fopen.texi: Likewise.
2033         * doc/posix-functions/freopen.texi: Likewise.
2034         * doc/posix-functions/fsetpos.texi: Likewise.
2035         * doc/posix-functions/fstatvfs.texi: Likewise.
2036         * doc/posix-functions/ftruncate.texi: Likewise.
2037         * doc/posix-functions/ftw.texi: Likewise.
2038         * doc/posix-functions/getrlimit.texi: Likewise.
2039         * doc/posix-functions/glob.texi: Likewise.
2040         * doc/posix-functions/lio_listio.texi: Likewise.
2041         * doc/posix-functions/lockf.texi: Likewise.
2042         * doc/posix-functions/mkstemp.texi: Likewise.
2043         * doc/posix-functions/mmap.texi: Likewise.
2044         * doc/posix-functions/nftw.texi: Likewise.
2045         * doc/posix-functions/openat.texi: Likewise.
2046         * doc/posix-functions/opendir.texi: Likewise.
2047         * doc/posix-functions/posix_fadvise.texi: Likewise.
2048         * doc/posix-functions/posix_fallocate.texi: Likewise.
2049         * doc/posix-functions/pread.texi: Likewise.
2050         * doc/posix-functions/pwrite.texi: Likewise.
2051         * doc/posix-functions/readdir.texi: Likewise.
2052         * doc/posix-functions/readdir_r.texi: Likewise.
2053         * doc/posix-functions/rewinddir.texi: Likewise.
2054         * doc/posix-functions/scandir.texi: Likewise.
2055         * doc/posix-functions/seekdir.texi: Likewise.
2056         * doc/posix-functions/setrlimit.texi: Likewise.
2057         * doc/posix-functions/statvfs.texi: Likewise.
2058         * doc/posix-functions/telldir.texi: Likewise.
2059         * doc/posix-functions/tmpfile.texi: Likewise.
2060         * doc/posix-functions/truncate.texi: Likewise.
2061         * doc/glibc-functions/fallocate.texi: Likewise.
2062         * doc/glibc-functions/fstatfs.texi: Likewise.
2063         * doc/glibc-functions/fts_children.texi: Likewise.
2064         * doc/glibc-functions/fts_read.texi: Likewise.
2065         * doc/glibc-functions/getdirentries.texi: Likewise.
2066         * doc/glibc-functions/mkostemp.texi: Likewise.
2067         * doc/glibc-functions/mkostemps.texi: Likewise.
2068         * doc/glibc-functions/mkstemps.texi: Likewise.
2069         * doc/glibc-functions/preadv.texi: Likewise.
2070         * doc/glibc-functions/pwritev.texi: Likewise.
2071         * doc/glibc-functions/sendfile.texi: Likewise.
2072         * doc/glibc-functions/statfs.texi: Likewise.
2073
2074 2011-07-24  Bruno Haible  <bruno@clisp.org>
2075
2076         doc: Fix typo.
2077         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2078
2079 2011-07-24  Bruno Haible  <bruno@clisp.org>
2080
2081         doc: Mention fsusage.
2082         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2083
2084 2011-07-24  Bruno Haible  <bruno@clisp.org>
2085
2086         doc: Mention new glibc headers and functions.
2087         * doc/glibc-headers/gshadow.texi: New file.
2088         * doc/glibc-functions/endsgent.texi: New file.
2089         * doc/glibc-functions/fgetsgent.texi: New file.
2090         * doc/glibc-functions/fgetsgent_r.texi: New file.
2091         * doc/glibc-functions/getsgent.texi: New file.
2092         * doc/glibc-functions/getsgent_r.texi: New file.
2093         * doc/glibc-functions/getsgnam.texi: New file.
2094         * doc/glibc-functions/getsgnam_r.texi: New file.
2095         * doc/glibc-functions/putsgent.texi: New file.
2096         * doc/glibc-functions/setsgent.texi: New file.
2097         * doc/glibc-functions/sgetsgent.texi: New file.
2098         * doc/glibc-functions/sgetsgent_r.texi: New file.
2099         * doc/glibc-functions/malloc_info.texi: New file.
2100         * doc/glibc-functions/preadv.texi: New file.
2101         * doc/glibc-functions/pwritev.texi: New file.
2102         * doc/glibc-functions/register_printf_modifier.texi: New file.
2103         * doc/glibc-functions/register_printf_specifier.texi: New file.
2104         * doc/glibc-functions/register_printf_type.texi: New file.
2105         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2106         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2107         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2108         * doc/glibc-functions/pthread_getname_np.texi: New file.
2109         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2110         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2111         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2112         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2113         * doc/glibc-functions/pthread_setname_np.texi: New file.
2114         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2115         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2116         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2117         * doc/glibc-functions/qsort_r.texi: New file.
2118         * doc/glibc-functions/quick_exit.texi: New file.
2119         * doc/glibc-functions/syncfs.texi: New file.
2120         * doc/gnulib.texi: Include them.
2121         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2122         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2123         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2124         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2125         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2126         * doc/glibc-functions/execvpe.texi: Likewise.
2127
2128 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         ftell: don't include <unistd.h>
2131         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2132         guaranteed to define off_t, and the ftell module depends on the
2133         stdio module.
2134
2135         ftell: do not assume wraparound signed arithmetic
2136         * lib/ftell.c: Include <limits.h>.
2137         (ftell): Don't assume wraparound signed arithmetic.
2138
2139 2011-07-24  Bruno Haible  <bruno@clisp.org>
2140
2141         close: No longer depend on module 'fclose'.
2142         * modules/close (Depends-on): Remove fclose.
2143         * NEWS: Mention the change.
2144         Suggested by Sam Steingold <sds@gnu.org>.
2145
2146 2011-07-24  Bruno Haible  <bruno@clisp.org>
2147
2148         fsusage: Enable large volume support on AIX >= 5.2.
2149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2150         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2151         instead of STAT_STATVFS.
2152         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2153
2154         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2156         f_blocks field only on MacOS X.
2157
2158         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2160         * modules/fsusage (Depends-on): Add largefile.
2161
2162 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         * README: Modernize discussion of signed integers.
2165         Assuming overflow wraparound is no longer safe.
2166         Mention ones' complement and signed magnitude.
2167
2168 2011-07-22  Bruno Haible  <bruno@clisp.org>
2169
2170         select tests, pselect tests: Refactor.
2171         * tests/test-select.h: New file, extracted from tests/test-select.c.
2172         (select_fn): New type.
2173         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2174         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2175         test_pipe): Add my_select argument.
2176         (test_function): Renamed from main. Add my_select argument.
2177         * tests/test-select.c: Move most code to tests/test-select.h. Include
2178         test-select.h.
2179         * modules/select-tests (Files): Add tests/test-select.h.
2180         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2181         (my_select, main): New functions.
2182         * modules/pselect-tests (Files): Add tests/test-select.h,
2183         tests/macros.h, tests/signature.h.
2184         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2185         (configure.ac): Check for <sys/wait.h>.
2186
2187 2011-07-22  Bruno Haible  <bruno@clisp.org>
2188
2189         sys_select tests: Check the signature of FD_*.
2190         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2191         signature tests from here...
2192         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2193         here.
2194         * modules/sys_select-tests (Files): Add tests/signature.h.
2195
2196 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2197
2198         largefile: new module, replacing large-inode
2199         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2200         * MODULES.html.sh: Add largefile, remove large-inode.
2201         * modules/largefile, m4/largefile.m4: New files.
2202         * modules/large-inode, m4/large-inode.m4: Remove.
2203
2204         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2206         implementations that use only 32 bits to count blocks.
2207         On typical hosts with 1024-byte blocks, this fails with file
2208         systems as small as 4 TiB.  Problem reported by Herb Wartens
2209         <http://debbugs.gnu.org/9140> and this should also fix a similar
2210         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2211
2212         large-inode: New module
2213         * MODULES.html.sh: Add it.
2214         * modules/large-inode, m4/large-inode.m4: New files.
2215
2216         extensions: Enable extensions on MacOS X 10.5 and later.
2217         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2218
2219 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2220
2221         file-has-acl: use acl_extended_file_nofollow if available
2222         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2223         (acl_extended_file): New macro.
2224         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2225         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2226
2227 2011-07-21  Bruno Haible  <bruno@clisp.org>
2228
2229         Declare system functions in a way that works with C++.
2230         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2231         declare fdopendir as extern "C".
2232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2233         declare frexpl as extern "C".
2234         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2235         declare gai_strerror as extern "C".
2236         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2237         programs, declare gai_strerror as extern "C".
2238         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2239         declare getlogin_r as extern "C".
2240         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2241         as extern "C".
2242         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2243         declare ldexpl as extern "C".
2244         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2245         as extern "C".
2246         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2247         program, declare getmntinfo as extern "C".
2248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2249         stpncpy as extern "C".
2250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2251         program, declare __xpg_strerror_r as extern "C".
2252         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2253         strndup as extern "C".
2254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2255         declare memset and bzero as extern "C".
2256         Reported by Sam Steingold <sds@gnu.org>.
2257
2258 2011-07-12  Jim Meyering  <meyering@redhat.com>
2259
2260         maint.mk: prohibit inclusion of "verify.h" without use
2261         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2262
2263 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2264
2265         timer-time: A new module to check for timer_settime()
2266         * m4/timer_time.m4: Check for the posix function.
2267         * modules/timer-time: Add the new module.
2268         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2269         Mention it.
2270
2271 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2272             Bruno Haible  <bruno@clisp.org>
2273
2274         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2276         not defined, assume POSIX threads and look for pthread_sigmask in
2277         $LIBS, without changing $CPPFLAGS.
2278
2279 2011-07-19  Bruno Haible  <bruno@clisp.org>
2280
2281         strstr: Update cross-compilation guess.
2282         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2283         CPUs, guess no, in view of glibc
2284         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2285         Suggested by Eric Blake. Reported by Reuben Thomas.
2286
2287 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2288
2289         getopt-gnu: suppress core dumps from detection code
2290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2291         to suppress core dumps that may well occur on glibc systems.
2292         * modules/getopt-gnu: Depend on nocrash.
2293
2294 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2295
2296         pthread_sigmask: ensure usleep is declared
2297         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2298         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2299
2300 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2301
2302         doc: Document NonStop portability issues.
2303         * doc/posix-functions/sigaction.texi (sigaction):
2304         * doc/posix-headers/signal.texi (signal.h):
2305         Document NonStop.  See Joachim Schmitz in
2306         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2307
2308 2011-07-15  Bruno Haible  <bruno@clisp.org>
2309
2310         ffsl, ffsll: Avoid unportable behaviour.
2311         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2312
2313 2011-07-15  Bruno Haible  <bruno@clisp.org>
2314
2315         ffs: More tests.
2316         * tests/test-ffs.c (NBITS): New macro.
2317         (main): Add more tests.
2318         * tests/test-ffsl.c (NBITS): New macro.
2319         (main): Add more tests.
2320         * tests/test-ffsll.c (NBITS): New macro.
2321         (main): Add more tests.
2322
2323 2011-07-15  Eric Blake  <eblake@redhat.com>
2324
2325         ffsl, ffsll: new modules
2326         * modules/ffsl: New file.
2327         * modules/ffsll: Likewise.
2328         * m4/ffsl.m4: Likewise.
2329         * m4/ffsll.m4: Likewise.
2330         * lib/ffsl.c: Likewise.
2331         * lib/ffsl.h: Likewise.
2332         * lib/ffsll.c: Likewise.
2333         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2334         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2335         * modules/string (Makefile.am): Substitute witnesses.
2336         * lib/strings.in.h (ffsl, ffsll): Declare.
2337         * modules/ffsl-tests: New test file.
2338         * modules/ffsll-tests: Likewise.
2339         * tests/test-ffsl.c: Likewise.
2340         * tests/test-ffsll.c: Likewise.
2341         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2342         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2343         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2344
2345         ffs: fix m4 prerequisite
2346         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2347
2348         ffs: avoid undefined behavior
2349         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2350         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2351         Reported by Bruno Haible.
2352
2353 2011-07-12  Bruno Haible  <bruno@clisp.org>
2354
2355         pthread_sigmask: Rely on module 'threadlib'.
2356         * modules/pthread_sigmask (Depends-on): Add threadlib.
2357         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2358         is defined.
2359
2360 2011-07-12  Bruno Haible  <bruno@clisp.org>
2361
2362         regex: Depend on module 'strcase'.
2363         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2364
2365 2011-07-12  Jim Meyering  <meyering@redhat.com>
2366
2367         warn-on-use: fix typo in file name
2368         * modules/snippet/warn-on-use (Files): Correct file name:
2369         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2370
2371 2011-07-12  Bruno Haible  <bruno@clisp.org>
2372
2373         strings: Document module.
2374         * doc/posix-headers/strings.texi: Mention module 'strings'.
2375
2376 2011-07-12  Bruno Haible  <bruno@clisp.org>
2377
2378         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2379         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2380         (Files, Makefile.am): Update.
2381         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2382         * modules/stdlib (Depends-on): Update.
2383
2384 2011-07-12  Bruno Haible  <bruno@clisp.org>
2385
2386         * NEWS: Mention the changes.
2387
2388         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2389         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2390         (Files, Makefile.am): Update.
2391         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2392         * modules/arpa_inet (Depends-on): Update.
2393         * modules/ctype (Depends-on): Update.
2394         * modules/dirent (Depends-on): Update.
2395         * modules/fcntl-h (Depends-on): Update.
2396         * modules/glob (Depends-on): Update.
2397         * modules/iconv-h (Depends-on): Update.
2398         * modules/inttypes-incomplete (Depends-on): Update.
2399         * modules/langinfo (Depends-on): Update.
2400         * modules/locale (Depends-on): Update.
2401         * modules/math (Depends-on): Update.
2402         * modules/netdb (Depends-on): Update.
2403         * modules/poll-h (Depends-on): Update.
2404         * modules/pty (Depends-on): Update.
2405         * modules/search (Depends-on): Update.
2406         * modules/signal (Depends-on): Update.
2407         * modules/spawn (Depends-on): Update.
2408         * modules/stdio (Depends-on): Update.
2409         * modules/stdlib (Depends-on): Update.
2410         * modules/string (Depends-on): Update.
2411         * modules/strings (Depends-on): Update.
2412         * modules/sys_file (Depends-on): Update.
2413         * modules/sys_ioctl (Depends-on): Update.
2414         * modules/sys_select (Depends-on): Update.
2415         * modules/sys_socket (Depends-on): Update.
2416         * modules/sys_stat (Depends-on): Update.
2417         * modules/sys_time (Depends-on): Update.
2418         * modules/sys_times (Depends-on): Update.
2419         * modules/sys_utsname (Depends-on): Update.
2420         * modules/sys_wait (Depends-on): Update.
2421         * modules/termios (Depends-on): Update.
2422         * modules/time (Depends-on): Update.
2423         * modules/unistd (Depends-on): Update.
2424         * modules/wchar (Depends-on): Update.
2425         * modules/wctype-h (Depends-on): Update.
2426         * MODULES.html.sh (Support for building libraries and executables):
2427         Update.
2428
2429         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2430         * modules/snippet/unused-parameter: Renamed from
2431         modules/unused-parameter.
2432         (Files, Makefile.am): Update.
2433         * build-aux/snippet/unused-parameter.h: Renamed from
2434         build-aux/unused-parameter.h.
2435         * modules/selinux-h (Depends-on): Update.
2436         * modules/unistr/base (Depends-on): Update.
2437         * MODULES.html.sh (Core language properties): Update.
2438
2439         Rename module 'link-warning' to 'snippet/link-warning'.
2440         * modules/snippet/link-warning: Renamed from modules/link-warning.
2441         (Files, Makefile.am): Update.
2442         * build-aux/snippet/link-warning.h: Renamed from
2443         build-aux/link-warning.h.
2444         * MODULES.html.sh (Support for building libraries and executables):
2445         Update.
2446
2447         Rename module 'c++defs' to 'snippet/c++defs'.
2448         * modules/snippet/c++defs: Renamed from modules/c++defs.
2449         (Files, Makefile.am): Update.
2450         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2451         * modules/arpa_inet (Depends-on): Update.
2452         * modules/ctype (Depends-on): Update.
2453         * modules/dirent (Depends-on): Update.
2454         * modules/fcntl-h (Depends-on): Update.
2455         * modules/glob (Depends-on): Update.
2456         * modules/iconv-h (Depends-on): Update.
2457         * modules/langinfo (Depends-on): Update.
2458         * modules/locale (Depends-on): Update.
2459         * modules/math (Depends-on): Update.
2460         * modules/netdb (Depends-on): Update.
2461         * modules/poll-h (Depends-on): Update.
2462         * modules/pty (Depends-on): Update.
2463         * modules/search (Depends-on): Update.
2464         * modules/signal (Depends-on): Update.
2465         * modules/spawn (Depends-on): Update.
2466         * modules/stdio (Depends-on): Update.
2467         * modules/stdlib (Depends-on): Update.
2468         * modules/string (Depends-on): Update.
2469         * modules/strings (Depends-on): Update.
2470         * modules/sys_ioctl (Depends-on): Update.
2471         * modules/sys_select (Depends-on): Update.
2472         * modules/sys_socket (Depends-on): Update.
2473         * modules/sys_stat (Depends-on): Update.
2474         * modules/sys_time (Depends-on): Update.
2475         * modules/sys_wait (Depends-on): Update.
2476         * modules/termios (Depends-on): Update.
2477         * modules/time (Depends-on): Update.
2478         * modules/unistd (Depends-on): Update.
2479         * modules/wchar (Depends-on): Update.
2480         * modules/wctype-h (Depends-on): Update.
2481
2482         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2483         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2484         (Files, Makefile.am): Update.
2485         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2486         * modules/argv-iter (Depends-on): Update.
2487         * modules/arpa_inet (Depends-on): Update.
2488         * modules/dirent (Depends-on): Update.
2489         * modules/fcntl-h (Depends-on): Update.
2490         * modules/fnmatch (Depends-on): Update.
2491         * modules/getopt-posix (Depends-on): Update.
2492         * modules/glob (Depends-on): Update.
2493         * modules/iconv-h (Depends-on): Update.
2494         * modules/inttypes-incomplete (Depends-on): Update.
2495         * modules/locale (Depends-on): Update.
2496         * modules/math (Depends-on): Update.
2497         * modules/netdb (Depends-on): Update.
2498         * modules/search (Depends-on): Update.
2499         * modules/signal (Depends-on): Update.
2500         * modules/spawn (Depends-on): Update.
2501         * modules/stdio (Depends-on): Update.
2502         * modules/stdlib (Depends-on): Update.
2503         * modules/string (Depends-on): Update.
2504         * modules/strings (Depends-on): Update.
2505         * modules/sys_socket (Depends-on): Update.
2506         * modules/sys_stat (Depends-on): Update.
2507         * modules/sys_time (Depends-on): Update.
2508         * modules/sys_times (Depends-on): Update.
2509         * modules/sys_utsname (Depends-on): Update.
2510         * modules/time (Depends-on): Update.
2511         * modules/unistd (Depends-on): Update.
2512         * modules/wchar (Depends-on): Update.
2513         * MODULES.html.sh (Support for building libraries and executables):
2514         Update.
2515
2516 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2517
2518         Improvements on _Noreturn and related modules.
2519
2520         modules/_Exit-tests: test _Noreturn too
2521         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2522         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2523         (main): Use them.
2524
2525         stdnoreturn, stdnoreturn-tests: remove modules
2526         They're not needed here and a bit premature for use elsewhere.  See
2527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2528         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2529         * tests/test-stdnoreturn.c: Remove files.
2530         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2531         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2532         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2533         and using noreturn.
2534         * modules/openat, modules/sigpipe-die, modules/xalloc:
2535         * modules/xmemdup0, modules/xstrtol:
2536         Remove dependency on stdnoreturn.
2537
2538         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2539         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2540         Reparenthesize to avoid GCC warning.
2541         Support Microsoft's syntax.
2542         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2543
2544         _Noreturn-tests: remove module
2545         * modules/_Noreturn-tests: Remove.
2546         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2547         * tests/test-_Noreturn.c: Remove.
2548         * tests/test-stdnoreturn.c: Merge from the old
2549         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2550
2551 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2552
2553         _Noreturn, stdnoreturn, and related modules.
2554
2555         * top/maint.mk: Adjust to new noreturn support.
2556         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2557         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2558
2559         xalloc: use stdnoreturn.h
2560         * lib/xalloc.h: Include <stdnoreturn.h>.
2561         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2562         * modules/xalloc (Depends-on): Add stdnoreturn.
2563
2564         xstrtol: use stdnoreturn.h
2565         * lib/xstrtol.h: Include <stdnoreturn.h>.
2566         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2567         * modules/xstrtol (Depends-on): Add stdnoreturn.
2568
2569         xmemdup0: use stdnoreturn.h
2570         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2571         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2572         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2573
2574         sigpipe-die: use stdnoreturn.h
2575         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2576         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2577         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2578
2579         openat: use stdnoreturn.h
2580         * lib/openat.h: Include <stdnoreturn.h>.
2581         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2582         * modules/openat (Depends-on): Add stdnoreturn.
2583
2584         * lib/openat-die.c (openat_save_fail): Modernize comment.
2585
2586         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2587
2588         * lib/glthread/thread.h: Modernize comment.
2589
2590         obstack: use _Noreturn
2591         * lib/obstack.c (__attribute__): Remove macro.
2592         (print_and_abort): Use _Noreturn.
2593
2594         c-stack: use _Noreturn
2595         * lib/c-stack.c (die, overflow_handler, segv_handler):
2596         Use _Noreturn rather than __attribute__((noreturn)).
2597
2598         argmatch-tests, exclude_tests: use _Noreturn
2599         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2600         Remove.
2601         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2602
2603         stdlib: use _Noreturn
2604         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2605         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2606         * modules/stdlib (Depends-on): Add _Noreturn.
2607         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2608
2609         stdnoreturn-tests: new module
2610         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2611
2612         stdnoreturn: new module
2613         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2614         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2615
2616         _Noreturn-tests: new module
2617         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2618
2619         _Noreturn: new module
2620         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2621         New section, mentioning it.
2622         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2623
2624         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2625
2626 2011-07-11  Eric Blake  <eblake@redhat.com>
2627
2628         ffs: new module
2629         * modules/ffs: New file.
2630         * m4/ffs.m4: Likewise.
2631         * lib/ffs.c: Likewise.
2632         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2633         * modules/strings (Makefile.am): Substitute witness.
2634         (Depends-on): Add c++defs.
2635         * lib/strings.in.h (ffs): Declare.
2636         * modules/ffs-tests: New test file.
2637         * tests/test-ffs.c: Test new module.
2638         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2639         * doc/posix-functions/ffs.texi (ffs): Likewise.
2640
2641         regex: avoid compiler warning
2642         * lib/regex.c (includes): Include <strings.h>, for use of
2643         strcasecmp in regcomp.c.
2644         Reported by Joachim Schmitz.
2645
2646 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2647
2648         stdint: respect system's intmax_t if INTMAX_MAX
2649         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2650         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2651         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2652         long but int64_t is long long, and where we will clash with the
2653         system intmax_t if we override it.  See
2654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2655         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2656         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2657         similarly for UINTMAX_C.
2658
2659 2011-07-08  Bruno Haible  <bruno@clisp.org>
2660
2661         pthread_sigmask tests: Avoid a compiler warning.
2662         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2663         non-zero.
2664
2665         sigprocmask tests: A better way to avoid a compiler warning.
2666         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2667         (main): Complain if system() returns non-zero.
2668         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2669
2670 2011-07-08  Bruno Haible  <bruno@clisp.org>
2671
2672         pthread_sigmask: Work around IRIX bug.
2673         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2674         bug.
2675         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2676         there may be unblocked pending signals.
2677         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2678
2679 2011-07-08  Bruno Haible  <bruno@clisp.org>
2680
2681         pthread_sigmask: Work around Cygwin bug.
2682         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2683         bug.
2684         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2685         the system's pthread_sigmask function.
2686         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2687
2688 2011-07-08  Bruno Haible  <bruno@clisp.org>
2689
2690         pthread_sigmask: Work around bug in single-threaded implementation.
2691         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2692         FreeBSD, HP-UX, Solaris bug.
2693         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2694         * lib/pthread_sigmask.c: Include <stddef.h>.
2695         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2696         the system's pthread_sigmask function.
2697         * modules/pthread_sigmask (configure.ac): Invoke
2698         gl_PREREQ_PTHREAD_SIGMASK.
2699         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2700         HP-UX, Solaris.
2701
2702 2011-07-08  Eric Blake  <eblake@redhat.com>
2703
2704         test-sigprocmask: avoid compiler warning
2705         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2706         * tests/test-sigprocmask.c (main): Use it to silence warning.
2707         Reported by Jim Meyering.
2708
2709         test-snprintf: avoid compiler warning
2710         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2711         * tests/test-vsnprintf.c (main): Likewise.
2712         Reported by Jim Meyering.
2713
2714 2011-07-08  Bruno Haible  <bruno@clisp.org>
2715
2716         Tests for module 'pthread_sigmask'.
2717         * modules/pthread_sigmask-tests: New file.
2718         * tests/test-pthread_sigmask1.c: New file, based on
2719         tests/test-sigprocmask.c.
2720         * tests/test-pthread_sigmask2.c: New file.
2721
2722 2011-07-08  Jim Meyering  <meyering@redhat.com>
2723
2724         test-getopt.h: avoid warning about an unused variable
2725         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2726
2727 2011-07-07  Jim Meyering  <meyering@redhat.com>
2728
2729         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2730         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2731         now that it no longer contains leading TABs.
2732         Remove unused "url=FIXME" statement.
2733
2734 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2735
2736         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2737         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2738         When gl_THREADLIB is not in use, assume that the POSIX sematics
2739         are desired.  This is better for Emacs, which uses POSIX semantics
2740         on GNUish and/or POSIXish platforms, and does not use threads at
2741         all otherwise.
2742
2743         pthread_sigmask: fix typo when testing for libraries
2744         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2745         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2746
2747 2011-07-08  Eric Blake  <eblake@redhat.com>
2748
2749         fts: introduce FTS_NOATIME
2750         * lib/fts_.h (FTS_NOATIME): New bit flag.
2751         (FTS_OPTIONMASK): Adjust.
2752         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2753         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2754
2755 2011-07-08  Bruno Haible  <bruno@clisp.org>
2756
2757         Tests for module 'thread'.
2758         * modules/thread-tests: New file.
2759         * tests/test-thread_self.c: New file.
2760         * tests/test-thread_create.cc: New file.
2761
2762 2011-07-08  Bruno Haible  <bruno@clisp.org>
2763
2764         thread: Avoid gcc warnings when using gl_thread_self().
2765         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2766         'void *'.
2767         (gl_thread_self_pointer): Update.
2768
2769 2011-07-07  Bruno Haible  <bruno@clisp.org>
2770
2771         signal-c++-tests: Check declaration of pthread_sigmask.
2772         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2773         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2774         $(LIB_PTHREAD_SIGMASK).
2775
2776 2011-07-07  Bruno Haible  <bruno@clisp.org>
2777
2778         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2779         * lib/signal.in.h (pthread_sigmask): Override if
2780         REPLACE_PTHREAD_SIGMASK is 1.
2781         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2782         REPLACE_PTHREAD_SIGMASK.
2783         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2784         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2785         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2786         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2787         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2788
2789 2011-07-07  Bruno Haible  <bruno@clisp.org>
2790
2791         pthread_sigmask: Ensure declaration in <signal.h>.
2792         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2793         include <pthread.h>.
2794         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2795         problem.
2796
2797 2011-07-07  Bruno Haible  <bruno@clisp.org>
2798
2799         pthread_sigmask: Document the module.
2800         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2801
2802 2011-07-07  Bruno Haible  <bruno@clisp.org>
2803
2804         pthread_sigmask: Follow gnulib conventions.
2805         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2806         gl_PTHREAD_SIGMASK.
2807         * modules/pthread_sigmask (configure.ac): Update.
2808
2809 2011-07-07  Bruno Haible  <bruno@clisp.org>
2810
2811         pthread_sigmask: Make declaration C++ safe.
2812         * lib/signal.in.h: In two special conditions, just do an #include_next.
2813         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2814         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2815         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2816         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2817         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2818         not REPLACE_PTHREAD_MASK.
2819         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2820         not REPLACE_PTHREAD_MASK.
2821         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2822
2823 2011-07-07  Bruno Haible  <bruno@clisp.org>
2824
2825         pthread_sigmask: Fix return value.
2826         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2827         * lib/pthread_sigmask.c: New file.
2828         * modules/pthread_sigmask (Files): Add it.
2829         (configure.ac): Invoke AC_LIBOBJ.
2830
2831 2011-07-07  Eric Blake  <eblake@redhat.com>
2832
2833         getopt: more portable argv creation
2834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2835         const, use char arrays rather than strings.
2836         Suggested by Paul Eggert.
2837
2838 2011-07-07  Bruno Haible  <bruno@clisp.org>
2839
2840         Tests for module 'sigprocmask'.
2841         * modules/sigprocmask-tests: New file.
2842         * tests/test-sigprocmask.c: New file.
2843
2844 2011-07-07  Bruno Haible  <bruno@clisp.org>
2845
2846         float tests: Tweak.
2847         * tests/test-float.c (main): Tweak skip message.
2848
2849 2011-07-07  Eric Blake  <eblake@redhat.com>
2850
2851         getopt: avoid compiler warning during configure
2852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2853         assigning string literals to non-const pointer.
2854
2855         getopt-gnu: avoid crash in glibc getopt
2856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2857         * tests/test-getopt.h (test_getopt): Enhance test.
2858         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2859         * doc/posix-functions/getopt.texi (getopt): Document it.
2860         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2861         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2862         Likewise.
2863
2864 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2865
2866         getopt: handle W; without long options in getopt [BZ #12922]
2867         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2868         but no long options are defined, just return 'W'.
2869
2870 2011-07-07  Bruno Haible  <bruno@clisp.org>
2871
2872         Avoid literal tabs.
2873         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2874         variable containing a tab instead of a literal tab.
2875         Reported by Jim Meyering.
2876
2877 2011-07-07  Bruno Haible  <bruno@clisp.org>
2878
2879         Comments.
2880         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2881
2882 2011-07-06  Bruno Haible  <bruno@clisp.org>
2883
2884         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2885         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2886         <winsock2.h>.
2887         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2888         lib/sys_socket.in.h.
2889         (close, gethostname): Hide declarations from <winsock2.h>.
2890         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2891         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2892         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2893         (select): Don't override if gnulib's <sys/select.h> was already
2894         included.
2895         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2896         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2897         setsockopt, shutdown, select): Tweak indentation.
2898
2899 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2900
2901         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2902         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2903         in an application that does not use the sys_select module.
2904
2905 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2906
2907         poll: do not return 0 on timeout=-1
2908         * lib/poll.c: Loop with yield if no events occured
2909
2910 2011-07-06  Eric Blake  <eblake@redhat.com>
2911
2912         pthread_sigmask: always replace when not using pthread
2913         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2914         replacement when using some threading other than pthread.  Fix
2915         logic bug.
2916
2917 2011-07-06  Bruno Haible  <bruno@clisp.org>
2918
2919         Comments.
2920         * m4/printf.m4: Update comments about mingw.
2921
2922 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2923
2924         sys_select: define sigset_t more portably
2925         * lib/sys_select.in.h: Always include <sys/types.h>, since
2926         we now need sigset_t and mingw defines it there.
2927         Include <signal.h> before split inclusion guard, to avoid
2928         mishaps on Solaris, whose <signal.h> eventually includes us.
2929         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2930         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2931         which come from ...
2932         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2933         gl_CHECK_TYPE_SIGSET_T.
2934         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2935         does the real work.
2936         * modules/sys_select (Depends-on): Add 'signal'.
2937
2938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2939         Suggested by Bruno Haible.
2940
2941         pselect: Use pthread_sigmask, not sigprocmask.
2942         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2943         multithreaded apps better than sigprocmask does.
2944         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2945         sigprocmask directly.
2946
2947 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2948
2949         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2950         Don't #undef,  since we don't need any underlying pselect.
2951         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2952         (Depends-on): Add select.
2953         (Link): Add $(LIBSOCKET).
2954         These changes suggested by Bruno Haible.
2955
2956         pselect: document better
2957         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2958         * doc/posix-functions/pselect.texi (pselect): Document new module.
2959
2960         pthread_sigmask: new module
2961         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2962         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2963         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2964         This is done only as a macro; I don't know how well that'll
2965         work for C++.  Move <sys/types.h> include before the include_next,
2966         to avoid mishap on Solaris.
2967         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2968         * modules/signal (Makefile.am): Substitute the check's results.
2969         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2970
2971         test-pselect: new module
2972         * modules/pselect-tests, tests/test-pselect.c: New files.
2973         * tests/test-select.c, tests/test-sys_select-c++.cc:
2974         If TEST_PSELECT is defined, test pselect instead of testing select.
2975
2976         * tests/test-sys_select.c (sigset_t): Test for it, too.
2977         Suggested by Bruno Haible.
2978
2979 2011-07-05  Eric Blake  <eblake@redhat.com>
2980
2981         snprintf: guarantee %1$d, for libintl
2982         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2983         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2984         * doc/posix-functions/snprintf.texi (snprintf): Update.
2985         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2986         * tests/test-snprintf.c (main): Enhance test.
2987         * tests/test-vsnprintf.c (main): Likewise.
2988
2989 2011-07-05  Jim Meyering  <meyering@redhat.com>
2990
2991         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2992         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2993         per Bruno's request, to accommodate this idiom (no space after "#")
2994         even when the function is inside an #if block:
2995         char *
2996         gets (char *s)
2997         #undef gets
2998         {
2999           ...
3000         }
3001
3002 2011-07-04  Jim Meyering  <meyering@redhat.com>
3003
3004         maint: indent with spaces, not TABs, and add a rule to check this
3005         * tests/test-userspec.c: Indent with spaces, not TABs.
3006         * tests/test-argp.c: Likewise.
3007         * tests/test-c-stack2.sh: Likewise.
3008         * tests/test-parse-duration.sh: Likewise
3009         * m4/strtod.m4: Likewise.
3010         * m4/alloca.m4: Likewise.
3011         * m4/pselect.m4: Likewise.
3012         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3013
3014 2011-07-03  Jim Meyering  <meyering@redhat.com>
3015
3016         maint.mk: correct omissions in prohibit_argmatch_without_use check
3017         This rule would mistakenly report that argmatch.h is included without
3018         use even when both the argmatch and invalid_arg macro were used.
3019         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3020         of argmatch and invalid_arg.
3021
3022 2011-07-03  Bruno Haible  <bruno@clisp.org>
3023
3024         Comments about EINTR.
3025         * lib/safe-read.h: Explain the purpose of this module.
3026         * lib/safe-write.h: Likewise.
3027         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3028         module.
3029         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3030         module.
3031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3032
3033 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3034
3035         xnanosleep: Rewrite to use new dtotimespec module.
3036         It has the conversion code that used to be in xnanosleep.
3037         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3038         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3039         (TIME_T_MAX): Remove.
3040         (xnanosleep): Rewrite in terms of dtotimespec.
3041         * modules/xnanosleep (Depends-on): Add dtotimespec.
3042         Remove intprops, stdbool.
3043
3044         timespec-add, timespec-sub: new modules
3045         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3046         * lib/timespec-add.c, lib/timespec-sub.c:
3047         * modules/timespec-add, modules/timespec-sub: New files.
3048
3049         dtotimespec: new module
3050         * lib/timespec.h (dtotimespec): New decl.
3051         * lib/dtotimespec.c, modules/dtotimespec: New files.
3052
3053         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3054
3055         pselect: new module
3056         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3057         (pselect): New decls.
3058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3059         since the standard pselect decl uses 'restrict'.
3060         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3061         HAVE_PSELECT, REPLACE_PSELECT.
3062         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3063         HAVE_PSELECT, REPLACE_PSELECT.
3064         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3065
3066         sys_select: don't depend on sys_socket
3067         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3069         This fix works on GNU and GNU-like platforms, but has not been tested
3070         on native Windows.
3071         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3073         gl_HEADER_SYS_SOCKET.
3074         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3075         gl_PREREQ_SYS_H_WINSOCK2.
3076
3077 2011-06-29  Eric Blake  <eblake@redhat.com>
3078
3079         pipe2: fix C89 compile problem
3080         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3081         Reported by Bruno Haible.
3082
3083         pipe, pipe2: don't corrupt fd on error
3084         * lib/pipe.c (pipe): Leave fd unchanged on error.
3085         * lib/pipe2.c (pipe2): Likewise.
3086         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3087         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3088
3089 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3090
3091         mmap-anon: do not use regular expressions inadvertently
3092         * m4/mmap-anon.m4: Remove trailing period from strings sought
3093         in the output.
3094
3095 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3096
3097         nanosleep: fix integer overflow problem
3098         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3099         arithmetic wraps around on overflow.
3100
3101         nanosleep: simplify carrying
3102         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3103         first call to the underyling nanosleep, not for the last one.
3104         This doesn't fix any bugs, but it simplifies the computation of
3105         the remaining delay.  Found while auditing integer overflow issues.
3106
3107         dup2: remove test for existence of fcntl
3108         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3109         "#if HAVE_FCNTL", in the configure-time test program.
3110         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3111         and therefore speeds up "configure" a bit.  Found while
3112         adding the dup2 module to Emacs.
3113
3114 2011-06-24  Eric Blake  <eblake@redhat.com>
3115
3116         maint.mk: enhance useless header checks
3117         * top/maint.mk (_sc_header_without_use): Check both include
3118         styles.
3119         (sc_prohibit_assert_without_use)
3120         (sc_prohibit_close_stream_without_use)
3121         (sc_prohibit_getopt_without_use)
3122         (sc_prohibit_quotearg_without_use)
3123         (sc_prohibit_quote_without_use)
3124         (sc_prohibit_long_options_without_use)
3125         (sc_prohibit_inttostr_without_use)
3126         (sc_prohibit_ignore_value_without_use)
3127         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3128         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3129         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3130         (sc_prohibit_hash_pjw_without_use)
3131         (sc_prohibit_safe_read_without_use)
3132         (sc_prohibit_argmatch_without_use)
3133         (sc_prohibit_canonicalize_without_use)
3134         (sc_prohibit_root_dev_ino_without_use)
3135         (sc_prohibit_openat_without_use)
3136         (sc_prohibit_c_ctype_without_use)
3137         (sc_prohibit_signal_without_use)
3138         (sc_prohibit_stdio--_without_use)
3139         (sc_prohibit_stdio-safer_without_use)
3140         (sc_prohibit_strings_without_use)
3141         (sc_prohibit_intprops_without_use)
3142         (sc_prohibit_stddef_without_use)
3143         (sc_prohibit_xfreopen_without_use): Update clients.
3144
3145 2011-06-24  Jim Meyering  <meyering@redhat.com>
3146
3147         syntax-check: keep one maint.mk rule in sync with its header
3148         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3149         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3150         I prefer to avoid temporary files here, so use <(...), but that
3151         is not supported by /bin/sh, so...
3152         (SHELL): Define to /bin/bash.
3153
3154 2011-06-24  Eric Blake  <eblake@redhat.com>
3155
3156         maint.mk: update sc_prohibit_intprops_without_use
3157         * top/maint.mk (_intprops_names): Match recent changes.
3158
3159 2011-06-24  Bruno Haible  <bruno@clisp.org>
3160
3161         strerror-override: No-op tweak.
3162         * lib/strerror-override.h (strerror_override): Reorder conditions,
3163         for consistency with lib/strerror-override.c.
3164
3165 2011-06-23  Eric Blake  <eblake@redhat.com>
3166
3167         maint.mk: test further PATH_MAX issues
3168         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3169         (sc_prohibit_path_max_allocation): ...and also test alloca.
3170         Suggested by Jim Meyering.
3171
3172 2011-06-22  Eric Blake  <eblake@redhat.com>
3173
3174         maint.mk: add syntax-check to avoid char[PATH_MAX]
3175         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3176
3177         stat: be robust to PATH_MAX definition
3178         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3179         * modules/stat (Depends-on): Add verify.
3180
3181         link: work around IRIX bug
3182         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3183         * lib/link.c (rpl_link): Work around it.
3184         * tests/test-link.h (test_link): Enhance test.
3185         * doc/posix-functions/link.texi (link): Document the bug.
3186
3187         getopt: silence clang warning
3188         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3189         dereference.
3190         Reported by Gustavo Martin Domato.
3191
3192 2011-06-22  Jim Meyering  <meyering@redhat.com>
3193
3194         bootstrap: do not insert a blank line into each .gitignore file
3195         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3196
3197 2011-06-21  Eric Blake  <eblake@redhat.com>
3198
3199         perror: test for output mismatch
3200         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3201         perror on IRIX.
3202
3203         strerror_r: fix OpenBSD behavior on out-of-range
3204         * lib/strerror_r.c (strerror_r): Always use maximal string.
3205         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3206
3207         strerror_r: fix OpenBSD behavior on 0
3208         * lib/strerror-override.c (strerror_override): Also override 0
3209         when needed.
3210         * lib/strerror-override.h (strerror_override): Likewise.
3211         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3212         earlier.
3213         * lib/strerror_r.c (strerror_r): Likewise.
3214         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3215         behavior...
3216         (gl_FUNC_STRERROR_0): ...into new macro.
3217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3218         is overridden.
3219         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3220         * modules/strerror-override (Files): Add strerror.m4.
3221         (configure.ac): Also provide override for 0 when needed.
3222         * doc/posix-functions/strerror.texi (strerror): Document this.
3223         * doc/posix-functions/perror.texi (perror): Likewise.
3224
3225         perror: adjust array size
3226         * modules/perror (Depends-on): Add strerror-override.
3227         * lib/perror.c (perror): Use it to avoid magic number.
3228
3229         strerror-override: reduce size
3230         * lib/strerror-override.c (strerror_override): Use fewer lines.
3231
3232 2011-06-20  Bruno Haible  <bruno@clisp.org>
3233
3234         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3235         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3236
3237 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3238
3239         alloca: port to compilers that can optimize like GCC 4.6.0
3240         * lib/alloca.c (find_stack_direction): New signature, taken from
3241         Autoconf git.  This works with GCC 4.6.0.  This code should never
3242         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3243         be used with other compilers that optimize as well as GCC 4.6.0 does.
3244         (alloca): Adjust to new signature.
3245         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3246         New macro, which patches Autoconf in a similar way.
3247
3248         c-stack: stop worrying about stack direction
3249         * lib/c-stack.c (find_stack_direction): Remove.
3250         (segv_handler): Don't worry about stack direction growth, as it's
3251         too much of a pain to configure this correctly, given how compilers
3252         are optimizing-away our stack-growth detection code.  Instead, assume
3253         that any access to just before or just after the stack is OK.
3254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3255         Don't require AC_FUNC_ALLOCA; no longer needed.
3256
3257 2011-06-20  Eric Blake  <eblake@redhat.com>
3258
3259         test-stat: don't allocate PATH_MAX bytes
3260         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3261         PATH_MAX-sized buffer.
3262         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3263         * modules/stat-tests (Depends-on): Likewise.
3264         * tests/test-fstatat.c (includes): Drop pathmax.h.
3265         * tests/test-stat.c (includes): Likewise.
3266         Reported by Bruno Haible.
3267
3268 2011-06-20  Bruno Haible  <bruno@clisp.org>
3269
3270         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3271         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3272         * lib/float.c: New file.
3273         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3274         REPLACE_FLOAT_LDBL.
3275         * modules/float (Files): Add lib/float.c.
3276         (configure.ac): Invoke AC_LIBOBJ.
3277         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3278
3279 2011-06-20  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for module 'float'.
3282         * modules/float-tests: New file.
3283         * tests/test-float.c: New file.
3284
3285 2011-06-19  Bruno Haible  <bruno@clisp.org>
3286
3287         isinf: Coding style.
3288         * lib/isinf.c: Use GNU coding style.
3289
3290 2011-06-19  Bruno Haible  <bruno@clisp.org>
3291
3292         linkat test: Avoid test failure on AIX 7.1.
3293         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3294         * tests/test-link.h (test_link): Likewise.
3295
3296 2011-06-19  Bruno Haible  <bruno@clisp.org>
3297
3298         pread test: Avoid test failure on OpenBSD 4.9.
3299         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3300
3301 2011-06-19  Bruno Haible  <bruno@clisp.org>
3302
3303         sprintf-posix: Fix test failure on AIX 7.1.
3304         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3305         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3306         on AIX.
3307         * doc/posix-functions/fprintf.texi: Likewise.
3308         * doc/posix-functions/printf.texi: Likewise.
3309         * doc/posix-functions/snprintf.texi: Likewise.
3310         * doc/posix-functions/sprintf.texi: Likewise.
3311         * doc/posix-functions/vdprintf.texi: Likewise.
3312         * doc/posix-functions/vfprintf.texi: Likewise.
3313         * doc/posix-functions/vprintf.texi: Likewise.
3314         * doc/posix-functions/vsnprintf.texi: Likewise.
3315         * doc/posix-functions/vsprintf.texi: Likewise.
3316
3317 2011-06-19  Bruno Haible  <bruno@clisp.org>
3318
3319         roundl-ieee: Fix test failure on AIX 7.1.
3320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3321         * doc/posix-functions/roundl.texi: Mention problem with negative
3322         arguments.
3323
3324 2011-06-19  Bruno Haible  <bruno@clisp.org>
3325
3326         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3327         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3328         * doc/posix-functions/round.texi: Mention problem with negative
3329         arguments.
3330         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3331
3332 2011-06-19  Bruno Haible  <bruno@clisp.org>
3333
3334         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3336         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3337         * doc/posix-functions/roundf.texi: Mention problem with negative
3338         arguments.
3339         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3340
3341 2011-06-19  Bruno Haible  <bruno@clisp.org>
3342
3343         ceilf-ieee: Work around bug on MacOS X 10.5.
3344         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3345
3346         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3347         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3348         IEEE compliant, avoid compiler optimizations.
3349         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3350         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3351         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3352         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3353         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3354         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3357         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3358         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3359
3360 2011-06-19  Bruno Haible  <bruno@clisp.org>
3361
3362         ceilf-ieee: Work around bug on AIX 7.1.
3363         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3364         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3365
3366 2011-06-19  Bruno Haible  <bruno@clisp.org>
3367
3368         ceil-ieee: Work around bug on AIX 7.1.
3369         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3370         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3371
3372 2011-06-18  Bruno Haible  <bruno@clisp.org>
3373
3374         fsync test: Avoid test failure on MacOS X and AIX.
3375         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3376         EINVAL.
3377
3378 2011-06-18  Bruno Haible  <bruno@clisp.org>
3379
3380         openat, fdopendir tests: Fix link errors.
3381         * modules/openat-tests (Depends-on): Add progname.
3382         * modules/fdopendir-tests (Depends-on): Likewise.
3383         * tests/test-fchownat.c: Include progname.h.
3384         (main): Call set_program_name.
3385         * tests/test-fstatat.c: Include progname.h.
3386         (main): Call set_program_name.
3387         * tests/test-mkdirat.c: Include progname.h.
3388         (main): Call set_program_name.
3389         * tests/test-openat.c: Include progname.h.
3390         (main): Call set_program_name.
3391         * tests/test-unlinkat.c: Include progname.h.
3392         (main): Call set_program_name.
3393         * tests/test-fdopendir.c: Include progname.h.
3394         (main): Call set_program_name.
3395
3396 2011-06-18  Bruno Haible  <bruno@clisp.org>
3397
3398         Doc update.
3399         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3400         HP-UX.
3401         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3402
3403 2011-06-18  Bruno Haible  <bruno@clisp.org>
3404
3405         getcwd tests: Avoid compilation error on HP-UX 11.31.
3406         * modules/getcwd-tests (Depends-on): Add pathmax.
3407         * tests/test-getcwd.c: Include pathmax.h.
3408
3409 2011-06-18  Bruno Haible  <bruno@clisp.org>
3410
3411         isfinite, isinf: Fix link error on AIX 6 and 7.
3412         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3413         needed, also test the macro with a 'float' argument.
3414         * m4/isinf.m4 (gl_ISINF): Likewise.
3415
3416 2011-06-18  Bruno Haible  <bruno@clisp.org>
3417
3418         getloadavg: Don't clobber LIBS. Regression from previous commit.
3419         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3420         AC_CHECK_LIB from here...
3421         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3422         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3423         gl_func_getloadavg_done.
3424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3425
3426 2011-06-18  Bruno Haible  <bruno@clisp.org>
3427
3428         clean-temp: Improve documentation.
3429         * lib/clean-temp.h: Explain better how to use this module.
3430         Reported by John Darrington <john@darrington.wattle.id.au>.
3431
3432 2011-06-17  Bruno Haible  <bruno@clisp.org>
3433
3434         pread, pwrite: Avoid cc warning on AIX.
3435         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3436         (pwrite): Likewise.
3437
3438 2011-06-17  Bruno Haible  <bruno@clisp.org>
3439
3440         spawn-pipe tests: Fix link error.
3441         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3443
3444 2011-06-17  Bruno Haible  <bruno@clisp.org>
3445
3446         Tests: Remove unnecessary dependency.
3447         * modules/canonicalize-tests (Depends-on): Remove progname.
3448         * modules/chown-tests (Depends-on): Likewise.
3449         * modules/dirname-tests (Depends-on): Likewise.
3450         * modules/fdopendir-tests (Depends-on): Likewise.
3451         * modules/fdutimensat-tests (Depends-on): Likewise.
3452         * modules/hash-tests (Depends-on): Likewise.
3453         * modules/lchown-tests (Depends-on): Likewise.
3454         * modules/linkat-tests (Depends-on): Likewise.
3455         * modules/renameat-tests (Depends-on): Likewise.
3456         * modules/spawn-pipe-tests (Depends-on): Likewise.
3457         * modules/utimensat-tests (Depends-on): Likewise.
3458
3459 2011-06-17  Bruno Haible  <bruno@clisp.org>
3460
3461         spawn-pipe tests: Fix link error.
3462         * tests/test-spawn-pipe-child.c: Undefine fflush.
3463
3464 2011-06-17  Bruno Haible  <bruno@clisp.org>
3465
3466         Fix tests link errors.
3467         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3468         * modules/chown-tests (Makefile.am): Don't link test-chown with
3469         LIBINTL.
3470         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3471         LIBINTL.
3472         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3473         LIBINTL.
3474         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3475         LIBINTL.
3476
3477 2011-06-16  Bruno Haible  <bruno@clisp.org>
3478
3479         crypto/gc-sha1: Fix recent regression.
3480         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3481         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3482
3483         crypto/gc-md5: Fix recent regression.
3484         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3485
3486         crypto/gc-md4: Fix recent regression.
3487         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3488         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3489
3490         crypto/gc-arctwo: Fix recent regression.
3491         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3492         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3493
3494         crypto/gc-rijndael: Fix recent regression.
3495         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3496         (configure.ac): Invoke AC_LIBOBJ here.
3497         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3499
3500         crypto/gc-hmac-sha1: Fix recent regression.
3501         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3502         (configure.ac): Invoke AC_LIBOBJ here.
3503         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3505
3506         crypto/gc-hmac-md5: Fix recent regression.
3507         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3508         (configure.ac): Invoke AC_LIBOBJ here.
3509         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3511
3512         crypto/gc-des: Fix recent regression.
3513         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3514         (configure.ac): Invoke AC_LIBOBJ here.
3515         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3517
3518         crypto/gc-arcfour: Fix recent regression.
3519         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3520         (configure.ac): Invoke AC_LIBOBJ here.
3521         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3523
3524 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3525
3526         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3527         After the 2011-05-21 change, this macro requires
3528         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3529         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3530
3531 2011-06-16  Bruno Haible  <bruno@clisp.org>
3532
3533         fprintftime: Move AC_LIBOBJ invocations to module description.
3534         * m4/fprintftime.m4: Remove file.
3535         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3536         (configure.ac): Remove gl_FPRINTFTIME call.
3537         (Makefile.am): Augment lib_SOURCES.
3538         Reported by Jim Meyering.
3539
3540 2011-06-16  Bruno Haible  <bruno@clisp.org>
3541
3542         tmpfile-safer: Finish 2011-05-23 commit.
3543         * m4/stdio-safer.m4: Really remove file.
3544         Reported by Jim Meyering.
3545
3546 2011-06-16  Bruno Haible  <bruno@clisp.org>
3547
3548         syntax-check: Fix typo.
3549         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3550         printf-posix.m4.
3551         Reported by Jim Meyering.
3552
3553 2011-06-13  Jim Meyering  <meyering@redhat.com>
3554
3555         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3556         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3557
3558 2011-05-23  Bruno Haible  <bruno@clisp.org>
3559
3560         yesno: Move AC_LIBOBJ invocations to module description.
3561         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3562         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3563
3564 2011-05-23  Bruno Haible  <bruno@clisp.org>
3565
3566         xstrtol: Move AC_LIBOBJ invocations to module description.
3567         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3568         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3569
3570 2011-05-23  Bruno Haible  <bruno@clisp.org>
3571
3572         xstrtold: Move AC_LIBOBJ invocations to module description.
3573         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3574         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3575
3576 2011-05-23  Bruno Haible  <bruno@clisp.org>
3577
3578         xstrtod: Move AC_LIBOBJ invocations to module description.
3579         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3580         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3581
3582 2011-05-23  Bruno Haible  <bruno@clisp.org>
3583
3584         xnanosleep: Move AC_LIBOBJ invocations to module description.
3585         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3586         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3587
3588 2011-05-23  Bruno Haible  <bruno@clisp.org>
3589
3590         xgetcwd: Move AC_LIBOBJ invocations to module description.
3591         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3592         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3593
3594 2011-05-23  Bruno Haible  <bruno@clisp.org>
3595
3596         xalloc: Move AC_LIBOBJ invocations to module description.
3597         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3598         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3599
3600 2011-05-23  Bruno Haible  <bruno@clisp.org>
3601
3602         write-any-file: Move AC_LIBOBJ invocations to module description.
3603         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3604         invocation.
3605         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3606
3607 2011-05-23  Bruno Haible  <bruno@clisp.org>
3608
3609         utimens: Move AC_LIBOBJ invocations to module description.
3610         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3611         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3612
3613 2011-05-23  Bruno Haible  <bruno@clisp.org>
3614
3615         utimecmp: Move AC_LIBOBJ invocations to module description.
3616         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3617         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3618
3619 2011-05-23  Bruno Haible  <bruno@clisp.org>
3620
3621         userspec: Move AC_LIBOBJ invocations to module description.
3622         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3623         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3624
3625 2011-05-23  Bruno Haible  <bruno@clisp.org>
3626
3627         unlinkdir: Move AC_LIBOBJ invocations to module description.
3628         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3629         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3630
3631 2011-05-23  Bruno Haible  <bruno@clisp.org>
3632
3633         unistd-safer: Move AC_LIBOBJ invocations to module description.
3634         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3635         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3636
3637 2011-05-23  Bruno Haible  <bruno@clisp.org>
3638
3639         tempname: Move AC_LIBOBJ invocations to module description.
3640         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3641         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3642
3643 2011-05-23  Bruno Haible  <bruno@clisp.org>
3644
3645         strftime: Move AC_LIBOBJ invocations to module description.
3646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3647         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3648
3649 2011-05-23  Bruno Haible  <bruno@clisp.org>
3650
3651         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3652         * m4/stdlib-safer.m4: Remove file.
3653         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3654         (configure.ac): Remove gl_STDLIB_SAFER call.
3655         (Makefile.am): Augment lib_SOURCES.
3656
3657 2011-05-23  Bruno Haible  <bruno@clisp.org>
3658
3659         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3660         * m4/stdio-safer.m4: Remove file.
3661         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3662         (configure.ac): Remove gl_TMPFILE_SAFER call.
3663         (Makefile.am): Augment lib_SOURCES.
3664
3665 2011-05-23  Bruno Haible  <bruno@clisp.org>
3666
3667         popen-safer: Move AC_LIBOBJ invocations to module description.
3668         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3669         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3670         (configure.ac): Remove gl_POPEN_SAFER call.
3671         (Makefile.am): Augment lib_SOURCES.
3672
3673 2011-05-23  Bruno Haible  <bruno@clisp.org>
3674
3675         freopen-safer: Move AC_LIBOBJ invocations to module description.
3676         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3677         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3678         (configure.ac): Remove gl_FREOPEN_SAFER call.
3679         (Makefile.am): Augment lib_SOURCES.
3680
3681 2011-05-23  Bruno Haible  <bruno@clisp.org>
3682
3683         fopen-safer: Move AC_LIBOBJ invocations to module description.
3684         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3685         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3686         (configure.ac): Remove gl_FOPEN_SAFER call.
3687         (Makefile.am): Augment lib_SOURCES.
3688
3689 2011-05-23  Bruno Haible  <bruno@clisp.org>
3690
3691         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3692         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3693         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3694
3695 2011-05-23  Bruno Haible  <bruno@clisp.org>
3696
3697         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3698         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3699         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3700
3701 2011-05-23  Bruno Haible  <bruno@clisp.org>
3702
3703         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3704         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3705         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3706
3707 2011-05-23  Bruno Haible  <bruno@clisp.org>
3708
3709         settime: Move AC_LIBOBJ invocations to module description.
3710         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3711         * modules/settime (Makefile.am): Augment lib_SOURCES.
3712
3713 2011-05-23  Bruno Haible  <bruno@clisp.org>
3714
3715         savedir: Move AC_LIBOBJ invocations to module description.
3716         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3717         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3718
3719 2011-05-23  Bruno Haible  <bruno@clisp.org>
3720
3721         save-cwd: Move AC_LIBOBJ invocations to module description.
3722         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3723         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3724
3725 2011-05-23  Bruno Haible  <bruno@clisp.org>
3726
3727         same: Move AC_LIBOBJ invocations to module description.
3728         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3729         * modules/same (Makefile.am): Augment lib_SOURCES.
3730
3731 2011-05-23  Bruno Haible  <bruno@clisp.org>
3732
3733         safe-write: Move AC_LIBOBJ invocations to module description.
3734         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3735         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3736         instead of gl_SAFE_WRITE.
3737         (Makefile.am): Augment lib_SOURCES.
3738
3739 2011-05-23  Bruno Haible  <bruno@clisp.org>
3740
3741         safe-read: Move AC_LIBOBJ invocations to module description.
3742         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3743         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3744         of gl_SAFE_READ.
3745         (Makefile.am): Augment lib_SOURCES.
3746
3747 2011-05-23  Bruno Haible  <bruno@clisp.org>
3748
3749         safe-alloc: Move AC_LIBOBJ invocations to module description.
3750         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3751         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3752
3753 2011-05-23  Bruno Haible  <bruno@clisp.org>
3754
3755         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3756         * m4/rijndael.m4: Remove file.
3757         * modules/crypto/rijndael (Files): Remove it.
3758         (configure.ac): Remove gl_RIJNDAEL call.
3759         (Makefile.am): Augment lib_SOURCES.
3760
3761 2011-05-23  Bruno Haible  <bruno@clisp.org>
3762
3763         readtokens: Move AC_LIBOBJ invocations to module description.
3764         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3765         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3766
3767 2011-05-23  Bruno Haible  <bruno@clisp.org>
3768
3769         read-file: Move AC_LIBOBJ invocations to module description.
3770         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3771         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3772         of gl_FUNC_READ_FILE.
3773         (Makefile.am): Augment lib_SOURCES.
3774
3775 2011-05-23  Bruno Haible  <bruno@clisp.org>
3776
3777         quotearg: Move AC_LIBOBJ invocations to module description.
3778         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3779         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3780
3781 2011-05-23  Bruno Haible  <bruno@clisp.org>
3782
3783         quote: Move AC_LIBOBJ invocations to module description.
3784         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3785         * modules/quote (Makefile.am): Augment lib_SOURCES.
3786
3787 2011-05-23  Bruno Haible  <bruno@clisp.org>
3788
3789         posixver: Move AC_LIBOBJ invocations to module description.
3790         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3791         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3792
3793 2011-05-23  Bruno Haible  <bruno@clisp.org>
3794
3795         posixtm: Move AC_LIBOBJ invocations to module description.
3796         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3797         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3798
3799 2011-05-23  Bruno Haible  <bruno@clisp.org>
3800
3801         physmem: Move AC_LIBOBJ invocations to module description.
3802         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3803         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3804
3805 2011-05-23  Bruno Haible  <bruno@clisp.org>
3806
3807         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3808         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3809         invocation.
3810         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3811
3812 2011-05-23  Bruno Haible  <bruno@clisp.org>
3813
3814         mpsort: Move AC_LIBOBJ invocations to module description.
3815         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3816         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3817
3818 2011-05-23  Bruno Haible  <bruno@clisp.org>
3819
3820         modechange: Move AC_LIBOBJ invocations to module description.
3821         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3822         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3823
3824 2011-05-23  Bruno Haible  <bruno@clisp.org>
3825
3826         mkdir-p: Move AC_LIBOBJ invocations to module description.
3827         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3828         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3829
3830 2011-05-23  Bruno Haible  <bruno@clisp.org>
3831
3832         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3833         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3834         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3835
3836 2011-05-23  Bruno Haible  <bruno@clisp.org>
3837
3838         mgetgroups: Move AC_LIBOBJ invocations to module description.
3839         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3840         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3841
3842 2011-05-23  Bruno Haible  <bruno@clisp.org>
3843
3844         memxor: Move AC_LIBOBJ invocations to module description.
3845         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3846         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3847
3848 2011-05-23  Bruno Haible  <bruno@clisp.org>
3849
3850         memcoll: Move AC_LIBOBJ invocations to module description.
3851         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3852         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3853
3854 2011-05-23  Bruno Haible  <bruno@clisp.org>
3855
3856         memcasecmp: Move AC_LIBOBJ invocations to module description.
3857         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3858         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3859
3860 2011-05-23  Bruno Haible  <bruno@clisp.org>
3861
3862         crypto/md5: Move AC_LIBOBJ invocations to module description.
3863         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3864         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3865
3866 2011-05-23  Bruno Haible  <bruno@clisp.org>
3867
3868         crypto/md4: Move AC_LIBOBJ invocations to module description.
3869         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3870         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3871
3872 2011-05-23  Bruno Haible  <bruno@clisp.org>
3873
3874         crypto/md2: Move AC_LIBOBJ invocations to module description.
3875         * m4/md2.m4: Remove file.
3876         * modules/crypto/md2 (Files): Remove it.
3877         (configure.ac): Remove gl_MD2 call.
3878         (Makefile.am): Augment lib_SOURCES.
3879
3880 2011-05-23  Bruno Haible  <bruno@clisp.org>
3881
3882         long-options: Move AC_LIBOBJ invocations to module description.
3883         * m4/long-options.m4: Remove file.
3884         * modules/long-options (Files): Remove it.
3885         (configure.ac): Remove gl_LONG_OPTIONS call.
3886         (Makefile.am): Augment lib_SOURCES.
3887
3888 2011-05-23  Bruno Haible  <bruno@clisp.org>
3889
3890         i-ring: Move AC_LIBOBJ invocations to module description.
3891         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3892         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3893
3894 2011-05-23  Bruno Haible  <bruno@clisp.org>
3895
3896         idcache: Move AC_LIBOBJ invocations to module description.
3897         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3898         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3899
3900 2011-05-23  Bruno Haible  <bruno@clisp.org>
3901
3902         human: Move AC_LIBOBJ invocations to module description.
3903         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3904         * modules/human (Makefile.am): Augment lib_SOURCES.
3905
3906 2011-05-23  Bruno Haible  <bruno@clisp.org>
3907
3908         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3909         * m4/hmac-sha1.m4: Remove file.
3910         * modules/crypto/hmac-sha1 (Files): Remove it.
3911         (configure.ac): Remove gl_HMAC_SHA1 call.
3912         (Makefile.am): Augment lib_SOURCES.
3913
3914 2011-05-23  Bruno Haible  <bruno@clisp.org>
3915
3916         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3917         * m4/hmac-md5.m4: Remove file.
3918         * modules/crypto/hmac-md5 (Files): Remove it.
3919         (configure.ac): Remove gl_HMAC_MD5 call.
3920         (Makefile.am): Augment lib_SOURCES.
3921
3922 2011-05-23  Bruno Haible  <bruno@clisp.org>
3923
3924         hash: Move AC_LIBOBJ invocations to module description.
3925         * m4/hash.m4: Remove file.
3926         * modules/hash (Files): Remove it.
3927         (configure.ac): Remove gl_HASH call.
3928         (Makefile.am): Augment lib_SOURCES.
3929
3930 2011-05-23  Bruno Haible  <bruno@clisp.org>
3931
3932         hard-locale: Move AC_LIBOBJ invocations to module description.
3933         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3934         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3935
3936 2011-05-23  Bruno Haible  <bruno@clisp.org>
3937
3938         getugroups: Move AC_LIBOBJ invocations to module description.
3939         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3940         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3941
3942 2011-05-23  Bruno Haible  <bruno@clisp.org>
3943
3944         gettime: Move AC_LIBOBJ invocations to module description.
3945         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3946         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3947
3948 2011-05-23  Bruno Haible  <bruno@clisp.org>
3949
3950         getndelim2: Move AC_LIBOBJ invocations to module description.
3951         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3952         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3953
3954 2011-05-23  Bruno Haible  <bruno@clisp.org>
3955
3956         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3957         * m4/gc-pbkdf2-sha1.m4: Remove file.
3958         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3959         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3960         (Makefile.am): Augment lib_SOURCES.
3961
3962 2011-05-23  Bruno Haible  <bruno@clisp.org>
3963
3964         fts: Move AC_LIBOBJ invocations to module description.
3965         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3966         * modules/fts (configure.ac): ... to here.
3967
3968 2011-05-23  Bruno Haible  <bruno@clisp.org>
3969
3970         file-type: Move AC_LIBOBJ invocations to module description.
3971         * m4/file-type.m4: Remove file.
3972         * modules/file-type (Files): Remove it.
3973         (configure.ac): Remove gl_FILE_TYPE call.
3974         (Makefile.am): Augment lib_SOURCES.
3975
3976 2011-05-23  Bruno Haible  <bruno@clisp.org>
3977
3978         filenamecat*: Respect rules for use of AC_LIBOBJ.
3979         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3980         Remove AC_LIBOBJ invocation.
3981         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3982         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3983
3984 2011-05-23  Bruno Haible  <bruno@clisp.org>
3985
3986         filemode: Move AC_LIBOBJ invocations to module description.
3987         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3988         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3989
3990 2011-05-23  Bruno Haible  <bruno@clisp.org>
3991
3992         openat-safer: Move AC_LIBOBJ invocations to module description.
3993         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3994         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3995
3996 2011-05-23  Bruno Haible  <bruno@clisp.org>
3997
3998         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3999         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4000         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4001
4002 2011-05-23  Bruno Haible  <bruno@clisp.org>
4003
4004         exclude: Move AC_LIBOBJ invocations to module description.
4005         * m4/exclude.m4: Remove file.
4006         * modules/exclude (Files): Remove it.
4007         (configure.ac): Remove gl_EXCLUDE call.
4008         (Makefile.am): Augment lib_SOURCES.
4009
4010 2011-05-23  Bruno Haible  <bruno@clisp.org>
4011
4012         dirname*: Respect rules for use of AC_LIBOBJ.
4013         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4014         invocations.
4015         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4016         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4017
4018 2011-05-23  Bruno Haible  <bruno@clisp.org>
4019
4020         dirent-safer: Move AC_LIBOBJ invocations to module description.
4021         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4022         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4023
4024 2011-05-23  Bruno Haible  <bruno@clisp.org>
4025
4026         crypto/des: Move AC_LIBOBJ invocations to module description.
4027         * m4/des.m4: Remove file.
4028         * modules/crypto/des (Files): Remove it.
4029         (configure.ac): Remove gl_DES call.
4030         (Makefile.am): Augment lib_SOURCES.
4031
4032 2011-05-23  Bruno Haible  <bruno@clisp.org>
4033
4034         cycle-check: Move AC_LIBOBJ invocations to module description.
4035         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4036         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4037
4038 2011-05-23  Bruno Haible  <bruno@clisp.org>
4039
4040         c-strtold: Move AC_LIBOBJ invocations to module description.
4041         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4042         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4043
4044 2011-05-23  Bruno Haible  <bruno@clisp.org>
4045
4046         c-strtod: Move AC_LIBOBJ invocations to module description.
4047         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4048         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4049
4050 2011-05-23  Bruno Haible  <bruno@clisp.org>
4051
4052         crc: Move AC_LIBOBJ invocations to module description.
4053         * m4/crc.m4: Remove file.
4054         * modules/crc (Files): Remove it.
4055         (configure.ac): Remove gl_CRC call.
4056         (Makefile.am): Augment lib_SOURCES.
4057
4058 2011-05-23  Bruno Haible  <bruno@clisp.org>
4059
4060         close-stream: Move AC_LIBOBJ invocations to module description.
4061         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4062         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4063
4064 2011-05-23  Bruno Haible  <bruno@clisp.org>
4065
4066         closeout: Move AC_LIBOBJ invocations to module description.
4067         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4068         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4069
4070 2011-05-23  Bruno Haible  <bruno@clisp.org>
4071
4072         closein: Move AC_LIBOBJ invocations to module description.
4073         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4074         * modules/closein (Makefile.am): Augment lib_SOURCES.
4075
4076 2011-05-23  Bruno Haible  <bruno@clisp.org>
4077
4078         cloexec: Move AC_LIBOBJ invocations to module description.
4079         * m4/cloexec.m4: Remove file.
4080         * modules/cloexec (Files): Remove it.
4081         (configure.ac): Remove gl_CLOEXEC call.
4082         (Makefile.am): Augment lib_SOURCES.
4083
4084 2011-05-23  Bruno Haible  <bruno@clisp.org>
4085
4086         check-version: Move AC_LIBOBJ invocations to module description.
4087         * m4/check-version.m4: Remove file.
4088         * modules/check-version (Files): Remove it.
4089         (configure.ac): Remove gl_CHECK_VERSION call.
4090         (Makefile.am): Augment lib_SOURCES.
4091
4092 2011-05-23  Bruno Haible  <bruno@clisp.org>
4093
4094         chdir-safer: Move AC_LIBOBJ invocations to module description.
4095         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4096         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4097
4098 2011-05-23  Bruno Haible  <bruno@clisp.org>
4099
4100         canonicalize: Move AC_LIBOBJ invocations to module description.
4101         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4102         AC_LIBOBJ invocation.
4103         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4104
4105 2011-05-23  Bruno Haible  <bruno@clisp.org>
4106
4107         canon-host: Move AC_LIBOBJ invocations to module description.
4108         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4109         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4110         instead of gl_CANON_HOST.
4111         (Makefile.am): Augment lib_SOURCES.
4112
4113 2011-05-23  Bruno Haible  <bruno@clisp.org>
4114
4115         backupfile: Move AC_LIBOBJ invocations to module description.
4116         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4117         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4118
4119 2011-05-23  Bruno Haible  <bruno@clisp.org>
4120
4121         argmatch: Move AC_LIBOBJ invocations to module description.
4122         * m4/argmatch.m4: Remove file.
4123         * modules/argmatch (Files): Remove it.
4124         (configure.ac): Remove gl_ARGMATCH call.
4125         (Makefile.am): Augment lib_SOURCES.
4126
4127 2011-05-23  Bruno Haible  <bruno@clisp.org>
4128
4129         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4130         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4131         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4132
4133 2011-05-23  Bruno Haible  <bruno@clisp.org>
4134
4135         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4136         * m4/arcfour.m4: Remove file.
4137         * modules/crypto/arcfour (Files): Remove it.
4138         (configure.ac): Remove gl_ARCFOUR call.
4139         (Makefile.am): Augment lib_SOURCES.
4140
4141 2011-05-22  Bruno Haible  <bruno@clisp.org>
4142
4143         write: Move AC_LIBOBJ invocations to module description.
4144         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4145         * modules/write (configure.ac): ... to here.
4146
4147 2011-05-22  Bruno Haible  <bruno@clisp.org>
4148
4149         wmemset: Move AC_LIBOBJ invocations to module description.
4150         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4151         here...
4152         * modules/wmemset (configure.ac): ... to here.
4153
4154 2011-05-22  Bruno Haible  <bruno@clisp.org>
4155
4156         wmemmove: Move AC_LIBOBJ invocations to module description.
4157         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4158         here...
4159         * modules/wmemmove (configure.ac): ... to here.
4160
4161 2011-05-22  Bruno Haible  <bruno@clisp.org>
4162
4163         wmemcpy: Move AC_LIBOBJ invocations to module description.
4164         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4165         here...
4166         * modules/wmemcpy (configure.ac): ... to here.
4167
4168 2011-05-22  Bruno Haible  <bruno@clisp.org>
4169
4170         wmemcmp: Move AC_LIBOBJ invocations to module description.
4171         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4172         here...
4173         * modules/wmemcmp (configure.ac): ... to here.
4174
4175 2011-05-22  Bruno Haible  <bruno@clisp.org>
4176
4177         wmemchr: Move AC_LIBOBJ invocations to module description.
4178         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4179         here...
4180         * modules/wmemchr (configure.ac): ... to here.
4181
4182 2011-05-22  Bruno Haible  <bruno@clisp.org>
4183
4184         wcswidth: Move AC_LIBOBJ invocations to module description.
4185         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4186         here...
4187         * modules/wcswidth (configure.ac): ... to here.
4188
4189 2011-05-22  Bruno Haible  <bruno@clisp.org>
4190
4191         wcwidth: Respect rules for use of AC_LIBOBJ.
4192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4193         invocation from here...
4194         * modules/wcwidth (configure.ac): ... to here.
4195         (Depends-on): Update conditions.
4196
4197 2011-05-22  Bruno Haible  <bruno@clisp.org>
4198
4199         wctype: Move AC_LIBOBJ invocations to module description.
4200         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4201         invocation from here...
4202         * modules/wctype (configure.ac): ... to here.
4203         (Depends-on): Update conditions.
4204
4205 2011-05-22  Bruno Haible  <bruno@clisp.org>
4206
4207         wctrans: Move AC_LIBOBJ invocations to module description.
4208         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4209         invocation from here...
4210         * modules/wctrans (configure.ac): ... to here.
4211
4212 2011-05-22  Bruno Haible  <bruno@clisp.org>
4213
4214         wctomb: Move AC_LIBOBJ invocations to module description.
4215         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4216         invocations from here...
4217         * modules/wctomb (configure.ac): ... to here.
4218
4219 2011-05-22  Bruno Haible  <bruno@clisp.org>
4220
4221         wctob: Move AC_LIBOBJ invocations to module description.
4222         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4223         gl_PREREQ_WCTOB invocations from here...
4224         * modules/wctob (configure.ac): ... to here.
4225         (Depends-on): Update conditions.
4226
4227 2011-05-22  Bruno Haible  <bruno@clisp.org>
4228
4229         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4230         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4231         here...
4232         * modules/wcsxfrm (configure.ac): ... to here.
4233
4234 2011-05-22  Bruno Haible  <bruno@clisp.org>
4235
4236         wcstok: Move AC_LIBOBJ invocations to module description.
4237         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4238         * modules/wcstok (configure.ac): ... to here.
4239
4240 2011-05-22  Bruno Haible  <bruno@clisp.org>
4241
4242         wcsstr: Move AC_LIBOBJ invocations to module description.
4243         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4244         * modules/wcsstr (configure.ac): ... to here.
4245
4246 2011-05-22  Bruno Haible  <bruno@clisp.org>
4247
4248         wcsspn: Move AC_LIBOBJ invocations to module description.
4249         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4250         * modules/wcsspn (configure.ac): ... to here.
4251
4252 2011-05-22  Bruno Haible  <bruno@clisp.org>
4253
4254         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4255         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4256         gl_PREREQ_WCSRTOMBS invocations from here...
4257         * modules/wcsrtombs (configure.ac): ... to here.
4258
4259 2011-05-22  Bruno Haible  <bruno@clisp.org>
4260
4261         wcsrchr: Move AC_LIBOBJ invocations to module description.
4262         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4263         here...
4264         * modules/wcsrchr (configure.ac): ... to here.
4265
4266 2011-05-22  Bruno Haible  <bruno@clisp.org>
4267
4268         wcspbrk: Move AC_LIBOBJ invocations to module description.
4269         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4270         here...
4271         * modules/wcspbrk (configure.ac): ... to here.
4272
4273 2011-05-22  Bruno Haible  <bruno@clisp.org>
4274
4275         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4276         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4277         gl_PREREQ_WCSNRTOMBS invocations from here...
4278         * modules/wcsnrtombs (configure.ac): ... to here.
4279
4280 2011-05-22  Bruno Haible  <bruno@clisp.org>
4281
4282         wcsnlen: Move AC_LIBOBJ invocations to module description.
4283         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4284         here...
4285         * modules/wcsnlen (configure.ac): ... to here.
4286
4287 2011-05-22  Bruno Haible  <bruno@clisp.org>
4288
4289         wcsncpy: Move AC_LIBOBJ invocations to module description.
4290         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4291         here...
4292         * modules/wcsncpy (configure.ac): ... to here.
4293
4294 2011-05-22  Bruno Haible  <bruno@clisp.org>
4295
4296         wcsncmp: Move AC_LIBOBJ invocations to module description.
4297         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4298         here...
4299         * modules/wcsncmp (configure.ac): ... to here.
4300
4301 2011-05-22  Bruno Haible  <bruno@clisp.org>
4302
4303         wcsncat: Move AC_LIBOBJ invocations to module description.
4304         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4305         here...
4306         * modules/wcsncat (configure.ac): ... to here.
4307
4308 2011-05-22  Bruno Haible  <bruno@clisp.org>
4309
4310         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4311         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4312         from here...
4313         * modules/wcsncasecmp (configure.ac): ... to here.
4314
4315 2011-05-22  Bruno Haible  <bruno@clisp.org>
4316
4317         wcslen: Move AC_LIBOBJ invocations to module description.
4318         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4319         * modules/wcslen (configure.ac): ... to here.
4320
4321 2011-05-22  Bruno Haible  <bruno@clisp.org>
4322
4323         wcsdup: Move AC_LIBOBJ invocations to module description.
4324         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4325         * modules/wcsdup (configure.ac): ... to here.
4326
4327 2011-05-22  Bruno Haible  <bruno@clisp.org>
4328
4329         wcscspn: Move AC_LIBOBJ invocations to module description.
4330         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4331         here...
4332         * modules/wcscspn (configure.ac): ... to here.
4333
4334 2011-05-22  Bruno Haible  <bruno@clisp.org>
4335
4336         wcscpy: Move AC_LIBOBJ invocations to module description.
4337         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4338         * modules/wcscpy (configure.ac): ... to here.
4339
4340 2011-05-22  Bruno Haible  <bruno@clisp.org>
4341
4342         wcscoll: Move AC_LIBOBJ invocations to module description.
4343         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4344         here...
4345         * modules/wcscoll (configure.ac): ... to here.
4346
4347 2011-05-22  Bruno Haible  <bruno@clisp.org>
4348
4349         wcscmp: Move AC_LIBOBJ invocations to module description.
4350         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4351         * modules/wcscmp (configure.ac): ... to here.
4352
4353 2011-05-22  Bruno Haible  <bruno@clisp.org>
4354
4355         wcschr: Move AC_LIBOBJ invocations to module description.
4356         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4357         * modules/wcschr (configure.ac): ... to here.
4358
4359 2011-05-22  Bruno Haible  <bruno@clisp.org>
4360
4361         wcscat: Move AC_LIBOBJ invocations to module description.
4362         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4363         * modules/wcscat (configure.ac): ... to here.
4364
4365 2011-05-22  Bruno Haible  <bruno@clisp.org>
4366
4367         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4368         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4369         here...
4370         * modules/wcscasecmp (configure.ac): ... to here.
4371
4372 2011-05-22  Bruno Haible  <bruno@clisp.org>
4373
4374         wcrtomb: Move AC_LIBOBJ invocations to module description.
4375         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4376         invocations from here...
4377         * modules/wcrtomb (configure.ac): ... to here.
4378
4379 2011-05-22  Bruno Haible  <bruno@clisp.org>
4380
4381         wcpncpy: Move AC_LIBOBJ invocations to module description.
4382         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4383         here...
4384         * modules/wcpncpy (configure.ac): ... to here.
4385
4386 2011-05-22  Bruno Haible  <bruno@clisp.org>
4387
4388         wcpcpy: Move AC_LIBOBJ invocations to module description.
4389         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4390         * modules/wcpcpy (configure.ac): ... to here.
4391
4392 2011-05-22  Bruno Haible  <bruno@clisp.org>
4393
4394         waitpid: Move AC_LIBOBJ invocations to module description.
4395         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4396         invocation from here...
4397         * modules/waitpid (configure.ac): ... to here.
4398
4399 2011-05-22  Bruno Haible  <bruno@clisp.org>
4400
4401         utimensat: Move AC_LIBOBJ invocations to module description.
4402         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4403         here...
4404         * modules/utimensat (configure.ac): ... to here.
4405
4406 2011-05-22  Bruno Haible  <bruno@clisp.org>
4407
4408         usleep: Move AC_LIBOBJ invocations to module description.
4409         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4410         here...
4411         * modules/usleep (configure.ac): ... to here.
4412
4413 2011-05-22  Bruno Haible  <bruno@clisp.org>
4414
4415         unlockpt: Move AC_LIBOBJ invocations to module description.
4416         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4417         gl_PREREQ_UNLOCKPT invocations from here...
4418         * modules/unlockpt (configure.ac): ... to here.
4419
4420 2011-05-22  Bruno Haible  <bruno@clisp.org>
4421
4422         unlink: Respect rules for use of AC_LIBOBJ.
4423         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4424         * modules/unlink (configure.ac): ... to here.
4425
4426 2011-05-22  Bruno Haible  <bruno@clisp.org>
4427
4428         uname: Move AC_LIBOBJ invocations to module description.
4429         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4431         here...
4432         * modules/uname (configure.ac): ... to here.
4433
4434 2011-05-22  Bruno Haible  <bruno@clisp.org>
4435
4436         ttyname_r: Move AC_LIBOBJ invocations to module description.
4437         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4438         gl_PREREQ_TTYNAME_R invocations from here...
4439         * modules/ttyname_r (configure.ac): ... to here.
4440
4441 2011-05-22  Bruno Haible  <bruno@clisp.org>
4442
4443         tsearch: Move AC_LIBOBJ invocations to module description.
4444         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4445         invocations from here...
4446         * modules/tsearch (configure.ac): ... to here.
4447
4448 2011-05-22  Bruno Haible  <bruno@clisp.org>
4449
4450         towctrans: Move AC_LIBOBJ invocations to module description.
4451         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4452         AC_LIBOBJ invocation from here...
4453         * modules/towctrans (configure.ac): ... to here.
4454
4455 2011-05-22  Bruno Haible  <bruno@clisp.org>
4456
4457         tmpfile: Move AC_LIBOBJ invocations to module description.
4458         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4459         invocations from here...
4460         * modules/tmpfile (configure.ac): ... to here.
4461
4462 2011-05-22  Bruno Haible  <bruno@clisp.org>
4463
4464         times: Move AC_LIBOBJ invocations to module description.
4465         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4466         * modules/times (configure.ac): ... to here.
4467
4468 2011-05-22  Bruno Haible  <bruno@clisp.org>
4469
4470         time_r: Move AC_LIBOBJ invocations to module description.
4471         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4472         invocations from here...
4473         * modules/time_r (configure.ac): ... to here.
4474
4475 2011-05-22  Bruno Haible  <bruno@clisp.org>
4476
4477         timegm: Move AC_LIBOBJ invocations to module description.
4478         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4479         invocations from here...
4480         * modules/timegm (configure.ac): ... to here.
4481
4482 2011-05-22  Bruno Haible  <bruno@clisp.org>
4483
4484         tcgetsid: Move AC_LIBOBJ invocations to module description.
4485         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4486         and gl_PREREQ_TCGETSID invocations from here...
4487         * modules/tcgetsid (configure.ac): ... to here.
4488         (Depends-on): Update conditions.
4489
4490 2011-05-22  Bruno Haible  <bruno@clisp.org>
4491
4492         symlinkat: Move AC_LIBOBJ invocations to module description.
4493         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4494         here...
4495         * modules/symlinkat (configure.ac): ... to here.
4496
4497 2011-05-22  Bruno Haible  <bruno@clisp.org>
4498
4499         symlink: Move AC_LIBOBJ invocations to module description.
4500         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4501         here...
4502         * modules/symlink (configure.ac): ... to here.
4503
4504 2011-05-22  Bruno Haible  <bruno@clisp.org>
4505
4506         strverscmp: Move AC_LIBOBJ invocations to module description.
4507         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4508         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4509         from here...
4510         * modules/strverscmp (configure.ac): ... to here.
4511
4512 2011-05-22  Bruno Haible  <bruno@clisp.org>
4513
4514         strtok_r: Move AC_LIBOBJ invocations to module description.
4515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4516         and gl_PREREQ_STRTOK_R invocations from here...
4517         * modules/strtok_r (configure.ac): ... to here.
4518         (Depends-on): Update conditions.
4519
4520 2011-05-22  Bruno Haible  <bruno@clisp.org>
4521
4522         strtoumax: Move AC_LIBOBJ invocations to module description.
4523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4525         from here...
4526         * modules/strtoumax (configure.ac): ... to here.
4527
4528 2011-05-22  Bruno Haible  <bruno@clisp.org>
4529
4530         strtoimax: Move AC_LIBOBJ invocations to module description.
4531         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4533         from here...
4534         * modules/strtoimax (configure.ac): ... to here.
4535
4536 2011-05-22  Bruno Haible  <bruno@clisp.org>
4537
4538         strtoull: Move AC_LIBOBJ invocations to module description.
4539         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4541         from here...
4542         * modules/strtoull (configure.ac): ... to here.
4543
4544 2011-05-22  Bruno Haible  <bruno@clisp.org>
4545
4546         strtoll: Move AC_LIBOBJ invocations to module description.
4547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4549         here...
4550         * modules/strtoll (configure.ac): ... to here.
4551
4552 2011-05-22  Bruno Haible  <bruno@clisp.org>
4553
4554         strtoul: Move AC_LIBOBJ invocations to module description.
4555         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4556         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4557         * modules/strtoul (configure.ac): ... to here.
4558
4559 2011-05-22  Bruno Haible  <bruno@clisp.org>
4560
4561         strtol: Move AC_LIBOBJ invocations to module description.
4562         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4563         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4564         * modules/strtol (configure.ac): ... to here.
4565
4566 2011-05-22  Bruno Haible  <bruno@clisp.org>
4567
4568         strtod: Move AC_LIBOBJ invocations to module description.
4569         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4570         invocations from here...
4571         * modules/strtod (configure.ac): ... to here.
4572
4573 2011-05-22  Bruno Haible  <bruno@clisp.org>
4574
4575         strstr*: Move AC_LIBOBJ invocations to module description.
4576         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4577         invocations from here...
4578         * modules/strstr-simple (configure.ac): ... to here.
4579         * modules/strstr (configure.ac): ... and here.
4580
4581 2011-05-22  Bruno Haible  <bruno@clisp.org>
4582
4583         strsignal: Move AC_LIBOBJ invocations to module description.
4584         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4585         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4586         * modules/strsignal (configure.ac): ... to here.
4587         (Depends-on): Update conditions.
4588
4589 2011-05-22  Bruno Haible  <bruno@clisp.org>
4590
4591         strsep: Move AC_LIBOBJ invocations to module description.
4592         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4594         here...
4595         * modules/strsep (configure.ac): ... to here.
4596
4597 2011-05-22  Bruno Haible  <bruno@clisp.org>
4598
4599         strptime: Move AC_LIBOBJ invocations to module description.
4600         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4601         gl_PREREQ_STRPTIME invocations from here...
4602         * modules/strptime (configure.ac): ... to here.
4603
4604 2011-05-22  Bruno Haible  <bruno@clisp.org>
4605
4606         strpbrk: Move AC_LIBOBJ invocations to module description.
4607         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4609         here...
4610         * modules/strpbrk (configure.ac): ... to here.
4611
4612 2011-05-22  Bruno Haible  <bruno@clisp.org>
4613
4614         strnlen: Move AC_LIBOBJ invocations to module description.
4615         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4616         invocations from here...
4617         * modules/strnlen (configure.ac): ... to here.
4618
4619 2011-05-22  Bruno Haible  <bruno@clisp.org>
4620
4621         strndup: Move AC_LIBOBJ invocations to module description.
4622         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4623         invocations from here...
4624         * modules/strndup (configure.ac): ... to here.
4625         (Depends-on): Update conditions.
4626
4627 2011-05-22  Bruno Haible  <bruno@clisp.org>
4628
4629         strncat: Move AC_LIBOBJ invocations to module description.
4630         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4631         invocations from here...
4632         * modules/strncat (configure.ac): ... to here.
4633
4634 2011-05-22  Bruno Haible  <bruno@clisp.org>
4635
4636         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4637         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4638         invocations from here...
4639         * modules/strdup (configure.ac): ... to here.
4640         * modules/strdup-posix (configure.ac): ... and here.
4641
4642 2011-05-22  Bruno Haible  <bruno@clisp.org>
4643
4644         strcspn: Move AC_LIBOBJ invocations to module description.
4645         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4647         here...
4648         * modules/strcspn (configure.ac): ... to here.
4649
4650 2011-05-22  Bruno Haible  <bruno@clisp.org>
4651
4652         strchrnul: Move AC_LIBOBJ invocations to module description.
4653         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4654         gl_PREREQ_STRCHRNUL invocations from here...
4655         * modules/strchrnul (configure.ac): ... to here.
4656
4657 2011-05-22  Bruno Haible  <bruno@clisp.org>
4658
4659         strcasestr*: Move AC_LIBOBJ invocations to module description.
4660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4661         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4662         * modules/strcasestr-simple (configure.ac): ... to here.
4663         * modules/strcasestr (configure.ac): ... and here.
4664
4665 2011-05-22  Bruno Haible  <bruno@clisp.org>
4666
4667         strcase: Move AC_LIBOBJ invocations to module description.
4668         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4669         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4670         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4671         gl_PREREQ_STRNCASECMP invocations from here...
4672         * modules/strcase (configure.ac): ... to here.
4673
4674 2011-05-22  Bruno Haible  <bruno@clisp.org>
4675
4676         stpncpy: Move AC_LIBOBJ invocations to module description.
4677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4678         here...
4679         * modules/stpncpy (configure.ac): ... to here.
4680
4681 2011-05-22  Bruno Haible  <bruno@clisp.org>
4682
4683         stpcpy: Move AC_LIBOBJ invocations to module description.
4684         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4686         here...
4687         * modules/stpcpy (configure.ac): ... to here.
4688
4689 2011-05-21  Bruno Haible  <bruno@clisp.org>
4690
4691         stat: Move AC_LIBOBJ invocations to module description.
4692         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4693         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4694         here...
4695         * modules/stat (configure.ac): ... to here.
4696
4697 2011-05-21  Bruno Haible  <bruno@clisp.org>
4698
4699         sleep: Move AC_LIBOBJ invocations to module description.
4700         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4701         * modules/sleep (configure.ac): ... to here.
4702
4703 2011-05-21  Bruno Haible  <bruno@clisp.org>
4704
4705         signbit: Move AC_LIBOBJ invocations to module description.
4706         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4707         * modules/signbit (configure.ac): ... to here.
4708
4709 2011-05-21  Bruno Haible  <bruno@clisp.org>
4710
4711         sigprocmask: Move AC_LIBOBJ invocations to module description.
4712         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4713         gl_PREREQ_SIGPROMASK invocations from here...
4714         * modules/sigprocmask (configure.ac): ... to here.
4715
4716 2011-05-21  Bruno Haible  <bruno@clisp.org>
4717
4718         sigaction: Move AC_LIBOBJ invocations to module description.
4719         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4720         gl_PREREQ_SIGACTION invocations from here...
4721         * modules/sigaction (configure.ac): ... to here.
4722
4723 2011-05-21  Bruno Haible  <bruno@clisp.org>
4724
4725         sig2str: Move AC_LIBOBJ invocations to module description.
4726         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4728         here...
4729         * modules/sig2str (configure.ac): ... to here.
4730
4731 2011-05-21  Bruno Haible  <bruno@clisp.org>
4732
4733         setlocale: Move AC_LIBOBJ invocations to module description.
4734         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4735         gl_PREREQ_SETLOCALE invocations from here...
4736         * modules/setlocale (configure.ac): ... to here.
4737
4738 2011-05-21  Bruno Haible  <bruno@clisp.org>
4739
4740         unsetenv: Move AC_LIBOBJ invocations to module description.
4741         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4742         and gl_PREREQ_UNSETENV invocations from here...
4743         * modules/unsetenv (configure.ac): ... to here.
4744         (Depends-on): Update.
4745
4746 2011-05-21  Bruno Haible  <bruno@clisp.org>
4747
4748         setenv: Move AC_LIBOBJ invocations to module description.
4749         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4750         here...
4751         * modules/setenv (configure.ac): ... to here.
4752
4753 2011-05-21  Bruno Haible  <bruno@clisp.org>
4754
4755         selinux-h: Move AC_LIBOBJ invocations to module description.
4756         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4757         AC_LIBOBJ invocation from here...
4758         * modules/selinux-h (configure.ac): ... to here.
4759
4760 2011-05-21  Bruno Haible  <bruno@clisp.org>
4761
4762         select: Respect rules for use of AC_LIBOBJ.
4763         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4764         here...
4765         * modules/select (configure.ac): ... to here.
4766
4767 2011-05-21  Bruno Haible  <bruno@clisp.org>
4768
4769         scandir: Move AC_LIBOBJ invocations to module description.
4770         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4771         invocations from here...
4772         * modules/scandir (configure.ac): ... to here.
4773
4774 2011-05-21  Bruno Haible  <bruno@clisp.org>
4775
4776         rpmatch: Move AC_LIBOBJ invocations to module description.
4777         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4779         here...
4780         * modules/rpmatch (configure.ac): ... to here.
4781
4782 2011-05-21  Bruno Haible  <bruno@clisp.org>
4783
4784         rmdir: Respect rules for use of AC_LIBOBJ.
4785         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4786         * modules/rmdir (configure.ac): ... to here.
4787
4788 2011-05-21  Bruno Haible  <bruno@clisp.org>
4789
4790         renameat: Move AC_LIBOBJ invocations to module description.
4791         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4792         here...
4793         * modules/renameat (configure.ac): ... to here.
4794
4795 2011-05-21  Bruno Haible  <bruno@clisp.org>
4796
4797         rename: Respect rules for use of AC_LIBOBJ.
4798         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4799         here...
4800         * modules/rename (configure.ac): ... to here.
4801
4802 2011-05-21  Bruno Haible  <bruno@clisp.org>
4803
4804         remove: Move AC_LIBOBJ invocations to module description.
4805         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4806         here...
4807         * modules/remove (configure.ac): ... to here.
4808
4809 2011-05-21  Bruno Haible  <bruno@clisp.org>
4810
4811         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4812         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4813         macro.
4814         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4815         * modules/relocatable-lib (configure.ac): ... to here.
4816         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4817         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4818
4819 2011-05-21  Bruno Haible  <bruno@clisp.org>
4820
4821         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4822         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4823         here...
4824         * modules/relocatable-prog (configure.ac): ... to here.
4825
4826 2011-05-21  Bruno Haible  <bruno@clisp.org>
4827
4828         regex: Move AC_LIBOBJ invocations to module description.
4829         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4830         invocations from here...
4831         * modules/regex (configure.ac): ... to here.
4832
4833 2011-05-21  Bruno Haible  <bruno@clisp.org>
4834
4835         realloc-*: Move AC_LIBOBJ invocations to module description.
4836         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4837         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4838         AC_LIBOBJ invocations from here...
4839         * modules/realloc-gnu (configure.ac): ... to here.
4840         * modules/realloc-posix (configure.ac): ... and here.
4841
4842 2011-05-21  Bruno Haible  <bruno@clisp.org>
4843
4844         readutmp: Move AC_LIBOBJ invocations to module description.
4845         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4846         * modules/readutmp (configure.ac): ... to here.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         readlinkat: Move AC_LIBOBJ invocations to module description.
4851         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4852         here...
4853         * modules/readlinkat (configure.ac): ... to here.
4854
4855 2011-05-21  Bruno Haible  <bruno@clisp.org>
4856
4857         readlink: Move AC_LIBOBJ invocations to module description.
4858         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4859         gl_PREREQ_READLINK invocations from here...
4860         * modules/readlink (configure.ac): ... to here.
4861
4862 2011-05-21  Bruno Haible  <bruno@clisp.org>
4863
4864         readline: Move AC_LIBOBJ invocations to module description.
4865         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4866         gl_PREREQ_READLINE invocations from here...
4867         * modules/readline (configure.ac): ... to here.
4868
4869 2011-05-21  Bruno Haible  <bruno@clisp.org>
4870
4871         read: Move AC_LIBOBJ invocations to module description.
4872         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4873         * modules/read (configure.ac): ... to here.
4874
4875 2011-05-21  Bruno Haible  <bruno@clisp.org>
4876
4877         rawmemchr: Move AC_LIBOBJ invocations to module description.
4878         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4880         from here...
4881         * modules/rawmemchr (configure.ac): ... to here.
4882
4883 2011-05-21  Bruno Haible  <bruno@clisp.org>
4884
4885         random_r: Move AC_LIBOBJ invocations to module description.
4886         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4887         gl_PREREQ_RANDOM_R invocations from here...
4888         * modules/random_r (configure.ac): ... to here.
4889
4890 2011-05-21  Bruno Haible  <bruno@clisp.org>
4891
4892         pwrite: Move AC_LIBOBJ invocations to module description.
4893         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4894         * modules/pwrite (configure.ac): ... to here.
4895
4896 2011-05-21  Bruno Haible  <bruno@clisp.org>
4897
4898         putenv: Move AC_LIBOBJ invocations to module description.
4899         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4900         * modules/putenv (configure.ac): ... to here.
4901
4902 2011-05-21  Bruno Haible  <bruno@clisp.org>
4903
4904         login_tty: Move AC_LIBOBJ invocations to module description.
4905         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4906         * modules/login_tty (configure.ac): ... to here.
4907
4908 2011-05-21  Bruno Haible  <bruno@clisp.org>
4909
4910         openpty: Move AC_LIBOBJ invocations to module description.
4911         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4912         * modules/openpty (configure.ac): ... to here.
4913
4914 2011-05-21  Bruno Haible  <bruno@clisp.org>
4915
4916         forkpty: Move AC_LIBOBJ invocations to module description.
4917         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4918         * modules/forkpty (configure.ac): ... to here.
4919
4920 2011-05-21  Bruno Haible  <bruno@clisp.org>
4921
4922         ptsname: Move AC_LIBOBJ invocations to module description.
4923         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4924         invocations from here...
4925         * modules/ptsname (configure.ac): ... to here.
4926
4927 2011-05-21  Bruno Haible  <bruno@clisp.org>
4928
4929         pread: Move AC_LIBOBJ invocations to module description.
4930         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4931         * modules/pread (configure.ac): ... to here.
4932
4933 2011-05-21  Bruno Haible  <bruno@clisp.org>
4934
4935         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4936         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4937         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4938         * modules/posix_spawn (configure.ac): ... to here.
4939         * modules/posix_spawnp (configure.ac): ... and here.
4940
4941 2011-05-21  Bruno Haible  <bruno@clisp.org>
4942
4943         popen: Move AC_LIBOBJ invocations to module description.
4944         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4945         invocations from here...
4946         * modules/popen (configure.ac): ... to here.
4947
4948 2011-05-21  Bruno Haible  <bruno@clisp.org>
4949
4950         poll: Move AC_LIBOBJ invocations to module description.
4951         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4952         invocations from here...
4953         * modules/poll (configure.ac): ... to here.
4954
4955 2011-05-21  Bruno Haible  <bruno@clisp.org>
4956
4957         pipe-posix: Move AC_LIBOBJ invocations to module description.
4958         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4959         * modules/pipe-posix (configure.ac): ... to here.
4960
4961 2011-05-21  Bruno Haible  <bruno@clisp.org>
4962
4963         openat: Respect rules for use of AC_LIBOBJ.
4964         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4965         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4966         * modules/openat (configure.ac): ... to here.
4967
4968 2011-05-21  Bruno Haible  <bruno@clisp.org>
4969
4970         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4971         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4972         invocation from here...
4973         * modules/obstack-printf (configure.ac): ... to here.
4974         * modules/obstack-printf-posix (configure.ac): ... and here.
4975
4976 2011-05-21  Bruno Haible  <bruno@clisp.org>
4977
4978         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4979         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4980         from here...
4981         * modules/nl_langinfo (configure.ac): ... to here.
4982
4983 2011-05-21  Bruno Haible  <bruno@clisp.org>
4984
4985         nanosleep: Move AC_LIBOBJ invocations to module description.
4986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4987         gl_PREREQ_NANOSLEEP invocations from here...
4988         * modules/nanosleep (configure.ac): ... to here.
4989
4990 2011-05-21  Bruno Haible  <bruno@clisp.org>
4991
4992         mountlist: Move AC_LIBOBJ invocations to module description.
4993         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4994         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4995         * modules/mountlist (configure.ac): ... to here.
4996
4997 2011-05-21  Bruno Haible  <bruno@clisp.org>
4998
4999         mktime: Respect rules for use of AC_LIBOBJ.
5000         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5001         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5002         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5003         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5004         * modules/mktime (configure.ac): ... to here.
5005         * modules/mktime-internal (configure.ac): ... and here.
5006         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5007
5008 2011-05-21  Bruno Haible  <bruno@clisp.org>
5009
5010         mkstemps: Move AC_LIBOBJ invocations to module description.
5011         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5012         here...
5013         * modules/mkstemps (configure.ac): ... to here.
5014
5015 2011-05-21  Bruno Haible  <bruno@clisp.org>
5016
5017         mkstemp: Move AC_LIBOBJ invocations to module description.
5018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5019         gl_PREREQ_MKSTEMP invocations from here...
5020         * modules/mkstemp (configure.ac): ... to here.
5021
5022 2011-05-21  Bruno Haible  <bruno@clisp.org>
5023
5024         mkostemps: Move AC_LIBOBJ invocations to module description.
5025         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5026         here...
5027         * modules/mkostemps (configure.ac): ... to here.
5028
5029 2011-05-21  Bruno Haible  <bruno@clisp.org>
5030
5031         mkostemp: Move AC_LIBOBJ invocations to module description.
5032         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5033         gl_PREREQ_MKOSTEMP invocations from here...
5034         * modules/mkostemp (configure.ac): ... to here.
5035
5036 2011-05-21  Bruno Haible  <bruno@clisp.org>
5037
5038         mknod: Move AC_LIBOBJ invocations to module description.
5039         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5040         * modules/mknod (configure.ac): ... to here.
5041
5042 2011-05-21  Bruno Haible  <bruno@clisp.org>
5043
5044         mkfifoat: Move AC_LIBOBJ invocations to module description.
5045         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5046         here...
5047         * modules/mkfifoat (configure.ac): ... to here.
5048
5049 2011-05-21  Bruno Haible  <bruno@clisp.org>
5050
5051         mkfifo: Respect rules for use of AC_LIBOBJ.
5052         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5053         here...
5054         * modules/mkfifo (configure.ac): ... to here.
5055
5056 2011-05-21  Bruno Haible  <bruno@clisp.org>
5057
5058         mkdtemp: Move AC_LIBOBJ invocations to module description.
5059         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5060         invocations from here...
5061         * modules/mkdtemp (configure.ac): ... to here.
5062
5063 2011-05-21  Bruno Haible  <bruno@clisp.org>
5064
5065         mkdir: Move AC_LIBOBJ invocations to module description.
5066         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5067         * modules/mkdir (configure.ac): ... to here.
5068
5069 2011-05-21  Bruno Haible  <bruno@clisp.org>
5070
5071         memset: Move AC_LIBOBJ invocations to module description.
5072         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5074         here...
5075         * modules/memset (configure.ac): ... to here.
5076
5077 2011-05-21  Bruno Haible  <bruno@clisp.org>
5078
5079         memrchr: Move AC_LIBOBJ invocations to module description.
5080         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5082         here...
5083         * modules/memrchr (configure.ac): ... to here.
5084
5085 2011-05-21  Bruno Haible  <bruno@clisp.org>
5086
5087         mempcpy: Move AC_LIBOBJ invocations to module description.
5088         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5090         here...
5091         * modules/mempcpy (configure.ac): ... to here.
5092
5093 2011-05-21  Bruno Haible  <bruno@clisp.org>
5094
5095         memmove: Move AC_LIBOBJ invocations to module description.
5096         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5098         here...
5099         * modules/memmove (configure.ac): ... to here.
5100
5101 2011-05-21  Bruno Haible  <bruno@clisp.org>
5102
5103         memmem*: Move AC_LIBOBJ invocations to module description.
5104         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5105         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5106         here...
5107         (gl_FUNC_MEMMEM): ... and here...
5108         * modules/memmem-simple (configure.ac): ... to here.
5109         * modules/memmem (configure.ac): ... and here.
5110
5111 2011-05-21  Bruno Haible  <bruno@clisp.org>
5112
5113         memcpy: Move AC_LIBOBJ invocations to module description.
5114         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5115         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5116         here...
5117         * modules/memcpy (configure.ac): ... to here.
5118
5119 2011-05-21  Bruno Haible  <bruno@clisp.org>
5120
5121         memcmp: Simplify autoconf macro.
5122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5123         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5124         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5125
5126 2011-05-21  Bruno Haible  <bruno@clisp.org>
5127
5128         memcmp: Move AC_LIBOBJ invocations to module description.
5129         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5130         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5131         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5132         * modules/memcmp (configure.ac): ... to here.
5133         (Depends-on): Update conditions.
5134
5135 2011-05-21  Bruno Haible  <bruno@clisp.org>
5136
5137         memchr: Respect rules for use of AC_LIBOBJ.
5138         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5139         invocations from here...
5140         * modules/memchr (configure.ac): ... to here.
5141
5142 2011-05-21  Bruno Haible  <bruno@clisp.org>
5143
5144         mbtowc: Move AC_LIBOBJ invocations to module description.
5145         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5146         invocations from here...
5147         * modules/mbtowc (configure.ac): ... to here.
5148
5149 2011-05-21  Bruno Haible  <bruno@clisp.org>
5150
5151         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5152         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5153         gl_PREREQ_MBSRTOWCS invocations from here...
5154         * modules/mbsrtowcs (configure.ac): ... to here.
5155
5156 2011-05-21  Bruno Haible  <bruno@clisp.org>
5157
5158         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5159         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5160         gl_PREREQ_MBSNRTOWCS invocations from here...
5161         * modules/mbsnrtowcs (configure.ac): ... to here.
5162
5163 2011-05-21  Bruno Haible  <bruno@clisp.org>
5164
5165         mbsinit: Move AC_LIBOBJ invocations to module description.
5166         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5167         invocations from here...
5168         * modules/mbsinit (configure.ac): ... to here.
5169
5170 2011-05-21  Bruno Haible  <bruno@clisp.org>
5171
5172         mbrlen: Move AC_LIBOBJ invocations to module description.
5173         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5174         invocations from here...
5175         * modules/mbrlen (configure.ac): ... to here.
5176
5177 2011-05-21  Bruno Haible  <bruno@clisp.org>
5178
5179         mbrtowc: Respect rules for use of AC_LIBOBJ.
5180         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5181         invocations from here...
5182         * modules/mbrtowc (configure.ac): ... to here.
5183
5184 2011-05-21  Bruno Haible  <bruno@clisp.org>
5185
5186         malloc-*: Move AC_LIBOBJ invocations to module description.
5187         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5188         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5189         AC_LIBOBJ invocations from here...
5190         * modules/malloc-gnu (configure.ac): ... to here.
5191         * modules/malloc-posix (configure.ac): ... and here.
5192
5193 2011-05-21  Bruno Haible  <bruno@clisp.org>
5194
5195         lstat, openat: Respect rules for use of AC_LIBOBJ.
5196         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5197         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5198         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5199         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5200         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5201         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5202         here.
5203         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5204
5205 2011-05-21  Bruno Haible  <bruno@clisp.org>
5206
5207         lseek: Move AC_LIBOBJ invocations to module description.
5208         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5209         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5210         * modules/lseek (configure.ac): ... to here.
5211
5212 2011-05-21  Bruno Haible  <bruno@clisp.org>
5213
5214         linkat: Move AC_LIBOBJ invocations to module description.
5215         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5216         here...
5217         * modules/linkat (configure.ac): ... to here.
5218
5219 2011-05-21  Bruno Haible  <bruno@clisp.org>
5220
5221         link: Respect rules for use of AC_LIBOBJ.
5222         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5223         * modules/link (configure.ac): ... to here.
5224
5225 2011-05-21  Bruno Haible  <bruno@clisp.org>
5226
5227         lchown: Move AC_LIBOBJ invocations to module description.
5228         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5229         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5230         * modules/lchown (configure.ac): ... to here.
5231
5232 2011-05-21  Bruno Haible  <bruno@clisp.org>
5233
5234         iswctype: Move AC_LIBOBJ invocations to module description.
5235         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5236         here...
5237         * modules/iswctype (configure.ac): ... to here.
5238
5239 2011-05-21  Bruno Haible  <bruno@clisp.org>
5240
5241         iswblank: Move AC_LIBOBJ invocations to module description.
5242         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5243         here...
5244         * modules/iswblank (configure.ac): ... to here.
5245
5246 2011-05-21  Bruno Haible  <bruno@clisp.org>
5247
5248         atanl: Move AC_LIBOBJ invocations to module description.
5249         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5250         * modules/atanl (configure.ac): ... to here.
5251
5252 2011-05-21  Bruno Haible  <bruno@clisp.org>
5253
5254         acosl: Move AC_LIBOBJ invocations to module description.
5255         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5256         * modules/acosl (configure.ac): ... to here.
5257
5258 2011-05-21  Bruno Haible  <bruno@clisp.org>
5259
5260         asinl: Respect rules for use of AC_LIBOBJ.
5261         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5262         * modules/asinl (configure.ac): ... to here.
5263
5264 2011-05-21  Bruno Haible  <bruno@clisp.org>
5265
5266         tanl: Move AC_LIBOBJ invocations to module description.
5267         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5268         * modules/tanl (configure.ac): ... to here.
5269
5270 2011-05-21  Bruno Haible  <bruno@clisp.org>
5271
5272         cosl: Move AC_LIBOBJ invocations to module description.
5273         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5274         * modules/cosl (configure.ac): ... to here.
5275
5276 2011-05-21  Bruno Haible  <bruno@clisp.org>
5277
5278         sinl: Move AC_LIBOBJ invocations to module description.
5279         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5280         * modules/sinl (configure.ac): ... to here.
5281
5282 2011-05-21  Bruno Haible  <bruno@clisp.org>
5283
5284         logl: Move AC_LIBOBJ invocations to module description.
5285         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5286         * modules/logl (configure.ac): ... to here.
5287
5288 2011-05-21  Bruno Haible  <bruno@clisp.org>
5289
5290         expl: Move AC_LIBOBJ invocations to module description.
5291         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5292         * modules/expl (configure.ac): ... to here.
5293
5294 2011-05-21  Bruno Haible  <bruno@clisp.org>
5295
5296         roundl: Move AC_LIBOBJ invocations to module description.
5297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5298         * modules/roundl (configure.ac): ... to here.
5299
5300 2011-05-21  Bruno Haible  <bruno@clisp.org>
5301
5302         round: Move AC_LIBOBJ invocations to module description.
5303         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5304         * modules/round (configure.ac): ... to here.
5305
5306 2011-05-21  Bruno Haible  <bruno@clisp.org>
5307
5308         roundf: Move AC_LIBOBJ invocations to module description.
5309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5310         * modules/roundf (configure.ac): ... to here.
5311
5312 2011-05-21  Bruno Haible  <bruno@clisp.org>
5313
5314         truncl: Move AC_LIBOBJ invocations to module description.
5315         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5316         * modules/truncl (configure.ac): ... to here.
5317
5318 2011-05-21  Bruno Haible  <bruno@clisp.org>
5319
5320         trunc: Move AC_LIBOBJ invocations to module description.
5321         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5322         * modules/trunc (configure.ac): ... to here.
5323
5324 2011-05-21  Bruno Haible  <bruno@clisp.org>
5325
5326         truncf: Move AC_LIBOBJ invocations to module description.
5327         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5328         * modules/truncf (configure.ac): ... to here.
5329
5330 2011-05-21  Bruno Haible  <bruno@clisp.org>
5331
5332         ceill: Move AC_LIBOBJ invocations to module description.
5333         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5334         * modules/ceill (configure.ac): ... to here.
5335
5336 2011-05-21  Bruno Haible  <bruno@clisp.org>
5337
5338         ceil: Move AC_LIBOBJ invocations to module description.
5339         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5340         * modules/ceil (configure.ac): ... to here.
5341
5342 2011-05-21  Bruno Haible  <bruno@clisp.org>
5343
5344         ceilf: Move AC_LIBOBJ invocations to module description.
5345         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5346         * modules/ceilf (configure.ac): ... to here.
5347
5348 2011-05-21  Bruno Haible  <bruno@clisp.org>
5349
5350         floorl: Respect rules for use of AC_LIBOBJ.
5351         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5352         * modules/floorl (configure.ac): ... to here.
5353
5354 2011-05-21  Bruno Haible  <bruno@clisp.org>
5355
5356         floor: Respect rules for use of AC_LIBOBJ.
5357         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5358         * modules/floor (configure.ac): ... to here.
5359
5360 2011-05-21  Bruno Haible  <bruno@clisp.org>
5361
5362         floorf: Move AC_LIBOBJ invocations to module description.
5363         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5364         * modules/floorf (configure.ac): ... to here.
5365
5366 2011-05-20  Bruno Haible  <bruno@clisp.org>
5367
5368         sqrtl: Respect rules for use of AC_LIBOBJ.
5369         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5370         * modules/sqrtl (configure.ac): ... to here.
5371
5372 2011-05-20  Bruno Haible  <bruno@clisp.org>
5373
5374         ldexpl: Respect rules for use of AC_LIBOBJ.
5375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5376         * modules/ldexpl (configure.ac): ... to here.
5377
5378 2011-05-20  Bruno Haible  <bruno@clisp.org>
5379
5380         frexpl*: Respect rules for use of AC_LIBOBJ.
5381         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5382         invocation from here...
5383         * modules/frexpl (configure.ac): ... to here.
5384         * modules/frexpl-nolibm (configure.ac): ... and here.
5385
5386 2011-05-20  Bruno Haible  <bruno@clisp.org>
5387
5388         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5389         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5390         invocation from here...
5391         * modules/frexp (configure.ac): ... to here.
5392         * modules/frexp-nolibm (configure.ac): ... and here.
5393
5394 2011-05-20  Bruno Haible  <bruno@clisp.org>
5395
5396         isnan: Respect rules for use of AC_LIBOBJ.
5397         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5398         invocations here.
5399         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5400         REPLACE_ISNAN.
5401         * modules/isnand (configure.ac): Likewise.
5402         * modules/isnanl (configure.ac): Likewise.
5403
5404 2011-05-20  Bruno Haible  <bruno@clisp.org>
5405
5406         isnanl*: Respect rules for use of AC_LIBOBJ.
5407         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5408         invocation from here...
5409         * modules/isnanl (configure.ac): ... to here.
5410         * modules/isnanl-nolibm (configure.ac): ... and here.
5411
5412 2011-05-20  Bruno Haible  <bruno@clisp.org>
5413
5414         isnand*: Move AC_LIBOBJ invocations to module description.
5415         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5416         invocation from here...
5417         * modules/isnand (configure.ac): ... to here.
5418         * modules/isnand-nolibm (configure.ac): ... and here.
5419
5420 2011-05-20  Bruno Haible  <bruno@clisp.org>
5421
5422         isnanf*: Move AC_LIBOBJ invocations to module description.
5423         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5424         invocation from here...
5425         * modules/isnanf (configure.ac): ... to here.
5426         * modules/isnanf-nolibm (configure.ac): ... and here.
5427
5428 2011-05-20  Bruno Haible  <bruno@clisp.org>
5429
5430         isnan*: Separate the AC_LIBOBJ invocations.
5431         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5432         AC_LIBOBJ invocation.
5433         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5434         here.
5435         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5436         AC_LIBOBJ invocation.
5437         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5438         here.
5439         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5440         AC_LIBOBJ invocation.
5441         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5442         here.
5443         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5444
5445 2011-05-08  Bruno Haible  <bruno@clisp.org>
5446
5447         isinf: Move AC_LIBOBJ invocations to module description.
5448         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5449         * modules/isinf (configure.ac): ... to here.
5450
5451 2011-05-08  Bruno Haible  <bruno@clisp.org>
5452
5453         isfinite: Move AC_LIBOBJ invocations to module description.
5454         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5455         * modules/isfinite (configure.ac): ... to here.
5456
5457 2011-05-08  Bruno Haible  <bruno@clisp.org>
5458
5459         isblank: Move AC_LIBOBJ invocations to module description.
5460         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5461         here...
5462         * modules/isblank (configure.ac): ... to here.
5463
5464 2011-05-08  Bruno Haible  <bruno@clisp.org>
5465
5466         isapipe: Move AC_LIBOBJ invocations to module description.
5467         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5468         gl_PREREQ_ISAPIPE invocations from here...
5469         * modules/isapipe (configure.ac): ... to here.
5470         (Depends-on): Update condition.
5471
5472 2011-05-08  Bruno Haible  <bruno@clisp.org>
5473
5474         ioctl: Move AC_LIBOBJ invocations to module description.
5475         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5476         invocations from here...
5477         * modules/ioctl (configure.ac): ... to here.
5478         (Depends-on): Update condition.
5479
5480 2011-05-08  Bruno Haible  <bruno@clisp.org>
5481
5482         imaxdiv: Move AC_LIBOBJ invocations to module description.
5483         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5484         invocations from here...
5485         * modules/imaxdiv (configure.ac): ... to here.
5486
5487 2011-05-08  Bruno Haible  <bruno@clisp.org>
5488
5489         imaxabs: Move AC_LIBOBJ invocations to module description.
5490         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5491         invocations from here...
5492         * modules/imaxabs (configure.ac): ... to here.
5493
5494 2011-05-08  Bruno Haible  <bruno@clisp.org>
5495
5496         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5498         AC_LIBOBJ invocations from here...
5499         * modules/getaddrinfo (configure.ac): ... to here.
5500         (Depends-on): Add conditions.
5501
5502 2011-05-08  Bruno Haible  <bruno@clisp.org>
5503
5504         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5506         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5507         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5508         (gl_PREREQ_INET_PTON): ... from here.
5509         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5510         gl_PREREQ_INET_PTON here.
5511         (Depends-on): Update condition.
5512
5513 2011-05-08  Bruno Haible  <bruno@clisp.org>
5514
5515         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5516         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5517         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5518         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5519         (gl_PREREQ_INET_NTOP): ... from here.
5520         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5521         gl_PREREQ_INET_NTOP here.
5522         (Depends-on): Update condition.
5523
5524 2011-05-08  Bruno Haible  <bruno@clisp.org>
5525
5526         iconv_open: Move AC_LIBOBJ invocations to module description.
5527         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5528         AC_LIBOBJ invocations from here...
5529         * modules/iconv_open (configure.ac): ... to here.
5530
5531 2011-05-08  Bruno Haible  <bruno@clisp.org>
5532
5533         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5534         If module 'iconv_open' is among the main modules and module
5535         'iconv_open-utf' is among the tests dependencies, then
5536         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5537         return the special iconv_t values. Therefore iconv() and iconv_close()
5538         must support these special iconv_t values, already in lib, not only in
5539         tests.
5540         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5542         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5543         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5544         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5545         (Depends-on): Add the dependencies of iconv_open-utf.
5546         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5547         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5548         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5549
5550 2011-05-08  Bruno Haible  <bruno@clisp.org>
5551
5552         group-member: Move AC_LIBOBJ invocations to module description.
5553         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5554         gl_PREREQ_GROUP_MEMBER invocations from here...
5555         * modules/group-member (configure.ac): ... to here.
5556
5557 2011-05-08  Bruno Haible  <bruno@clisp.org>
5558
5559         grantpt: Move AC_LIBOBJ invocations to module description.
5560         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5561         invocations from here...
5562         * modules/grantpt (configure.ac): ... to here.
5563
5564 2011-05-08  Bruno Haible  <bruno@clisp.org>
5565
5566         glob: Move AC_LIBOBJ invocations to module description.
5567         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5568         from here...
5569         * modules/glob (configure.ac): ... to here.
5570
5571 2011-05-08  Bruno Haible  <bruno@clisp.org>
5572
5573         getusershell: Move AC_LIBOBJ invocations to module description.
5574         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5575         Move AC_LIBOBJ invocation from here...
5576         * modules/getusershell (configure.ac): ... to here.
5577         (Depends-on): Update condition.
5578
5579 2011-05-08  Bruno Haible  <bruno@clisp.org>
5580
5581         gettimeofday: Move AC_LIBOBJ invocations to module description.
5582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5583         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5584         gl_PREREQ_GETTIMEOFDAY invocations from here...
5585         * modules/gettimeofday (configure.ac): ... to here.
5586
5587 2011-05-08  Bruno Haible  <bruno@clisp.org>
5588
5589         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5590         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5591         just gl_FUNC_TZSET.
5592         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5593         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5595         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5596
5597 2011-05-08  Bruno Haible  <bruno@clisp.org>
5598
5599         getsubopt: Move AC_LIBOBJ invocations to module description.
5600         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5601         gl_PREREQ_GETSUBOPT invocations from here...
5602         * modules/getsubopt (configure.ac): ... to here.
5603
5604 2011-05-08  Bruno Haible  <bruno@clisp.org>
5605
5606         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5607         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5608         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5609         * modules/getpass-gnu (configure.ac): ... to here.
5610
5611 2011-05-08  Bruno Haible  <bruno@clisp.org>
5612
5613         getpass: Move AC_LIBOBJ invocations to module description.
5614         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5615         gl_PREREQ_GETPASS invocations from here...
5616         * modules/getpass (configure.ac): ... to here.
5617
5618 2011-05-08  Bruno Haible  <bruno@clisp.org>
5619
5620         getpagesize: Move AC_LIBOBJ invocations to module description.
5621         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5622         from here...
5623         * modules/getpagesize (configure.ac): ... to here.
5624
5625 2011-05-08  Bruno Haible  <bruno@clisp.org>
5626
5627         getopt: Move AC_LIBOBJ invocations to module description.
5628         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5629         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5630         invocations from here...
5631         * modules/getopt-gnu (configure.ac): ... to here.
5632         * modules/getopt-posix (configure.ac): ... and here.
5633         (Depends-on): Update condition.
5634
5635 2011-05-08  Bruno Haible  <bruno@clisp.org>
5636
5637         getopt, argp: Respect rules for use of AC_LIBOBJ.
5638         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5639         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5640         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5641         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5642
5643 2011-05-08  Bruno Haible  <bruno@clisp.org>
5644
5645         getlogin_r: Move AC_LIBOBJ invocations to module description.
5646         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5647         gl_PREREQ_GETLOGIN_R invocations from here...
5648         * modules/getlogin_r (configure.ac): ... to here.
5649
5650 2011-05-08  Bruno Haible  <bruno@clisp.org>
5651
5652         getlogin: Move AC_LIBOBJ invocations to module description.
5653         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5654         here...
5655         * modules/getlogin (configure.ac): ... to here.
5656
5657 2011-05-08  Bruno Haible  <bruno@clisp.org>
5658
5659         getloadavg: Move AC_LIBOBJ invocations to module description.
5660         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5661         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5662         * modules/getloadavg (configure.ac): ... to here.
5663
5664 2011-05-08  Bruno Haible  <bruno@clisp.org>
5665
5666         gethrxtime: Move AC_LIBOBJ invocations to module description.
5667         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5668         LIB_GETHRXTIME from here...
5669         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5670         invocations from here...
5671         * modules/gethrxtime (configure.ac): ... to here.
5672
5673 2011-05-08  Bruno Haible  <bruno@clisp.org>
5674
5675         gethostname: Move AC_LIBOBJ invocations to module description.
5676         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5677         gl_PREREQ_GETHOSTNAME invocations from here...
5678         * modules/gethostname (configure.ac): ... to here.
5679
5680 2011-05-08  Bruno Haible  <bruno@clisp.org>
5681
5682         getgroups: Move AC_LIBOBJ invocations to module description.
5683         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5684         here...
5685         * modules/getgroups (configure.ac): ... to here.
5686
5687 2011-05-08  Bruno Haible  <bruno@clisp.org>
5688
5689         getdtablesize: Move AC_LIBOBJ invocations to module description.
5690         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5691         invocation from here...
5692         * modules/getdtablesize (configure.ac): ... to here.
5693
5694 2011-05-08  Bruno Haible  <bruno@clisp.org>
5695
5696         getdomainname: Move AC_LIBOBJ invocations to module description.
5697         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5698         gl_PREREQ_GETDOMAINNAME invocations from here...
5699         * modules/getdomainname (configure.ac): ... to here.
5700
5701 2011-05-08  Bruno Haible  <bruno@clisp.org>
5702
5703         getline: Move AC_LIBOBJ invocations to module description.
5704         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5705         invocations from here...
5706         * modules/getline (configure.ac): ... to here.
5707
5708 2011-05-08  Bruno Haible  <bruno@clisp.org>
5709
5710         getline: Simplify.
5711         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5712         It's already handled through the module dependency.
5713
5714 2011-05-08  Bruno Haible  <bruno@clisp.org>
5715
5716         getdelim: Move AC_LIBOBJ invocations to module description.
5717         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5718         and gl_PREREQ_GETDELIM invocations from here...
5719         * modules/getdelim (configure.ac): ... to here.
5720         (Depends-on): Fix condition.
5721
5722 2011-05-08  Bruno Haible  <bruno@clisp.org>
5723
5724         getcwd: Move AC_LIBOBJ invocations to module description.
5725         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5726         invocations from here...
5727         * modules/getcwd (configure.ac): ... to here.
5728
5729 2011-05-08  Bruno Haible  <bruno@clisp.org>
5730
5731         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5732         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5733         here...
5734         * modules/getcwd-lgpl (configure.ac): ... to here.
5735
5736 2011-05-07  Bruno Haible  <bruno@clisp.org>
5737
5738         crypto/gc: Move AC_LIBOBJ invocations to module description.
5739         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5740         * modules/crypto/gc (configure.ac): ... to here.
5741
5742 2011-05-07  Bruno Haible  <bruno@clisp.org>
5743
5744         fwriting: Move AC_LIBOBJ invocations to module description.
5745         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5746         here...
5747         * modules/fwriting (configure.ac): ... to here.
5748
5749 2011-05-07  Bruno Haible  <bruno@clisp.org>
5750
5751         fwritable: Move AC_LIBOBJ invocations to module description.
5752         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5753         here...
5754         * modules/fwritable (configure.ac): ... to here.
5755
5756 2011-05-07  Bruno Haible  <bruno@clisp.org>
5757
5758         futimens: Move AC_LIBOBJ invocations to module description.
5759         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5760         here...
5761         * modules/futimens (configure.ac): ... to here.
5762
5763 2011-05-07  Bruno Haible  <bruno@clisp.org>
5764
5765         ftruncate: Move AC_LIBOBJ invocations to module description.
5766         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5767         gl_PREREQ_FTRUNCATE invocations from here...
5768         * modules/ftruncate (configure.ac): ... to here.
5769
5770 2011-05-07  Bruno Haible  <bruno@clisp.org>
5771
5772         fsync: Move AC_LIBOBJ invocations to module description.
5773         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5774         invocations from here...
5775         * modules/fsync (configure.ac): ... to here.
5776
5777 2011-05-07  Bruno Haible  <bruno@clisp.org>
5778
5779         fsusage: Move AC_LIBOBJ invocations to module description.
5780         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5781         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5782         * modules/fsusage (configure.ac): ... to here.
5783
5784 2011-05-07  Bruno Haible  <bruno@clisp.org>
5785
5786         freopen: Move AC_LIBOBJ invocations to module description.
5787         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5788         invocations from here...
5789         * modules/freopen (configure.ac): ... to here.
5790
5791 2011-05-07  Bruno Haible  <bruno@clisp.org>
5792
5793         free: Move AC_LIBOBJ invocations to module description.
5794         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5795         invocations from here...
5796         * modules/free (configure.ac): ... to here.
5797
5798 2011-05-07  Bruno Haible  <bruno@clisp.org>
5799
5800         freadable: Move AC_LIBOBJ invocations to module description.
5801         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5802         here...
5803         * modules/freadable (configure.ac): ... to here.
5804
5805 2011-05-07  Bruno Haible  <bruno@clisp.org>
5806
5807         fpurge: Move AC_LIBOBJ invocations to module description.
5808         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5809         invocations from here...
5810         * modules/fpurge (configure.ac): ... to here.
5811
5812 2011-05-07  Bruno Haible  <bruno@clisp.org>
5813
5814         fpending: Move AC_LIBOBJ invocations to module description.
5815         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5816         gl_FUNC_FPENDING.
5817         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5818         invocations from here...
5819         * modules/fpending (configure.ac): ... to here.
5820
5821 2011-05-07  Bruno Haible  <bruno@clisp.org>
5822
5823         fopen: Move AC_LIBOBJ invocations to module description.
5824         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5825         invocations from here...
5826         * modules/fopen (configure.ac): ... to here.
5827
5828 2011-05-07  Bruno Haible  <bruno@clisp.org>
5829
5830         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5831         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5832         gl_FUNC_FNMATCH_POSIX.
5833         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5834         invocations from here...
5835         * modules/fnmatch (configure.ac): ... to here.
5836         * modules/fnmatch-gnu (configure.ac): ... and here.
5837
5838 2011-05-07  Bruno Haible  <bruno@clisp.org>
5839
5840         flock: Move AC_LIBOBJ invocations to module description.
5841         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5842         invocations from here...
5843         * modules/flock (configure.ac): ... to here.
5844
5845 2011-05-07  Bruno Haible  <bruno@clisp.org>
5846
5847         fileblocks: Move AC_LIBOBJ invocations to module description.
5848         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5849         gl_PREREQ_FILEBLOCKS invocations from here...
5850         * modules/fileblocks (configure.ac): ... to here.
5851
5852 2011-05-06  Bruno Haible  <bruno@clisp.org>
5853
5854         fflush: Move AC_LIBOBJ invocations to module description.
5855         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5856         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5857         invocations from here...
5858         * modules/fflush (configure.ac): ... to here.
5859
5860 2011-05-06  Bruno Haible  <bruno@clisp.org>
5861
5862         fdopendir: Move AC_LIBOBJ invocations to module description.
5863         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5864         here...
5865         * modules/fdopendir (configure.ac): ... to here.
5866         (Depends-on): Improve conditions.
5867
5868 2011-05-06  Bruno Haible  <bruno@clisp.org>
5869
5870         _Exit: Move AC_LIBOBJ invocations to module description.
5871         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5872         invocations from here...
5873         * modules/_Exit (configure.ac): ... to here.
5874
5875 2011-05-21  Bruno Haible  <bruno@clisp.org>
5876
5877         euidaccess: Respect rules for use of AC_LIBOBJ.
5878         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5880         from here...
5881         * modules/euidaccess (configure.ac): ... to here.
5882
5883 2011-05-06  Bruno Haible  <bruno@clisp.org>
5884
5885         error: Move AC_LIBOBJ invocations to module description.
5886         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5887         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5888         invocations from here...
5889         * modules/error (configure.ac): ... to here.
5890
5891 2011-05-06  Bruno Haible  <bruno@clisp.org>
5892
5893         duplocale: Move AC_LIBOBJ invocations to module description.
5894         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5895         gl_PREREQ_DUPLOCALE invocations from here...
5896         * modules/duplocale (configure.ac): ... to here.
5897
5898 2011-05-05  Bruno Haible  <bruno@clisp.org>
5899
5900         dirfd: Move AC_LIBOBJ invocations to module description.
5901         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5902         gl_FUNC_DIRFD.
5903         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5904         here...
5905         * modules/dirfd (configure.ac): ... to here.
5906         (Depends-on): Fix condition.
5907
5908 2011-05-05  Bruno Haible  <bruno@clisp.org>
5909
5910         chown: Respect rules for use of AC_LIBOBJ.
5911         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5912         * modules/chown (configure.ac): ... to here.
5913
5914 2011-05-05  Bruno Haible  <bruno@clisp.org>
5915
5916         chdir-long: Move AC_LIBOBJ invocations to module description.
5917         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5918         gl_PREREQ_CHDIR_LONG invocations from here...
5919         * modules/chdir-long (configure.ac): ... to here.
5920
5921 2011-05-05  Bruno Haible  <bruno@clisp.org>
5922
5923         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5924         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5925         from here...
5926         * modules/canonicalize-lgpl (configure.ac): ... to here.
5927
5928 2011-05-05  Bruno Haible  <bruno@clisp.org>
5929
5930         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5931         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5932         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5933         REPLACE_CALLOC.
5934         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5935         * modules/calloc-gnu (configure.ac): Likewise.
5936
5937 2011-05-05  Bruno Haible  <bruno@clisp.org>
5938
5939         btowc: Move AC_LIBOBJ invocations to module description.
5940         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5941         invocations from here...
5942         * modules/btowc (configure.ac): ... to here.
5943
5944 2011-05-21  Bruno Haible  <bruno@clisp.org>
5945
5946         atexit: Move AC_LIBOBJ invocations to module description.
5947         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5949         here...
5950         * modules/atexit (configure.ac): ... to here.
5951
5952 2011-05-05  Bruno Haible  <bruno@clisp.org>
5953
5954         atoll: Move AC_LIBOBJ invocations to module description.
5955         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5956         invocations from here...
5957         * modules/atoll (configure.ac): ... to here.
5958
5959 2011-05-05  Bruno Haible  <bruno@clisp.org>
5960
5961         argz: Move AC_LIBOBJ invocations to module description.
5962         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5963         * modules/argz (configure.ac): ... to here.
5964
5965 2011-05-05  Bruno Haible  <bruno@clisp.org>
5966
5967         alphasort: Move AC_LIBOBJ invocations to module description.
5968         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5969         gl_PREREQ_ALPHASORT invocations from here...
5970         * modules/alphasort (configure.ac): ... to here.
5971
5972 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5973
5974         verify: new macro verify_expr; verify_true deprecated
5975         * NEWS: Mention this.
5976         * doc/verify.texi (Compile-time Assertions): Document this.
5977         * lib/verify.h (verify_true): Deprecate.
5978         (verify_expr): New macro.
5979         * tests/test-verify.c (function): Test verify_expr.
5980
5981 2011-06-14  Jim Meyering  <meyering@redhat.com>
5982
5983         init.sh: give more portable redirection-related advice in a comment
5984         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5985         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5986         for lots of discussion.  Stefano Lattarini suggested the solution
5987         of putting "9>&2" after the command.  Reported by Bruno Haible.
5988
5989 2011-06-13  Bruno Haible  <bruno@clisp.org>
5990
5991         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5993         'none'.
5994
5995 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5996
5997         ftoastr: use strtof only if HAVE_STRTOF
5998         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6000         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6001         * modules/ftoastr (configure.ac): Check for strtof.
6002
6003 2011-06-13  Bruno Haible  <bruno@clisp.org>
6004
6005         gnulib-tool: Addendum to 2011-06-08 commit.
6006         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6007         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6008
6009 2011-06-13  Bruno Haible  <bruno@clisp.org>
6010
6011         fseeko: Provide a non-inline replacement of fseek().
6012         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6013         * modules/fseeko (Depends-on): Add fseek.
6014         * modules/fseek (License): Change to LGPLv2+.
6015
6016 2011-06-13  Bruno Haible  <bruno@clisp.org>
6017
6018         ftello: Provide a non-inline replacement of ftell().
6019         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6020         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6021         not have ftello() (such as on mingw).
6022         * modules/ftello (Depends-on): Add ftell.
6023         * modules/ftell (License): Change to LGPLv2+.
6024
6025 2011-05-07  Bruno Haible  <bruno@clisp.org>
6026
6027         ftell: Move AC_LIBOBJ invocations to module description.
6028         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6029         * modules/ftell (configure.ac): ... to here.
6030
6031 2011-05-07  Bruno Haible  <bruno@clisp.org>
6032
6033         ftello: Respect rules for use of AC_LIBOBJ.
6034         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6035         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6036         here...
6037         * modules/ftello (configure.ac): ... to here.
6038
6039 2011-05-07  Bruno Haible  <bruno@clisp.org>
6040
6041         fseeko: Simplify.
6042         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6043         (gl_FUNC_FSEEKO): Inline it here.
6044
6045 2011-05-07  Bruno Haible  <bruno@clisp.org>
6046
6047         fseek: Move AC_LIBOBJ invocations to module description.
6048         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6049         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6050         * modules/fseek (configure.ac): ... to here.
6051
6052 2011-05-07  Bruno Haible  <bruno@clisp.org>
6053
6054         fseek: Respect rules for use of AC_LIBOBJ.
6055         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6056         here...
6057         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6058
6059 2011-05-07  Bruno Haible  <bruno@clisp.org>
6060
6061         fseeko: Respect rules for use of AC_LIBOBJ.
6062         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6063         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6064         here...
6065         * modules/fseeko (configure.ac): ... to here.
6066
6067 2011-06-13  Bruno Haible  <bruno@clisp.org>
6068
6069         gnulib-tool: Allow comments in the 'Depends-on' section.
6070         * doc/gnulib.texi (Module description): Mention comment syntax in the
6071         Depends-on section.
6072         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6073
6074 2011-06-13  Bruno Haible  <bruno@clisp.org>
6075
6076         file-set.h: guard __attibute__ use, now that it's not always defined
6077         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6078         versions that support it.  This fixes a coreutils build failure with
6079         the vendor cc on HP-UX 11.31.
6080
6081 2011-06-12  Bruno Haible  <bruno@clisp.org>
6082
6083         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6084         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6085         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6086         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6087         (acl, aclsort): New declarations.
6088         (aclv_nontrivial): New declaration.
6089         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6090         (file_has_acl): Read also the second kind of HP-UX ACLs.
6091         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6092         kind of HP-UX ACLs if the first kind fails.
6093         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6094         second kind of HP-UX ACLs.
6095         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6096         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6097         agree.
6098         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6099         hpuxjfs.
6100         Handle hpuxjfs.
6101         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6102         hpuxjfs.
6103         Handle hpuxjfs.
6104         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6105         (func_test_same_acls): Use both lsacl and getacl.
6106         Handle hpuxjfs.
6107         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6108         (func_test_same_acls): Use both lsacl and getacl.
6109         Handle hpuxjfs.
6110
6111 2011-06-12  Bruno Haible  <bruno@clisp.org>
6112
6113         acl: Complete the 2010-08-10 fix.
6114         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6115         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6116         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6117         explicitly.
6118         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6119         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6120
6121 2011-06-12  Bruno Haible  <bruno@clisp.org>
6122
6123         spawn-pipe tests: Comments.
6124         * tests/test-spawn-pipe-child.c (main): Update comment.
6125         Reported by James Youngman <jay@gnu.org>.
6126
6127 2011-06-11  James Youngman  <jay@gnu.org>
6128
6129         New module 'stat-size'.
6130         * modules/stat-size: New module.  Provides macros for accessing
6131         file size information in instances of struct stat.  Depends on the
6132         fileblocks module because it calls st_blocks.
6133         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6134         * doc/gnulib.texi: Include stat-size.texi.
6135         * doc/stat-size.texi: Documentation for this module.
6136         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6137         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6138         AC_STRUCT_ST_BLOCKS.
6139
6140 2011-06-09  Bruno Haible  <bruno@clisp.org>
6141
6142         thread: Support pthreads-win32.
6143         * lib/glthread/thread.h (gl_thread_self): Define differently on
6144         pthreads-win32.
6145         (gl_null_thread): New declaration.
6146         (gl_thread_self_pointer): New macro.
6147         * lib/glthread/thread.c (gl_null_thread): New constant.
6148         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6149         gl_thread_self.
6150         * tests/test-tls.c: Likewise.
6151         Suggested by Paul Eggert. Reported by Eric Blake.
6152
6153 2011-06-09  Bruno Haible  <bruno@clisp.org>
6154
6155         thread: Fix confusion between NULL and 0.
6156         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6157         Reported by Paul Eggert.
6158
6159 2011-06-09  Bruno Haible  <bruno@clisp.org>
6160
6161         spawn-pipe tests: Avoid test failure on HP-UX 11.
6162         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6163         is closed.
6164
6165 2011-06-09  Bruno Haible  <bruno@clisp.org>
6166
6167         acl tests: Fix compilation error on HP-UX 11.
6168         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6169
6170 2011-06-09  Bruno Haible  <bruno@clisp.org>
6171
6172         rmdir: Avoid test failure on HP-UX 10.20.
6173         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6174         EEXIST.
6175
6176 2011-06-08  Eric Blake  <eblake@redhat.com>
6177
6178         perror: fix test on mingw
6179         * modules/perror-tests (Depends-on): Add dup2.
6180
6181         strerror_r-posix: fix on MacOS
6182         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6183         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6184         logic bug.
6185         * lib/strerror_r.c (strerror_r): Fix the bug.
6186         * lib/strerror.c (strerror): Likewise.
6187         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6188         problem.
6189         * doc/posix-functions/strerror.texi (strerror): Likewise.
6190         * doc/posix-functions/perror.texi (perror): Likewise.
6191         * tests/test-strerror.c (main): Enhance test.
6192         * tests/test-strerror_r.c (main): Likewise.
6193
6194 2011-06-08  Bruno Haible  <bruno@clisp.org>
6195
6196         gnulib-tool: Better isolation between different gnulib-tool invocations.
6197         * gnulib-tool: New option --witness-c-macro.
6198         (witness_c_macro): New variable.
6199         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6200         AM_CPPFLAGS define it as a C macro.
6201         (func_emit_tests_Makefile_am): Likewise.
6202         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6203         read it from there.
6204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6205         m4_define, not AC_DEFUN.
6206         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6207         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6208         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6209         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6210         s|...|...|, to substitute the values of the GNULIB_* module indicator
6211         variables.
6212         * modules/dirent (Makefile.am): Likewise.
6213         * modules/fcntl-h (Makefile.am): Likewise.
6214         * modules/iconv-h (Makefile.am): Likewise.
6215         * modules/langinfo (Makefile.am): Likewise.
6216         * modules/locale (Makefile.am): Likewise.
6217         * modules/math (Makefile.am): Likewise.
6218         * modules/netdb (Makefile.am): Likewise.
6219         * modules/poll-h (Makefile.am): Likewise.
6220         * modules/pty (Makefile.am): Likewise.
6221         * modules/search (Makefile.am): Likewise.
6222         * modules/signal (Makefile.am): Likewise.
6223         * modules/spawn (Makefile.am): Likewise.
6224         * modules/stdio (Makefile.am): Likewise.
6225         * modules/stdlib (Makefile.am): Likewise.
6226         * modules/string (Makefile.am): Likewise.
6227         * modules/sys_ioctl (Makefile.am): Likewise.
6228         * modules/sys_select (Makefile.am): Likewise.
6229         * modules/sys_socket (Makefile.am): Likewise.
6230         * modules/sys_stat (Makefile.am): Likewise.
6231         * modules/sys_times (Makefile.am): Likewise.
6232         * modules/sys_utsname (Makefile.am): Likewise.
6233         * modules/sys_wait (Makefile.am): Likewise.
6234         * modules/termios (Makefile.am): Likewise.
6235         * modules/time (Makefile.am): Likewise.
6236         * modules/unistd (Makefile.am): Likewise.
6237         * modules/wchar (Makefile.am): Likewise.
6238
6239 2011-06-08  Eric Blake  <eblake@redhat.com>
6240
6241         strerror: simplify replacement
6242         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6243         * modules/strerror (configure.ac): No prereqs needed here...
6244         * modules/strerror-override (configure.ac): ...but this needs it.
6245         (Files): Add file for needed prereq macro.
6246
6247 2011-06-08  Bruno Haible  <bruno@clisp.org>
6248
6249         strerror_r-posix: Tweaks.
6250         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6251         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6253         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6254         (gl_FUNC_STRERROR_R): ... to here.
6255         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6256
6257 2011-06-07  Eric Blake  <eblake@redhat.com>
6258
6259         perror: document fixed bugs
6260         * doc/posix-functions/perror.texi (perror): Document recent
6261         patches.
6262
6263 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6264
6265         stat-time: get_stat_birthtime failure is better-defined
6266         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6267         return a timestamp whose tv_sec and tv_nsec values are both -1.
6268         Previously, the spec said only that the tv_nsec value was negative.
6269         This upward-compatible change simplifies GNU tar a bit.
6270
6271 2011-06-07  Eric Blake  <eblake@redhat.com>
6272
6273         strerror_r-posix: work around cygwin 1.7.9
6274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6275         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6276         bug without replacing strerror_r.
6277         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6278         strerror_r is buggy, but without requiring strerror_r compilation.
6279         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6280
6281         test-perror: relax test to ignore cygwin bug
6282         * tests/test-perror2.c (main): Relax test on requiring detection
6283         of stream errors, and use unbuffered stream.
6284         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6285         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6286         * doc/posix-functions/fputc.texi (fputc): Likewise.
6287         * doc/posix-functions/fputs.texi (fputs): Likewise.
6288         * doc/posix-functions/fputws.texi (fputws): Likewise.
6289         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6290         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6291         * doc/posix-functions/getopt.texi (getopt): Likewise.
6292         * doc/posix-functions/perror.texi (perror): Likewise.
6293         * doc/posix-functions/printf.texi (printf): Likewise.
6294         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6295         * doc/posix-functions/psignal.texi (psignal): Likewise.
6296         * doc/posix-functions/putc.texi (putc): Likewise.
6297         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6298         Likewise.
6299         * doc/posix-functions/putchar.texi (putchar): Likewise.
6300         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6301         Likewise.
6302         * doc/posix-functions/puts.texi (puts): Likewise.
6303         * doc/posix-functions/putwc.texi (putwc): Likewise.
6304         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6305         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6306         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6307         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6308         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6309         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6310         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6311         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6312
6313 2011-05-22  Bruno Haible  <bruno@clisp.org>
6314
6315         strerror: Move AC_LIBOBJ invocations to module description.
6316         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6317         gl_PREREQ_STRERROR invocations from here...
6318         * modules/strerror (configure.ac): ... to here.
6319
6320 2011-05-21  Bruno Haible  <bruno@clisp.org>
6321
6322         perror: Use common idiom.
6323         * modules/perror (configure.ac): Reorder statements.
6324
6325 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6326
6327         tests: fix usage message in 'mktempd_'
6328         * tests/init.sh (mktempd_): In the usage message, use literal
6329         'mktempd_', not '$ME' (which is even undefined), as the name of
6330         the subroutine.
6331
6332 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6333
6334         tests init: new function 'fatal_', for hard errors
6335         Before this patch, the only way offered by tests/init.sh to
6336         properly signal a hard error was the `framework_failure_'
6337         function.  But the error message issued by that function,
6338         as its name would suggest, refers to a set-up failure in the
6339         testsuite, while hard errors can obviously also be due to
6340         other reasons.  The best way to fix this inconsistency is to
6341         introduce a new function with a more general error message.
6342         * tests/init.sh (fatal_): New function.
6343
6344 2011-06-06  Eric Blake  <eblake@redhat.com>
6345
6346         canonicalize-lgpl: use common idiom
6347         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6348         over newer POSIX -Rf.
6349         Reported by Bruno Haible.
6350
6351         canonicalize-lgpl: work around AIX realpath bug
6352         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6353         * doc/posix-functions/realpath.texi (realpath): Document it.
6354         Reported by Bruno Haible.
6355
6356         strerror: work around FreeBSD bug
6357         * lib/strerror.c (strerror): Special case 0.
6358         Reported by Bruno Haible.
6359
6360         strerror-override: avoid bloating errno module
6361         * modules/errno (Files, configure.ac): Move replacement strings...
6362         * modules/strerror-override: ...to new module.
6363         * modules/strerror (Depends-on): Add strerror-override.
6364         * modules/strerror_r-posix (Depends-on): Likewise.
6365         * MODULES.html.sh: Document new module.
6366         Reported by Bruno Haible.
6367
6368 2011-06-06  Bruno Haible  <bruno@clisp.org>
6369
6370         spawn-pipe tests: Rename program.
6371         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6372         * tests/test-spawn-pipe-child.c: Update comment.
6373         * tests/test-spawn-pipe.sh: Update.
6374         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6375
6376         spawn-pipe tests: Link the child program only against libc.
6377         * tests/test-spawn-pipe-child.c: New file, extracted from
6378         tests/test-spawn-pipe.c.
6379         (main): Expect only one argument.
6380         (is_open): New function, copied from tests/test-pipe.c.
6381         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6382         (child_main): Remove function.
6383         (test_pipe): Pass only one argument to the child program.
6384         (main): Remove child process code. Expect the child program's name as
6385         first argument.
6386         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6387         argument.
6388         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6389         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6390         test-spawn-pipe-child against no libraries.
6391
6392 2011-06-06  Bruno Haible  <bruno@clisp.org>
6393
6394         careadlinkat: Avoid mismatch between ssize_t and int.
6395         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6396         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6397
6398 2011-06-06  Jim Meyering  <meyering@redhat.com>
6399
6400         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6401         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6402         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6403
6404 2011-06-05  Bruno Haible  <bruno@clisp.org>
6405
6406         ansi-c++-opt: Interoperability with libtool.
6407         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6408         set the variable to "no", not to ":".
6409         * NEWS: Mention the change.
6410
6411 2011-06-05  Bruno Haible  <bruno@clisp.org>
6412
6413         acl: Fix test failure on AIX 7.
6414         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6415         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6416
6417 2011-06-05  Bruno Haible  <bruno@clisp.org>
6418
6419         pipe-filter-ii: Fix test failure on AIX and IRIX.
6420         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6421         with EAGAIN, retry with a smaller buffer size.
6422
6423 2011-06-05  Bruno Haible  <bruno@clisp.org>
6424
6425         localename: Fix link dependencies.
6426         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6427         * modules/localename-tests (Makefile.am): Link test-localename with
6428         $(LIBTHREAD).
6429
6430 2011-06-05  Bruno Haible  <bruno@clisp.org>
6431
6432         error: Avoid gcc warning.
6433         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6434
6435 2011-06-05  Bruno Haible  <bruno@clisp.org>
6436
6437         unsetenv: Avoid gcc warning.
6438         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6439
6440 2011-06-05  Bruno Haible  <bruno@clisp.org>
6441
6442         setenv: Avoid gcc warning.
6443         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6444
6445 2011-06-05  Bruno Haible  <bruno@clisp.org>
6446
6447         sys_select: Ensure memset is declared also on AIX 7.
6448         * lib/sys_select.in.h: Include <string.h> also on AIX.
6449         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6450         self-contained also on AIX 7.1.
6451
6452 2011-06-04  Jim Meyering  <meyering@redhat.com>
6453
6454         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6455         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6456         function name, "error".
6457         (_gl_translatable_diag_func_re): New configurable variable.
6458
6459 2011-06-04  Bruno Haible  <bruno@clisp.org>
6460
6461         getopt: Avoid gcc warning.
6462         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6463
6464 2011-06-04  Bruno Haible  <bruno@clisp.org>
6465
6466         strerror_r: Fix comments.
6467         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6468         commit.
6469
6470 2011-06-04  Bruno Haible  <bruno@clisp.org>
6471
6472         perror: Fix compilation error.
6473         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6474         Undefine fprintf, not sprintf.
6475         * modules/perror (Depends-on): Remove intprops, verify.
6476
6477 2011-06-04  Bruno Haible  <bruno@clisp.org>
6478
6479         setlocale: Enable replacement on Cygwin 1.5.
6480         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6481         Cygwin 1.5.x.
6482         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6483         LC_CTYPE category also exists on Cygwin 1.5.x.
6484
6485 2011-06-04  Bruno Haible  <bruno@clisp.org>
6486
6487         strerror-override: Don't disable symbol renamings.
6488         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6489         * lib/strerror-override.c: Include config.h.
6490         (strerror_override): Don't undefine.
6491
6492 2011-06-03  Bruno Haible  <bruno@clisp.org>
6493
6494         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6495         * lib/localename.h: Update copyright header.
6496         * lib/localename.c: Likewise.
6497         * lib/relocatable.h: Likewise.
6498         * lib/relocatable.c: Likewise.
6499
6500 2011-06-02  Bruno Haible  <bruno@clisp.org>
6501
6502         doc: Fix a module name.
6503         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6504
6505 2011-06-02  Bruno Haible  <bruno@clisp.org>
6506
6507         pipe2: Remove dependency on 'nonblocking' module.
6508         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6509         O_NONBLOCK is defined by gnulib.
6510         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6511         is zero.
6512         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6513         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6514         defined by gnulib.
6515         (get_nonblocking_flag): New function.
6516         (main): Test O_NONBLOCK flag only if it is nonzero.
6517         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6518
6519 2011-06-03  Jim Meyering  <meyering@redhat.com>
6520
6521         maint: three new prohibit-header-without-use rules
6522         Prohibit use of cloexec.h, posixver.h, same.h without use.
6523         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6524         (sc_prohibit_posixver_without_use): Likewise.
6525         (sc_prohibit_same_without_use): Likewise.
6526
6527 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6528
6529         allocator: 'die' routine is now given requested size
6530         * lib/allocator.h (struct allocator.die): New size arg.
6531         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6532         If the actual problem is an ssize_t limitation, not a size_t or
6533         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6534
6535 2011-06-01  Eric Blake  <eblake@redhat.com>
6536
6537         strerror: drop strerror_r dependency
6538         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6539         * lib/strerror-override.c (strerror_override): ...to new file.
6540         * lib/strerror-override.h: Add prototype.
6541         * lib/strerror-impl.h: Delete.
6542         * lib/strerror.c (strerror): New implementation.
6543         * modules/errno (Files): Add new files.
6544         (configure.ac): Compile new file as appropriate.
6545         * modules/strerror (Files): Drop unused file.
6546         (Depends-on): Drop strerror_r-posix.
6547         * MODULES.html.sh: Document strerror_r-posix.
6548         Requested by Sam Steingold.
6549
6550         perror: call strerror_r directly
6551         * modules/perror (Files): Drop strerror-impl.h.
6552         * lib/perror.c (perror): Use our own stack buffer, rather than
6553         calling a wrapper that uses static storage.
6554         * doc/posix-functions/perror.texi (perror): Document a limitation
6555         of our replacement.
6556
6557         strerror_r: fix includes for FreeBSD
6558         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6559         since we use abort on some platforms.
6560         Reported by Matthias Bolte.
6561
6562 2011-05-31  Bruno Haible  <bruno@clisp.org>
6563
6564         Fix link errors in tests: openat-die uses gettext-h.
6565         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6566         against $(LIBINTL).
6567         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6568         against $(LIBINTL).
6569         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6570         $(LIBINTL).
6571         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6572         against $(LIBINTL).
6573         * modules/linkat-tests (Makefile.am): Link test-linkat against
6574         $(LIBINTL).
6575         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6576         $(LIBINTL).
6577         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6578         against $(LIBINTL).
6579         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6580         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6581         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6582         $(LIBINTL).
6583         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6584         $(LIBINTL).
6585         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6586         $(LIBINTL).
6587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6588
6589 2011-05-31  Bruno Haible  <bruno@clisp.org>
6590
6591         Fix link errors in tests: wait-process uses gettext-h.
6592         * modules/nonblocking-pipe-tests (Makefile.am): Set
6593         test_nonblocking_pipe_main_LDADD.
6594         * modules/nonblocking-socket-tests (Makefile.am): Link
6595         test-nonblocking-socket-main against $(LIBINTL).
6596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6597
6598 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6599
6600         assert-h: work around 'verify' incompatibility
6601         * lib/verify.h: Use @...@ directives, not ifdef.
6602         * modules/assert-h (assert.h): Implement the directives.
6603         (assert.h): Substitute the symbol-prefix more consistently.
6604
6605 2011-05-29  Jim Meyering  <meyering@redhat.com>
6606
6607         trim: remove three superfluous assignments
6608         * lib/trim.c (trim2): Remove three superfluous assignments
6609         and correct brace positioning.
6610
6611 2011-05-29  Bruno Haible  <bruno@clisp.org>
6612
6613         wctype-h: Avoid namespace pollution on Solaris 2.6.
6614         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6615         identifiers.
6616         * doc/posix-headers/wctype.texi: Mention the problem.
6617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6618
6619 2011-05-28  Jim Meyering  <meyering@redhat.com>
6620
6621         parse-datetime.y: accommodate -Wstrict-overflow
6622         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6623         placate -Wstrict-overflow.
6624
6625         trim: avoid a warning from -O2 -Wstrict-overflow
6626         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6627
6628 2011-05-29  Bruno Haible  <bruno@clisp.org>
6629
6630         gnulib-tool: Fix bug in yesterday's commit.
6631         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6632         twice.
6633
6634 2011-05-29  Bruno Haible  <bruno@clisp.org>
6635
6636         Allow multiple gnulib generated include files to be combined.
6637         * gnulib-tool (func_compute_include_guard_prefix): New function.
6638         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6639         ${gl_include_guard_prefix} references.
6640         (func_import, func_create_testdir): Invoke
6641         func_compute_include_guard_prefix.
6642         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6643         * lib/ctype.in.h: Likewise.
6644         * lib/dirent.in.h: Likewise.
6645         * lib/errno.in.h: Likewise.
6646         * lib/fcntl.in.h: Likewise.
6647         * lib/float.in.h: Likewise.
6648         * lib/getopt.in.h: Likewise.
6649         * lib/iconv.in.h: Likewise.
6650         * lib/langinfo.in.h: Likewise.
6651         * lib/locale.in.h: Likewise.
6652         * lib/math.in.h: Likewise.
6653         * lib/netdb.in.h: Likewise.
6654         * lib/netinet_in.in.h: Likewise.
6655         * lib/poll.in.h: Likewise.
6656         * lib/pthread.in.h: Likewise.
6657         * lib/pty.in.h: Likewise.
6658         * lib/sched.in.h: Likewise.
6659         * lib/se-selinux.in.h: Likewise.
6660         * lib/search.in.h: Likewise.
6661         * lib/signal.in.h: Likewise.
6662         * lib/spawn.in.h: Likewise.
6663         * lib/stdarg.in.h: Likewise.
6664         * lib/stddef.in.h: Likewise.
6665         * lib/stdint.in.h: Likewise.
6666         * lib/stdio.in.h: Likewise.
6667         * lib/stdlib.in.h: Likewise.
6668         * lib/string.in.h: Likewise.
6669         * lib/strings.in.h: Likewise.
6670         * lib/sys_file.in.h: Likewise.
6671         * lib/sys_ioctl.in.h: Likewise.
6672         * lib/sys_select.in.h: Likewise.
6673         * lib/sys_socket.in.h: Likewise.
6674         * lib/sys_stat.in.h: Likewise.
6675         * lib/sys_time.in.h: Likewise.
6676         * lib/sys_times.in.h: Likewise.
6677         * lib/sys_uio.in.h: Likewise.
6678         * lib/sys_utsname.in.h: Likewise.
6679         * lib/sys_wait.in.h: Likewise.
6680         * lib/sysexits.in.h: Likewise.
6681         * lib/termios.in.h: Likewise.
6682         * lib/time.in.h: Likewise.
6683         * lib/unistd.in.h: Likewise.
6684         * lib/wchar.in.h: Likewise.
6685         * lib/wctype.in.h: Likewise.
6686         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6687         * modules/ctype (Makefile.am): Likewise.
6688         * modules/dirent (Makefile.am): Likewise.
6689         * modules/errno (Makefile.am): Likewise.
6690         * modules/fcntl-h (Makefile.am): Likewise.
6691         * modules/float (Makefile.am): Likewise.
6692         * modules/getopt-posix (Makefile.am): Likewise.
6693         * modules/iconv-h (Makefile.am): Likewise.
6694         * modules/langinfo (Makefile.am): Likewise.
6695         * modules/locale (Makefile.am): Likewise.
6696         * modules/math (Makefile.am): Likewise.
6697         * modules/netdb (Makefile.am): Likewise.
6698         * modules/netinet_in (Makefile.am): Likewise.
6699         * modules/poll-h (Makefile.am): Likewise.
6700         * modules/pthread (Makefile.am): Likewise.
6701         * modules/pty (Makefile.am): Likewise.
6702         * modules/sched (Makefile.am): Likewise.
6703         * modules/search (Makefile.am): Likewise.
6704         * modules/selinux-h (Makefile.am): Likewise.
6705         * modules/signal (Makefile.am): Likewise.
6706         * modules/spawn (Makefile.am): Likewise.
6707         * modules/stdarg (Makefile.am): Likewise.
6708         * modules/stddef (Makefile.am): Likewise.
6709         * modules/stdint (Makefile.am): Likewise.
6710         * modules/stdio (Makefile.am): Likewise.
6711         * modules/stdlib (Makefile.am): Likewise.
6712         * modules/string (Makefile.am): Likewise.
6713         * modules/strings (Makefile.am): Likewise.
6714         * modules/sys_file (Makefile.am): Likewise.
6715         * modules/sys_ioctl (Makefile.am): Likewise.
6716         * modules/sys_select (Makefile.am): Likewise.
6717         * modules/sys_socket (Makefile.am): Likewise.
6718         * modules/sys_stat (Makefile.am): Likewise.
6719         * modules/sys_time (Makefile.am): Likewise.
6720         * modules/sys_times (Makefile.am): Likewise.
6721         * modules/sys_uio (Makefile.am): Likewise.
6722         * modules/sys_utsname (Makefile.am): Likewise.
6723         * modules/sys_wait (Makefile.am): Likewise.
6724         * modules/sysexits (Makefile.am): Likewise.
6725         * modules/termios (Makefile.am): Likewise.
6726         * modules/time (Makefile.am): Likewise.
6727         * modules/unistd (Makefile.am): Likewise.
6728         * modules/wchar (Makefile.am): Likewise.
6729         * modules/wctype-h (Makefile.am): Likewise.
6730         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6731
6732 2011-05-29  Bruno Haible  <bruno@clisp.org>
6733
6734         assert-h: Allow multiple gnulib generated replacements to coexist.
6735         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6736
6737 2011-05-29  Bruno Haible  <bruno@clisp.org>
6738
6739         argp: Allow coexistence with strerror_r-posix module.
6740         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6741         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6742         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6743         not the glibc signature.
6744
6745 2011-05-28  Bruno Haible  <bruno@clisp.org>
6746
6747         gnulib-tool: Alternative structure of testdirs, similar to --import.
6748         * gnulib-tool: New option --single-configure.
6749         (func_usage): Document it.
6750         (single_configure): New variable.
6751         (func_modules_transitive_closure_separately,
6752         func_modules_transitive_closure_separately,
6753         func_determine_use_libtests, func_modules_add_dummy_separately,
6754         func_modules_to_filelist_separately): New functions, extracted from
6755         func_import.
6756         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6757         (func_import): Use the new functions.
6758         (func_create_testdir): Set final_modules. Handle $single_configure =
6759         true case.
6760
6761 2011-05-28  Bruno Haible  <bruno@clisp.org>
6762
6763         getloadavg: Remove an unreliable safety check.
6764         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6765         getloadavg.c is in place.
6766         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6767         Reported by Sam Steingold <sds@gnu.org>.
6768
6769 2011-05-28  Bruno Haible  <bruno@clisp.org>
6770
6771         doc: Cleanup yet another file produced by texinfo.tex.
6772         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6773
6774 2011-05-28  Bruno Haible  <bruno@clisp.org>
6775
6776         Finish the conditional dependencies mechanism.
6777         * gnulib-tool: New option --no-conditional-dependencies.
6778         (func_usage): Document it. Don't mark --conditional-dependencies as
6779         experimental.
6780         (cond_dependencies): The possible values can now be true, false, empty.
6781         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6782         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6783         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6784
6785 2011-05-28  Bruno Haible  <bruno@clisp.org>
6786
6787         doc: Use a recent texinfo.tex.
6788         * doc/Makefile (tex_opts): New variable.
6789         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6790
6791 2011-05-28  Jim Meyering  <meyering@redhat.com>
6792
6793         intprops.h: adjust comment to match code change
6794         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6795         only once, it *may* have side effects.  Also fix an unrelated typo.
6796         (_GL_INT_SIGNED): Likewise.
6797
6798 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6799
6800         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6801
6802 2011-05-26  Bruno Haible  <bruno@clisp.org>
6803
6804         mbsrchr: Avoid collision with system function on Interix.
6805         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6806         Reported by Markus Duft <mduft@gentoo.org>.
6807
6808 2011-05-15  James Youngman  <jay@gnu.org>
6809
6810         getopt: for ambiguous options, enumerate the possibilities.
6811         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6812         the ambiguous options when an ambiguous prefix is given. This was
6813         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6814         glibc change was
6815         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6816
6817 2011-05-25  Eric Blake  <eblake@redhat.com>
6818
6819         getcwd: work around mingw bug
6820         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6821         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6822         Reported by Matthias Bolte.
6823
6824 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6825
6826         test-intprops: disable -Wtype-limits diagnostics
6827         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6828         diagnostics.  Otherwise, the integer overflow macros generate many
6829         diagnostics.  Reported by Jim Meyering in
6830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6831
6832         intprops: shorten, to pacify gcc -Woverlength-strings
6833         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6834         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6835         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6836         likely to run afoul of C compiler limits for string constant lengths.
6837         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6838
6839 2011-05-24  Eric Blake  <eblake@redhat.com>
6840
6841         docs: document recently fixed glibc printf bug
6842         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6843         * doc/posix-functions/printf.texi (printf): Likewise.
6844         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6845         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6846
6847         closein-tests: convert to init.sh
6848         * modules/closein-tests (Files): Add init.sh
6849         * tests/test-closein.sh Use it.
6850
6851         yesno-tests: convert to init.sh
6852         * modules/yesno-tests (Files): Add init.sh.
6853         * tests/test-yesno.sh: Use it.
6854
6855         atexit-tests: ensure reliable exit status
6856         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6857         Reported by Bruno Haible.
6858
6859 2011-05-24  Bruno Haible  <bruno@clisp.org>
6860
6861         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6862         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6863         gl_PREREQ_STRERROR_R invocations from here...
6864         * modules/strerror_r-posix (configure.ac): ... to here.
6865
6866 2011-05-24  Eric Blake  <eblake@redhat.com>
6867
6868         strerror_r: fix missing header
6869         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6870
6871         strerror_r: fix AIX test failures
6872         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6873         ERANGE failure.
6874
6875         strerror_r: fix Solaris test failures
6876         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6877         failures.
6878         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6879
6880         strerror_r: enforce POSIX recommendations
6881         * lib/strerror_r.c (safe_copy): New helper method.
6882         (strerror_r): Guarantee a non-empty string.
6883         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6884         recent POSIX rulings and to match our strerror guarantees.
6885         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6886
6887 2011-05-24  Jim Meyering  <meyering@redhat.com>
6888
6889         test-perror2.c: avoid warning about unused variable
6890         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6891
6892 2011-05-24  Eric Blake  <eblake@redhat.com>
6893
6894         perror: avoid spurious test failure on HP-UX
6895         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6896
6897         tests: fix logic bug in init.sh
6898         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6899         shell.
6900
6901 2011-05-24  Jim Meyering  <meyering@redhat.com>
6902
6903         utimensat: do not reference an out-of-scope buffer
6904         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6905         declared in an inner scope, yet "times" would be dereferenced outside
6906         the scope in which "ts" was valid.
6907         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6908         of ts[2] "out/up", so that the use of aliased "times" (via
6909         "times = ts;") does not end up referencing an out-of-scope "ts"
6910
6911         opendir-safer.c: don't clobber errno; don't close negative FD
6912         * lib/opendir-safer.c (opendir_safer):
6913         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6914         file descriptor, and more importantly, don't clobber the
6915         offending errno value with EINVAL.  Before, upon failure
6916         of dup_safer, we would pass the negative file descriptor to
6917         fdopendir, which would clobber errno.
6918
6919 2011-05-23  Bruno Haible  <bruno@clisp.org>
6920
6921         idcache: Fix module description.
6922         * modules/idcache (Include): Set to "idcache.h".
6923
6924 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6925
6926         gnulib-tool: fix portability problem with MacOS sed
6927         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6928         before the "}".  Problem reported by Leo in
6929         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6930         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6931         sed_extract_condition1, sed_extract_condition2.
6932
6933 2011-05-23  Bruno Haible  <bruno@clisp.org>
6934
6935         hash: Simplify autoconf macro.
6936         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6937
6938 2011-05-23  Bruno Haible  <bruno@clisp.org>
6939
6940         getugroups: Fix module description.
6941         * modules/getugroups (Include): Set to "getugroups.h".
6942
6943 2011-05-23  Bruno Haible  <bruno@clisp.org>
6944
6945         linkat: Simplify autoconf macro.
6946         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6947
6948 2011-05-23  Bruno Haible  <bruno@clisp.org>
6949             Eric Blake  <eblake@redhat.com>
6950
6951         linkat, renameat: Update dependencies.
6952         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6953         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6954         symlinkat.
6955
6956 2011-05-23  Jim Meyering  <meyering@redhat.com>
6957
6958         maint.mk: more tight_scope improvements
6959         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6960         (_gl_TS_headers): Define only in if-0'd block.
6961         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6962         sometimes we must *not* use it.  Adjust uses accordingly.
6963         (sc_tight_scope): Use much simpler grep-based test to determine
6964         whether we skip this rule.
6965
6966         maint.mk: generalize/improve the tight-scope rule
6967         * top/maint.mk: Emit a warning when the test is skipped.
6968         (_gl_TS_dir): Add $(srcdir)/ prefix.
6969         (_gl_TS_function_match): Simplify, rather than trying
6970         to enumerate common types.  Otherwise, it would fail to match an
6971         "extern unsigned char const *" declaration in idutils.
6972         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6973         a way to support use of that type of macro.
6974         (_gl_TS_var_match): Simplify regexp.
6975         (_gl_TS_obj_files): New configurable variable.
6976         (_gl_TS_headers): Likewise.
6977
6978 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6979
6980         verify: fix bug when gnulib <assert.h> is also included
6981         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6982         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6983         Perhaps there's a better way, but this fixes the immediate problem.
6984         Problem reported by Bruno Haible in
6985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6986
6987 2011-05-22  Bruno Haible  <bruno@clisp.org>
6988
6989         xgetcwd: Simplify autoconf macro.
6990         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6991
6992 2011-05-22  Bruno Haible  <bruno@clisp.org>
6993
6994         New module 'mktime-internal'.
6995         * modules/mktime-internal: New file.
6996         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6997         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6998         mktime_internal as a C macro if libc has __mktime_internal.
6999         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7000         conditions.
7001         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7002
7003 2011-05-22  Bruno Haible  <bruno@clisp.org>
7004
7005         timegm: Correct mktime replacement statements.
7006         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7007         defining mktime as a C macro. This completes a 2009-07-28 commit.
7008
7009 2011-05-22  Bruno Haible  <bruno@clisp.org>
7010
7011         timegm: Simplify autoconf macro.
7012         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7013
7014 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7015
7016         clock-time: change to LGPLv2+.
7017         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7018         BSD-like but we have no mark for that; this is good enough for now.
7019
7020 2011-05-21  Bruno Haible  <bruno@clisp.org>
7021
7022         strerror_r: Fix comments.
7023         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7024
7025 2011-05-21  Bruno Haible  <bruno@clisp.org>
7026
7027         relocatable-prog-wrapper: Fix possible link error.
7028         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7029         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7030         (gl_FUNC_SETENV): ... to here.
7031         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7032         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7033
7034 2011-05-21  Bruno Haible  <bruno@clisp.org>
7035
7036         relocatable-prog-wrapper: Assume strerror() exists.
7037         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7038         m4/strerror.m4.
7039         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7040         * lib/relocwrapper.c: Remove mention of strerror module.
7041         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7043         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7044         C macro.
7045
7046 2011-05-21  Bruno Haible  <bruno@clisp.org>
7047
7048         select: Simplify replacement idiom.
7049         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7050         Win32 platforms.
7051         * lib/sys_select.in.h (select): Simplify accordingly.
7052         * modules/select (Depends-on): Likewise.
7053
7054 2011-05-21  Bruno Haible  <bruno@clisp.org>
7055
7056         mkdir-p: Simplify autoconf macro.
7057         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7058         gl_FUNC_LCHOWN.
7059
7060 2011-05-21  Eric Blake  <eblake@redhat.com>
7061
7062         strerror_r: avoid clobbering strerror on cygwin
7063         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7064         fall back instead to sys_errlist.
7065         * modules/strerror (configure.ac): Add witness.
7066         * tests/test-strerror_r.c (main): Enhance test.
7067         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7068         * tests/test-perror2.c (main): Free memory before exit.
7069
7070 2011-05-21  Bruno Haible  <bruno@clisp.org>
7071
7072         mkdtemp: Use gnulib naming conventions.
7073         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7074         * modules/mkdtemp (configure.ac): Update.
7075
7076 2011-05-20  Eric Blake  <eblake@redhat.com>
7077
7078         strerror_r: avoid corrupting errno on Solaris
7079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7080         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7081
7082         strerror_r: avoid compiler warning
7083         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7084
7085         strerror_r: simplify AIX code
7086         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7087
7088         test-perror: avoid spurious failure on FreeBSD
7089         * modules/perror-tests (Depends-on): Add strerror, now that
7090         strerror_r no longer pulls it in.
7091
7092 2011-05-20  Bruno Haible  <bruno@clisp.org>
7093
7094         strerror_r-posix: Remove unused dependencies.
7095         * modules/strerror_r-posix (Depends-on): Remove strerror.
7096         Reported by Eric Blake.
7097
7098 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         intprops: remove assumption about A|B representation
7101         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7102         is a valid integer if both A and B are.  Although this is true for
7103         all known practical hosts, the C standard doesn't guarantee it,
7104         and the code need not assume it.  Also, this change may work around
7105         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7107
7108 2011-05-20  Eric Blake  <eblake@redhat.com>
7109
7110         perror: work around FreeBSD bug
7111         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7112         is broken.  Move AC_LIBOBJ...
7113         * modules/perror (configure.ac): Here.
7114         * doc/posix-functions/perror.texi (perror): Document this.
7115         * tests/test-perror2.c (main): Enhance test.
7116
7117         test-perror: check for strerror interactions
7118         * tests/macros.h (STREQ): Add macro.
7119         * modules/perror-tests (Files): Add second test.
7120         * tests/test-perror2.c (main): New file.
7121         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7122
7123         test-perror: rewrite to use init script
7124         * modules/perror-tests (Files): Add init.sh.
7125         * tests/test-perror.sh: Use temporary directory.
7126
7127 2011-05-20  Jim Meyering  <meyering@redhat.com>
7128
7129         maint: replace misused "a" with "an"
7130         * doc/intprops.texi: "a integer"
7131         * doc/regex.texi: "a explanation"
7132         * lib/alignof.h: "a object"
7133         * lib/argmatch.h: "a explanation"
7134         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7135         * lib/stdint.in.h: "a integer"
7136         * lib/userspec.c: "a owner"
7137         * doc/gnulib.texi: Fix "a idea", and reword.
7138
7139 2011-05-19  Jim Meyering  <meyering@redhat.com>
7140
7141         maint: correct misuse of "a" and "an"
7142         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7143         * lib/argp-help.c: "an docum...": s/an/a/
7144         * lib/argp-parse.c: "An vector": s/An/A/
7145         * lib/execute.c: "an native": s/an/a/
7146         * lib/spawn-pipe.c: Likewise.
7147         * lib/gc.h: "an Gc_rc": s/an/a/
7148         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7149         * lib/fts.c: "an stat.st_dev": s/an/a/
7150
7151 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         intprops-tests: work around HP-UX 11.23 cc bug with constants
7154         * tests/test-intprops.c (VERIFY): New macro.
7155         (main): Use it, instead of verify, to work around the compiler bug; see
7156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7157
7158         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7159         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7160         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7161         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7162         (_GL_REMAINDER_OVERFLOW): Use it.
7163
7164         intprops-tests: revert unsigned part of previous change
7165         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7166         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7167         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7169
7170 2011-05-19  Bruno Haible  <bruno@clisp.org>
7171
7172         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7173         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7174         strerror_r() returned without filling the buffer.
7175         Reported by Eric Blake.
7176
7177 2011-05-19  Eric Blake  <eblake@redhat.com>
7178
7179         strerror_r: guarantee unchanged errno
7180         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7181         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7182         failure.
7183         * tests/test-strerror_r.c (main): Enhance test.
7184
7185 2011-05-19  Bruno Haible  <bruno@clisp.org>
7186
7187         strerror_r: Reorder #if blocks.
7188         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7189         for consistency with the previous commit.
7190
7191 2011-05-19  Bruno Haible  <bruno@clisp.org>
7192
7193         perror: Avoid clobbering the strerror buffer when possible.
7194         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7195         * lib/strerror.c: Include it.
7196         * modules/strerror (Files): Add lib/strerror-impl.h.
7197         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7198         (my_strerror): New function, defined through lib/strerror-impl.h.
7199         (perror): Use it instead of strerror.
7200         * modules/perror (Files): Add lib/strerror-impl.h.
7201         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7202
7203 2011-05-19  Eric Blake  <eblake@redhat.com>
7204
7205         strerror_r: fix on newer cygwin
7206         * lib/strerror_r.c (strerror_r): Cygwin now has
7207         __xpg_strerror_r, use it.
7208
7209 2011-05-19  Bruno Haible  <bruno@clisp.org>
7210
7211         strerror_r: Avoid clobbering the strerror buffer when possible.
7212         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7213         (sys_nerr, sys_errlist): New declarations.
7214         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7215         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7216         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7217
7218 2011-05-19  Bruno Haible  <bruno@clisp.org>
7219
7220         strerror_r: Fix test failure on mingw.
7221         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7222         EXTEND_STRERROR_R.
7223         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7224         macros from errno.in.h instead.
7225
7226 2011-05-19  Eric Blake  <eblake@redhat.com>
7227
7228         strerror: relax test for Solaris
7229         * tests/test-strerror.c (main): Permit Solaris behavior.
7230         * tests/test-strerror_r.c (main): Likewise.
7231
7232         strerror: enforce POSIX ruling on strerror(0)
7233         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7234         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7235         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7236         * doc/posix-functions/strerror.texi (strerror): Document it.
7237         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7238         * tests/test-strerror.c (main): Strengthen test.
7239         * tests/test-strerror_r.c (main): Likewise.
7240
7241 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7242
7243         intprop-tests: port to older and more-pedantic compilers
7244         * modules/intprops-tests (Files): Add tests/macros.h.
7245         * tests/test-intprops.c: Include macros.h.
7246         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7247         it's no longer documented to expand to an integer constant expression.
7248         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7249         argument is floating point, as it's no longer documented to expand
7250         to an integer constant expression in that case.
7251         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7252         compiler bugs reported by Bruno Haible.  See
7253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7254         (U0, U1): New constants, to work around the same bugs.  Also,
7255         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7256
7257         intprops: work around C compiler bugs
7258         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7259         bug in Sun C 5.11 2010/08/13 and other compilers; see
7260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7261
7262         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7263         * doc/intprops.texi (Integer Type Determination): Fix
7264         documentation for TYPE_IS_INTEGER: it returns an constant
7265         expression, not an integer constant expression.  Fix doc for
7266         TYPE_SIGNED: it returns an integer constant expression only if its
7267         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7268         hardly worth documented that way....)
7269
7270 2011-05-18  Bruno Haible  <bruno@clisp.org>
7271
7272         strerror_r: Avoid clobbering the strerror buffer when possible.
7273         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7274         Handle gnulib defined errno values here. When strerror() returns NULL
7275         or an empty string, return EINVAL.
7276         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7277         gnulib defined errno values here.
7278         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7279
7280 2011-05-18  Eric Blake  <eblake@redhat.com>
7281
7282         fnmatch: avoid compiler warning
7283         * lib/fnmatch_loop.c (FCT): Use correct type.
7284         Reported by Matthias Bolte.
7285
7286 2011-05-13  Jim Meyering  <meyering@redhat.com>
7287
7288         maint.mk: three new prohibit_<HDR>_without_use rules
7289         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7290         (sc_prohibit_stdio-safer_without_use): Likewise.
7291         (sc_prohibit_xfreopen_without_use): Likewise.
7292
7293 2011-05-17  Jim Meyering  <meyering@redhat.com>
7294
7295         announce-gen: fail if the NEWS delta is empty
7296         If there's nothing noteworthy in NEWS, then either you forgot
7297         or you shouldn't be releasing.
7298         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7299
7300 2011-05-17  Pádraig Brady <P@draigBrady.com>
7301
7302         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7303         reserved symbols starting with double underscore from the check.
7304
7305 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7306
7307         intprops: add doc
7308         * doc/intprops.texi: New file, documenting intprops.
7309         * doc/gnulib.texi (Particular Modules): Include it.
7310
7311         verify: add doc to gnulib manual and fix example
7312         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7313         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7314         (Compile-time Assertions): Fix example so it can't overflow.
7315
7316 2011-05-17  Jim Meyering  <meyering@redhat.com>
7317
7318         warnings.m4: don't usurp save_CPPFLAGS variable name
7319         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7320
7321         doc: fix typo
7322         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7323
7324 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7325             Bruno Haible  <bruno@clisp.org>
7326
7327         doc: Tweak recent change.
7328         * README (Portability guidelines): Tweak new text.
7329         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7330         Interix 6.1.
7331
7332 2011-05-16  Eric Blake  <eblake@redhat.com>
7333
7334         inttypes: avoid autoconf warning
7335         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7336         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7337
7338 2011-05-16  Sam Steingold <sds@gnu.org>
7339         and Eric Blake  <eblake@redhat.com>
7340
7341         vc-list-files: accept multiple directory operands
7342         * build-aux/vc-list-files: Iterate over all remaining operands.
7343
7344 2011-05-16  Bruno Haible  <bruno@clisp.org>
7345
7346         Fix confusion regarding deprecated modules.
7347         * modules/calloc (Status, Notice): Mark module as deprecated, not
7348         obsolete.
7349         * modules/fnmatch-posix (Status, Notice): Likewise.
7350         * modules/getdate (Status, Notice): Likewise.
7351         * modules/getopt (Status, Notice): Likewise.
7352         * modules/malloc (Status, Notice): Likewise.
7353         * modules/pipe (Status, Notice): Likewise.
7354         * modules/realloc (Status, Notice): Likewise.
7355         * modules/rename-dest-slash (Status, Notice): Likewise.
7356         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7357         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7358         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7359         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7360         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7361
7362 2011-05-16  Bruno Haible  <bruno@clisp.org>
7363
7364         doc: List the target platforms.
7365         * doc/gnulib-intro.texi (Target Platforms): New section.
7366         * doc/gnulib.texi (Introduction): Update menu.
7367         * README (Portability guidelines): Refer to the new section. Update
7368         statement about oldest supported environment. Remove rationale why
7369         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7370         unportable C89 function.
7371         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7372         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7373
7374 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7375
7376         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7377
7378 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7379
7380         intprops-tests: new module
7381         * modules/intprops-tests, tests/test-intprops.c: New files.
7382
7383         intprops: add safe, portable integer overflow checking
7384         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7385         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7386         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7387         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7388         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7389         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7390         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7391         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7392         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7393         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7394         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7395
7396 2011-05-12  James Youngman  <jay@gnu.org>
7397
7398         Add a test for glibc's Bugzilla bug #12378.
7399         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7400         doesn't allow the literal matching of a lone "[" (which is
7401         required by POSIX).
7402         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7403
7404 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7405
7406         Sync glibc change fixing Bugzilla bug #12378.
7407         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7408         beginning and fall back to matching as normal character if the
7409         string ends before the matching ']' is found.  This is what POSIX
7410         requires.
7411
7412 2011-05-13  Eric Blake  <eblake@redhat.com>
7413
7414         getcwd-lgpl: relax test for FreeBSD
7415         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7416         issue.
7417         * tests/test-getcwd-lgpl.c (main): Relax test.
7418         Reported by Matthias Bolte.
7419
7420 2011-05-11  Eric Blake  <eblake@redhat.com>
7421
7422         test-fflush: silence compiler warning
7423         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7424
7425 2011-05-11  Bruno Haible  <bruno@clisp.org>
7426
7427         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7428         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7429         * modules/canonicalize (Depends-on): Add 'nocrash'.
7430         * modules/canonicalize-lgpl (Depends-on): Likewise.
7431         * doc/posix-functions/realpath.texi: Update platforms list.
7432         Reported by Ryan Schmidt <ryandesign@macports.org>.
7433
7434 2011-05-11  Bruno Haible  <bruno@clisp.org>
7435
7436         group-member: Declare function in <unistd.h>.
7437         * lib/unistd.in.h (group_member): New declaration.
7438         * lib/group-member.h: Remove file.
7439         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7440         * tests/test-unistd-c++.cc: Check signature of group_member.
7441         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7442         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7443         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7444         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7445         HAVE_GROUP_MEMBER.
7446         * modules/group-member (Files): Remove lib/group-member.h.
7447         (Depends-on): Add unistd. Specify conditions.
7448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7449         (Include): Change to <unistd.h>.
7450         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7451         HAVE_GROUP_MEMBER.
7452         * NEWS: Mention the change.
7453         * lib/euidaccess.c: Don't include group-member.h.
7454
7455 2011-05-11  Bruno Haible  <bruno@clisp.org>
7456
7457         group-member: Document module.
7458         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7459         module.
7460
7461 2011-05-11  Bruno Haible  <bruno@clisp.org>
7462
7463         fclose: Fix mistake earlier today.
7464         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7465
7466 2011-05-11  Eric Blake  <eblake@redhat.com>
7467
7468         fclose: preserve fflush errors
7469         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7470         Reported by Jim Meyering.
7471
7472         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7473         * build-aux/bootstrap (check_versions): When no specific version
7474         is required, merely check that the app produces an exit status
7475         that indicates its existence.
7476
7477         maint.mk: drop redundant check
7478         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7479         the same but better.
7480
7481 2011-05-11  Bruno Haible  <bruno@clisp.org>
7482
7483         fclose: Fix possible link error.
7484         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7485         unregister_shadow_fd. Improve comments.
7486         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7487         Eric Blake.
7488
7489 2011-05-11  Jim Meyering  <meyering@redhat.com>
7490
7491         maint.mk: improve "can not" detection and generalize rule name
7492         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7493         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7494         Use the same technique as in sc_prohibit_doubled_word, so that
7495         we recognize "can not" also when the words are separated by a newline.
7496         Suggested by Eric Blake.
7497         (perl_filename_lineno_text_): Define.  Factored out of...
7498         (prohibit_doubled_word_): ...here.  Use the new definition.
7499         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7500         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7501         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7502
7503 2011-05-10  Eric Blake  <eblake@redhat.com>
7504
7505         fclose: avoid double close race when possible
7506         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7507         all but WINDOWS_SOCKETS.
7508
7509 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7510
7511         openat: correct new comment
7512         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7513
7514 2011-05-10  Jim Meyering  <meyering@redhat.com>
7515
7516         openat: add comments
7517         * lib/openat-proc.c (openat_proc_name): Add comments,
7518         mostly from Eric Blake.
7519
7520 2011-05-09  Eric Blake  <eblake@redhat.com>
7521
7522         openat: reduce syscalls in first probe of /proc
7523         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7524         be a directory.  Simplify the probe for .. bugs.
7525         * modules/openat (Depends-on): Drop same-inode.
7526         Reported by Bastien ROUCARIES.
7527
7528 2011-05-09  Jim Meyering  <meyering@redhat.com>
7529
7530         maint.mk: change semantics/name of tight_scope variables
7531         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7532         Rename variables to align with semantics that make them more useful.
7533
7534         maint.mk: tweak new rule's name not to impinge
7535         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7536         (sc_tight_scope): Use new rule name rather than $@-0.
7537
7538         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7539         * top/maint.mk (sc_tight_scope): New rule.
7540         (sc_tight_scope-0): New rule, ifdef'd out.
7541         (_gl_TS_dir): Default.
7542         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7543         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7544
7545 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7546
7547         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7548         Haible <bruno@clisp.org>.
7549
7550 2011-05-08  Bruno Haible  <bruno@clisp.org>
7551
7552         Comments.
7553         * m4/isnanf.m4: Add comment.
7554         * m4/isnanl.m4: Likewise.
7555
7556 2011-05-08  Bruno Haible  <bruno@clisp.org>
7557
7558         glob: Remove obsolete macro.
7559         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7560
7561 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7562
7563         intprops: Sun C 5.11 supports __typeof__
7564         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7565         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7566         which is new.
7567         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7568
7569         intprops: switch to usual gnulib indenting and naming
7570         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7571         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7572
7573         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7574
7575 2011-05-08  Jim Meyering  <meyering@redhat.com>
7576
7577         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7578         * top/maint.mk (release-prep): Use make's --no-print-directory
7579         option when generating the announcement.  This eliminates the
7580         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7581         generated announcement template.
7582
7583 2011-05-08  Bruno Haible  <bruno@clisp.org>
7584
7585         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7586         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7587         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7588
7589 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7590
7591         ignore-value, verify: Omit include files from lib_SOURCES.
7592         * modules/ignore-value, modules/verify (Makefile.am):
7593         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7594         that leads Automake to duplicate use of am__objects_... variables
7595         in Makefile.in.  See
7596         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7597
7598 2011-05-07  Bruno Haible  <bruno@clisp.org>
7599
7600         fclose: Simplify autoconf macro.
7601         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7602         defined.
7603
7604 2011-05-07  Bruno Haible  <bruno@clisp.org>
7605
7606         canonicalize-lgpl: Fix autoconf macro ordering bug.
7607         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7608         gl_STDLIB_H_DEFAULTS.
7609
7610 2011-05-06  Eric Blake  <eblake@redhat.com>
7611
7612         maintainer-makefile: make sc_po_check easier to tune
7613         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7614         to probe for strings, such as an alternate location for gnulib.
7615
7616         fclose: guarantee behavior on seekable stdin
7617         * modules/fclose (Depends-on): Add fflush.
7618         * doc/posix-functions/fclose.texi (fclose): Document this.
7619         * tests/test-fclose.c (main): Make test for this unconditional.
7620
7621 2011-05-06  Bruno Haible  <bruno@clisp.org>
7622
7623         fflush, fpurge: Relicense under LGPLv2+.
7624         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7625         * modules/fpurge (License): Likewise.
7626         With permission from Eric Blake and Jim Meyering.
7627         Suggested by Eric Blake.
7628
7629 2011-05-06  Karl Berry  <karl@gnu.org>
7630
7631         * MODULES.html.sh (func_all_modules): remove exit.
7632
7633 2011-05-06  Jim Meyering  <meyering@redhat.com>
7634
7635         maint.mk: use info-gnu@ as the default only for a stable release
7636         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7637         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7638         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7639         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7640
7641 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7642
7643         assert-h: new module, which supports C1X-style static_assert
7644         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7645         * lib/verify.h: Revamp so that this can be copied into assert.h,
7646         while retaining the ability to use it standalone as before.
7647         Rename private identifiers so as not to encroach on the
7648         standard C namespace, since this is now used by assert.h.
7649         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7650         the old verify_true.
7651         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7652         the old verify_true.  Use _GL_VERIFY_TYPE.
7653         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7654         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7655         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7656         defined when this file is copied into the replacement assert.h.
7657         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7658         and _Static_assert is not built in.
7659         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7660         defined, and use the new macros mentioned above.
7661         * doc/posix-headers/assert.texi: Document this.
7662
7663 2011-05-05  Bruno Haible  <bruno@clisp.org>
7664
7665         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7666         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7667         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7668         gl_REPLACE_FCLOSE here.
7669         * modules/fflush (Depends-on): Remove fclose.
7670         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7671         combination with module 'fclose'.
7672
7673 2011-05-05  Bruno Haible  <bruno@clisp.org>
7674
7675         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7676         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7677         gl_FUNC_FFLUSH.
7678         (gl_FUNC_FFLUSH): Use it.
7679         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7681         gl_REPLACE_FSEEKO here.
7682
7683 2011-05-05  Bruno Haible  <bruno@clisp.org>
7684
7685         tzset: Relicense under LGPL.
7686         * modules/tzset (License): Change to LGPL.
7687         No agreement needed; it's a no-op.
7688
7689         strtoimax, strtoumax: Relicense under LGPL.
7690         * modules/strtoimax (License): Change to LGPL.
7691         * modules/strtoumax (License): Likewise.
7692         With permission from Jim Meyering, Paul Eggert:
7693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7695
7696         getgroups: Relicense under LGPL.
7697         * modules/getgroups (License): Change to LGPL.
7698         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7702
7703         nanosleep: Relicense under LGPL.
7704         * modules/nanosleep (License): Change to LGPL.
7705         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7706         Haible:
7707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7711
7712         futimens: Relicense under LGPL.
7713         * modules/futimens (License): Change to LGPL.
7714         With permission from Eric Blake:
7715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7716
7717         fflush: Relicense under LGPL.
7718         * modules/fflush (License): Change to LGPL.
7719         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7723
7724         tmpfile: Relicense under LGPL.
7725         * modules/tmpfile (License): Change to LGPL.
7726         With permission from Ben Pfaff:
7727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7728
7729         isfinite: Relicense under LGPL.
7730         * modules/isfinite (License): Change to LGPL.
7731         With permission from Ben Pfaff, Bruno Haible:
7732         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7734
7735         acosl..tanl: Relicense under LGPL.
7736         * modules/acosl (License): Change to LGPL.
7737         * modules/asinl (License): Likewise.
7738         * modules/atanl (License): Likewise.
7739         * modules/cosl (License): Likewise.
7740         * modules/expl (License): Likewise.
7741         * modules/logl (License): Likewise.
7742         * modules/sinl (License): Likewise.
7743         * modules/sqrtl (License): Likewise.
7744         * modules/tanl (License): Likewise.
7745         Source code originally from glibc and Paolo Bonzini. Agreements:
7746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7748
7749 2011-05-05  Bruno Haible  <bruno@clisp.org>
7750
7751         signal: Define sighandler_t.
7752         * lib/signal.in.h (sighandler_t): New type.
7753         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7754         whether sighandler_t is defined.
7755         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7756         * modules/signal (Depends-on): Add extensions.
7757         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7758         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7759         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7760
7761 2011-05-05  Eric Blake  <eblake@redhat.com>
7762
7763         maint: remove useless REPLACE_*_H macros
7764         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7765         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7766         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7767         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7768         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7769         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7770         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7771         * m4/btowc.m4: Update callers.
7772         * m4/dirfd.m4: Likewise.
7773         * m4/duplocale.m4: Likewise.
7774         * m4/fchdir.m4: Likewise.
7775         * m4/fdopendir.m4: Likewise.
7776         * m4/inet_ntop.m4: Likewise.
7777         * m4/inet_pton.m4: Likewise.
7778         * m4/ioctl.m4: Likewise.
7779         * m4/mbrlen.m4: Likewise.
7780         * m4/mbrtowc.m4: Likewise.
7781         * m4/mbsinit.m4: Likewise.
7782         * m4/mbsnrtowcs.m4: Likewise.
7783         * m4/mbsrtowcs.m4: Likewise.
7784         * m4/poll.m4: Likewise.
7785         * m4/setlocale.m4: Likewise.
7786         * m4/wcrtomb.m4: Likewise.
7787         * m4/wcsnrtombs.m4: Likewise.
7788         * m4/wcsrtombs.m4: Likewise.
7789         * m4/wctob.m4: Likewise.
7790         * m4/wcwidth.m4: Likewise.
7791         * modules/posix_spawn: Likewise.
7792         * modules/posix_spawn_file_actions_addclose: Likewise.
7793         * modules/posix_spawn_file_actions_adddup2: Likewise.
7794         * modules/posix_spawn_file_actions_addopen: Likewise.
7795         * modules/posix_spawn_file_actions_destroy: Likewise.
7796         * modules/posix_spawn_file_actions_init: Likewise.
7797         * modules/posix_spawnattr_destroy: Likewise.
7798         * modules/posix_spawnattr_getflags: Likewise.
7799         * modules/posix_spawnattr_getpgroup: Likewise.
7800         * modules/posix_spawnattr_getschedparam: Likewise.
7801         * modules/posix_spawnattr_getschedpolicy: Likewise.
7802         * modules/posix_spawnattr_getsigdefault: Likewise.
7803         * modules/posix_spawnattr_getsigmask: Likewise.
7804         * modules/posix_spawnattr_init: Likewise.
7805         * modules/posix_spawnattr_setflags: Likewise.
7806         * modules/posix_spawnattr_setpgroup: Likewise.
7807         * modules/posix_spawnattr_setschedparam: Likewise.
7808         * modules/posix_spawnattr_setschedpolicy: Likewise.
7809         * modules/posix_spawnattr_setsigdefault: Likewise.
7810         * modules/posix_spawnattr_setsigmask: Likewise.
7811         * modules/posix_spawnp: Likewise.
7812
7813 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7814
7815         Add option to do-release-commit-and-tag to specify branch.
7816         * build-aux/do-release-commit-and-tag: Add --branch.
7817
7818 2011-05-03  Bruno Haible  <bruno@clisp.org>
7819
7820         Avoid unnecessary compilation units, through conditional dependencies.
7821         * modules/accept (Depends-on): Add conditions to the dependencies.
7822         * modules/acosl (Depends-on): Likewise.
7823         * modules/argz (Depends-on): Likewise.
7824         * modules/asinl (Depends-on): Likewise.
7825         * modules/atanl (Depends-on): Likewise.
7826         * modules/atoll (Depends-on): Likewise.
7827         * modules/bind (Depends-on): Likewise.
7828         * modules/btowc (Depends-on): Likewise.
7829         * modules/canonicalize-lgpl (Depends-on): Likewise.
7830         * modules/ceil (Depends-on): Likewise.
7831         * modules/ceilf (Depends-on): Likewise.
7832         * modules/ceill (Depends-on): Likewise.
7833         * modules/chdir-long (Depends-on): Likewise.
7834         * modules/chown (Depends-on): Likewise.
7835         * modules/close (Depends-on): Likewise.
7836         * modules/connect (Depends-on): Likewise.
7837         * modules/cosl (Depends-on): Likewise.
7838         * modules/dirfd (Depends-on): Likewise.
7839         * modules/dprintf (Depends-on): Likewise.
7840         * modules/dprintf-posix (Depends-on): Likewise.
7841         * modules/error (Depends-on): Likewise.
7842         * modules/euidaccess (Depends-on): Likewise.
7843         * modules/expl (Depends-on): Likewise.
7844         * modules/faccessat (Depends-on): Likewise.
7845         * modules/fchdir (Depends-on): Likewise.
7846         * modules/fclose (Depends-on): Likewise.
7847         * modules/fcntl (Depends-on): Likewise.
7848         * modules/fdopendir (Depends-on): Likewise.
7849         * modules/fflush (Depends-on): Likewise.
7850         * modules/floor (Depends-on): Likewise.
7851         * modules/floorf (Depends-on): Likewise.
7852         * modules/floorl (Depends-on): Likewise.
7853         * modules/fnmatch (Depends-on): Likewise.
7854         * modules/fopen (Depends-on): Likewise.
7855         * modules/fprintf-posix (Depends-on): Likewise.
7856         * modules/frexp (Depends-on): Likewise.
7857         * modules/frexp-nolibm (Depends-on): Likewise.
7858         * modules/frexpl (Depends-on): Likewise.
7859         * modules/frexpl-nolibm (Depends-on): Likewise.
7860         * modules/fseek (Depends-on): Likewise.
7861         * modules/fsusage (Depends-on): Likewise.
7862         * modules/ftell (Depends-on): Likewise.
7863         * modules/ftello (Depends-on): Likewise.
7864         * modules/futimens (Depends-on): Likewise.
7865         * modules/getcwd (Depends-on): Likewise.
7866         * modules/getcwd-lgpl (Depends-on): Likewise.
7867         * modules/getdelim (Depends-on): Likewise.
7868         * modules/getdomainname (Depends-on): Likewise.
7869         * modules/getgroups (Depends-on): Likewise.
7870         * modules/gethostname (Depends-on): Likewise.
7871         * modules/getline (Depends-on): Likewise.
7872         * modules/getlogin_r (Depends-on): Likewise.
7873         * modules/getopt-posix (Depends-on): Likewise.
7874         * modules/getpeername (Depends-on): Likewise.
7875         * modules/getsockname (Depends-on): Likewise.
7876         * modules/getsockopt (Depends-on): Likewise.
7877         * modules/getsubopt (Depends-on): Likewise.
7878         * modules/getusershell (Depends-on): Likewise.
7879         * modules/glob (Depends-on): Likewise.
7880         * modules/grantpt (Depends-on): Likewise.
7881         * modules/iconv_open (Depends-on): Likewise.
7882         * modules/iconv_open-utf (Depends-on): Likewise.
7883         * modules/inet_ntop (Depends-on): Likewise.
7884         * modules/inet_pton (Depends-on): Likewise.
7885         * modules/ioctl (Depends-on): Likewise.
7886         * modules/isapipe (Depends-on): Likewise.
7887         * modules/isfinite (Depends-on): Likewise.
7888         * modules/isinf (Depends-on): Likewise.
7889         * modules/lchown (Depends-on): Likewise.
7890         * modules/ldexpl (Depends-on): Likewise.
7891         * modules/link (Depends-on): Likewise.
7892         * modules/linkat (Depends-on): Likewise.
7893         * modules/listen (Depends-on): Likewise.
7894         * modules/logl (Depends-on): Likewise.
7895         * modules/lstat (Depends-on): Likewise.
7896         * modules/mbrlen (Depends-on): Likewise.
7897         * modules/mbrtowc (Depends-on): Likewise.
7898         * modules/mbsinit (Depends-on): Likewise.
7899         * modules/mbsnrtowcs (Depends-on): Likewise.
7900         * modules/mbsrtowcs (Depends-on): Likewise.
7901         * modules/mbtowc (Depends-on): Likewise.
7902         * modules/memcmp (Depends-on): Likewise.
7903         * modules/mkdir (Depends-on): Likewise.
7904         * modules/mkdtemp (Depends-on): Likewise.
7905         * modules/mkfifo (Depends-on): Likewise.
7906         * modules/mkfifoat (Depends-on): Likewise.
7907         * modules/mknod (Depends-on): Likewise.
7908         * modules/mkostemp (Depends-on): Likewise.
7909         * modules/mkostemps (Depends-on): Likewise.
7910         * modules/mkstemp (Depends-on): Likewise.
7911         * modules/mkstemps (Depends-on): Likewise.
7912         * modules/mktime (Depends-on): Likewise.
7913         * modules/nanosleep (Depends-on): Likewise.
7914         * modules/open (Depends-on): Likewise.
7915         * modules/openat (Depends-on): Likewise.
7916         * modules/perror (Depends-on): Likewise.
7917         * modules/poll (Depends-on): Likewise.
7918         * modules/popen (Depends-on): Likewise.
7919         * modules/posix_spawn (Depends-on): Likewise.
7920         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7921         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7922         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7923         * modules/posix_spawnp (Depends-on): Likewise.
7924         * modules/pread (Depends-on): Likewise.
7925         * modules/printf-posix (Depends-on): Likewise.
7926         * modules/ptsname (Depends-on): Likewise.
7927         * modules/putenv (Depends-on): Likewise.
7928         * modules/pwrite (Depends-on): Likewise.
7929         * modules/readline (Depends-on): Likewise.
7930         * modules/readlink (Depends-on): Likewise.
7931         * modules/readlinkat (Depends-on): Likewise.
7932         * modules/recv (Depends-on): Likewise.
7933         * modules/recvfrom (Depends-on): Likewise.
7934         * modules/regex (Depends-on): Likewise.
7935         * modules/remove (Depends-on): Likewise.
7936         * modules/rename (Depends-on): Likewise.
7937         * modules/renameat (Depends-on): Likewise.
7938         * modules/rmdir (Depends-on): Likewise.
7939         * modules/round (Depends-on): Likewise.
7940         * modules/roundf (Depends-on): Likewise.
7941         * modules/roundl (Depends-on): Likewise.
7942         * modules/rpmatch (Depends-on): Likewise.
7943         * modules/select (Depends-on): Likewise.
7944         * modules/send (Depends-on): Likewise.
7945         * modules/sendto (Depends-on): Likewise.
7946         * modules/setenv (Depends-on): Likewise.
7947         * modules/setlocale (Depends-on): Likewise.
7948         * modules/setsockopt (Depends-on): Likewise.
7949         * modules/shutdown (Depends-on): Likewise.
7950         * modules/sigaction (Depends-on): Likewise.
7951         * modules/signbit (Depends-on): Likewise.
7952         * modules/sigprocmask (Depends-on): Likewise.
7953         * modules/sinl (Depends-on): Likewise.
7954         * modules/sleep (Depends-on): Likewise.
7955         * modules/snprintf (Depends-on): Likewise.
7956         * modules/snprintf-posix (Depends-on): Likewise.
7957         * modules/socket (Depends-on): Likewise.
7958         * modules/sprintf-posix (Depends-on): Likewise.
7959         * modules/sqrtl (Depends-on): Likewise.
7960         * modules/stat (Depends-on): Likewise.
7961         * modules/strchrnul (Depends-on): Likewise.
7962         * modules/strdup-posix (Depends-on): Likewise.
7963         * modules/strerror (Depends-on): Likewise.
7964         * modules/strerror_r-posix (Depends-on): Likewise.
7965         * modules/strndup (Depends-on): Likewise.
7966         * modules/strnlen (Depends-on): Likewise.
7967         * modules/strptime (Depends-on): Likewise.
7968         * modules/strsep (Depends-on): Likewise.
7969         * modules/strsignal (Depends-on): Likewise.
7970         * modules/strstr-simple (Depends-on): Likewise.
7971         * modules/strtod (Depends-on): Likewise.
7972         * modules/strtoimax (Depends-on): Likewise.
7973         * modules/strtok_r (Depends-on): Likewise.
7974         * modules/strtoumax (Depends-on): Likewise.
7975         * modules/symlink (Depends-on): Likewise.
7976         * modules/symlinkat (Depends-on): Likewise.
7977         * modules/tanl (Depends-on): Likewise.
7978         * modules/tcgetsid (Depends-on): Likewise.
7979         * modules/tmpfile (Depends-on): Likewise.
7980         * modules/trunc (Depends-on): Likewise.
7981         * modules/truncf (Depends-on): Likewise.
7982         * modules/truncl (Depends-on): Likewise.
7983         * modules/uname (Depends-on): Likewise.
7984         * modules/unlink (Depends-on): Likewise.
7985         * modules/unlockpt (Depends-on): Likewise.
7986         * modules/unsetenv (Depends-on): Likewise.
7987         * modules/usleep (Depends-on): Likewise.
7988         * modules/utimensat (Depends-on): Likewise.
7989         * modules/vasprintf (Depends-on): Likewise.
7990         * modules/vdprintf (Depends-on): Likewise.
7991         * modules/vdprintf-posix (Depends-on): Likewise.
7992         * modules/vfprintf-posix (Depends-on): Likewise.
7993         * modules/vprintf-posix (Depends-on): Likewise.
7994         * modules/vsnprintf (Depends-on): Likewise.
7995         * modules/vsnprintf-posix (Depends-on): Likewise.
7996         * modules/vsprintf-posix (Depends-on): Likewise.
7997         * modules/wcrtomb (Depends-on): Likewise.
7998         * modules/wcscasecmp (Depends-on): Likewise.
7999         * modules/wcscspn (Depends-on): Likewise.
8000         * modules/wcsdup (Depends-on): Likewise.
8001         * modules/wcsncasecmp (Depends-on): Likewise.
8002         * modules/wcsnrtombs (Depends-on): Likewise.
8003         * modules/wcspbrk (Depends-on): Likewise.
8004         * modules/wcsrtombs (Depends-on): Likewise.
8005         * modules/wcsspn (Depends-on): Likewise.
8006         * modules/wcsstr (Depends-on): Likewise.
8007         * modules/wcstok (Depends-on): Likewise.
8008         * modules/wcswidth (Depends-on): Likewise.
8009         * modules/wctob (Depends-on): Likewise.
8010         * modules/wctomb (Depends-on): Likewise.
8011         * modules/wctype (Depends-on): Likewise.
8012         * modules/wcwidth (Depends-on): Likewise.
8013         * modules/write (Depends-on): Likewise.
8014
8015 2011-05-03  Bruno Haible  <bruno@clisp.org>
8016
8017         Support for conditional dependencies.
8018         * doc/gnulib.texi (Module description): Document the syntax of
8019         conditional dependencies.
8020         * gnulib-tool: New option --conditional-dependencies.
8021         (func_usage): Document it.
8022         (cond_dependencies): New variable.
8023         (func_get_automake_snippet_conditional,
8024         func_get_automake_snippet_unconditional): New functions, extracted from
8025         func_get_automake_snippet.
8026         (func_get_automake_snippet): Use them.
8027         (sed_first_32_chars): New variable.
8028         (func_module_shellfunc_name): New function.
8029         (func_module_shellvar_name): New function.
8030         (func_module_conditional_name): New function.
8031         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8032         func_cond_module_condition): New functions.
8033         (func_modules_transitive_closure): Add support for conditional
8034         dependencies.
8035         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8036         conditional automake snippet in an automake conditional.
8037         (func_emit_autoconf_snippets): Emit shell functions that contain the
8038         code for conditional modules.
8039         (func_import, func_create_testdir): Update specification.
8040
8041 2011-05-03  Eric Blake  <eblake@redhat.com>
8042
8043         test-getaddrinfo: report error information
8044         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8045
8046 2011-05-03  Jim Meyering  <meyering@redhat.com>
8047
8048         bootstrap: avoid build failure when $GZIP is set
8049         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8050         program name.  If defined at all, it is supposed to list gzip options.
8051         Reported by Alan Curry in http://debbugs.gnu.org/8609
8052
8053 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8054
8055         readme-release: new module with release instructions
8056         * modules/readme-release: New module.
8057         * top/README-release: New file, from coreutils, grep, diffutils.
8058         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8059
8060 2011-05-02  Eric Blake  <eblake@redhat.com>
8061
8062         fflush: also replace fclose when fixing fflush
8063         * modules/fflush (Depends-on): Add fclose.
8064         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8065         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8066         memstreams with no backing fd.
8067         * doc/posix-functions/fclose.texi (fclose): Document the use of
8068         fflush module to fix the bug.
8069         * tests/test-fclose.c (main): Relax test when fclose is used in
8070         isolation.
8071
8072         fclose: add some tests
8073         * modules/fclose-tests: New test module.
8074         * tests/test-fclose.c: New file.
8075         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8076
8077         fclose: reduced dependencies
8078         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8079         simpler lseek.
8080         * lib/fclose.c (rpl_fclose): Likewise.
8081         Reported by Simon Josefsson.
8082
8083         exit: drop remaining clients
8084         * modules/argmatch (Depends-on): Replace exit with stdlib.
8085         * modules/copy-file (Depends-on): Likewise.
8086         * modules/execute (Depends-on): Likewise.
8087         * modules/exitfail (Depends-on): Likewise.
8088         * modules/obstack (Depends-on): Likewise.
8089         * modules/pagealign_alloc (Depends-on): Likewise.
8090         * modules/pipe-filter-gi (Depends-on): Likewise.
8091         * modules/pipe-filter-ii (Depends-on): Likewise.
8092         * modules/savewd (Depends-on): Likewise.
8093         * modules/spawn-pipe (Depends-on): Likewise.
8094         * modules/wait-process (Depends-on): Likewise.
8095         * modules/xsetenv (Depends-on): Likewise.
8096         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8097         * modules/git-merge-changelog (Depends-on): Likewise.
8098         * modules/long-options (Depends-on): Likewise.
8099         * modules/pt_chown (Depends-on): Likewise.
8100         * modules/sysexits (Depends-on): Likewise.
8101
8102         freading: relax license from LGPLv3+ to LGPLv2+
8103         * modules/freading (License): Relax LGPL version.
8104
8105 2011-05-02  Bruno Haible  <bruno@clisp.org>
8106
8107         fchdir: Remove unused dependencies.
8108         * modules/fchdir (Depends-on): Remove include_next.
8109
8110 2011-05-02  Bruno Haible  <bruno@clisp.org>
8111
8112         gnulib-tool: Refactor.
8113         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8114         from func_emit_autoconf_snippets.
8115         (func_emit_autoconf_snippets): Use it.
8116
8117 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8118
8119         * NEWS: Document removal of 'exit'.
8120         * modules/exit: Remove file.
8121
8122 2011-05-01  Bruno Haible  <bruno@clisp.org>
8123
8124         Update DEPENDENCIES.
8125         * DEPENDENCIES (gettext): Recommend the newest release.
8126         Reported by Simon Josefsson.
8127
8128 2011-05-01  Bruno Haible  <bruno@clisp.org>
8129
8130         gnulib-tool: Reduce code duplication.
8131         * gnulib-tool (func_emit_autoconf_snippets): New function.
8132         (func_import, func_create_testdir): Use it.
8133
8134 2011-04-30  Eric Blake  <eblake@redhat.com>
8135
8136         fclose: don't fail on non-seekable input stream
8137         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8138         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8139         since fflush is allowed to fail in that case.
8140
8141 2011-04-30  Bruno Haible  <bruno@clisp.org>
8142
8143         dup3: cleanup
8144         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8145
8146 2011-04-30  Bruno Haible  <bruno@clisp.org>
8147
8148         netdb: Make it work in C++ mode.
8149         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8150         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8151         module.
8152         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8153         gl_MODULE_INDICATOR_FOR_TESTS.
8154         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8155         * modules/netdb-c++-tests: New file.
8156         * tests/test-netdb-c++.cc: New file.
8157
8158 2011-04-30  Bruno Haible  <bruno@clisp.org>
8159
8160         New modules 'vfscanf', 'vscanf'.
8161         * modules/vfscanf: New file.
8162         * modules/vscanf: New file.
8163         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8164         here.
8165         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8166         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8167
8168 2011-04-30  Bruno Haible  <bruno@clisp.org>
8169
8170         passfd: Add comments.
8171         * lib/passfd.c: Add comments about platforms.
8172
8173 2011-04-30  Bruno Haible  <bruno@clisp.org>
8174
8175         sys_uio: Make <sys/uio.h> self-contained.
8176         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8177         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8178
8179 2011-04-30  Bruno Haible  <bruno@clisp.org>
8180
8181         sys_socket: Ensure 'struct iovec' definition.
8182         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8183         <sys/socket.h>.
8184         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8185
8186 2011-04-30  Bruno Haible  <bruno@clisp.org>
8187
8188         sys_uio: Protect definition of 'struct iovec'.
8189         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8190         it as a C struct.
8191
8192 2011-04-30  Bruno Haible  <bruno@clisp.org>
8193
8194         manywarnings: fix indentation
8195         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8196
8197 2011-04-30  Pádraig Brady <P@draigBrady.com>
8198
8199         manywarnings: add -Wno-missing-field-initializers if needed.
8200         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8201         option if it's needed to allow initialization with { 0, }
8202
8203 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8204
8205         announce-gen: cosmetic improvement
8206         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8207
8208 2011-04-29  Jim Meyering  <meyering@redhat.com>
8209
8210         vc-list-files: indent with spaces, not TABs
8211         * build-aux/vc-list-files: Convert leading TABs to spaces,
8212         to match the style of most other files in gnulib.
8213
8214         announce-gen: indent with spaces, not TABs
8215         * build-aux/announce-gen: Convert all TABs to spaces, to match
8216         the style of most other files in gnulib.
8217
8218 2011-04-29  Eric Blake  <eblake@redhat.com>
8219
8220         quotearg: avoid uninitialized variable use
8221         * lib/quotearg.c (quoting_options_from_style): Initialize
8222         remaining fields, and ensure that custom styles are only used via
8223         quoting_options rather than quoting_style.
8224
8225 2011-04-29  Jim Meyering  <meyering@redhat.com>
8226
8227         maint.mk: remove unused VC-tag variable
8228         * top/maint.mk (VC-tag): Remove unused variable.
8229
8230 2011-04-29  Bruno Haible  <bruno@clisp.org>
8231
8232         netdb: fix gai_strerror replacements
8233         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8234         * modules/netdb: Substitute it.
8235
8236 2011-04-29  Jim Meyering  <meyering@redhat.com>
8237
8238         test-getcwd.c: avoid new set-but-not-used warning
8239         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8240         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8241         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8242         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8243
8244         test-hash.c: avoid a new shadowing warning
8245         * tests/test-hash.c (main): Don't shadow "dup".
8246
8247 2011-04-28  Eric Blake  <eblake@redhat.com>
8248
8249         getaddrinfo: fix gai_strerror signature
8250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8251         and work around mingw with UNICODE defined.
8252         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8253         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8254         * modules/netdb (Makefile.am): Substitute it.
8255         * lib/netdb.in.h (gai_strerror): Declare replacement.
8256         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8257         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8258         the fix.
8259
8260         getsockopt: avoid compiler warning
8261         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8262         Reported by Matthias Bolte.
8263
8264         tests: drop unused link dependency
8265         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8266         * modules/dirent-safer-tests (Makefile.am): Likewise.
8267         * modules/fdopendir-tests (Makefile.am): Likewise.
8268         * modules/mkfifoat-tests (Makefile.am): Likewise.
8269         * modules/openat-safer-tests (Makefile.am): Likewise.
8270         * modules/openat-tests (Makefile.am): Likewise.
8271         * modules/readlinkat-tests (Makefile.am): Likewise.
8272         * modules/symlinkat-tests (Makefile.am): Likewise.
8273         * modules/linkat-tests (Makefile.am): Likewise.
8274         (Depends-on): Switch to filenamecat-lgpl.
8275         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8276         LIBINTL.
8277         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8278         * tests/test-linkat.c (main): Don't require xalloc.
8279
8280         hash, mgetgroups: drop xalloc dependency
8281         * lib/hash.c (includes): Adjust includes.
8282         * lib/mgetgroups.c (includes): Likewise.
8283         (xgetgroups): Move...
8284         * lib/xgetgroups.c: ...to new file.
8285         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8286         * modules/xgetgroups: New file, split from...
8287         * modules/mgetgroups: ...here.
8288         (Depends-on): Add xalloc-oversized.
8289         * modules/hash (Depends-on): Likewise.
8290         * modules/hash-tests (Depends-on): Drop xalloc.
8291         (test_hash_LDADD): Drop unused library.
8292         * tests/test-hash.c (main): Break xalloc dependency.
8293         (includes): Drop unused include.
8294
8295         xalloc-oversized: new module
8296         * modules/xalloc-oversized: New module.
8297         * modules/xalloc (Depends-on): Add it.
8298         * lib/xalloc.h (xalloc_oversized): Move...
8299         * lib/xalloc-oversized.h: ...into new file.
8300
8301         utimecmp: drop dependency on xmalloc
8302         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8303         due to memory pressure.
8304         * modules/utimecmp (Depends-on): Drop xalloc.
8305
8306 2011-04-27  Eric Blake  <eblake@redhat.com>
8307
8308         getcwd: fix mingw bugs
8309         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8310         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8311         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8312
8313 2011-04-27  Bruno Haible  <bruno@clisp.org>
8314
8315         mkstemps: Ensure declaration on MacOS X 10.5.
8316         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8317         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8318         MacOS X.
8319
8320 2011-04-27  Bruno Haible  <bruno@clisp.org>
8321
8322         mkstemp: More documentation.
8323         * doc/posix-functions/mkstemp.texi: Document header file problem on
8324         MacOS X.
8325
8326 2011-04-27  Bruno Haible  <bruno@clisp.org>
8327
8328         mkstemp: Tweak configure message when cross-compiling.
8329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8330         result as a guess.
8331
8332 2011-04-27  Bruno Haible  <bruno@clisp.org>
8333
8334         clean-temp: Clarify what it does.
8335         * lib/clean-temp.h: Add more comments.
8336         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8337         module.
8338         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8339         * doc/glibc-functions/mkstemps.texi: Likewise.
8340         * doc/glibc-functions/mkostemps.texi: Likewise.
8341
8342 2011-04-27  Eric Blake  <eblake@redhat.com>
8343
8344         fchdir: avoid extra chdir and fix test
8345         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8346         getcwd-lgpl.
8347         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8348         have to be canonical.
8349         (canonicalize_file_name): Drop unused macro.
8350         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8351
8352         filenamecat-lgpl: fix licence
8353         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8354         when it was first created.
8355
8356         linkat, renameat: add missing dependency
8357         * modules/linkat (Depends-on): Require getcwd-lgpl.
8358         * modules/renameat (Depends-on): Likewise.
8359
8360         tests: reduce dependencies
8361         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8362         * tests/test-renameat.c (main): Likewise.
8363         * modules/linkat-tests (Depends-on): Relax dependency.
8364         * modules/renameat-tests (Depends-on): Likewise.
8365         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8366         dependency explicit.
8367
8368         save-cwd: reduce default dependency
8369         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8370         * lib/save-cwd.c: Update comments.
8371         * NEWS: Document the semantic change.
8372
8373         getcwd: enhance tests
8374         * tests/test-getcwd-lgpl.c: New file, taken from...
8375         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8376         repeat long path stress tests from m4 probe.
8377         * modules/getcwd-lgpl-tests: New module.
8378         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8379         * m4/getcwd-abort-bug.m4: Update comment.
8380         * m4/getcwd-path-max.m4: Likewise.
8381
8382         getcwd-lgpl: new module
8383         * modules/getcwd-lgpl: New module.
8384         * lib/getcwd-lgpl.c: New file.
8385         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8386         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8387         * modules/getcwd (configure.ac): Set C witness.
8388         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8389
8390         getcwd: tweak comments
8391         * m4/getcwd-abort-bug.m4: Fix comments.
8392         * m4/getcwd-path-max.m4: Likewise.
8393         * m4/getcwd.m4: Likewise.
8394
8395 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8396         and Eric Blake  <eblake@redhat.com>
8397
8398         mkstemp: replace if system version uses wrong permissions
8399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8400         read/write mode bits set in file created by mkstemp.
8401         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8402
8403 2011-04-27  Eric Blake  <eblake@redhat.com>
8404
8405         passfd: avoid compiler warning
8406         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8407         Reported by Laine Stump.
8408
8409 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8410
8411         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8412         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8413
8414 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8415         and Eric Blake  <eblake@redhat.com>
8416
8417         mkstemp: mention clean-temp module
8418         * lib/mkstemp.c: Add comment.
8419         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8420
8421 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8422
8423         inttypes: also provide default values for 32-bit tests
8424         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8425         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8426
8427 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8428
8429         strtoumax: remove dependency on strtoimax
8430         This is like the strtoull change of yesterday.
8431         * modules/strtoumax (Files): Add lib/strtoimax.c.
8432         (Depends-on): Remove strtoimax and add verify.
8433
8434         inttypes-incomplete: new module
8435         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8436         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8437         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8438         of gl_INTTYPES_H.
8439         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8440         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8441         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8442         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8443         * modules/strtoumax, modules/xstrtol (Depends-on):
8444         Depend on inttypes-incomplete, not inttypes.
8445         * modules/inttypes-incomplete: New module, containing the contents
8446         of the old modules/inttypes module, except that the Files: section
8447         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8448         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8449         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8450         (Depends-on): Depend only on inttypes-incomplete.
8451         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8452
8453         inttypes: omit now-redundant strtoimax and strtoumax work
8454         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8455         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8456
8457         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8458         This supports apps that need pointers to strtoimax and strtoumax,
8459         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8460         nonexistent functions.  See
8461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8462         et seq.
8463         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8464         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8465         a macro.
8466         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8467
8468 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8469
8470         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8471
8472 2011-04-25  Bruno Haible  <bruno@clisp.org>
8473
8474         strtol, strtoul: Mark modules as obsolete.
8475         * modules/strtol (Status, Notice): New sections.
8476         * modules/strtoul (Status, Notice): New sections.
8477
8478 2011-04-25  Bruno Haible  <bruno@clisp.org>
8479
8480         strtod: Remove check for strtod, unless supporting old platforms.
8481         * modules/strtod-obsolete: New file.
8482         * m4/strtod-obsolete.m4: New file.
8483         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8484         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8485         * modules/strtod (Depends-on): Add strtod-obsolete.
8486         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8487
8488 2011-04-25  Bruno Haible  <bruno@clisp.org>
8489
8490         strcase: Make module obsolete.
8491         * modules/strcase (Status, Notice): New sections.
8492
8493 2011-04-25  Bruno Haible  <bruno@clisp.org>
8494
8495         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8496         * modules/dup2-obsolete: New file.
8497         * m4/dup2-obsolete.m4: New file.
8498         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8499         gl_FUNC_DUP2_OBSOLETE is not also defined.
8500         * modules/dup2 (Depends-on): Add dup2-obsolete.
8501         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8502
8503 2011-04-25  Bruno Haible  <bruno@clisp.org>
8504
8505         strnlen: Avoid memchr related link error on old obsolete platforms.
8506         * modules/memchr-obsolete: New file.
8507         * m4/memchr-obsolete.m4: New file.
8508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8509         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8510         * modules/memchr (Depends-on): Add memchr-obsolete.
8511         * modules/strnlen (Depends-on): Likewise.
8512         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8513
8514 2011-04-25  Jim Meyering  <meyering@redhat.com>
8515
8516         maint.mk: makefile_at_at_check extend and clean up
8517         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8518         in addition to */Makefile.am.
8519         Exempt legitimate uses of @VAR@ notation, e.g.,
8520         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8521         Remove obsolete coreutils-specific comment.
8522         Prompted by discussion here:
8523         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8524
8525 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8526
8527         strtoul: remove dependency on strtol
8528         This is so that 'configure' need not check for strtol merely because
8529         the application needs strtoul.
8530         * modules/strtoul (Files): Add lib/strtol.c.
8531         (Depends-on): Remove strtol.
8532
8533         strtoull: remove dependency on strtoul
8534         This is like the strtoll change.
8535         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8536         (Depends-on): Remove strtoul.
8537
8538         strtoll: remove dependency on strtol
8539         This is so that 'configure' need not check for strtol merely because
8540         the application needs strtoll.
8541         * modules/strtoll (Files): Add lib/strtol.c.
8542         (Depends-on): Remove strtol.
8543
8544 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8545
8546         inttypes: Move some configure check to module 'imaxdiv'.
8547         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8548         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8549         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8550
8551 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8552
8553         inttypes: Move some configure check to module 'imaxabs'.
8554         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8555         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8556         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8557
8558 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8559
8560         inttypes: Remove configure tests that are not needed since 2009-12-31.
8561         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8562         gl_cv_header_working_inttypes_h.
8563
8564 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8565
8566         * modules/strnlen (Depends-on): Remove memchr.
8567         The strnlen implementation doesn't need the memchr module's fixes; see
8568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8569
8570         strtol: remove dependency on wchar
8571         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8572         * modules/strtol (Depends-on): Remove wchar.
8573
8574 2011-04-21  Eric Blake  <eblake@redhat.com>
8575
8576         passfd: fix test regression on Linux
8577         * modules/passfd-tests (configure.ac): Correct socketpair check.
8578
8579         passfd: speed up configure and drop unused code
8580         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8581         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8582         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8583         Instead of probing at configure for unix_scm_rights_bsd44_way,
8584         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8585         check to a struct member probe.
8586         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8587         (sendfd, recvfd): Update preprocessor checks.
8588         * modules/passfd (Files): Reflect rename, and drop unused file.
8589         (Depends-on): Drop unused dependency.
8590
8591         passfd: allow compilation on mingw
8592         * modules/sys_socket (Depends-on): Add sys_uio.
8593         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8594         iovec and a minimal struct msghdr.
8595         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8596         * tests/test-sys_socket.c (main): Enhance test.
8597         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8598         guaranteed to provide what we need.
8599         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8600         * modules/passfd-tests (Depends-on): Add sys_wait.
8601         * tests/test-passfd.c (main): Skip test on mingw, for now.
8602         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8603         partial 'struct msghdr' implementation.
8604
8605         sys_uio: new module
8606         * modules/sys_uio: New module.
8607         * modules/sys_uio-tests: Likewise.
8608         * lib/sys_uio.in.h: New file.
8609         * m4/sys_uio_h.m4: Likewise.
8610         * tests/test-sys_uio.c: Likewise.
8611         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8612         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8613
8614 2011-04-20  Jim Meyering  <meyering@redhat.com>
8615
8616         useless-if-before-free: avoid false-positive
8617         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8618         disjunct so that it too requires a terminating ";".  Without that,
8619         this script would identify as useless one statement from gcc that
8620         was not:
8621           if (aligned_ptr)
8622             free (((void **) aligned_ptr) [-1]);
8623
8624 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8625
8626         doc: update users.txt.
8627         * users.txt: Add barcode.
8628
8629 2011-04-19  Bruno Haible  <bruno@clisp.org>
8630
8631         ioctl: Remove link dependency on native Windows.
8632         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8633         (gl_close_fn, gl_ioctl_fn): New types.
8634         (struct fd_hook): Renamed from struct close_hook. Change type of
8635         private_close_fn field. Add private_ioctl_fn field.
8636         (close_hook_fn): Add parameter for primary close method.
8637         (execute_close_hooks, execute_all_close_hooks): Likewise.
8638         (ioctl_hook_fn): New type.
8639         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8640         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8641         argument.
8642         (unregister_fd_hook): Renamed from unregister_close_hook.
8643         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8644         Don't include <unistd.h>.
8645         (close): Remove undef.
8646         (anchor): Update.
8647         (execute_close_hooks): Add argument for primary close method.
8648         (execute_all_close_hooks): Likewise.
8649         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8650         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8651         argument. Allow each argument to be NULL.
8652         (unregister_fd_hook): Renamed from unregister_close_hook.
8653         * lib/close.c (rpl_close): Pass 'close' function pointer to
8654         execute_all_close_hooks.
8655         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8656         (primary_ioctl): New function.
8657         (ioctl): Don't call ioctlsocket here. Instead, call
8658         execute_all_ioctl_hooks.
8659         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8660         close method.
8661         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8662         (fd_sockets_hook): Renamed from close_sockets_hook.
8663         (gl_sockets_startup, gl_sockets_cleanup): Update.
8664         * modules/fd-hook: Renamed from modules/close-hook. Update.
8665         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8666         * modules/sockets (Depends-on): Likewise.
8667         * modules/ioctl (Depends-on): Add fd-hook.
8668         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8669         GNULIB_SOCKET.
8670
8671 2011-04-19  Bruno Haible  <bruno@clisp.org>
8672
8673         Move the support of O_NONBLOCK in open() to the 'open' module.
8674         * modules/nonblocking (Depends-on): Remove 'open'.
8675         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8676         gl_cv_have_open_O_NONBLOCK.
8677         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8678         O_NONBLOCK support.
8679         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8680
8681 2011-04-17  Bruno Haible  <bruno@clisp.org>
8682
8683         pipe2: Simplify code.
8684         * lib/pipe2.c (pipe2): Reduce code duplication.
8685
8686 2011-04-17  Bruno Haible  <bruno@clisp.org>
8687
8688         nonblocking: Add comment.
8689         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8690
8691 2011-04-17  Bruno Haible  <bruno@clisp.org>
8692
8693         nonblocking: Add tests for sockets.
8694         * tests/test-nonblocking-socket.sh: New file.
8695         * tests/test-nonblocking-socket-main.c: New file.
8696         * tests/test-nonblocking-socket-child.c: New file.
8697         * tests/test-nonblocking-socket.h: New file.
8698         * tests/socket-server.h: New file.
8699         * tests/socket-client.h: New file.
8700         * modules/nonblocking-socket-tests: New file.
8701         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8702
8703 2011-04-17  Bruno Haible  <bruno@clisp.org>
8704
8705         nonblocking: Add tests for pipes.
8706         * tests/test-nonblocking-pipe.sh: New file.
8707         * tests/test-nonblocking-pipe-main.c: New file.
8708         * tests/test-nonblocking-pipe-child.c: New file.
8709         * tests/test-nonblocking-pipe.h: New file.
8710         * tests/test-nonblocking-writer.h: New file.
8711         * tests/test-nonblocking-reader.h: New file.
8712         * tests/test-nonblocking-misc.h: New file.
8713         * modules/nonblocking-pipe-tests: New file.
8714         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8715
8716 2011-04-16  Bruno Haible  <bruno@clisp.org>
8717
8718         gettext: Clarify the needed programmer actions.
8719         * modules/gettext (Notice): New field.
8720         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8721
8722 2011-04-16  Bruno Haible  <bruno@clisp.org>
8723
8724         strchrnul: Tweak last commit.
8725         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8726         bug.
8727         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8728         as in _GL_FUNCDECL_SYS.
8729         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8730         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8731
8732 2011-04-15  Eric Blake  <eblake@redhat.com>
8733
8734         strchrnul: work around cygwin bug
8735         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8736         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8738         * modules/string (Makefile.am): Substitute it.
8739         * lib/string.in.h (strchrnul): Use it.
8740
8741 2011-04-15  Bruno Haible  <bruno@clisp.org>
8742
8743         Don't require lib/stdio-write.c when only module 'stdio' is used.
8744         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8745         invocation.
8746         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8747
8748 2011-04-14  Bruno Haible  <bruno@clisp.org>
8749
8750         Support non-blocking pipe I/O in read() on native Windows.
8751         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8752         (read): New declaration.
8753         * lib/read.c: New file.
8754         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8755         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8756         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8757         vscanf): New declarations.
8758         * lib/stdio-read.c: New file.
8759         * m4/read.m4: New file.
8760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8761         REPLACE_READ.
8762         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8763         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8764         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8765         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8766         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8767         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8768         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8769         * modules/read: New file.
8770         * modules/nonblocking (Files): Add lib/stdio-read.c.
8771         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8772         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8773         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8774         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8775         * modules/pread (Depends-on): Add read.
8776         * modules/safe-read (Depends-on): Likewise.
8777         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8778         gets, scanf, vfscanf, vscanf): Verify signatures.
8779         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8780         problem with non-blocking pipes.
8781         * doc/posix-functions/fgetc.texi: Likewise.
8782         * doc/posix-functions/fgets.texi: Likewise.
8783         * doc/posix-functions/fread.texi: Likewise.
8784         * doc/posix-functions/fscanf.texi: Likewise.
8785         * doc/posix-functions/getc.texi: Likewise.
8786         * doc/posix-functions/getchar.texi: Likewise.
8787         * doc/posix-functions/gets.texi: Likewise.
8788         * doc/posix-functions/scanf.texi: Likewise.
8789         * doc/posix-functions/vfscanf.texi: Likewise.
8790         * doc/posix-functions/vscanf.texi: Likewise.
8791
8792 2011-04-14  Bruno Haible  <bruno@clisp.org>
8793
8794         Support non-blocking pipe I/O in write() on native Windows.
8795         * lib/write.c (rpl_write): Split a write request that failed merely
8796         because the byte count was larger than the pipe buffer's size.
8797         * doc/posix-functions/write.texi: Mention the problem with large byte
8798         counts.
8799
8800 2011-04-14  Bruno Haible  <bruno@clisp.org>
8801
8802         wchar: Ensure that wchar_t gets defined on uClibc.
8803         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8804         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8805
8806 2011-04-13  Bruno Haible  <bruno@clisp.org>
8807
8808         safe-write, full-read: Avoid unnecessary compilation units.
8809         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8810         (Depends-on): Remove safe-read. Add ssize_t.
8811         * modules/full-read (Files): Add lib/full-write.c.
8812         (Depends-on): Add full-write.
8813
8814 2011-04-13  Bruno Haible  <bruno@clisp.org>
8815
8816         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8817         * modules/pwrite (Depends-on): Add 'write'.
8818
8819 2011-04-13  Bruno Haible  <bruno@clisp.org>
8820
8821         Support non-blocking pipe I/O in write() on native Windows.
8822         * lib/unistd.in.h (write): Enable replacement also if
8823         GNULIB_UNISTD_H_NONBLOCKING is 1.
8824         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8825         (rpl_write): When failing to write on a non-blocking pipe, change
8826         errno from ENOSPC to EAGAIN.
8827         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8828         putchar, puts, vfprintf, vprintf): Enable replacement also if
8829         GNULIB_STDIO_H_NONBLOCKING is 1.
8830         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8831         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8832         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8833         CALL_WITH_SIGPIPE_EMULATION.
8834         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8835         * m4/nonblocking.m4: New file.
8836         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8837         for non-blocking I/O support.
8838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8839         GNULIB_UNISTD_H_NONBLOCKING.
8840         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8841         required for non-blocking I/O support.
8842         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8843         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8844         lib/stdio-write.c, m4/asm-underscore.m4.
8845         (Depends-on): Add stdio, unistd.
8846         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8847         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8848         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8849         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8850         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8851         problem with non-blocking pipes.
8852         * doc/posix-functions/fputc.texi: Likewise.
8853         * doc/posix-functions/fputs.texi: Likewise.
8854         * doc/posix-functions/fwrite.texi: Likewise.
8855         * doc/posix-functions/printf.texi: Likewise.
8856         * doc/posix-functions/putc.texi: Likewise.
8857         * doc/posix-functions/putchar.texi: Likewise.
8858         * doc/posix-functions/puts.texi: Likewise.
8859         * doc/posix-functions/vfprintf.texi: Likewise.
8860         * doc/posix-functions/vprintf.texi: Likewise.
8861         * doc/posix-functions/write.texi: Likewise.
8862
8863 2011-04-10  Jim Meyering  <meyering@redhat.com>
8864
8865         maint.mk: prohibit doubled words
8866         Detect them also when they're separated by a newline.
8867         There are 3 ways to customize it:
8868           - disable the test on a per file basis, as usual with rules using
8869             $(VC_LIST_EXCEPT)
8870           - replace the default doubled-word-selecting regexp (affects all files)
8871           - ignore a particular file-vs-doubled-word match
8872         I nearly used that last one to ignore the "is is" match in
8873         coreutils' NEWS file, since the text was "ls -is is ..."
8874         To do that, I would have added this line to cfg.mk:
8875           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8876         but it would have ignored any "is is" match in NEWS.
8877         Low probability, but still...
8878         Instead, I changed the text, slightly:
8879           -  ls -is is now consistent with ls -lis in ignoring values returned
8880           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8881         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8882         (prohibit_doubled_word_): Define.
8883         (sc_prohibit_doubled_word): New rule.
8884         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8885
8886 2011-04-10  Jim Meyering  <meyering@redhat.com>
8887
8888         maint: fix doubled-word typo in comment
8889         * m4/gethostname.m4: s/is is/it is/
8890         * m4/getdomainname.m4: Likewise.
8891
8892 2011-04-10  Jim Meyering  <meyering@redhat.com>
8893
8894         maint: remove doubled word: s/it it/it/
8895         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8896
8897 2011-04-10  Jim Meyering  <meyering@redhat.com>
8898
8899         maint.mk: remove useless semicolon and backslash
8900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8901         semicolon and backslash.
8902
8903 2011-04-10  Bruno Haible  <bruno@clisp.org>
8904
8905         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8906         * modules/stdint-tests (Depends-on): Add wchar.
8907
8908 2011-04-10  Jim Meyering  <meyering@redhat.com>
8909
8910         maint: remove doubled words in comments, e.g., s/a a/a/
8911         * lib/strptime.c (day_of_the_week): s/the the/the/
8912         * tests/test-chown.h (test_chown): s/a a/a/
8913
8914         test-chown.h: correct a cast
8915         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8916         when the destination is a stat.st_gid.
8917
8918 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8919
8920         getaddrinfo: Fix test for sa_len member.
8921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8922         include <sys/types.h> before <sys/socket.h>.
8923
8924 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         maint: change "can not" to "cannot"
8927         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8928         boundaries.
8929
8930 2011-04-09  Jim Meyering  <meyering@redhat.com>
8931
8932         maint: change "a a" to "a"
8933         * tests/test-lchown.h (test_lchown): s/a a/a/
8934
8935         maint.mk: prohibit \<the the\>
8936         * top/maint.mk (sc_prohibit_the_the): New rule.
8937
8938         maint: fix "the the" in comment
8939         * lib/count-one-bits.h: s/the the/the/
8940
8941         maint: change "can not" to "cannot"
8942         But do not change the occurrences in maintain.texi or in
8943         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8944         * doc/gnulib-tool.texi: s/can not/cannot/
8945         * doc/posix-functions/accept.texi (accept): Likewise.
8946         * doc/posix-functions/socket.texi (socket): Likewise.
8947         * lib/mbrtowc.c: Likewise.
8948
8949         maint.mk: prohibit use of "can not"
8950         * top/maint.mk (sc_prohibit_can_not): New rule.
8951         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8952
8953 2011-04-09  Bruno Haible  <bruno@clisp.org>
8954
8955         careadlinkat: Guard against misuse of careadlinkatcwd.
8956         * lib/careadlinkat.c: Include <stdlib.h>.
8957         (careadlinkatcwd): Check that the fd argument is as expected.
8958
8959 2011-04-09  Bruno Haible  <bruno@clisp.org>
8960
8961         careadlinkat: Use common coding style.
8962         * lib/careadlinkat.c: Move gnulib includes after system includes.
8963
8964 2011-04-09  Bruno Haible  <bruno@clisp.org>
8965
8966         careadlinkat: Clarify specification.
8967         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8968         (careadlinkatcwd): Add comment.
8969         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8970
8971 2011-04-09  Bruno Haible  <bruno@clisp.org>
8972
8973         areadlinkat: Avoid link error on many platforms.
8974         * modules/areadlinkat (Depends-on): Add areadlink.
8975
8976 2011-04-09  Bruno Haible  <bruno@clisp.org>
8977
8978         allocator, careadlinkat: Fix double-inclusion guard.
8979         * lib/allocator.h: Fix double-inclusion guard.
8980         * lib/careadlinkat.h: Likewise.
8981
8982 2011-04-09  Bruno Haible  <bruno@clisp.org>
8983
8984         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8985         * lib/relocwrapper.c: Update dependencies hierarchy.
8986         * build-aux/install-reloc: Update list of files to be compiled.
8987         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8988         lib/allocator.[hc].
8989
8990 2011-04-08  Eric Blake  <eblake@redhat.com>
8991
8992         strftime: silence gnulib-tool warning
8993         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8994
8995 2011-04-08  Bruno Haible  <bruno@clisp.org>
8996
8997         verify: Fix syntax error with GCC 4.6 in C++ mode.
8998         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8999         (HAVE_STATIC_ASSERT): New macro.
9000         (verify_true, verify): Use 'static_assert' if it is supported and
9001         '_Static_assert' is not supported.
9002
9003 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9004
9005         allocator: New module.
9006         * modules/allocator, lib/allocator.c: New files.
9007         * lib/allocator.h (stdlib_allocator): New decl.
9008         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9009         Remove.  Do not include <stdlib.h>.
9010         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9011         * modules/careadlinkat (Files): Remove lib/allocator.h.
9012         (Depends-on): Add allocator.
9013
9014         stdlib: let modules use system malloc, realloc
9015         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9016         if !_GL_USE_STDLIB_ALLOC.
9017         (malloc, realloc): Limit this change to a smaller scope.
9018
9019         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9020         (malloc, realloc): Don't #undef; no longer needed.
9021         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9022         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9023         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9024         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9025         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9026         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9027         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9028         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9029
9030         careadlinkat: rename members to avoid problem
9031         * lib/allocator.h (struct allocator): Rename members from
9032         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9033         and realloc are #define'd.  Reported by Eric Blake in
9034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9035         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9036
9037 2011-04-08  Eric Blake  <eblake@redhat.com>
9038
9039         nonblocking: reduce dependency
9040         * tests/test-nonblocking.c: Only test sockets when in use.
9041         * modules/nonblocking-tests (Depends-on): Drop socket.
9042         (Makefile.am): Link even if sockets are not present.
9043         * modules/pipe2-tests (Makefile.am): Likewise.
9044         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9045
9046         pipe2: fix O_NONBLOCK support on mingw
9047         * modules/pipe2 (Depends-on): Add nonblocking.
9048         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9049         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9050         * tests/test-nonblocking.c (main): Likewise.
9051         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9052
9053         fcntl-h: fix O_ACCMODE on cygwin
9054         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9055         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9056
9057         pipe-filter: drop O_NONBLOCK workarounds
9058         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9059         * modules/pipe-filter-ii (Depends-on): Likewise.
9060         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9061
9062         nonblocking: provide O_NONBLOCK for mingw
9063         * modules/nonblocking (Depends-on): Add open.
9064         (configure.ac): Set new witness macro.
9065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9066         * modules/fcntl-h (Makefile.am): Substitute it.
9067         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9068         nonblocking module is in use.
9069         * lib/nonblocking.c: Adjust portability test.
9070         * lib/open.c (open): Don't let native open see gnulib flag.
9071         * tests/test-fcntl-h.c (main): Enhance test.
9072         * tests/test-open.h (test_open): Likewise.
9073         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9074
9075         careadlinkat: fix compilation error on mingw
9076         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9077         within struct allocator.
9078
9079 2011-04-06  Eric Blake  <eblake@redhat.com>
9080
9081         binary-io: relicense under LGPLv2+
9082         * modules/binary-io (License): Relax to LGPLv2+.
9083         Requested for libvirt, and required by pipe2.
9084
9085 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9086
9087         verify: use _Static_assert if available
9088         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9089         (verify_true, verify): Use it if available.  This generates better
9090         diagnostics with GCC 4.6.0 and later.
9091
9092 2011-04-05  Bruno Haible  <bruno@clisp.org>
9093
9094         Remove leftover generated .h files after config.status changed.
9095
9096         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9097         GL_GENERATE_ALLOCA_H.
9098         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9099         GL_GENERATE_ALLOCA_H evaluates to false.
9100
9101         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9102         GL_GENERATE_ARGZ_H.
9103         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9104         evaluates to false.
9105
9106         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9107         GL_GENERATE_BYTESWAP_H.
9108         * modules/byteswap (Makefile.am): Remove byteswap.h if
9109         GL_GENERATE_BYTESWAP_H evaluates to false.
9110
9111         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9112         GL_GENERATE_ERRNO_H.
9113         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9114         evaluates to false.
9115
9116         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9117         GL_GENERATE_FLOAT_H.
9118         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9119         evaluates to false.
9120
9121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9122         GL_GENERATE_FNMATCH_H.
9123         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9124         GL_GENERATE_FNMATCH_H evaluates to false.
9125
9126         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9127         GL_GENERATE_GLOB_H.
9128         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9129         evaluates to false.
9130
9131         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9132         automake conditional GL_GENERATE_ICONV_H.
9133         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9134         evaluates to false.
9135
9136         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9137         GL_GENERATE_NETINET_IN_H.
9138         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9139         GL_GENERATE_NETINET_IN_H evaluates to false.
9140
9141         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9142         conditional GL_GENERATE_PTHREAD_H.
9143         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9144         * modules/pthread (Makefile.am): Remove pthread.h if
9145         GL_GENERATE_PTHREAD_H evaluates to false.
9146
9147         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9148         GL_GENERATE_SCHED_H.
9149         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9150         evaluates to false.
9151
9152         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9153         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9154         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9155         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9156
9157         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9158         GL_GENERATE_STDARG_H.
9159         * modules/stdarg (Makefile.am): Remove stdarg.h if
9160         GL_GENERATE_STDARG_H evaluates to false.
9161
9162         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9163         GL_GENERATE_STDBOOL_H.
9164         * modules/stdbool (Makefile.am): Remove stdbool.h if
9165         GL_GENERATE_STDBOOL_H evaluates to false.
9166
9167         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9168         conditional GL_GENERATE_STDDEF_H.
9169         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9170         * modules/stddef (Makefile.am): Remove stddef.h if
9171         GL_GENERATE_STDDEF_H evaluates to false.
9172
9173         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9174         GL_GENERATE_STDINT_H.
9175         * modules/stdint (Makefile.am): Remove stdint.h if
9176         GL_GENERATE_STDINT_H evaluates to false.
9177
9178         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9179         GL_GENERATE_SYSEXITS_H.
9180         * modules/sysexits (Makefile.am): Remove sysexits.h if
9181         GL_GENERATE_SYSEXITS_H evaluates to false.
9182
9183         Reported by Karl Berry and Ralf Wildenhues.
9184
9185 2011-04-05  Bruno Haible  <bruno@clisp.org>
9186
9187         Ensure to rebuild generated .h files when config.status has changed.
9188         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9189         config.status.
9190         * modules/ctype (Makefile.am): Likewise.
9191         * modules/dirent (Makefile.am): Likewise.
9192         * modules/errno (Makefile.am): Likewise.
9193         * modules/fcntl-h (Makefile.am): Likewise.
9194         * modules/float (Makefile.am): Likewise.
9195         * modules/getopt-posix (Makefile.am): Likewise.
9196         * modules/glob (Makefile.am): Likewise.
9197         * modules/iconv-h (Makefile.am): Likewise.
9198         * modules/inttypes (Makefile.am): Likewise.
9199         * modules/langinfo (Makefile.am): Likewise.
9200         * modules/locale (Makefile.am): Likewise.
9201         * modules/math (Makefile.am): Likewise.
9202         * modules/netdb (Makefile.am): Likewise.
9203         * modules/netinet_in (Makefile.am): Likewise.
9204         * modules/poll-h (Makefile.am): Likewise.
9205         * modules/pthread (Makefile.am): Likewise.
9206         * modules/pty (Makefile.am): Likewise.
9207         * modules/sched (Makefile.am): Likewise.
9208         * modules/search (Makefile.am): Likewise.
9209         * modules/selinux-h (Makefile.am): Likewise.
9210         * modules/signal (Makefile.am): Likewise.
9211         * modules/spawn (Makefile.am): Likewise.
9212         * modules/stdarg (Makefile.am): Likewise.
9213         * modules/stdbool (Makefile.am): Likewise.
9214         * modules/stddef (Makefile.am): Likewise.
9215         * modules/stdint (Makefile.am): Likewise.
9216         * modules/stdio (Makefile.am): Likewise.
9217         * modules/stdlib (Makefile.am): Likewise.
9218         * modules/string (Makefile.am): Likewise.
9219         * modules/strings (Makefile.am): Likewise.
9220         * modules/sys_file (Makefile.am): Likewise.
9221         * modules/sys_ioctl (Makefile.am): Likewise.
9222         * modules/sys_select (Makefile.am): Likewise.
9223         * modules/sys_socket (Makefile.am): Likewise.
9224         * modules/sys_stat (Makefile.am): Likewise.
9225         * modules/sys_time (Makefile.am): Likewise.
9226         * modules/sys_times (Makefile.am): Likewise.
9227         * modules/sys_utsname (Makefile.am): Likewise.
9228         * modules/sys_wait (Makefile.am): Likewise.
9229         * modules/sysexits (Makefile.am): Likewise.
9230         * modules/termios (Makefile.am): Likewise.
9231         * modules/time (Makefile.am): Likewise.
9232         * modules/unistd (Makefile.am): Likewise.
9233         * modules/wchar (Makefile.am): Likewise.
9234         * modules/wctype-h (Makefile.am): Likewise.
9235         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9236
9237 2011-04-05  Bruno Haible  <bruno@clisp.org>
9238
9239         pipe2: Relicense under LGPLv2+.
9240         * modules/pipe2 (License): Change to LGPLv2+.
9241         Requested by Eric Blake, for libvirt.
9242
9243 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9244
9245         bootstrap: compute gnulib_extra_files after updating build_aux
9246         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9247         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9248
9249 2011-04-05  Eric Blake  <eblake@redhat.com>
9250
9251         bootstrap: preserve git whitelist item sorting
9252         * build-aux/bootstrap (sort_patterns): New function.
9253         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9254
9255 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9256
9257         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9258         sc_space_tab check.
9259
9260 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9261
9262         areadlink, areadlinkat: rewrite in terms of careadlinkat
9263         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9264         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9265         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9266         (malloc, realloc): Remove #undefs.
9267         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9268         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9269         readlink, ssize_t, stdint, unistd.
9270         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9271         areadlink, stdint.
9272
9273         careadlinkat: new module
9274         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9275         * modules/careadlinkat: New files, written by me with
9276         a review and feedback from Ben Pfaff in
9277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9278
9279 2011-04-01  Bruno Haible  <bruno@clisp.org>
9280
9281         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9282         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9283         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9284         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9285         Reported by Bruce Korb <bruce.korb@gmail.com>.
9286
9287 2011-04-01  Bruno Haible  <bruno@clisp.org>
9288
9289         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9290         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9291         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9292         * modules/wcpcpy (Depends-on): Add extensions.
9293         * modules/wcpncpy (Depends-on): Likewise.
9294         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9295         systems.
9296         * doc/posix-functions/wcpncpy.texi: Likewise.
9297         * doc/posix-functions/wcwidth.texi: Likewise.
9298
9299 2011-03-31  Eric Blake  <eblake@redhat.com>
9300
9301         nonblocking: fix mingw test failures
9302         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9303         non-blocking flag on regular file.
9304         (get_nonblocking_flag): Set errno on invalid fd.
9305         * tests/test-nonblocking.c (main): Avoid test failure on
9306         directories if fchdir is not active.
9307         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9308
9309 2011-03-31  Bruno Haible  <bruno@clisp.org>
9310
9311         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9312         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9313         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9314         Reported by Simon Josefsson <simon@josefsson.org>.
9315
9316 2011-03-31  Bruno Haible  <bruno@clisp.org>
9317         and Eric Blake  <eblake@redhat.com>
9318
9319         nonblocking: new module
9320         * modules/nonblocking: New module.
9321         * modules/nonblocking-tests: Likewise.
9322         * lib/nonblocking.h: New file.
9323         * lib/nonblocking.c: Likewise.
9324         * tests/test-nonblocking.c: New test.
9325         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9326
9327 2011-03-30  Bruno Haible  <bruno@clisp.org>
9328
9329         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9330         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9331         instead of 'printf' format for GCC >= 4.4.
9332         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9333         (fprintf, printf, vfprintf, vprintf): Declare with
9334         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9335         the system's vfprintf() function.
9336         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9337
9338 2011-03-30  Eric Blake  <eblake@redhat.com>
9339
9340         passfd: fix scoping bug
9341         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9342         before sendmsg/recvmsg.
9343
9344         passfd: standardize coding conventions
9345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9346         can be learned at compile time.
9347         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9348         ifdefs.
9349         (sendfd, recvfd): Follow gnulib code conventions.
9350
9351         passfd: fix incorrect sendmsg arguments
9352         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9353         incorrect msg_controllen value.
9354         * modules/passfd-tests (Depends-on): Check for alarm.
9355         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9356         Reported by Bastien ROUCARIES.
9357
9358 2011-03-30  Bruno Haible  <bruno@clisp.org>
9359
9360         c-strcasestr: Relicense under LGPLv2+.
9361         * modules/c-strcasestr (License): Change to LGPLv2+.
9362         Requested by Eric Blake, for libvirt.
9363
9364 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9365
9366         * users.txt: Add libidn2.  Fix libtasn1 link.
9367
9368 2011-03-30  Jim Meyering  <meyering@redhat.com>
9369
9370         tests: readlink* ("",... fails with EINVAL on newer kernels
9371         readlink and readlinkat have typically failed with ENOENT for
9372         the invalid, empty file name,  "".  However, with the advent
9373         of linux-2.6.39, they fail with EINVAL.
9374         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9375         when operating on the empty file name.
9376         * tests/test-readlink.h (test_readlink): Likewise.
9377
9378 2011-03-29  Bruno Haible  <bruno@clisp.org>
9379
9380         Relicense some modules under LGPLv2+, for libidn2.
9381         * modules/array-mergesort (License): Change to LGPLv2+.
9382         * modules/c-strcaseeq (License): Likewise.
9383         * modules/striconveh (License): Likewise.
9384         * modules/striconveha (License): Likewise.
9385         * modules/uniconv/base (License): Likewise.
9386         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9387         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9388         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9389         * modules/unictype/base (License): Likewise.
9390         * modules/unictype/bidiclass-of (License): Likewise.
9391         * modules/unictype/category-M (License): Likewise.
9392         * modules/unictype/category-none (License): Likewise.
9393         * modules/unictype/category-of (License): Likewise.
9394         * modules/unictype/category-test (License): Likewise.
9395         * modules/unictype/category-test-withtable (License): Likewise.
9396         * modules/unictype/combining-class (License): Likewise.
9397         * modules/unictype/joiningtype-of (License): Likewise.
9398         * modules/unictype/scripts (License): Likewise.
9399         * modules/uninorm/base (License): Likewise.
9400         * modules/uninorm/canonical-decomposition (License): Likewise.
9401         * modules/uninorm/composition (License): Likewise.
9402         * modules/uninorm/decompose-internal (License): Likewise.
9403         * modules/uninorm/decomposition-table (License): Likewise.
9404         * modules/uninorm/nfc (License): Likewise.
9405         * modules/uninorm/nfd (License): Likewise.
9406         * modules/uninorm/u32-normalize (License): Likewise.
9407         * modules/unistr/base (License): Likewise.
9408         * modules/unistr/u32-cpy (License): Likewise.
9409         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9410         * modules/unistr/u32-to-u8 (License): Likewise.
9411         * modules/unistr/u32-uctomb (License): Likewise.
9412         * modules/unistr/u8-check (License): Likewise.
9413         * modules/unistr/u8-mblen (License): Likewise.
9414         * modules/unistr/u8-mbtouc (License): Likewise.
9415         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9416         * modules/unistr/u8-mbtoucr (License): Likewise.
9417         * modules/unistr/u8-prev (License): Likewise.
9418         * modules/unistr/u8-strlen (License): Likewise.
9419         * modules/unistr/u8-to-u32 (License): Likewise.
9420         * modules/unistr/u8-uctomb (License): Likewise.
9421         * modules/unitypes (License): Likewise.
9422         Requested by Simon Josefsson.
9423
9424 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9425
9426         lib-symbol-visibility: Add a notice.
9427         * modules/lib-symbol-visibility (Notice): New field.
9428
9429 2011-03-29  Bruno Haible  <bruno@clisp.org>
9430
9431         getaddrinfo: Doc fix.
9432         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9433         section "fixed in Gnulib".
9434
9435 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9436
9437         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9438         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9439
9440 2011-03-26  Bruno Haible  <bruno@clisp.org>
9441
9442         unictype/property-byname: Reduce the number of load-time relocations.
9443         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9444         (UC_PROPERTY_INDEX_*): New enumeration values.
9445         (uc_property_byname): Convert an index from the lookup table to an
9446         uc_property_t.
9447         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9448         values.
9449
9450 2011-03-26  Bruno Haible  <bruno@clisp.org>
9451
9452         unictype/property-byname: Allow omitted word separators and aliases.
9453         * lib/unictype/pr_byname.gperf: Add property names without word
9454         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9455         for 'space'.
9456
9457 2011-03-26  Bruno Haible  <bruno@clisp.org>
9458
9459         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9460         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9461         also hyphens to space.
9462         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9463         without spaces.
9464         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9465
9466 2011-03-26  Bruno Haible  <bruno@clisp.org>
9467
9468         unictype/joiningtype-byname: Recognize long names as well.
9469         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9470         a long name.
9471         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9472         unictype/joiningtype_byname.h.
9473         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9474         * lib/unictype/joiningtype_byname.gperf: New file.
9475         * modules/unictype/joiningtype-byname (Files): Add
9476         lib/unictype/joiningtype_byname.gperf.
9477         (Depends-on): Add gperf.
9478         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9479         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9480         long names.
9481
9482         Tests for module 'unictype/joiningtype-longname'.
9483         * modules/unictype/joiningtype-longname-tests: New file.
9484         * tests/unictype/test-joiningtype_longname.c: New file.
9485
9486         New module 'unictype/joiningtype-longname'.
9487         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9488         * lib/unictype/joiningtype_longname.c: New file.
9489         * modules/unictype/joiningtype-longname: New file.
9490         * modules/unictype/joiningtype-all (Depends-on): Add
9491         unictype/joiningtype-longname.
9492
9493 2011-03-26  Bruno Haible  <bruno@clisp.org>
9494
9495         unictype/bidiclass-byname: Recognize long names as well.
9496         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9497         name.
9498         * lib/unictype/bidi_byname.c: Include <string.h>,
9499         unictype/bidi_byname.h.
9500         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9501         * lib/unictype/bidi_byname.gperf: New file.
9502         * modules/unictype/bidiclass-byname (Files): Add
9503         lib/unictype/bidi_byname.gperf.
9504         (Depends-on): Add gperf.
9505         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9506         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9507         long names.
9508
9509         Tests for module 'unictype/bidiclass-longname'.
9510         * modules/unictype/bidiclass-longname-tests: New file.
9511         * tests/unictype/test-bidi_longname.c: New file.
9512
9513         New module 'unictype/bidiclass-longname'.
9514         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9515         * lib/unictype/bidi_longname.c: New file.
9516         * modules/unictype/bidiclass-longname: New file.
9517         * modules/unictype/bidiclass-all (Depends-on): Add
9518         unictype/bidiclass-longname.
9519
9520 2011-03-26  Bruno Haible  <bruno@clisp.org>
9521
9522         unictype/bidi*: Rename modules.
9523         * modules/unictype/bidiclass-all: Renamed from
9524         modules/unictype/bidicategory-all.
9525         * modules/unictype/bidiclass-name: Renamed from
9526         modules/unictype/bidiclass-name.
9527         (Description): Update.
9528         * modules/unictype/bidiclass-name-tests: Renamed from
9529         modules/unictype/bidicategory-name-tests.
9530         * modules/unictype/bidiclass-byname: Renamed from
9531         modules/unictype/bidicategory-byname.
9532         (Description): Update.
9533         * modules/unictype/bidiclass-byname-tests: Renamed from
9534         modules/unictype/bidicategory-byname-tests.
9535         * modules/unictype/bidiclass-of: Renamed from
9536         modules/unictype/bidicategory-of.
9537         (Description): Update.
9538         * modules/unictype/bidiclass-of-tests: Renamed from
9539         modules/unictype/bidicategory-of-tests.
9540         * modules/unictype/bidiclass-test: Renamed from
9541         modules/unictype/bidicategory-test.
9542         (Description): Update.
9543         * modules/unictype/bidiclass-test-tests: Renamed from
9544         modules/unictype/bidicategory-test-tests.
9545         * modules/unictype/bidicategory-all: New file, a simple redirection.
9546         * modules/unictype/bidicategory-name: Likewise.
9547         * modules/unictype/bidicategory-byname: Likewise.
9548         * modules/unictype/bidicategory-of: Likewise.
9549         * modules/unictype/bidicategory-test: Likewise.
9550         * modules/unictype/property-bidi-* (Dependencies): Update.
9551         * lib/unictype/bidi_*.c: Update comment.
9552
9553 2011-03-26  Bruno Haible  <bruno@clisp.org>
9554
9555         unictype/bidi*: Rename functions, part 2.
9556         * modules/unictype/bidicategory-name (configure.ac): Update required
9557         libunistring version.
9558         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9559
9560 2011-03-25  Bruno Haible  <bruno@clisp.org>
9561
9562         New module 'unictype/combining-class-all'.
9563         * modules/unictype/combining-class-all: New file.
9564
9565         Tests for module 'unictype/combining-class-byname'.
9566         * modules/unictype/combining-class-byname-tests: New file.
9567         * tests/unictype/test-combiningclass_byname.c: New file.
9568
9569         New module 'unictype/combining-class-byname'.
9570         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9571         * lib/unictype/combiningclass_byname.c: New file.
9572         * lib/unictype/combiningclass_byname.gperf: New file.
9573         * modules/unictype/combining-class-byname: New file.
9574
9575         Tests for module 'unictype/combining-class-longname'.
9576         * modules/unictype/combining-class-longname-tests: New file.
9577         * tests/unictype/test-combiningclass_longname.c: New file.
9578
9579         New module 'unictype/combining-class-longname'.
9580         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9581         * lib/unictype/combiningclass_longname.c: New file.
9582         * modules/unictype/combining-class-longname: New file.
9583
9584         Tests for module 'unictype/combining-class-name'.
9585         * modules/unictype/combining-class-name-tests: New file.
9586         * tests/unictype/test-combiningclass_name.c: New file.
9587
9588         New module 'unictype/combining-class-name'.
9589         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9590         * lib/unictype/combiningclass_name.c: New file.
9591         * modules/unictype/combining-class-name: New file.
9592
9593 2011-03-25  Bruno Haible  <bruno@clisp.org>
9594
9595         unictype/combining-class: Rename source files.
9596         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9597         of unictype/combining.h.
9598         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9599         Update.
9600         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9601         * modules/unictype/combining-class (Description): Fix.
9602         (Files, Makefile.am): Update.
9603         * tests/unictype/test-combiningclass.c: Renamed from
9604         tests/unictype/test-combining.c.
9605         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9606
9607 2011-03-25  Bruno Haible  <bruno@clisp.org>
9608
9609         unictype: Update list of canonical combining classes.
9610         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9611
9612 2011-03-25  Bruno Haible  <bruno@clisp.org>
9613
9614         unictype/category-byname: Recognize long names as well.
9615         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9616         a long name.
9617         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9618         unictype/categ_byname.h.
9619         (UC_CATEGORY_INDEX_*): New enumeration values.
9620         (uc_general_category_byname): Use uc_general_category_lookup and
9621         convert from index to value.
9622         * lib/unictype/categ_byname.gperf: New file.
9623         * modules/unictype/category-byname (Files): Add
9624         lib/unictype/categ_byname.gperf.
9625         (Depends-on): Add gperf.
9626         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9627         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9628         long names.
9629
9630         Tests for module 'unictype/category-longname'.
9631         * modules/unictype/category-longname-tests: New file.
9632         * tests/unictype/test-categ_longname.c: New file.
9633
9634         New module 'unictype/category-longname'.
9635         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9636         * lib/unictype/categ_longname.c: New file.
9637         * modules/unictype/category-longname: New file.
9638         * modules/unictype/category-all (Depends-on): Add it.
9639
9640 2011-03-25  Bruno Haible  <bruno@clisp.org>
9641
9642         Tests for module 'unictype/category-LC'.
9643         * modules/unictype/category-LC-tests: New file.
9644         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9645
9646         New module 'unictype/category-LC'.
9647         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9648         (UC_CATEGORY_LC): New declaration.
9649         (UC_CASED_LETTER): New macro.
9650         * lib/gen-uni-tables.c (is_category_LC): New function.
9651         (output_categories): Also handle category LC.
9652         (UC_CATEGORY_MASK_LC): New enumeration value.
9653         (general_category_byname): Also handle category LC.
9654         * lib/unictype/categ_LC.c: New file.
9655         * lib/unictype/categ_LC.h: New file, automatically generated.
9656         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9657         category LC.
9658         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9659         * modules/unictype/category-LC: New file.
9660         * modules/unictype/category-byname (Depends-on): Add
9661         unictype/category-LC.
9662         * modules/unictype/category-all (Depends-on): Likewise.
9663
9664 2011-03-25  Eric Blake  <eblake@redhat.com>
9665
9666         xmalloc: revert yesterday's regression
9667         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9668         realloc's underlying behavior (allowing allocation of zero-size
9669         objects, especially if malloc-gnu is also in use).
9670
9671 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9672
9673         maint.mk: add missing version to VC-tag
9674         * top/maint.mk: git tag was missing actual tag name; add it.
9675
9676         valgrind: do leak checking, and exit with code 1 on error (not 0)
9677         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9678         to VALGRIND.
9679
9680 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9681
9682         posix-modules: say what it does.
9683         * posix-modules: Add a line to the --help output saying what it does.
9684
9685 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9686
9687         xmalloc: Do not leak if underlying realloc is C99 compatible.
9688         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9689         This avoids a leak on C99-based systems.  See
9690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9691
9692 2011-03-24  Eric Blake  <eblake@redhat.com>
9693
9694         realloc: document portability problem
9695         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9696         passing 0 size to realloc.
9697
9698 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9699
9700         doc: update users.txt
9701         * users.txt: Add cvsps, tmpwatch
9702
9703 2011-03-23  Matt Rice  <ratmice@gmail.com>
9704
9705         doc: update users.txt
9706         * users.txt: Add gdb.
9707
9708 2011-03-23  Jim Meyering  <meyering@redhat.com>
9709
9710         doc: update users.txt
9711         Looking through matches up to the following URL (there are still
9712         several more pages), I found several projects that use gnulib:
9713         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9714         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9715         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9716
9717 2011-03-22  Bruno Haible  <bruno@clisp.org>
9718
9719         unictype/bidi*: Rename functions.
9720         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9721         uc_bidi_class, uc_is_bidi_class): New declarations.
9722         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9723         uc_bidi_category_byname.
9724         (uc_bidi_category_byname): New function.
9725         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9726         u_bidi_category_name.
9727         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9728         (uc_bidi_category_name): New function.
9729         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9730         uc_bidi_category.
9731         (uc_bidi_category): New function.
9732         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9733         uc_is_bidi_category. Invoke uc_bidi_class.
9734         (uc_is_bidi_category): New function.
9735         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9736         instead of uc_bidi_category_byname.
9737         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9738         instead of uc_bidi_category_name.
9739         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9740         uc_bidi_category.
9741         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9742         instead of uc_is_bidi_category.
9743
9744 2011-03-21  Bruno Haible  <bruno@clisp.org>
9745
9746         New module 'unictype/joininggroup-all'.
9747         * modules/unictype/joininggroup-all: New file.
9748
9749         Tests for module 'unictype/joininggroup-of'.
9750         * modules/unictype/joininggroup-of-tests: New file.
9751         * tests/unictype/test-joininggroup_of.c: New file.
9752         * tests/unictype/test-joininggroup_of.h: New file, automatically
9753         generated by gen-uni-tables.
9754
9755         New module 'unictype/joininggroup-of'.
9756         * modules/unictype/joininggroup-of: New file.
9757         * lib/unictype/joininggroup_of.c: New file.
9758         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9759         gen-uni-tables.
9760
9761         Tests for module 'unictype/joininggroup-byname'.
9762         * modules/unictype/joininggroup-byname-tests: New file.
9763         * tests/unictype/test-joininggroup_byname.c: New file.
9764
9765         New module 'unictype/joininggroup-byname'.
9766         * modules/unictype/joininggroup-byname: New file.
9767         * lib/unictype/joininggroup_byname.c: New file.
9768         * lib/unictype/joininggroup_byname.gperf: New file.
9769
9770         Tests for module 'unictype/joininggroup-name'.
9771         * modules/unictype/joininggroup-name-tests: New file.
9772         * tests/unictype/test-joininggroup_name.c: New file.
9773
9774         New module 'unictype/joininggroup-name'.
9775         * modules/unictype/joininggroup-name: New file.
9776         * lib/unictype/joininggroup_name.c: New file.
9777         * lib/unictype/joininggroup_name.h: New file.
9778
9779         New module 'unictype/joiningtype-all'.
9780         * modules/unictype/joiningtype-all: New file.
9781
9782         Tests for module 'unictype/joiningtype-of'.
9783         * modules/unictype/joiningtype-of-tests: New file.
9784         * tests/unictype/test-joiningtype_of.c: New file.
9785         * tests/unictype/test-joiningtype_of.h: New file, automatically
9786         generated by gen-uni-tables.
9787
9788         New module 'unictype/joiningtype-of'.
9789         * modules/unictype/joiningtype-of: New file.
9790         * lib/unictype/joiningtype_of.c: New file.
9791         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9792         gen-uni-tables.
9793
9794         Tests for module 'unictype/joiningtype-byname'.
9795         * modules/unictype/joiningtype-byname-tests: New file.
9796         * tests/unictype/test-joiningtype_byname.c: New file.
9797
9798         New module 'unictype/joiningtype-byname'.
9799         * modules/unictype/joiningtype-byname: New file.
9800         * lib/unictype/joiningtype_byname.c: New file.
9801
9802         Tests for module 'unictype/joiningtype-name'.
9803         * modules/unictype/joiningtype-name-tests: New file.
9804         * tests/unictype/test-joiningtype_name.c: New file.
9805
9806         New module 'unictype/joiningtype-name'.
9807         * modules/unictype/joiningtype-name: New file.
9808         * lib/unictype/joiningtype_name.c: New file.
9809
9810         unictype: Add support for Arabic shaping properties.
9811         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9812         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9813         declarations.
9814         (UC_JOINING_GROUP_*): New enumeration values.
9815         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9816         declarations.
9817         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9818         (unicode_joining_type): New variable.
9819         (UC_JOINING_GROUP_*): New enumeration values.
9820         (unicode_joining_group): New variable.
9821         (fill_arabicshaping, joining_type_as_c_identifier,
9822         output_joining_type_test, output_joining_type,
9823         joining_group_as_c_identifier, output_joining_group_test,
9824         output_joining_group): New functions.
9825         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9826         fill_arabicshaping and output_joining_type_test, output_joining_type,
9827         output_joining_group_test, output_joining_group.
9828         Reported by Simon Josefsson.
9829
9830 2011-03-21  Jim Meyering  <meyering@redhat.com>
9831
9832         strftime: fix a bug in yesterday's change
9833         * lib/strftime.c (add): Accommodate width's initial value of -1.
9834         Otherwise, nstrftime would copy uninitialized data into
9835         the result buffer.
9836
9837 2011-03-21  Jim Meyering  <meyering@redhat.com>
9838
9839         tests: add strftime-tests module
9840         * tests/test-strftime.c: New file.
9841         * modules/strftime-tests: New module.
9842
9843 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9844
9845         strftime: don't assume a byte count fits in 'int'
9846         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9847         found this problem by static analysis, using gcc -Wstrict-overflow
9848         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9849         on an integer overflow having undefined behavior, but it turns out
9850         that the argument is a size, which might not fit in 'int' anyway,
9851
9852 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9853
9854         stdio: don't require ignore_value around fwrite
9855
9856         This patch works around libc bug 11959
9857         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9858         Without this patch, applications must often write
9859         ignore_value (fwrite (...)) even though the ignore_value is
9860         not helpful here.  It's common to write many objects, using
9861         fwrite/printf/etc., and then use ferror to detect output error.
9862
9863         I considered making this patch optional, but decided against it,
9864         because libc is obviously being inconsistent here: there is no
9865         reason libc should insist that user code must inspect fwrite
9866         return's value without also insisting that it inspect printf's,
9867         putchar's, etc.  If user code wants to have a strict style where
9868         all these functions' values are checked (so that ferror need not
9869         be checked), we could add support for that style in a new gnulib
9870         module, but in the meantime it's better to be consistent and to
9871         support common usage.
9872
9873         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9874         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9875         that we are compiling in checking mode, and if not C++, and
9876         if not already wrapping fwrite for some other reason.
9877         (fwrite): #define to rpl_fwrite if the latter is defined.
9878
9879 2011-03-20  Bruno Haible  <bruno@clisp.org>
9880
9881         verror: Fix compilation error introduced on 2011-02-13.
9882         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9883         instead of __attribute__.
9884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9885
9886 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9887             Bruno Haible  <bruno@clisp.org>
9888
9889         socklen: do not depend on sys_socket
9890         While trying to modify Emacs to use gnulib's socklen module,
9891         I discovered a circular dependency: socklen depends on sys_socket
9892         and vice versa.  Emacs can use socklen, but it does not need
9893         sys_socket because it has its own substitute for sys/socket.h.
9894         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9895         gl_TYPE_SOCKLEN_T.
9896         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9897         gl_PREREQ_SYS_H_SOCKET.
9898         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9899         gl_PREREQ_SYS_H_SOCKET.
9900         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9901         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9902         * modules/socklen (Depends-on): Do not depend on sys_socket.
9903         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9904
9905 2011-03-20  Jim Meyering  <meyering@redhat.com>
9906
9907         maint.mk: sort file names *after* new transformation
9908         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9909         prefix would have led to an unwarranted failure in GNU parted.
9910         Sort after that transformation.
9911
9912 2011-03-19  Jim Meyering  <meyering@redhat.com>
9913
9914         maint.mk: fix po-file syntax-check rule
9915         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9916         Patch by Bruno Haible.
9917
9918 2011-03-19  Bruno Haible  <bruno@clisp.org>
9919
9920         socklen: Update comment.
9921         * m4/socklen.m4: Update comment about platforms.
9922
9923 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9924             Bruno Haible  <bruno@clisp.org>
9925
9926         inet_ntop, inet_pton: Simplify.
9927         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9928         documented to provide socklen_t and we already depend on sys_socket.
9929         * modules/inet_pton (Depends-on): Likewise.
9930         * lib/arpa_inet.in.h: Adjust comment.
9931
9932 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9933             Bruno Haible  <bruno@clisp.org>
9934
9935         netdb: Simplify.
9936         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9937         documented to provide socklen_t and we already depend on sys_socket.
9938         * lib/netdb.in.h: Adjust comment.
9939
9940 2011-03-19  Bruno Haible  <bruno@clisp.org>
9941
9942         sys_socket, netdb: Document problem with socklen_t.
9943         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9944         platforms.
9945         * doc/posix-headers/netdb.texi: Likewise.
9946
9947 2011-03-18  Eric Blake  <eblake@redhat.com>
9948
9949         maint.mk: let po check work in VPATH build
9950         * top/maint.mk (po_file): Allow cfg.mk override.
9951         (sc_po_check): Allow VPATH use.
9952         Reported by Jiri Denemark.
9953
9954 2011-03-16  Jim Meyering  <meyering@redhat.com>
9955
9956         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9957         Before, you would have had to create one .x-sc_ file per rule in order
9958         to exempt offending files.  Now, you may instead use a Make variable --
9959         usually defined in cfg.mk -- whose name identifies the affected rule.
9960         * top/maint.mk (_sc_excl): Define.
9961         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9962         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9963
9964 2011-03-13  Bruno Haible  <bruno@clisp.org>
9965
9966         ignore-value tests: Avoid warnings.
9967         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9968         empty for gcc < 3.4.
9969
9970 2011-03-13  Bruno Haible  <bruno@clisp.org>
9971
9972         passfd: Fix link error on Solaris.
9973         * modules/passfd (Description): Correct.
9974         (Depends-on): Add socketlib.
9975         (Link): New section.
9976         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9977
9978 2011-03-13  Bruno Haible  <bruno@clisp.org>
9979
9980         passfd: Fix link error on AIX 5.2.
9981         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9982
9983 2011-03-13  Bruno Haible  <bruno@clisp.org>
9984
9985         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9986         * lib/sys_socket.in.h: Include <stddef.h>.
9987         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9988         CMSG_FIRSTHDR. Remove unused variable.
9989
9990 2011-03-13  Bruno Haible  <bruno@clisp.org>
9991
9992         passfd: Fix compilation error on OpenBSD.
9993         * lib/passfd.c: Include <sys/uio.h>.
9994
9995 2011-03-13  Bruno Haible  <bruno@clisp.org>
9996
9997         passfd test: Fix warnings.
9998         * tests/test-passfd.c: Include <sys/wait.h>.
9999         (main): Fix typo.
10000
10001 2011-03-13  Bruno Haible  <bruno@clisp.org>
10002
10003         passfd module, part 4, tweaks.
10004         * tests/test-passfd.c: Reorder includes.
10005         (main): Fix perror and printf calls.
10006
10007 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10008
10009         passfd module, part 4.
10010         * modules/passfd-tests: New file.
10011         * tests/test-passfd.c: New file.
10012
10013 2011-03-13  Jim Meyering  <meyering@redhat.com>
10014
10015         Makefile: rely on GNU make; derive syntax-check rule names
10016         Rather than requiring that each sc_ rule be listed as a dependent
10017         of "check", use features of GNU make to derive the list.
10018         * Makefile (syntax-check-rules): Define.
10019         (check): Depend on the new variable, not the hard-coded list.
10020
10021 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10022             Bruno Haible  <bruno@clisp.org>
10023
10024         passfd module, part 3.
10025         * lib/passfd.h (recvfd): Add a flags argument.
10026         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10027         (recvfd): Add a flags argument.
10028         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10029         exists.
10030         * modules/passfd (Depends-on): Add cloexec.
10031         Suggested by Eric Blake.
10032
10033 2011-03-13  Bruno Haible  <bruno@clisp.org>
10034
10035         passfd module, part 2, tweaks.
10036         * modules/passfd (Files): Reorder.
10037         (Depends-on): Remove errno.
10038         (Include): Remove <sys/socket.h>, <sys/un.h>.
10039         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10040         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10041         specification header. Include <sys/socket.h> always. Don't include
10042         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10043         (sendfd): Clarify that it sets errno when it fails.
10044         (recvfd): Fix specification.
10045
10046 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10047
10048         passfd module, part 2.
10049         * modules/passfd: New file.
10050         * lib/passfd.h: New file.
10051         * lib/passfd.c: New file.
10052
10053 2011-03-12  Bruno Haible  <bruno@clisp.org>
10054
10055         wcswidth, mbswidth: Avoid integer overflow.
10056         * lib/wcswidth.c: Include <limits.h>.
10057         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10058         * lib/mbswidth.c: Include <limits.h>.
10059         (mbsnwidth): Avoid 'int' overflow.
10060         Reported by Jim Meyering.
10061
10062 2011-03-12  Bruno Haible  <bruno@clisp.org>
10063
10064         futimens, utimensat: Avoid endless recursion on Solaris 10.
10065         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10066         Solaris.
10067         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10068         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10069
10070 2011-03-11  Jim Meyering  <meyering@redhat.com>
10071
10072         maint.mk: relax a regexp to accommodate other formatting styles
10073         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10074         between "ngettext" and the following "(".
10075
10076 2011-03-11  Pádraig Brady <P@draigBrady.com>
10077
10078         maint.mk: suppress a false positive warning
10079         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10080         diagnostics are marked with ngettext.
10081
10082 2011-03-10  Eric Blake  <eblake@redhat.com>
10083
10084         wchar: add explicit dependencies, for Tru64
10085         * modules/mbmemcasecoll (Depends-on): Add wchar.
10086         * modules/mbtowc (Depends-on): Likewise.
10087         * modules/vasnprintf (Depends-on): Likewise.
10088         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10089         * modules/wctomb (Depends-on): Likewise.
10090         Reported by Peter O'Gorman.
10091
10092 2011-03-08  Bruno Haible  <bruno@clisp.org>
10093
10094         passfd module, part 1, tweaks.
10095         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10096         Improve indentation. Improve AC_MSG_CHECKING messages.
10097         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10098         gl_SOCKET_FAMILIES.
10099
10100 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10101
10102         passfd module, part 1.
10103         * m4/afunix.m4: New file.
10104         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10105         sockets.
10106
10107 2011-03-08  Bruno Haible  <bruno@clisp.org>
10108
10109         regex-quote: New API.
10110         * lib/regex-quote.h: Include <stdbool.h>.
10111         (struct regex_quote_spec): New type.
10112         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10113         New declarations.
10114         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10115         'const struct regex_quote_spec *' argument.
10116         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10117         (pcre_special): New constant.
10118         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10119         New functions.
10120         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10121         'const struct regex_quote_spec *' argument.
10122         * modules/regex-quote (Depends-on): Add stdbool.
10123         * tests/test-regex-quote.c (check): Update for new API. Add test for
10124         anchored results.
10125         * NEWS: Mention the API change.
10126         Reported by Reuben Thomas and Eric Blake.
10127
10128 2011-03-06  Bruno Haible  <bruno@clisp.org>
10129
10130         regex-quote: Fix creation of POSIX extended regular expressions.
10131         * lib/regex-quote.c (ere_special): Add grouping and alternation
10132         operators.
10133
10134 2011-03-05  Bruno Haible  <bruno@clisp.org>
10135
10136         doc: Improve doc regarding autopoint vs. gnulib.
10137         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10138         disable autopoint while running autoreconf.
10139         Suggested by Ralf Wildenhues.
10140
10141 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10142
10143         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10144         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10145
10146 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10147
10148         parse-duration: remove xalloc.h dependency
10149         * lib/parse-duration.c (parse_period): handle NULL return from
10150         strdup instead of calling xstrdup().
10151         * modules/parse-duration: remove "xalloc" dependency
10152
10153 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10154
10155         bootstrap: honor m4_base when running aclocal
10156         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10157
10158 2011-03-02  Jim Meyering  <meyering@redhat.com>
10159
10160         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10161         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10162         on request from Matt Booth.
10163
10164 2011-03-01  Eric Blake  <eblake@redhat.com>
10165
10166         test-link: work on Hurd
10167         * tests/test-link.h (test_link): Hurd rejects linking directories
10168         with EISDIR instead of the POSIX-mandated EPERM.
10169
10170 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10171
10172         stdio: simplify by moving files to printf-posix, sigpipe
10173         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10174         since this symbol is needed only if printf is replaced.
10175         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10176         Require gl_ASM_SYMBOL_PREFIX.
10177         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10178         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10179         (Depends-on): Add 'raise'.
10180         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10181         * modules/stdio (Files): Remove lib/stdio-write.c,
10182         m4/asm-underscore.m4.
10183         (Depends-on): Remove 'raise'.
10184
10185         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10186         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10187         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10188         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10189
10190 2011-02-28  Bruno Haible  <bruno@clisp.org>
10191
10192         localcharset: Assume ANSI C behaviour of free().
10193         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10194         calling free().
10195         Suggested by Simon Josefsson <simon@josefsson.org>.
10196
10197 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10198             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10199             Bruno Haible  <bruno@clisp.org>  (tiny change)
10200
10201         On Cygwin, use /proc file system instead of win32 API.
10202         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10203         Win32 file names.
10204         (DllMain): Simplify by removing Cygwin specific code.
10205         (find_shared_library_fullname): Use Linux specific implementation also
10206         for Cygwin.
10207         (get_shared_library_fullname): Update accordingly.
10208         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10209         Win32 file names.
10210         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10211         Cygwin specific code.
10212
10213 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10214             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10215
10216         Fix OpenMP flag detection for various Fortran compilers.
10217         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10218         OpenMP-conditional compilation construct, to force compile
10219         failure with missing OpenMP flag.
10220         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10221
10222 2011-02-25  Eric Blake  <eblake@redhat.com>
10223
10224         strstr: expand test coverage
10225         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10226         compilation.
10227         * tests/test-memmem.c (main): Duplicate tests.
10228         * tests/test-strcasestr.c (main): Likewise.
10229         * tests/test-c-strcasestr.c (main): Likewise.
10230
10231 2011-02-25  Jim Meyering  <meyering@redhat.com>
10232
10233         maint.mk: detect missing-NL-at-EOF, too
10234         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10235         it also detects when a file lacks a newline at EOF.
10236         (require_exactly_one_NL_at_EOF_): Renamed from
10237         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10238         since people may well have .x-sc_... file names tied to the
10239         existing name.  Suggested by Eric Blake.
10240
10241 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         dirname: move m4/dos.m4 functionality into lib/dosname.h
10244
10245         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10246         extracts symbols from it, puts them into config.h; but it's much
10247         easier to use the symbols directly.  filename.h already does this,
10248         but it disagrees with dos.m4 in some respects.  This patch
10249         introduces a different include file dosname.h that packages up
10250         dos.m4, and then later we can work on merging filename.h and
10251         dosname.h.  Applications that need only the easy-to-configure
10252         symbols should consider including dosname.h rather than dirname.h.
10253         * NEWS: Mention incompatible changes.
10254         * m4/dos.m4: Remove.
10255         * lib/dosname.h, modules/dosname: New files.
10256         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10257         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10258         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10259         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10260         Include dosname.h, not dirname.h.
10261         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10262         Include dosname.h, for definitions of symbols like ISSLASH
10263         that used to be in config.h.
10264         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10266         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10267         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10268         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10269         * modules/rmdir (Files): Likewise.
10270         * modules/stat (Files): Likewise.
10271         * modules/unlink (Files): Likewise.
10272         * modules/dirname-lgpl (Depends-on): Add dosname.
10273         * modules/lstat (Depends-on): Likewise.
10274         * modules/openat (Depends-on): Likewise.
10275         * modules/rmdir (Depends-on): Likewise.
10276         * modules/savewd (Depends-on): Likewise.
10277         * modules/stat (Depends-on): Likewise.
10278         * modules/unlink (Depends-on): Likewise.
10279         * modules/openat (Depends-on): Remove dirname-lgpl.
10280         * modules/savewd (Depends-on): Likewise.
10281         * tests/test-dirname.c: Do not use removed symbols like
10282         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10283         the remaining symbols, e.g., ISSLASH ('\\').
10284
10285 2011-02-25  Eric Blake  <eblake@redhat.com>
10286
10287         strstr: revert patches that introduced bug and pessimization
10288         * lib/str-two-way.h: Add another reference.
10289         (two_way_short_needle, two_way_long_needle): Revert changes from
10290         2011-02-24; they pessimize search speed.
10291         (critical_factorization): Partially revert changes from
10292         2010-06-22; they violate the requirement that the left half of the
10293         needle be smaller than the period of the needle.
10294
10295 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10296
10297         filenamecat: remove unnecessary dependency on dirname-lgpl
10298         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10299         is no direct dependency, just an indirect one via filenamecat-lgpl.
10300
10301         remove: remove unnecessary use of m4/dos.m4
10302         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10303         * modules/remove (FILES): Remove m4/dos.m4.
10304
10305         * lib/openat-proc.c: Don't include dirname.h; not needed.
10306
10307         backupfile: remove unnecessary use of m4/dos.m4
10308         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10309         of its symbols are used by the backupfile code.  backupfile.c does
10310         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10311         for the rare case of programs that want all their backup file
10312         names to live within 8+3 limits, and dos.m4 doesn't address that.
10313         * modules/backupfile (Files): Remove m4/dos.m4.
10314
10315 2011-02-24  Jim Meyering  <meyering@redhat.com>
10316
10317         strstr: fix a bug whereby strstr would mistakenly return NULL
10318         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10319         in period calculation.
10320         (two_way_long_needle): Likewise.
10321         The original problem was reported by Mike Stump in
10322         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10323         Ralf Wildenhues provided the short needle and haystack.
10324         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10325         Add a more involved test to trigger the bug in two_way_long_needle.
10326
10327 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10328
10329         gnulib-tool: remove use of bold display in help screen
10330         * gnulib-tool (func_usage): Do not use bold display anymore in the
10331         help screen.  That was just meant to be a temporary emphasis for a
10332         backward-incompatible change.
10333
10334 2011-02-23  Bruno Haible  <bruno@clisp.org>
10335
10336         Fix misindentation of preprocessor directives.
10337         * lib/argp-namefrob.h: Reindent preprocessor directives.
10338         * lib/getopt_int.h (struct _getopt_data): Likewise.
10339         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10340         * lib/vasnprintf.c (decode_long_double): Likewise.
10341         * tests/test-argmatch.c: Insert blank lines, for clarity.
10342         * tests/test-exclude.c: Likewise.
10343
10344 2011-02-22  Bruno Haible  <bruno@clisp.org>
10345
10346         ioctl: Fix for MacOS X in 64-bit mode.
10347         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10348         value.
10349         Suggested by Eric Blake.
10350         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10351
10352 2011-02-22  Jim Meyering  <meyering@redhat.com>
10353
10354         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10355         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10356         in lib/.
10357
10358 2011-02-22  Eric Blake  <eblake@redhat.com>
10359
10360         maint: avoid any CDPATH issue
10361         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10362
10363         maint: adjust cpp indentation for my modules, as well
10364         * Makefile (sc_cpp_indent_check): Add my name.
10365         * lib/fbufmode.c: Filter through cppi.
10366         * lib/fpurge.c: Likewise.
10367         * lib/freadable.c: Likewise.
10368         * lib/freading.c: Likewise.
10369         * lib/fwritable.c: Likewise.
10370         * lib/fwriting.c: Likewise.
10371         * lib/sigaction.c: Likewise.
10372
10373 2011-02-22  Jim Meyering  <meyering@redhat.com>
10374
10375         maint: adjust cpp indentation to reflect nesting depth
10376         I.e., in a block of code that begins with an unnested "#if",
10377         put one space between the "#" in column 1 and following token.
10378         For example,
10379         -#include <sys/vfs.h>
10380         +# include <sys/vfs.h>
10381         Do this only in .c files that are part of a module I maintain.
10382         * lib/linkat.c: Filter through cppi.
10383         * lib/nanosleep.c: Likewise.
10384         * lib/openat.c: Likewise.
10385         * lib/openat-die.c: Likewise.
10386         * lib/dup3.c: Likewise.
10387         * lib/fchownat.c: Likewise.
10388         * lib/flock.c: Likewise.
10389         * lib/fsync.c: Likewise.
10390         * lib/fts.c: Likewise.
10391         * lib/getpass.c: Likewise.
10392         * lib/gettimeofday.c: Likewise.
10393         * lib/userspec.c: Likewise.
10394         * Makefile (sc_cpp_indent_check): New rule, to check this.
10395
10396 2011-02-22  Bruno Haible  <bruno@clisp.org>
10397
10398         New module 'wctomb'.
10399         * lib/stdlib.in.h (wctomb): New declaration.
10400         * lib/wctomb.c: New file.
10401         * lib/wctomb-impl.h: New file.
10402         * m4/wctomb.m4: New file.
10403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10404         REPLACE_WCTOMB.
10405         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10406         REPLACE_WCTOMB.
10407         * modules/wctomb: New file.
10408         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10409         * doc/posix-functions/wctomb.texi: Mention the new module.
10410         * modules/wctob (Depends-on): Add wctomb.
10411
10412 2011-02-22  Bruno Haible  <bruno@clisp.org>
10413
10414         New module 'mbtowc'.
10415         * lib/stdlib.in.h (mbtowc): New declaration.
10416         * lib/mbtowc.c: New file.
10417         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10418         * m4/mbtowc.m4: New file.
10419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10420         REPLACE_MBTOWC.
10421         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10422         REPLACE_MBTOWC.
10423         * modules/mbtowc: New file.
10424         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10425         * doc/posix-functions/mbtowc.texi: Mention the new module.
10426         * modules/btowc (Depends-on): Add mbtowc.
10427
10428 2011-02-22  Bruno Haible  <bruno@clisp.org>
10429
10430         wcrtomb: Add more tests for native Windows platforms.
10431         * tests/test-wcrtomb-w32-1.sh: New file.
10432         * tests/test-wcrtomb-w32-2.sh: New file.
10433         * tests/test-wcrtomb-w32-3.sh: New file.
10434         * tests/test-wcrtomb-w32-4.sh: New file.
10435         * tests/test-wcrtomb-w32-5.sh: New file.
10436         * tests/test-wcrtomb-w32.c: New file.
10437         * modules/wcrtomb-tests (Files): Add them.
10438         (Makefile.am): Arrange to run these tests.
10439         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10440         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10441
10442 2011-02-20  Bruno Haible  <bruno@clisp.org>
10443
10444         wcrtomb: Enhance test.
10445         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10446
10447 2011-02-20  Bruno Haible  <bruno@clisp.org>
10448
10449         mbrtowc: Tiny optimization.
10450         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10451
10452 2011-02-20  Jim Meyering  <meyering@redhat.com>
10453
10454         test-exclude.c: remove unmatched #endif
10455         * tests/test-exclude.c: Remove stray #endif, left over from
10456         the change of a week ago.
10457
10458 2011-02-19  Jim Meyering  <meyering@redhat.com>
10459
10460         git-version-gen: skip "-dirty" check when appropriate
10461         * build-aux/git-version-gen: Don't run any git commands when the
10462         version string comes from .tarball-version.  Prior to this, we
10463         would run git update-index --refresh even from a just-unpacked
10464         tarball directory, and that could affect a .git/ directory in a
10465         parent of the build directory.  Reported by Mike Frysinger.
10466
10467 2011-02-19  Bruno Haible  <bruno@clisp.org>
10468
10469         unictype/property-byname: Reduce the size of the 'data' segment.
10470         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10471
10472 2011-02-19  Bruno Haible  <bruno@clisp.org>
10473
10474         unictype/scripts: Reduce the size of the 'data' segment.
10475         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10476         '%pic'.
10477         * lib/unictype/scripts_byname.gperf: Regenerated.
10478
10479 2011-02-19  Bruno Haible  <bruno@clisp.org>
10480
10481         stdint: Update documentation.
10482         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10483
10484 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10485
10486         stdint: omit redundant check for wchar.h
10487         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10488         always tests whether wchar.h exists, so remove the now-redundant test.
10489
10490 2011-02-18  Bruno Haible  <bruno@clisp.org>
10491
10492         stdint: Cut dependency to module 'wchar'.
10493         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10494         include the necessary prerequisites.
10495         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10496         * modules/stdint (Depends-on): Remove wchar.
10497         (Makefile.am): Substitute HAVE_WCHAR_H.
10498         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10499
10500 2011-02-18  Eric Blake  <eblake@redhat.com>
10501
10502         longlong: skip, rather than fail, on cross-compilation
10503         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10504         when cross-compiling; regression from 2011-02-16.
10505
10506 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         * NEWS: Mention 2011-02-08 change to stdlib.
10509
10510 2011-02-17  Bruno Haible  <bruno@clisp.org>
10511
10512         getloadavg: Add comments about platforms.
10513         * m4/getloadavg.m4: Add comment.
10514         * lib/getloadavg.c: Likewise.
10515
10516 2011-02-17  Bruno Haible  <bruno@clisp.org>
10517
10518         getloadavg: Fix link error on Solaris 2.6.
10519         * modules/getloadavg (Link): New section.
10520         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10521         linking test-getloadavg.
10522         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10523         getloadavg.
10524
10525 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10526
10527         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10528         It was 'int', but this doesn't match the IRIX 6.5 manual.
10529         Suggested by Bruno Haible in
10530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10531
10532 2011-02-17  Bruno Haible  <bruno@clisp.org>
10533
10534         havelib: Fix comments.
10535         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10536         change.
10537
10538 2011-02-17  Bruno Haible  <bruno@clisp.org>
10539
10540         havelib: Update config.rpath.
10541         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10542
10543 2011-02-17  Bruno Haible  <bruno@clisp.org>
10544
10545         getloadavg test: Add some plausibility checks.
10546         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10547         is improbable.
10548
10549 2011-02-16  Eric Blake  <eblake@redhat.com>
10550
10551         maintainer-makefile: make syntax-check a no-op from tarballs
10552         * top/maint.mk (no-vc-detected): New rule.
10553         (local-checks-available): Use it to avoid hanging if someone tries
10554         'make syntax-check' from a tarball.  Also append to any non-syntax
10555         checks already defined in cfg.mk.
10556
10557 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         longlong: tune, particularly for common case of c99
10560
10561         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10562         or running anything if c99, or if unsigned long long int does not
10563         work.  In either case, we know the answer without further tests.
10564         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10565         it at most once, and use its results for both long long int and
10566         unsigned long long int.  This is more likely to be efficient in
10567         the common case where the program wants to check for both long
10568         long int and unsigned long long int.
10569         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10570         since the answer is already known.
10571
10572 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10573
10574         getloadavg: set errno
10575         * lib/getloadavg.c: Set errno when returning -1.  If no other
10576         error number looks appropriate, set it to ENOSYS if the getloadavg
10577         looks like it can't possibly ever work, ENOTSUP otherwise.
10578         Suggested by Bruno Haible in
10579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10580
10581         getloadavg: trim unused parts and speed up 'configure'
10582         * NEWS: Document this.
10583         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10584         always compiled if getloadavg is absent.
10585         Move test code to ...
10586         * tests/test-getloadavg.c: New file, containing previous
10587         contents of test from lib/getloadavg.c.  It also contains
10588         suggestions by Bruno Haible in
10589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10590         * modules/getloadavg-tests: New file.
10591         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10592         Do tests in the same order as they're needed for getloadavg.c.
10593         Omit setgid-related tests that generate symbols KMEM_GROUP,
10594         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10595         Do only the tests that are needed to see whether the system has
10596         getloadavg, moving the other tests into ...
10597         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10598         NLIST_NAME_UNION; nobody should be using it.  Do not define
10599         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10600         relevant, as the user of this module shouldn't care how getloadavg
10601         is implemented.
10602
10603         getloadavg: omit unused var
10604         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10605
10606 2011-02-15  Jim Meyering  <meyering@redhat.com>
10607
10608         doc: update users.txt
10609         * users.txt: Update iwhd's URL.
10610
10611 2011-02-13  Bruno Haible  <bruno@clisp.org>
10612
10613         Consistent macro naming for macros that use GCC __attribute__.
10614         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10615         _ATTRIBUTE_NONNULL_.
10616         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10617         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10618         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10619         ATTRIBUTE_DEPRECATED.
10620         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10621         ATTRIBUTE_NORETURN.
10622         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10623         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10624         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10625         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10626         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10627         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10628         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10629         ATTRIBUTE_SENTINEL.
10630         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10631         ATTRIBUTE_RETURN_CHECK.
10632         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10633         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10634         ATTRIBUTE_NORETURN.
10635         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10636         Reported by Paul Eggert.
10637
10638 2011-02-13  Bruno Haible  <bruno@clisp.org>
10639
10640         Don't interfere with a program's definition of __attribute__.
10641         * lib/argp.h (__attribute__): Remove definition.
10642         (_GL_ATTRIBUTE_FORMAT): New macro.
10643         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10644         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10645         (_GL_ATTRIBUTE_FORMAT): New macro.
10646         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10647         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10648         GCC 3 or newer.
10649         * lib/error.h (__attribute__): Remove definition.
10650         (_GL_ATTRIBUTE_FORMAT): New macro.
10651         (error, error_at_line): Use it.
10652         * lib/hash.h (__attribute__): Remove definition.
10653         (ATTRIBUTE_WUR): Update definition. Define always.
10654         * lib/openat.h (__attribute__): Remove definition.
10655         (ATTRIBUTE_NORETURN): Update definition. Define always.
10656         * lib/sigpipe-die.h (__attribute__): Remove definition.
10657         (ATTRIBUTE_NORETURN): Update definition. Define always.
10658         * lib/vasnprintf.h (__attribute__): Remove definition.
10659         (_GL_ATTRIBUTE_FORMAT): New macro.
10660         (asnprintf, vasnprintf): Use it.
10661         * lib/xalloc.h (__attribute__): Remove definition.
10662         (ATTRIBUTE_NORETURN): Update definition. Define always.
10663         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10664         * lib/xmemdup0.h (__attribute__): Remove definition.
10665         (ATTRIBUTE_NORETURN): Update definition. Define always.
10666         * lib/xprintf.h (__attribute__): Remove definition.
10667         (_GL_ATTRIBUTE_FORMAT): New macro.
10668         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10669         * lib/xstrtol.h (__attribute__): Remove definition.
10670         (ATTRIBUTE_NORETURN): Update definition. Define always.
10671         * lib/xvasprintf.h (__attribute__): Remove definition.
10672         (_GL_ATTRIBUTE_FORMAT): New macro.
10673         (xasprintf, xvasprintf): Use it.
10674         * tests/test-argmatch.c (__attribute__): Remove definition.
10675         (ATTRIBUTE_NORETURN): Update definition. Define always.
10676         * tests/test-exclude.c (__attribute__): Remove definition.
10677         (ATTRIBUTE_NORETURN): Update definition. Define always.
10678         Reported by Paul Eggert.
10679
10680 2011-02-13  Bruno Haible  <bruno@clisp.org>
10681
10682         mbrtowc: Add more tests for native Windows platforms.
10683         * tests/test-mbrtowc-w32-1.sh: New file.
10684         * tests/test-mbrtowc-w32-2.sh: New file.
10685         * tests/test-mbrtowc-w32-3.sh: New file.
10686         * tests/test-mbrtowc-w32-4.sh: New file.
10687         * tests/test-mbrtowc-w32-5.sh: New file.
10688         * tests/test-mbrtowc-w32.c: New file.
10689         * modules/mbrtowc-tests (Files): Add them.
10690         (Makefile.am): Arrange to run these tests.
10691         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10692         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10693
10694 2011-02-13  Bruno Haible  <bruno@clisp.org>
10695
10696         mbrtowc: Work around native Windows bug.
10697         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10698         guess when no suitable locale for testing was found.
10699         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10700
10701 2011-02-13  Bruno Haible  <bruno@clisp.org>
10702
10703         mbsinit: Work around mingw bug.
10704         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10705         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10706         Windows.
10707         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10708
10709 2011-02-13  Bruno Haible  <bruno@clisp.org>
10710
10711         mbsinit: Don't crash for a NULL argument.
10712         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10713         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10714
10715 2011-02-13  Bruno Haible  <bruno@clisp.org>
10716
10717         Don't interfere with a program's definition of __attribute__.
10718         * lib/stdio.in.h (__attribute__): Remove definition.
10719         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10720         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10721         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10722         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10723         * lib/string.in.h (__attribute__): Remove definition.
10724         Reported by Paul Eggert.
10725
10726 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10727
10728         stdlib: don't get in the way of non-GCC __attribute__
10729         See thread starting at
10730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10731         Revert previous stdlib change, installing the following instead:
10732         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10733         to get in the way of a non-GCC compiler that supports __attribute__.
10734         (_GL_ATTRIBUTE_RETURN): New macro.
10735         (_Exit): Use it instead of __attribute__.
10736
10737 2011-02-12  Bruno Haible  <bruno@clisp.org>
10738
10739         quotearg test: Avoid test failure on mingw.
10740         * tests/test-quotearg.sh: Convert the locale identifier from native
10741         Windows syntax to Unix syntax.
10742
10743 2011-02-12  Bruno Haible  <bruno@clisp.org>
10744
10745         setlocale: Prefer gnulib's override over libintl's override.
10746         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10747         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10748         GNULIB_defined_setlocale is set.
10749
10750 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10751
10752         stdlib: support non-GCC __attribute__
10753
10754         Fix a serious and tricky problem encountered when attempting to
10755         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10756         5.5, but it crashed due to memory corruption on Solaris 10 with
10757         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10758         bits that are otherwise zero.  This tagging is optional inside
10759         Emacs but is preferred and is used when __attribute__ ((__aligned
10760         (8))) works, as it does with both recent-enough GCC and with Sun C
10761         5.11.  However, Sun C 5.11 is not GCC and does not #define
10762         __GNUC__ and __GNUC_MINOR__.
10763
10764         When I added the getloadavg module to Emacs, it brought in
10765         stdlib.in.h, which contained this fragment:
10766
10767            #ifndef __attribute__
10768            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10769            #  define __attribute__(Spec)   /* empty */
10770            # endif
10771            #endif
10772
10773         When files that include <stdlib.h> were compiled with Sun C 5.11,
10774         the above code disabled __attribute__ ((__aligned (8))), which
10775         caused variables to not be properly aligned, which eventually led
10776         to the pointer corruption mentioned above.  (This was a bit hard
10777         to diagnose, unfortunately.)
10778
10779         Several "#define __attribute__(X) /* empty */" code snippets need
10780         to be eradicated from Gnulib to work with non-GCC compilers that
10781         support __attribute__.  The Autoconf way to do this is to test for
10782         each kind of attribute that we want support for, and selectively
10783         enable that in source code.
10784
10785         Fix this problem just for stdlib.h, by adding a test for the
10786         __noreturn__ attribute, and change stdlib.in.h to use that test
10787         when needed.  This technique can be easily generalized to the
10788         other *.in.h files and attributes, and a similar technique can be
10789         used for *.h and *.c files.  This patch is enough to solve the
10790         problem for Emacs + getloadavg, and I thought I'd publish it for
10791         feedback before undertaking further, similar fixes in other
10792         modules.
10793
10794         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10795         because it's not needed for stdlib.h.  It merely substitutes the
10796         value directly into stdlib.h.  We may well need to #define it, or
10797         similar symbols, for other modules, but it's nice to also have an
10798         option to not #define it for applications like Emacs that do not
10799         need it.
10800
10801         * lib/stdlib.in.h (__attribute__): Do not #define.
10802         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10803         be defined only if the _Exit module is also used.
10804         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10806         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10807         platforms.
10808         * modules/_Exit (Files): Add m4/attribute.m4.
10809         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10810         * m4/attribute.m4: New file.
10811
10812 2011-02-12  Bruno Haible  <bruno@clisp.org>
10813
10814         wcsrtombs: Work around bug on native Windows.
10815         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10816         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10817         instead of len.
10818         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10819
10820 2011-02-12  Bruno Haible  <bruno@clisp.org>
10821
10822         mbsrtowcs: Work around bug on native Windows.
10823         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10824         against mingw bug.
10825         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10826
10827 2011-02-12  Bruno Haible  <bruno@clisp.org>
10828
10829         Avoid setlocale bugs in tests.
10830         * modules/btowc (Dependencies): Add setlocale.
10831         * modules/c-strcase (Dependencies): Likewise.
10832         * modules/mbmemcasecmp (Dependencies): Likewise.
10833         * modules/mbmemcasecoll (Dependencies): Likewise.
10834         * modules/mbrtowc (Dependencies): Likewise.
10835         * modules/mbscasecmp (Dependencies): Likewise.
10836         * modules/mbscasestr (Dependencies): Likewise.
10837         * modules/mbschr (Dependencies): Likewise.
10838         * modules/mbscspn (Dependencies): Likewise.
10839         * modules/mbsinit (Dependencies): Likewise.
10840         * modules/mbsncasecmp (Dependencies): Likewise.
10841         * modules/mbsnrtowcs (Dependencies): Likewise.
10842         * modules/mbspbrk (Dependencies): Likewise.
10843         * modules/mbspcasecmp (Dependencies): Likewise.
10844         * modules/mbsrchr (Dependencies): Likewise.
10845         * modules/mbsrtowcs (Dependencies): Likewise.
10846         * modules/mbsspn (Dependencies): Likewise.
10847         * modules/mbsstr (Dependencies): Likewise.
10848         * modules/nl_langinfo (Dependencies): Likewise.
10849         * modules/quotearg (Dependencies): Likewise.
10850         * modules/unicase/locale-language (Dependencies): Likewise.
10851         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10852         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10853         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10854         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10855         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10856         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10857         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10858         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10859         * modules/vasnprintf-posix (Dependencies): Likewise.
10860         * modules/wcrtomb (Dependencies): Likewise.
10861         * modules/wcsnrtombs (Dependencies): Likewise.
10862         * modules/wcsrtombs (Dependencies): Likewise.
10863
10864 2011-02-12  Bruno Haible  <bruno@clisp.org>
10865
10866         setlocale: Workaround native Windows bug.
10867         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10868         succeeds but sets LC_CTYPE to "C", report a failure.
10869         * tests/test-setlocale2.sh: New file.
10870         * tests/test-setlocale2.c: New file.
10871         * modules/setlocale-tests (Files): Add the new files.
10872         (Makefile.am): Enable test-setlocale2.sh test.
10873         * doc/posix-functions/setlocale.texi: Mention workaround.
10874
10875 2011-02-11  Bruno Haible  <bruno@clisp.org>
10876
10877         Tests for module 'setlocale'.
10878         * modules/setlocale-tests: New file.
10879         * tests/test-setlocale1.sh: New file.
10880         * tests/test-setlocale1.c: New file.
10881
10882         New module 'setlocale'.
10883         * lib/locale.in.h (setlocale): New declaration.
10884         * lib/setlocale.c: New file, based on
10885         gettext/gettext-runtime/intl/setlocale.c.
10886         * m4/setlocale.m4: New file.
10887         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10888         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10889         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10890         REPLACE_SETLOCALE.
10891         * modules/setlocale: New file.
10892         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10893         * doc/posix-functions/setlocale.texi: Mention the new module.
10894
10895 2011-02-11  Bruno Haible  <bruno@clisp.org>
10896
10897         Prepare for locale dependent tests on mingw.
10898         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10899         because it has the wrong locale encoding.
10900         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10901         French_France.1252 instead of "fr".
10902         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10903         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10904         because it has the wrong locale encoding.
10905         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10906         native Windows, try Turkish_Turkey.65001.
10907         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10908         Chinese_China.54936.
10909
10910         Prepare for locale dependent tests on mingw.
10911         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10912         differently.
10913         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10914         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10915         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10916         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10917
10918 2011-02-11  Eric Blake  <eblake@redhat.com>
10919
10920         strptime: avoid compiler warnings
10921         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10922         compiler warnings about dead code.
10923         Reported by Daniel P. Berrange.
10924
10925 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10926
10927         doc: update users.txt
10928         * users.txt: Add rcs.
10929
10930 2011-02-10  John W. Eaton  <jwe@gnu.org>
10931
10932         doc: update users.txt
10933         * users.txt: Add octave.
10934
10935 2011-02-10  Jim Meyering  <meyering@redhat.com>
10936
10937         doc: update users.txt
10938         * users.txt: Add iwhd.
10939
10940 2011-02-09  Bruno Haible  <bruno@clisp.org>
10941
10942         gnulib-tool: Make copyright notice adjustment more robust.
10943         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10944         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10945         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10946         License".
10947         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10948
10949 2011-02-06  Bruno Haible  <bruno@clisp.org>
10950
10951         New module 'towctrans'.
10952         * modules/towctrans: New file.
10953         * lib/wctype.in.h (towctrans): New declaration.
10954         * lib/towctrans.c: New file.
10955         * lib/towctrans-impl.h: New file.
10956         * m4/towctrans.m4: New file.
10957         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10958         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10959         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10960         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10961         * doc/posix-functions/towctrans.texi: Mention the new module.
10962
10963 2011-02-06  Bruno Haible  <bruno@clisp.org>
10964
10965         New module 'wctrans'.
10966         * modules/wctrans: New file.
10967         * lib/wctype.in.h (wctrans): New declaration.
10968         * lib/wctrans.c: New file.
10969         * lib/wctrans-impl.h: New file.
10970         * m4/wctrans.m4: New file.
10971         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10972         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10973         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10974         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10975         * doc/posix-functions/wctrans.texi: Mention the new module.
10976
10977 2011-02-06  Bruno Haible  <bruno@clisp.org>
10978
10979         New module 'iswctype'.
10980         * modules/iswctype: New file.
10981         * lib/wctype.in.h (iswctype): New declaration.
10982         * lib/iswctype.c: New file.
10983         * lib/iswctype-impl.h: New file.
10984         * m4/iswctype.m4: New file.
10985         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10986         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10987         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10988         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10989         * doc/posix-functions/iswctype.texi: Mention the new module and the
10990         HP-UX 11.00 problem.
10991
10992 2011-02-06  Bruno Haible  <bruno@clisp.org>
10993
10994         New module 'wctype'.
10995         * modules/wctype: Change to represent the wctype() substitute.
10996         * lib/wctype.in.h (wctype): New declaration.
10997         * lib/wctype.c: New file.
10998         * lib/wctype-impl.h: New file.
10999         * m4/wctype.m4: New file.
11000         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11001         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11002         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11003         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11004         * doc/posix-functions/wctype.texi: Mention the new module and the
11005         HP-UX 11.00 problem.
11006
11007 2011-02-06  Bruno Haible  <bruno@clisp.org>
11008
11009         wctype-h: Ensure wctype_t and wctrans_t are defined.
11010         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11011         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11012         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11013         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11014         HAVE_WCTRANS_T.
11015         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11016
11017 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11018
11019         flock: fix license typo
11020
11021         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11022         omitted.
11023
11024 2011-02-08  Bruno Haible  <bruno@clisp.org>
11025
11026         Split large sed scripts, for HP-UX sed.
11027         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11028         to avoid HP-UX limit of 99 commands, in the near future.
11029         * modules/stdlib (Makefile.am): Likewise.
11030         * modules/unistd (Makefile.am): Likewise.
11031         * modules/wchar (Makefile.am): Likewise.
11032         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11033         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11035
11036 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11037             Bruno Haible  <bruno@clisp.org>
11038
11039         stdlib: improve random_r modularization
11040         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11041         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11042         you also need the random_r module to get this material right.
11043         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11044         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11045         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11046
11047 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11048
11049         stdlib: don't depend on stdint
11050         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11051         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11052         be independent of whether stdint.h is needed.
11053         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11054         here, instead of ...
11055         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11056         struct random_data should be using the random_r module, not just
11057         the stdlib module (which wouldn't make sense: what package needs
11058         just struct random_data without also needing random_r?).
11059         * modules/stdlib (Depends-on): Remove stdint.
11060
11061         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11062         See the thread rooted at
11063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11064         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11065         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11066         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11067         __VMS)); previously it was always included (via fcntl--.h).
11068         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11069         hand; this is good enough for load averages.  Also, do not use
11070         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11071         flags directly if available and don't bother otherwise.  (Packages
11072         that need the extra reliability should use the modules that define
11073         these flags on older platforms that lack them.)
11074         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11075         fcntl-safer.
11076
11077 2011-02-08  Jim Meyering  <meyering@redhat.com>
11078
11079         di-set.h, ino-map.h: add multiple-inclusion guard
11080         Technically, the guard is required only for ino-map.h, due to its
11081         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11082         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11083         * lib/ino-map.h: Likewise.
11084
11085 2011-02-06  Bruno Haible  <bruno@clisp.org>
11086
11087         iswblank: Ensure declaration on glibc systems.
11088         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11089         * modules/iswblank (Dependencies): Add 'extensions'.
11090         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11091
11092 2011-02-06  Bruno Haible  <bruno@clisp.org>
11093
11094         New module 'iswblank'.
11095         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11096         * modules/iswblank: New file.
11097         * modules/wctype-h (Files): Remove lib/iswblank.c.
11098         (Makefile.am): Substitute GNULIB_ISWBLANK.
11099         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11100         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11101         (gl_WCTYPE_H_DEFAULTS): New macro.
11102         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11103         * modules/iswblank-tests: New file.
11104         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11105         * tests/test-wctype-h.c (main): Remove iswblank tests.
11106         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11107         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11108         of 'wctype-h'.
11109         * NEWS: Mention the change.
11110         * modules/mbchar (Depends-on): Add iswblank.
11111
11112 2011-02-08  Bruno Haible  <bruno@clisp.org>
11113
11114         di-set tests: Refactor.
11115         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11116         unnecessary includes.
11117         (ASSERT): Remove macro.
11118         (main): Make C90 compliant by avoiding variable declaration after
11119         statement.
11120         * modules/di-set-tests (Files): Add tests/macros.h.
11121
11122 2011-02-08  Bruno Haible  <bruno@clisp.org>
11123
11124         ino-map tests: Refactor.
11125         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11126         unnecessary includes.
11127         (ASSERT): Remove macro.
11128         (main): Make C90 compliant by avoiding variable declaration after
11129         statement.
11130         * modules/ino-map-tests (Files): Add tests/macros.h.
11131
11132 2011-02-08  Jim Meyering  <meyering@redhat.com>
11133
11134         di-set: add "const" to a cast
11135         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11136         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11137
11138 2011-02-06  Bruno Haible  <bruno@clisp.org>
11139
11140         Rename module 'wctype' to 'wctype-h'.
11141         * modules/wctype-h: Renamed from modules/wctype.
11142         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11143         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11144         (Files, Depends-on, Makefile.am): Update.
11145         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11146         (Files, Makefile.am): Update.
11147         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11148         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11149         * doc/posix-headers/wctype.texi: Update.
11150         * doc/posix-functions/iswalnum.texi: Update.
11151         * doc/posix-functions/iswalpha.texi: Update.
11152         * doc/posix-functions/iswblank.texi: Update.
11153         * doc/posix-functions/iswcntrl.texi: Update.
11154         * doc/posix-functions/iswdigit.texi: Update.
11155         * doc/posix-functions/iswgraph.texi: Update.
11156         * doc/posix-functions/iswlower.texi: Update.
11157         * doc/posix-functions/iswprint.texi: Update.
11158         * doc/posix-functions/iswpunct.texi: Update.
11159         * doc/posix-functions/iswspace.texi: Update.
11160         * doc/posix-functions/iswupper.texi: Update.
11161         * doc/posix-functions/iswxdigit.texi: Update.
11162         * doc/posix-functions/towlower.texi: Update.
11163         * doc/posix-functions/towupper.texi: Update.
11164         * NEWS: Mention the change.
11165         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11166         * modules/mbchar (Dependencies): Likewise.
11167         * modules/mbswidth (Dependencies): Likewise.
11168         * modules/quotearg (Dependencies): Likewise.
11169         * modules/regex (Dependencies): Likewise.
11170         * modules/wcscasecmp (Dependencies): Likewise.
11171         * modules/wcsncasecmp (Dependencies): Likewise.
11172         * modules/wcwidth (Dependencies): Likewise.
11173
11174 2011-02-06  Bruno Haible  <bruno@clisp.org>
11175
11176         New module 'wcswidth'.
11177         * modules/wcswidth: New file.
11178         * lib/wchar.in.h (wcswidth): New declaration.
11179         * lib/wcswidth.c: New file.
11180         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11181         * m4/wcswidth.m4: New file.
11182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11184         REPLACE_WCSWIDTH.
11185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11186         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11187         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11188         * doc/posix-functions/wcswidth.texi: Mention the new module.
11189
11190 2011-02-06  Bruno Haible  <bruno@clisp.org>
11191
11192         New module 'wcstok'.
11193         * modules/wcstok: New file.
11194         * lib/wchar.in.h (wcstok): New declaration.
11195         * lib/wcstok.c: New file.
11196         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11197         * m4/wcstok.m4: New file.
11198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11201         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11202         * doc/posix-functions/wcstok.texi: Mention the new module.
11203
11204 2011-02-06  Bruno Haible  <bruno@clisp.org>
11205
11206         New module 'wcsstr'.
11207         * modules/wcsstr: New file.
11208         * lib/wchar.in.h (wcsstr): New declaration.
11209         * lib/wcsstr.c: New file.
11210         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11211         * m4/wcsstr.m4: New file.
11212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11215         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11216         * doc/posix-functions/wcsstr.texi: Mention the new module.
11217
11218 2011-02-06  Bruno Haible  <bruno@clisp.org>
11219
11220         New module 'wcspbrk'.
11221         * modules/wcspbrk: New file.
11222         * lib/wchar.in.h (wcspbrk): New declaration.
11223         * lib/wcspbrk.c: New file.
11224         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11225         * m4/wcspbrk.m4: New file.
11226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11229         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11230         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11231
11232 2011-02-06  Bruno Haible  <bruno@clisp.org>
11233
11234         New module 'wcsspn'.
11235         * modules/wcsspn: New file.
11236         * lib/wchar.in.h (wcsspn): New declaration.
11237         * lib/wcsspn.c: New file.
11238         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11239         * m4/wcsspn.m4: New file.
11240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11243         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11244         * doc/posix-functions/wcsspn.texi: Mention the new module.
11245
11246 2011-02-06  Bruno Haible  <bruno@clisp.org>
11247
11248         New module 'wcscspn'.
11249         * modules/wcscspn: New file.
11250         * lib/wchar.in.h (wcscspn): New declaration.
11251         * lib/wcscspn.c: New file.
11252         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11253         * m4/wcscspn.m4: New file.
11254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11257         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11258         * doc/posix-functions/wcscspn.texi: Mention the new module.
11259
11260 2011-02-06  Bruno Haible  <bruno@clisp.org>
11261
11262         New module 'wcsrchr'.
11263         * modules/wcsrchr: New file.
11264         * lib/wchar.in.h (wcsrchr): New declaration.
11265         * lib/wcsrchr.c: New file.
11266         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11267         * m4/wcsrchr.m4: New file.
11268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11271         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11272         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11273
11274 2011-02-06  Bruno Haible  <bruno@clisp.org>
11275
11276         New module 'wcschr'.
11277         * modules/wcschr: New file.
11278         * lib/wchar.in.h (wcschr): New declaration.
11279         * lib/wcschr.c: New file.
11280         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11281         * m4/wcschr.m4: New file.
11282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11285         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11286         * doc/posix-functions/wcschr.texi: Mention the new module.
11287
11288 2011-02-06  Bruno Haible  <bruno@clisp.org>
11289
11290         New module 'wcsdup'.
11291         * modules/wcsdup: New file.
11292         * lib/wchar.in.h (wcsdup): New declaration.
11293         * lib/wcsdup.c: New file.
11294         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11295         * m4/wcsdup.m4: New file.
11296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11299         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11300         * doc/posix-functions/wcsdup.texi: Mention the new module.
11301
11302 2011-02-06  Bruno Haible  <bruno@clisp.org>
11303
11304         New module 'wcsxfrm'.
11305         * modules/wcsxfrm: New file.
11306         * lib/wchar.in.h (wcsxfrm): New declaration.
11307         * lib/wcsxfrm.c: New file.
11308         * lib/wcsxfrm-impl.h: New file.
11309         * m4/wcsxfrm.m4: New file.
11310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11313         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11314         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11315
11316 2011-02-06  Bruno Haible  <bruno@clisp.org>
11317
11318         New module 'wcscoll'.
11319         * modules/wcscoll: New file.
11320         * lib/wchar.in.h (wcscoll): New declaration.
11321         * lib/wcscoll.c: New file.
11322         * lib/wcscoll-impl.h: New file.
11323         * m4/wcscoll.m4: New file.
11324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11327         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11328         * doc/posix-functions/wcscoll.texi: Mention the new module.
11329
11330 2011-02-06  Bruno Haible  <bruno@clisp.org>
11331
11332         New module 'wcsncasecmp'.
11333         * modules/wcsncasecmp: New file.
11334         * lib/wchar.in.h (wcsncasecmp): New declaration.
11335         * lib/wcsncasecmp.c: New file.
11336         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11337         * m4/wcsncasecmp.m4: New file.
11338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11341         HAVE_WCSNCASECMP.
11342         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11343         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11344
11345 2011-02-06  Bruno Haible  <bruno@clisp.org>
11346
11347         New module 'wcscasecmp'.
11348         * modules/wcscasecmp: New file.
11349         * lib/wchar.in.h (wcscasecmp): New declaration.
11350         * lib/wcscasecmp.c: New file.
11351         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11352         * m4/wcscasecmp.m4: New file.
11353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11356         HAVE_WCSCASECMP.
11357         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11358         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11359
11360 2011-02-05  Bruno Haible  <bruno@clisp.org>
11361
11362         New module 'wcsncmp'.
11363         * modules/wcsncmp: New file.
11364         * lib/wchar.in.h (wcsncmp): New declaration.
11365         * lib/wcsncmp.c: New file.
11366         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11367         * m4/wcsncmp.m4: New file.
11368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11371         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11372         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11373
11374 2011-02-05  Bruno Haible  <bruno@clisp.org>
11375
11376         New module 'wcscmp'.
11377         * modules/wcscmp: New file.
11378         * lib/wchar.in.h (wcscmp): New declaration.
11379         * lib/wcscmp.c: New file.
11380         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11381         * m4/wcscmp.m4: New file.
11382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11385         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11386         * doc/posix-functions/wcscmp.texi: Mention the new module.
11387
11388 2011-02-05  Bruno Haible  <bruno@clisp.org>
11389
11390         New module 'wcsncat'.
11391         * modules/wcsncat: New file.
11392         * lib/wchar.in.h (wcsncat): New declaration.
11393         * lib/wcsncat.c: New file.
11394         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11395         * m4/wcsncat.m4: New file.
11396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11399         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11400         * doc/posix-functions/wcsncat.texi: Mention the new module.
11401
11402 2011-02-05  Bruno Haible  <bruno@clisp.org>
11403
11404         New module 'wcscat'.
11405         * modules/wcscat: New file.
11406         * lib/wchar.in.h (wcscat): New declaration.
11407         * lib/wcscat.c: New file.
11408         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11409         * m4/wcscat.m4: New file.
11410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11413         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11414         * doc/posix-functions/wcscat.texi: Mention the new module.
11415
11416 2011-02-05  Bruno Haible  <bruno@clisp.org>
11417
11418         New module 'wcpncpy'.
11419         * modules/wcpncpy: New file.
11420         * lib/wchar.in.h (wcpncpy): New declaration.
11421         * lib/wcpncpy.c: New file.
11422         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11423         * m4/wcpncpy.m4: New file.
11424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11426         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11427         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11428         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11429
11430 2011-02-05  Bruno Haible  <bruno@clisp.org>
11431
11432         New module 'wcsncpy'.
11433         * modules/wcsncpy: New file.
11434         * lib/wchar.in.h (wcsncpy): New declaration.
11435         * lib/wcsncpy.c: New file.
11436         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11437         * m4/wcsncpy.m4: New file.
11438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11441         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11442         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11443
11444 2011-02-05  Bruno Haible  <bruno@clisp.org>
11445
11446         New module 'wcpcpy'.
11447         * modules/wcpcpy: New file.
11448         * lib/wchar.in.h (wcpcpy): New declaration.
11449         * lib/wcpcpy.c: New file.
11450         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11451         * m4/wcpcpy.m4: New file.
11452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11454         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11455         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11456         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11457
11458 2011-02-05  Bruno Haible  <bruno@clisp.org>
11459
11460         New module 'wcscpy'.
11461         * modules/wcscpy: New file.
11462         * lib/wchar.in.h (wcscpy): New declaration.
11463         * lib/wcscpy.c: New file.
11464         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11465         * m4/wcscpy.m4: New file.
11466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11469         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11470         * doc/posix-functions/wcscpy.texi: Mention the new module.
11471
11472 2011-02-05  Bruno Haible  <bruno@clisp.org>
11473
11474         New module 'wcsnlen'.
11475         * modules/wcsnlen: New file.
11476         * lib/wchar.in.h (wcsnlen): New declaration.
11477         * lib/wcsnlen.c: New file.
11478         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11479         * m4/wcsnlen.m4: New file.
11480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11483         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11484         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11485
11486 2011-02-05  Bruno Haible  <bruno@clisp.org>
11487
11488         New module 'wcslen'.
11489         * modules/wcslen: New file.
11490         * lib/wchar.in.h (wcslen): New declaration.
11491         * lib/wcslen.c: New file.
11492         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11493         * m4/wcslen.m4: New file.
11494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11497         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11498         * doc/posix-functions/wcslen.texi: Mention the new module.
11499
11500 2011-02-05  Bruno Haible  <bruno@clisp.org>
11501
11502         New module 'wmemset'.
11503         * modules/wmemset: New file.
11504         * lib/wchar.in.h (wmemset): New declaration.
11505         * lib/wmemset.c: New file.
11506         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11507         * m4/wmemset.m4: New file.
11508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11510         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11511         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11512         * doc/posix-functions/wmemset.texi: Mention the new module.
11513
11514 2011-02-05  Bruno Haible  <bruno@clisp.org>
11515
11516         New module 'wmemmove'.
11517         * modules/wmemmove: New file.
11518         * lib/wchar.in.h (wmemmove): New declaration.
11519         * lib/wmemmove.c: New file.
11520         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11521         * m4/wmemmove.m4: New file.
11522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11524         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11525         HAVE_WMEMMOVE.
11526         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11527         * doc/posix-functions/wmemmove.texi: Mention the new module.
11528
11529 2011-02-05  Bruno Haible  <bruno@clisp.org>
11530
11531         New module 'wmemcpy'.
11532         * modules/wmemcpy: New file.
11533         * lib/wchar.in.h (wmemcpy): New declaration.
11534         * lib/wmemcpy.c: New file.
11535         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11536         * m4/wmemcpy.m4: New file.
11537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11539         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11540         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11541         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11542
11543 2011-02-05  Bruno Haible  <bruno@clisp.org>
11544
11545         New module 'wmemcmp'.
11546         * modules/wmemcmp: New file.
11547         * lib/wchar.in.h (wmemcmp): New declaration.
11548         * lib/wmemcmp.c: New file.
11549         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11550         * m4/wmemcmp.m4: New file.
11551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11553         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11554         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11555         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11556
11557 2011-02-07  Jim Meyering  <meyering@redhat.com>
11558
11559         di-set, ino-map: new modules, from coreutils
11560         * lib/di-set.c: New file.
11561         * lib/di-set.h: Likewise.
11562         * lib/ino-map.c: Likewise.
11563         * lib/ino-map.h: Likewise.
11564         * modules/di-set: Likewise.
11565         * modules/di-set-tests: Likewise.
11566         * modules/ino-map: Likewise.
11567         * modules/ino-map-tests: Likewise.
11568         * tests/test-di-set.c: Likewise.
11569         * tests/test-ino-map.c: Likewise.
11570
11571 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11572
11573         getloadavg: merge minor changes from Emacs
11574
11575         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11576         (getloadavg): Use memset, not bzero.
11577
11578         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11579         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11580         clash (bug#86).
11581
11582 2010-11-14  Bruno Haible  <bruno@clisp.org>
11583
11584         Allow multiple gnulib generated replacements to coexist.
11585         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11586         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11587         * lib/langinfo.in.h (nl_item): Likewise.
11588         * lib/math.in.h (_NaN, NAN): Likewise.
11589         * lib/netdb.in.h (struct addrinfo): Likewise.
11590         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11591         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11592         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11593         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11594         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11595         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11596         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11597         pthread_mutexattr_init, pthread_mutexattr_settype,
11598         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11599         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11600         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11601         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11602         * lib/sched.in.h (struct sched_param): Likewise.
11603         * lib/se-selinux.in.h (security_class_t, security_context_t,
11604         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11605         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11606         lsetfilecon, fsetfilecon, security_check_context,
11607         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11608         Likewise.
11609         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11610         Likewise.
11611         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11612         _gl_function_taking_int_returning_void_t, union sigval,
11613         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11614         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11615         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11616         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11617         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11618         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11619         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11620         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11621         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11622         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11623         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11624         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11625         socklen_t, rpl_fd_isset): Likewise.
11626         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11627         * lib/sys_time.in.h (struct timeval): Likewise.
11628         * lib/sys_times.in.h (struct tms): Likewise.
11629         * lib/sys_utsname.in.h (struct utsname):
11630         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11631         * lib/unistd.in.h (getpagesize): Likewise.
11632         * lib/wchar.in.h (mbstate_t): Likewise.
11633         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11634         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11635         towlower, towupper): Likewise.
11636         Reported by Sam Steingold <sds@gnu.org>.
11637
11638 2011-02-05  Eric Blake  <eblake@redhat.com>
11639
11640         unsetenv: work around Haiku issues
11641         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11642         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11643
11644 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11645
11646         libposix: avoid calling error() within libposix
11647         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11648         is defined.
11649
11650 2011-02-05  Eric Blake  <eblake@redhat.com>
11651
11652         strerror_r-posix: port to cygwin
11653         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11654         implementation.
11655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11656         * tests/test-strerror_r.c (main): Fix test.
11657         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11658         issue.
11659
11660 2011-02-05  Bruno Haible  <bruno@clisp.org>
11661
11662         New module 'wmemchr'.
11663         * modules/wmemchr: New file.
11664         * lib/wchar.in.h (wmemchr): New declaration.
11665         * lib/wmemchr.c: New file.
11666         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11667         * m4/wmemchr.m4: New file.
11668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11670         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11671         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11672         * doc/posix-functions/wmemchr.texi: Mention the new module.
11673
11674 2011-02-04  Eric Blake  <eblake@redhat.com>
11675
11676         fdopendir: detect FreeBSD bug
11677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11678         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11679
11680 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11681
11682         stdbool: do not define HAVE_STDBOOL_H
11683         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11684         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11685         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11686         imported from the latest Autoconf git.  It was motivated by Emacs,
11687         which uses gnulib but does not need HAVE_STDBOOL_H.
11688
11689 2011-02-04  Bruno Haible  <bruno@clisp.org>
11690
11691         wcsnrtombs: Prepare for new module wwcsnrtombs.
11692         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11693         * lib/wcsnrtombs.c: Include it.
11694         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11695
11696         wcsrtombs: Prepare for new module wwcsrtombs.
11697         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11698         * lib/wcsrtombs.c: Include it.
11699         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11700
11701         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11702         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11703         * lib/mbsnrtowcs.c: Include it.
11704         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11705
11706         mbsrtowcs: Prepare for new module mbsrtowwcs.
11707         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11708         * lib/mbsrtowcs.c: Include it.
11709         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11710
11711 2011-02-04  Bruno Haible  <bruno@clisp.org>
11712
11713         vasnprintf: Reduce use of malloc for small format strings.
11714         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11715         (arguments): Add room for the first 7 arguments.
11716         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11717         (char_directives, u8_directives, u16_directives, u32_directives): Add
11718         room for the first 7 directives.
11719         * lib/printf-parse.c: Include <string.h>.
11720         (PRINTF_PARSE): Change memory handling code so that it uses the first
11721         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11722         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11723         Reported by Pádraig Brady <P@draigbrady.com>.
11724
11725 2011-01-31  Eric Blake  <eblake@redhat.com>
11726
11727         dup2: work around Haiku bug
11728         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11729         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11730         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11731         * tests/test-dup2.c (main): Enhance test.
11732
11733 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11734
11735         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11736         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11737         declared by eglibc 2.11.2.
11738         * lib/stdio.in.h: Likewise.
11739
11740 2011-01-31  Eric Blake  <eblake@redhat.com>
11741
11742         ignore-value: add missing test dependency
11743         * tests/test-ignore-value.c: Revert previous change; stdio.h
11744         provides off_t.
11745         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11746
11747 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11748
11749         mktime: clarify long_int width checking
11750         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11751         the top level, to make it clearer that the assumption about
11752         long_int width is being checked.  See
11753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11754
11755 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11756
11757         ignore-value: Fix self-test.
11758         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11759
11760 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11761
11762         TYPE_MAXIMUM: avoid theoretically undefined behavior
11763         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11764         negative number, which the C Standard says has undefined behavior.
11765         In practice this is not a problem, but might as well do it by the book.
11766         Reported by Rich Felker and Eric Blake; see
11767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11768         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11769         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11771         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11772         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11773         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11774
11775         mktime: #undef mktime before #defining it
11776         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11777
11778         mktime: systematically normalize tm_isdst comparisons
11779         * lib/mktime.c (isdst_differ): New function.
11780         (__mktime_internal): Use it systematically for all isdst comparisons.
11781         This completes the fix for libc BZ #6723, and removes the need for
11782         normalizing tm_isdst.  See
11783         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11784         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11785
11786         mktime: fix some integer overflow issues and sidestep the rest
11787
11788         This was prompted by a bug report by Benjamin Lindner for MinGW
11789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11790         His bug is due to signed integer overflow (0 - INT_MIN), and I
11791         I scanned through mktime.c looking for other integer overflow
11792         problems, fixing all the bugs I found.
11793
11794         Although the C Standard says the resulting code is still not safe
11795         in the presence of integer overflow, in practice it should be good
11796         enough for all real-world two's-complement implementations, except
11797         for debugging environments that deliberately trap on integer
11798         overflow (e.g., gcc -ftrapv).
11799
11800         * lib/mktime.c (WRAPV): New macro.
11801         (SHR): Also check that long_int and time_t shift right in the
11802         usual way, before using the fast-but-unportable method.
11803         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11804         used.  The code already assumed two's complement, so there's
11805         no need to test for alternatives.  All uses removed.
11806         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11807         the C standard.  Problem reported by Rich Felker in
11808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11809         (twos_complement_arithmetic): Also check long_int and time_t.
11810         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11811         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11812         (__mktime_internal): Avoid integer overflow with unary subtraction
11813         in two instances where -1 - X is an adequate replacement for -X,
11814         since the calculations are approximate.
11815
11816 2011-01-29  Eric Blake  <eblake@redhat.com>
11817
11818         mktime: avoid infinite loop
11819         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11820         type; behavior is still undefined but portable to all known targets.
11821         Reported by Rich Felker.
11822
11823 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11824
11825         rename, unlink, same-inode: Relicense.
11826         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11827         * modules/unlink (License): Likewise.
11828         * modules/same-inode (License): Likewise.
11829
11830 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11831
11832         mktime: avoid problems on NetBSD 5 / i386
11833         * lib/mktime.c (long_int): New type.  This works around a problem
11834         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11835         but time_t is 64 bits, and where I expect the existing code is
11836         wrong in some cases.
11837         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11838         (ydhms_diff): Bring back the compile-time check for wide-enough
11839         year and yday.
11840
11841         mktime: fix misspelling in comment
11842         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11843         This merges all recent glibc changes of importance.
11844
11845 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11846
11847         move-if-change: cope with concurrent mv of identical file.
11848         * build-aux/move-if-change (CMPPROG): Accept environment
11849         variable as an override for `cmp'.
11850         (usage): Document CMPPROG.
11851         Adjust comparison to drop stdout.  Cope with failure of mv if
11852         the target file exists and is identical to the source, for
11853         parallel builds.
11854         Report from H.J. Lu against binutils in PR binutils/12283.
11855
11856 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11857
11858         * users.txt: Mention sharutils.
11859
11860 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11861
11862         * users.txt: Mention OATH Toolkit.
11863
11864 2011-01-27  Bruno Haible  <bruno@clisp.org>
11865
11866         Prepare for supporting FreeBSD 10.
11867         * build-aux/config.libpath: Remove handling of freebsd1*.
11868
11869 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11870
11871         Prepare for supporting FreeBSD 10.
11872         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11873         match FreeBSD 10.0.
11874
11875 2011-01-27  Bruno Haible  <bruno@clisp.org>
11876
11877         vma-iter, get-rusage-as: Add OpenBSD support.
11878         * modules/vma-iter (configure.ac): Test for mquery.
11879         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11880         * lib/vma-iter.c: Include <sys/mman.h>.
11881         (vma_iterate): Add an implementation based on mquery().
11882         * lib/resource-ext.h (get_rusage_as): Update comments.
11883         * lib/get-rusage-as.c: Likewise.
11884         * lib/get-rusage-data.c: Likewise.
11885
11886 2011-01-26  Karl Berry  <karl@gnu.org>
11887
11888         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11889         variables to make it easier to override the makeinfo program used.
11890
11891 2011-01-26  Eric Blake  <eblake@redhat.com>
11892
11893         fcntl: work around Haiku F_DUPFD bugs
11894         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11895         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11896         cloexec bit on duplication.
11897         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11898
11899 2011-01-26  Bruno Haible  <bruno@clisp.org>
11900
11901         Enable memory leak tests on AIX.
11902         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11903         * tests/test-fprintf-posix3.c (main): Likewise.
11904
11905 2011-01-26  Bruno Haible  <bruno@clisp.org>
11906
11907         Tests for module 'get-rusage-data'.
11908         * modules/get-rusage-data-tests: New file.
11909         * tests/test-get-rusage-data.c: New file.
11910
11911         New module 'get-rusage-data'.
11912         * lib/resource-ext.h (get_rusage_data): New declaration.
11913         * lib/get-rusage-data.c: New file.
11914         * modules/get-rusage-data: New file.
11915
11916 2011-01-25  Bruno Haible  <bruno@clisp.org>
11917
11918         get-rusage-as: Allow for easier testing.
11919         * lib/resource-ext.h (get_rusage_as): Add comment.
11920         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11921         (main): New function for interactive testing.
11922
11923 2011-01-25  Bruno Haible  <bruno@clisp.org>
11924
11925         vma-iter: Treat Haiku like BeOS.
11926         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11927         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11928
11929 2011-01-25  Eric Blake  <eblake@redhat.com>
11930
11931         c-stack: fix regression on cygwin when libsigsegv is present
11932         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11933
11934 2011-01-24  Bruno Haible  <bruno@clisp.org>
11935
11936         vma-iter: Avoid empty intervals.
11937         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11938         on an empty interval.
11939
11940 2011-01-24  Jim Meyering  <meyering@redhat.com>
11941
11942         u64: remove unnecessary #include
11943         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11944
11945 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11946
11947         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11948         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11949
11950 2011-01-23  Bruno Haible  <bruno@clisp.org>
11951
11952         New module 'vma-iter'.
11953         * lib/vma-iter.h: New file.
11954         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11955         * modules/vma-iter: New file.
11956         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11957         for get_rusage_as_via_iterator.
11958         (vma_iterate_callback): New function.
11959         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11960         * modules/get-rusage-as (Depends-on): Add vma-iter.
11961
11962 2011-01-23  Bruno Haible  <bruno@clisp.org>
11963
11964         uninorm: Tweak includes.
11965         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11966         Reported by Jim Meyering.
11967
11968 2011-01-23  Bruno Haible  <bruno@clisp.org>
11969
11970         get-rusage-as: Improve on NetBSD.
11971         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11972         /proc, like on FreeBSD.
11973
11974 2011-01-23  Jim Meyering  <meyering@redhat.com>
11975
11976         xreadlink.h: remove unnecessary #include
11977         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11978
11979         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11980         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11981
11982 2011-01-23  Bruno Haible  <bruno@clisp.org>
11983
11984         get-rusage-as: Fix bug.
11985         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11986         original limit when aborting the first loop.
11987
11988 2011-01-23  Bruno Haible  <bruno@clisp.org>
11989
11990         wctype: Ensure valid C syntax.
11991         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11992         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11993
11994 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11995
11996         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11998         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11999         as they are needed only for configure's test case.
12000         This removes two unnecessary symbols from config.h.
12001
12002         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12003         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12005         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12006         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12007         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12008         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12009         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12010         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12011         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12012         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12014         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12016         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12017         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12018         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12019         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12020
12021 2011-01-21  Eric Blake  <eblake@redhat.com>
12022
12023         maintainer-makefile: work with older git for submodule check
12024         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12025         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12026         Reported by Matthias Bolte.
12027
12028         bootstrap: minor portability fixes
12029         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12030         (usage): Omit leading capital and trailing . on help phrases, per
12031         GNU Coding Standards.
12032         (check_versions, top level): Prefix messages with script name.
12033
12034 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12035
12036         bootstrap: support --no-git option
12037         * build-aux/bootstrap: Add --no-git option, to be used when
12038         --gnulib-srcdir points to the exact desired checkout.
12039
12040 2011-01-21  Eric Blake  <eblake@redhat.com>
12041
12042         strerror_r-posix: work with glibc 2.13
12043         * lib/strerror_r.c (strerror_r): Fix return type.
12044
12045 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12046             Bruno Haible  <bruno@clisp.org>
12047
12048         uN_strstr: New unit tests.
12049         * modules/unistr/u8-strstr-tests: New file.
12050         * modules/unistr/u16-strstr-tests: New file.
12051         * modules/unistr/u32-strstr-tests: New file.
12052         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12053         * tests/unistr/test-u8-strstr.c: New file.
12054         * tests/unistr/test-u16-strstr.c: New file.
12055         * tests/unistr/test-u32-strstr.c: New file.
12056
12057 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12058             Bruno Haible  <bruno@clisp.org>
12059
12060         Make uN_strstr functions O(n) worst-case.
12061         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12062         16-bit and 32-bit unit cases, use the unibyte algorithm from
12063         lib/mbsstr.c.
12064         * lib/unistr/u8-strstr.c: Include <string.h>.
12065         (UNIT_IS_UINT8_T): New macro.
12066         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12067         (U_STRLEN, U_STRNLEN): New macros.
12068         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12069         (U_STRLEN, U_STRNLEN): New macros.
12070         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12071         (configure.ac): Update required libunistring version.
12072         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12073         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12074         malloca.
12075         (configure.ac): Update required libunistring version.
12076         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12077         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12078         malloca.
12079         (configure.ac): Update required libunistring version.
12080
12081 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12082             Bruno Haible  <bruno@clisp.org>
12083
12084         Prepare for faster uN_strstr functions.
12085         * lib/str-kmp.h: Support definable UNITs.
12086         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12087         needle_len argument.
12088         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12089         * lib/mbscasestr.c (mbscasestr): Likewise.
12090
12091 2011-01-21  Pádraig Brady <P@draigBrady.com>
12092
12093         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12094         * tests/test-malloca.c (main): Unset the environment variable
12095         to greatly speed up the test.
12096         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12097         * modules/malloca-tests: Depend on unsetenv.
12098
12099 2011-01-21  Pádraig Brady <P@draigBrady.com>
12100
12101         ignore-value: remove stdint dependency
12102         * lib/ignore-value.h: Remove <stdint.h>
12103         * modules/ignore-value: Remove stdint dependency.
12104
12105 2011-01-21  Jim Meyering  <meyering@redhat.com>
12106
12107         maint.mk: adjust variable name to be consistent with other gl_ vars
12108         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12109         to be lower case.
12110
12111 2011-01-20  Jim Meyering  <meyering@redhat.com>
12112
12113         maint.mk: make "check" depend on public-submodule-commit by default
12114         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12115
12116 2011-01-20  Bruno Haible  <bruno@clisp.org>
12117
12118         mbfile, mbiter: Complete change from 2008-12-21.
12119         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12120         * m4/mbiter.m4 (gl_MBITER): Likewise.
12121
12122 2011-01-20  Jim Meyering  <meyering@redhat.com>
12123
12124         init.sh: insert space between each function name and "()"
12125         * tests/init.sh: Make it a little easier to see that a function's
12126         name is "warn_", and not "warn" when looking at the first part of
12127         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12128
12129 2011-01-20  Jim Meyering  <meyering@redhat.com>
12130
12131         mountlist: clean up code formatting
12132         * lib/mountlist.c (read_file_system_list): Split a long line,
12133         correct bracing style, use NULL in place of "(struct statfs *)0",
12134         don't parenthesize return value, add spaces around "=" and after
12135         ";-in-for-stmt".
12136
12137 2011-01-14  Markus Duft <mduft@gentoo.org>
12138
12139         mountlist: add support for Interix
12140         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12141         Apply statvfs to all entries of /dev/fs.
12142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12143         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12144
12145 2011-01-20  Jim Meyering  <meyering@redhat.com>
12146
12147         maint.mk: improve the public-submodule-commit rule
12148         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12149         to suppress printing of its commands... unless V=1.
12150         Add git submodule's --quiet option to suppress printing of e.g.,
12151         "Entering gnulib" output.
12152         "cd" into $(srcdir) before running git submodule.
12153
12154 2011-01-20  Bruno Haible  <bruno@clisp.org>
12155
12156         include_next: Fix bug introduced on 2011-01-18.
12157         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12158         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12159         ac_cv_header_... variable if the second argument is not 'check'.
12160         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12161         gl_NEXT_HEADERS_INTERNAL.
12162
12163 2011-01-20  Bruno Haible  <bruno@clisp.org>
12164
12165         Allow the user to avoid the GNULIB_TEST_* macros.
12166         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12167         Suggested by Paul Eggert.
12168
12169 2011-01-14  Jim Meyering  <meyering@redhat.com>
12170
12171         bootstrap: avoid failure when there is no .gitmodules file
12172         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12173         has been assigned to, even when its value is the empty string.
12174         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12175         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12176         Reported by John W. Eaton <jwe@gnu.org>.
12177
12178 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12179
12180         assume <ctype.h>, ..., <time.h> exist
12181         For years gnulib has been assuming the existence of the headers
12182         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12183         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12184         them, since they don't appear to be needed.
12185         * README (Portability guidelines): Document this.
12186         * lib/flock.c: Assume <fcntl.h> exists.
12187         * lib/regex_internal.h: Assume <locale.h> exists.
12188         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12190         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12191         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12192         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12193         * m4/regex.m4 (gl_REGEX): Likewise.
12194         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12195         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12196         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12197         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12198         * tests/test-argp.c: Likewise.
12199         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12200
12201         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12202         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12203         AA_APPLE_UNIVERSAL_BUILD.  See
12204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12205         * NEWS: Document this.
12206
12207 2011-01-19  Eric Blake  <eblake@redhat.com>
12208
12209         c-stack: assume stack overflow if SA_SIGINFO unsupported
12210         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12211         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12212         sigaction will work.
12213         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12214         behavior match Linux.
12215         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12216
12217         stdbool-tests: accomodate Haiku
12218         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12219
12220         binary-io: fix O_TEXT on Haiku
12221         * modules/binary-io (Depends-on): Add fcntl-h.
12222         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12223         than blindly undefining O_TEXT.
12224         Reported by Scott McCreary.
12225
12226 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12227
12228         include_next: do not check for standard headers like stddef.h
12229
12230         I found this problem when modifying Emacs to use gnulib.
12231         I noticed that it added HAVE_STDDEF_H to config.h, even though
12232         gnulib always assumes <stddef.h> exists as per README and this
12233         symbol is unnecessary.
12234         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12235         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12236         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12237         faster for headers like stddef.h that are known to exist.
12238         (gl_CHECK_NEXT_HEADERS): Use it.
12239         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12240         rather than gl_CHECK_NEXT_HEADERS.
12241         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12242         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12243
12244 2011-01-18  Eric Blake  <eblake@redhat.com>
12245
12246         ansi-c++-opt: skip C++ dependency style if C++ is unused
12247         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12248         tests when we know C++ compilation is not desired.
12249         Reported by Scott McCreary.
12250
12251 2011-01-18  Bruno Haible  <bruno@clisp.org>
12252
12253         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12254         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12255         (main): Perform test also when getrlimit and setrlimit don't exist or
12256         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12257         limiting the address space size using setrlimit, compare the address
12258         space size before and after the the test.
12259         * tests/test-dprintf-posix2.c: Likewise.
12260         * tests/test-fprintf-posix3.sh: Update skip messages.
12261         * tests/test-dprintf-posix2.sh: Likewise.
12262         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12263         * modules/dprintf-posix-tests (Depends-on): Likewise.
12264         Reported by Bruce Korb <bkorb@gnu.org> and
12265         Gary V. Vaughan <gary@gnu.org>.
12266
12267 2011-01-18  Bruno Haible  <bruno@clisp.org>
12268
12269         get-rusage-as: Improvement for Cygwin.
12270         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12271         areas that are merely reserved.
12272
12273 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12274
12275         strftime: remove dependencies on multibyte modules
12276
12277         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12278         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12279         only if __osf__ is defined, and I suspect OSF doesn't need these
12280         other modules.  If my guess is wrong, we'll need to come up with a
12281         variant of strftime that doesn't need the multibyte modules.
12282
12283         I discovered this problem when attempting modify Emacs to use the
12284         strftime module.  With the previous gnulib, this caused Emacs to
12285         need 31 new files, ranging from lib/config.charset to
12286         m4/wint_t.m4.  This was overkill and I expect would be offputting
12287         to the Emacs maintainers.  After this change, only 6 new files are
12288         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12289         stdbool.m4, and tm_gmtoff.m4.
12290
12291         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12292         Suggested by Bruno Haible in
12293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12294         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12295         and do not check for wchar.h.
12296         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12297         (Depends-on): Remove mbrlen, mbsinit, wchar.
12298
12299 2011-01-18  Bruno Haible  <bruno@clisp.org>
12300
12301         Tests for module 'get-rusage-as'.
12302         * modules/get-rusage-as-tests: New file.
12303         * tests/test-get-rusage-as.c: New file.
12304
12305         New module 'get-rusage-as'.
12306         * modules/get-rusage-as: New file.
12307         * lib/resource-ext.h: New file.
12308         * lib/get-rusage-as.c: New file.
12309
12310 2011-01-17  Eric Blake  <eblake@redhat.com>
12311
12312         sigaction: relax license from LGPLv3+ to LGPLv2+
12313         * modules/sigaction (License): Relax to LGPLv2+.
12314
12315 2011-01-14  Bruno Haible  <bruno@clisp.org>
12316
12317         filemode: Make function declarations usable in C++ mode.
12318         * lib/filemode.h: Enclose function declarations in extern "C" block.
12319         Reported by John W. Eaton <jwe@gnu.org>.
12320
12321 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12322
12323         save-cwd: no longer include "xgetcwd.h"
12324         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12325         This avoids a compilation failure in projects that use save-cwd
12326         without also using the xgetcwd module.
12327
12328 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12329
12330         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12331         This is so that a program like Emacs, which needs only dtoastr,
12332         does not have to bother with distributing and compiling ftoastr
12333         and ldtoastr.
12334         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12335         * modules/dtoastr, modules/ldtoastr: New files.
12336         * modules/ftoastr: Now works just for 'float'.
12337         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12338         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12339         dtoastr.c, ldtoastr.c.
12340
12341 2011-01-11  Jim Meyering  <meyering@redhat.com>
12342
12343         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12344         There is no need to work around the lack of the fchdir function,
12345         since gnulib can now provide a replacement when required.
12346         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12347         * modules/save-cwd (Depends-on): Add fchdir.
12348
12349 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12350
12351         openat, save-cwd: avoid xmalloc
12352
12353         This removes a direct (but undocumented) dependency of openat on
12354         xalloc, along with an indirect dependency via save-cwd.  It also
12355         removes a dependency of save-cwd on xgetcwd, and thereby
12356         indirectly on xalloc.  This change causes the openat substitute
12357         to fall back on save_cwd when memory is tight, and for save_cwd to
12358         fail instead of dying when memory is tight, but that's good enough.
12359         Problem and initial idea for fix reported by Bastien Roucaries in
12360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12361
12362         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12363         xalloc.h (for xmalloc).
12364         (openat_proc_name): Use malloc, not xmalloc.
12365         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12366         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12367
12368         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12369         This avoids heap allocation for file names whose lengths are in
12370         the range 512..1023, with the upper bound increasing to at most
12371         4031 depending on the platform's PATH_MAX.  (We do not want
12372         pathmax.h here as it might supply a non-constant PATH_MAX.)
12373         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12374         Perhaps they should be moved to malloca.h?
12375         (OPENAT_BUFFER_SIZE): Use them.
12376
12377 2011-01-10  Bruno Haible  <bruno@clisp.org>
12378
12379         doc: Update users.txt.
12380         * users.txt: Add recutils.
12381
12382 2011-01-09  Karl Berry  <karl@gnu.org>
12383
12384         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12385
12386         * doc/configmake.texi: New file.
12387         * doc/gnulib.texi: Include it.
12388         * modules/configmake: Move documentation from here.
12389
12390 2011-01-09  Bruno Haible  <bruno@clisp.org>
12391
12392         Update to Unicode 6.0.0.
12393         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12394         (get_lbp): Update for Unicode 6.0.0.
12395         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12396         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12397         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12398         U+11001, U+11038..U+11046. Remove U+06DE.
12399         (uc_width): Fix bounds of planes.
12400         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12401         lib/uniwidth/width.c.
12402         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12403         trailing whitespace removed.
12404         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12405         without comments, but with the original copyright notice.
12406         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12407         * lib/unicase/ignorable.h: Likewise.
12408         * lib/unicase/tocasefold.h: Likewise.
12409         * lib/unicase/tolower.h: Likewise.
12410         * lib/unicase/totitle.h: Likewise.
12411         * lib/unicase/toupper.h: Likewise.
12412         * lib/unictype/bidi_of.h: Likewise.
12413         * lib/unictype/blocks.h: Likewise.
12414         * lib/unictype/categ_C.h: Likewise.
12415         * lib/unictype/categ_Cn.h: Likewise.
12416         * lib/unictype/categ_L.h: Likewise.
12417         * lib/unictype/categ_Ll.h: Likewise.
12418         * lib/unictype/categ_Lm.h: Likewise.
12419         * lib/unictype/categ_Lo.h: Likewise.
12420         * lib/unictype/categ_Lu.h: Likewise.
12421         * lib/unictype/categ_M.h: Likewise.
12422         * lib/unictype/categ_Mc.h: Likewise.
12423         * lib/unictype/categ_Me.h: Likewise.
12424         * lib/unictype/categ_Mn.h: Likewise.
12425         * lib/unictype/categ_N.h: Likewise.
12426         * lib/unictype/categ_Nd.h: Likewise.
12427         * lib/unictype/categ_No.h: Likewise.
12428         * lib/unictype/categ_P.h: Likewise.
12429         * lib/unictype/categ_Po.h: Likewise.
12430         * lib/unictype/categ_S.h: Likewise.
12431         * lib/unictype/categ_Sc.h: Likewise.
12432         * lib/unictype/categ_Sk.h: Likewise.
12433         * lib/unictype/categ_Sm.h: Likewise.
12434         * lib/unictype/categ_So.h: Likewise.
12435         * lib/unictype/categ_of.h: Likewise.
12436         * lib/unictype/combining.h: Likewise.
12437         * lib/unictype/ctype_alnum.h: Likewise.
12438         * lib/unictype/ctype_alpha.h: Likewise.
12439         * lib/unictype/ctype_graph.h: Likewise.
12440         * lib/unictype/ctype_lower.h: Likewise.
12441         * lib/unictype/ctype_print.h: Likewise.
12442         * lib/unictype/ctype_punct.h: Likewise.
12443         * lib/unictype/ctype_upper.h: Likewise.
12444         * lib/unictype/decdigit.h: Likewise.
12445         * lib/unictype/digit.h: Likewise.
12446         * lib/unictype/numeric.h: Likewise.
12447         * lib/unictype/pr_alphabetic.h: Likewise.
12448         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12449         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12450         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12451         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12452         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12453         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12454         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12455         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12456         * lib/unictype/pr_case_ignorable.h: Likewise.
12457         * lib/unictype/pr_cased.h: Likewise.
12458         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12459         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12460         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12461         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12462         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12463         * lib/unictype/pr_combining.h: Likewise.
12464         * lib/unictype/pr_composite.h: Likewise.
12465         * lib/unictype/pr_currency_symbol.h: Likewise.
12466         * lib/unictype/pr_decimal_digit.h: Likewise.
12467         * lib/unictype/pr_deprecated.h: Likewise.
12468         * lib/unictype/pr_format_control.h: Likewise.
12469         * lib/unictype/pr_grapheme_base.h: Likewise.
12470         * lib/unictype/pr_grapheme_extend.h: Likewise.
12471         * lib/unictype/pr_grapheme_link.h: Likewise.
12472         * lib/unictype/pr_id_continue.h: Likewise.
12473         * lib/unictype/pr_id_start.h: Likewise.
12474         * lib/unictype/pr_ideographic.h: Likewise.
12475         * lib/unictype/pr_lowercase.h: Likewise.
12476         * lib/unictype/pr_math.h: Likewise.
12477         * lib/unictype/pr_numeric.h: Likewise.
12478         * lib/unictype/pr_other_alphabetic.h: Likewise.
12479         * lib/unictype/pr_other_id_continue.h: Likewise.
12480         * lib/unictype/pr_other_math.h: Likewise.
12481         * lib/unictype/pr_punctuation.h: Likewise.
12482         * lib/unictype/pr_sentence_terminal.h: Likewise.
12483         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12484         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12485         * lib/unictype/pr_unified_ideograph.h: Likewise.
12486         * lib/unictype/pr_uppercase.h: Likewise.
12487         * lib/unictype/pr_xid_continue.h: Likewise.
12488         * lib/unictype/pr_xid_start.h: Likewise.
12489         * lib/unictype/scripts.h: Likewise.
12490         * lib/unictype/scripts_byname.gperf: Likewise.
12491         * lib/unictype/sy_java_ident.h: Likewise.
12492         * lib/unigbrk/gbrkprop.h: Likewise.
12493         * lib/unilbrk/lbrkprop1.h: Likewise.
12494         * lib/unilbrk/lbrkprop2.h: Likewise.
12495         * lib/uninorm/decomposition-table2.h: Likewise.
12496         * lib/uniwbrk/wbrkprop.h: Likewise.
12497         * tests/unicase/test-cased.c: Likewise.
12498         * tests/unicase/test-ignorable.c: Likewise.
12499         * tests/unicase/test-uc_tolower.c: Likewise.
12500         * tests/unicase/test-uc_totitle.c: Likewise.
12501         * tests/unicase/test-uc_toupper.c: Likewise.
12502         * tests/unictype/test-categ_C.c: Likewise.
12503         * tests/unictype/test-categ_Cn.c: Likewise.
12504         * tests/unictype/test-categ_L.c: Likewise.
12505         * tests/unictype/test-categ_Ll.c: Likewise.
12506         * tests/unictype/test-categ_Lm.c: Likewise.
12507         * tests/unictype/test-categ_Lo.c: Likewise.
12508         * tests/unictype/test-categ_Lu.c: Likewise.
12509         * tests/unictype/test-categ_M.c: Likewise.
12510         * tests/unictype/test-categ_Mc.c: Likewise.
12511         * tests/unictype/test-categ_Me.c: Likewise.
12512         * tests/unictype/test-categ_Mn.c: Likewise.
12513         * tests/unictype/test-categ_N.c: Likewise.
12514         * tests/unictype/test-categ_Nd.c: Likewise.
12515         * tests/unictype/test-categ_No.c: Likewise.
12516         * tests/unictype/test-categ_P.c: Likewise.
12517         * tests/unictype/test-categ_Po.c: Likewise.
12518         * tests/unictype/test-categ_S.c: Likewise.
12519         * tests/unictype/test-categ_Sc.c: Likewise.
12520         * tests/unictype/test-categ_Sk.c: Likewise.
12521         * tests/unictype/test-categ_Sm.c: Likewise.
12522         * tests/unictype/test-categ_So.c: Likewise.
12523         * tests/unictype/test-ctype_alnum.c: Likewise.
12524         * tests/unictype/test-ctype_alpha.c: Likewise.
12525         * tests/unictype/test-ctype_graph.c: Likewise.
12526         * tests/unictype/test-ctype_lower.c: Likewise.
12527         * tests/unictype/test-ctype_print.c: Likewise.
12528         * tests/unictype/test-ctype_punct.c: Likewise.
12529         * tests/unictype/test-ctype_upper.c: Likewise.
12530         * tests/unictype/test-decdigit.h: Likewise.
12531         * tests/unictype/test-digit.h: Likewise.
12532         * tests/unictype/test-numeric.h: Likewise.
12533         * tests/unictype/test-pr_alphabetic.c: Likewise.
12534         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12535         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12536         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12537         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12538         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12539         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12540         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12541         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12542         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12543         * tests/unictype/test-pr_cased.c: Likewise.
12544         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12545         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12546         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12547         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12548         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12549         * tests/unictype/test-pr_combining.c: Likewise.
12550         * tests/unictype/test-pr_composite.c: Likewise.
12551         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12552         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12553         * tests/unictype/test-pr_deprecated.c: Likewise.
12554         * tests/unictype/test-pr_format_control.c: Likewise.
12555         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12556         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12557         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12558         * tests/unictype/test-pr_id_continue.c: Likewise.
12559         * tests/unictype/test-pr_id_start.c: Likewise.
12560         * tests/unictype/test-pr_ideographic.c: Likewise.
12561         * tests/unictype/test-pr_lowercase.c: Likewise.
12562         * tests/unictype/test-pr_math.c: Likewise.
12563         * tests/unictype/test-pr_numeric.c: Likewise.
12564         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12565         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12566         * tests/unictype/test-pr_other_math.c: Likewise.
12567         * tests/unictype/test-pr_punctuation.c: Likewise.
12568         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12569         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12570         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12571         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12572         * tests/unictype/test-pr_uppercase.c: Likewise.
12573         * tests/unictype/test-pr_xid_continue.c: Likewise.
12574         * tests/unictype/test-pr_xid_start.c: Likewise.
12575         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12576         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12577         changes.
12578         * lib/unictype/categ_Cc.h: Likewise.
12579         * lib/unictype/categ_Cf.h: Likewise.
12580         * lib/unictype/categ_Co.h: Likewise.
12581         * lib/unictype/categ_Cs.h: Likewise.
12582         * lib/unictype/categ_Lt.h: Likewise.
12583         * lib/unictype/categ_Nl.h: Likewise.
12584         * lib/unictype/categ_Pc.h: Likewise.
12585         * lib/unictype/categ_Pd.h: Likewise.
12586         * lib/unictype/categ_Pe.h: Likewise.
12587         * lib/unictype/categ_Pf.h: Likewise.
12588         * lib/unictype/categ_Pi.h: Likewise.
12589         * lib/unictype/categ_Ps.h: Likewise.
12590         * lib/unictype/categ_Z.h: Likewise.
12591         * lib/unictype/categ_Zl.h: Likewise.
12592         * lib/unictype/categ_Zp.h: Likewise.
12593         * lib/unictype/categ_Zs.h: Likewise.
12594         * lib/unictype/ctype_blank.h: Likewise.
12595         * lib/unictype/ctype_cntrl.h: Likewise.
12596         * lib/unictype/ctype_digit.h: Likewise.
12597         * lib/unictype/ctype_space.h: Likewise.
12598         * lib/unictype/ctype_xdigit.h: Likewise.
12599         * lib/unictype/mirror.h: Likewise.
12600         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12601         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12602         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12603         * lib/unictype/pr_bidi_control.h: Likewise.
12604         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12605         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12606         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12607         * lib/unictype/pr_bidi_pdf.h: Likewise.
12608         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12609         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12610         * lib/unictype/pr_dash.h: Likewise.
12611         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12612         * lib/unictype/pr_diacritic.h: Likewise.
12613         * lib/unictype/pr_extender.h: Likewise.
12614         * lib/unictype/pr_hex_digit.h: Likewise.
12615         * lib/unictype/pr_hyphen.h: Likewise.
12616         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12617         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12618         * lib/unictype/pr_ignorable_control.h: Likewise.
12619         * lib/unictype/pr_iso_control.h: Likewise.
12620         * lib/unictype/pr_join_control.h: Likewise.
12621         * lib/unictype/pr_left_of_pair.h: Likewise.
12622         * lib/unictype/pr_line_separator.h: Likewise.
12623         * lib/unictype/pr_logical_order_exception.h: Likewise.
12624         * lib/unictype/pr_non_break.h: Likewise.
12625         * lib/unictype/pr_not_a_character.h: Likewise.
12626         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12627         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12628         * lib/unictype/pr_other_id_start.h: Likewise.
12629         * lib/unictype/pr_other_lowercase.h: Likewise.
12630         * lib/unictype/pr_other_uppercase.h: Likewise.
12631         * lib/unictype/pr_paired_punctuation.h: Likewise.
12632         * lib/unictype/pr_paragraph_separator.h: Likewise.
12633         * lib/unictype/pr_pattern_syntax.h: Likewise.
12634         * lib/unictype/pr_pattern_white_space.h: Likewise.
12635         * lib/unictype/pr_private_use.h: Likewise.
12636         * lib/unictype/pr_quotation_mark.h: Likewise.
12637         * lib/unictype/pr_radical.h: Likewise.
12638         * lib/unictype/pr_soft_dotted.h: Likewise.
12639         * lib/unictype/pr_space.h: Likewise.
12640         * lib/unictype/pr_titlecase.h: Likewise.
12641         * lib/unictype/pr_variation_selector.h: Likewise.
12642         * lib/unictype/pr_white_space.h: Likewise.
12643         * lib/unictype/pr_zero_width.h: Likewise.
12644         * lib/unictype/sy_c_ident.h: Likewise.
12645         * lib/unictype/sy_c_whitespace.h: Likewise.
12646         * lib/unictype/sy_java_whitespace.h: Likewise.
12647         * lib/uninorm/composition-table.gperf: Likewise.
12648         * lib/uninorm/decomposition-table1.h: Likewise.
12649         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12650         LB8.
12651         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12652         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12653         * modules/unictype/*: Bump version number of expected libunistring
12654         version.
12655
12656 2011-01-09  Bruno Haible  <bruno@clisp.org>
12657
12658         Update to Unicode 5.2.0.
12659         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12660         trailing whitespace removed.
12661
12662 2011-01-09  Bruno Haible  <bruno@clisp.org>
12663
12664         New Unicode character properties, from Unicode 5.2.0.
12665         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12666         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12667         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12668         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12669         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12670         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12671         uc_is_property_cased, uc_is_property_case_ignorable,
12672         uc_is_property_changes_when_lowercased,
12673         uc_is_property_changes_when_uppercased,
12674         uc_is_property_changes_when_titlecased,
12675         uc_is_property_changes_when_casefolded,
12676         uc_is_property_changes_when_casemapped): New declarations.
12677         * lib/unictype/pr_byname.gperf: Add the new properties.
12678         * modules/unictype/property-byname (Depends-on): Depend on the new
12679         properties modules.
12680         * modules/unictype/property-all (Depends-on): Likewise.
12681         * MODULES.html.sh (Unicode string functions): Add
12682         unictype/property-case-ignorable, unictype/property-cased,
12683         unictype/property-changes-when-casefolded,
12684         unictype/property-changes-when-casemapped,
12685         unictype/property-changes-when-lowercased,
12686         unictype/property-changes-when-titlecased,
12687         unictype/property-changes-when-uppercased.
12688
12689         New module 'unictype/property-changes-when-casemapped'.
12690         * modules/unictype/property-changes-when-casemapped: New file.
12691         * lib/unictype/pr_changes_when_casemapped.c: New file.
12692         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12693         generated by gen-uni-tables.
12694         * modules/unictype/property-changes-when-casemapped-tests: New file.
12695         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12696         automatically generated by gen-uni-tables.
12697
12698         New module 'unictype/property-changes-when-casefolded'.
12699         * modules/unictype/property-changes-when-casefolded: New file.
12700         * lib/unictype/pr_changes_when_casefolded.c: New file.
12701         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12702         generated by gen-uni-tables.
12703         * modules/unictype/property-changes-when-casefolded-tests: New file.
12704         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12705         automatically generated by gen-uni-tables.
12706
12707         New module 'unictype/property-changes-when-titlecased'.
12708         * modules/unictype/property-changes-when-titlecased: New file.
12709         * lib/unictype/pr_changes_when_titlecased.c: New file.
12710         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12711         generated by gen-uni-tables.
12712         * modules/unictype/property-changes-when-titlecased-tests: New file.
12713         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12714         automatically generated by gen-uni-tables.
12715
12716         New module 'unictype/property-changes-when-uppercased'.
12717         * modules/unictype/property-changes-when-uppercased: New file.
12718         * lib/unictype/pr_changes_when_uppercased.c: New file.
12719         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12720         generated by gen-uni-tables.
12721         * modules/unictype/property-changes-when-uppercased-tests: New file.
12722         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12723         automatically generated by gen-uni-tables.
12724
12725         New module 'unictype/property-changes-when-lowercased'.
12726         * modules/unictype/property-changes-when-lowercased: New file.
12727         * lib/unictype/pr_changes_when_lowercased.c: New file.
12728         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12729         generated by gen-uni-tables.
12730         * modules/unictype/property-changes-when-lowercased-tests: New file.
12731         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12732         automatically generated by gen-uni-tables.
12733
12734         New module 'unictype/property-case-ignorable'.
12735         * modules/unictype/property-case-ignorable: New file.
12736         * lib/unictype/pr_case_ignorable.c: New file.
12737         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12738         by gen-uni-tables.
12739         * modules/unictype/property-case-ignorable-tests: New file.
12740         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12741         generated by gen-uni-tables.
12742
12743         New module 'unictype/property-cased'.
12744         * modules/unictype/property-cased: New file.
12745         * lib/unictype/pr_cased.c: New file.
12746         * lib/unictype/pr_cased.h: New file, automatically generated by
12747         gen-uni-tables.
12748         * modules/unictype/property-cased-tests: New file.
12749         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12750         gen-uni-tables.
12751
12752 2011-01-09  Bruno Haible  <bruno@clisp.org>
12753
12754         Update to Unicode 5.2.0.
12755         * lib/gen-uni-tables.c (output_predicate, output_category,
12756         output_combclass, output_bidi_category, output_decimal_digit_test,
12757         output_decimal_digit, output_digit_test, output_digit,
12758         output_numeric_test, output_numeric, output_mirror, output_scripts,
12759         output_scripts_byname, output_blocks, output_ident_category): Fix
12760         comment header.
12761         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12762         get_wbp.
12763         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12764         items.
12765         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12766         Changes_When_Lowercased, Changes_When_Uppercased,
12767         Changes_When_Titlecased, Changes_When_Casefolded,
12768         Changes_When_Casemapped.
12769         (is_property_alphabetic, is_property_default_ignorable_code_point):
12770         Update for Unicode 5.2.0.
12771         (is_property_cased, is_property_case_ignorable,
12772         is_property_changes_when_lowercased,
12773         is_property_changes_when_uppercased,
12774         is_property_changes_when_titlecased,
12775         is_property_changes_when_casefolded,
12776         is_property_changes_when_casemapped): New functions.
12777         (output_properties): Output also the properties cased, case_ignorable,
12778         changes_when_lowercased, changes_when_uppercased,
12779         changes_when_titlecased, changes_when_casefolded,
12780         changes_when_casemapped.
12781         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12782         Unicode TR#11 revision 17 -> 19.
12783         (LBP_CP): New enumeration value.
12784         (LBP_*): Adjust values accordingly.
12785         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12786         TR#14 revision 22 -> 24.
12787         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12788         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12789         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12790         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12791         is_WBP_MIDLETTER.
12792         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12793         the code1 and code2 of each composition rule.
12794         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12795         * lib/unicase/ignorable.h: Likewise.
12796         * lib/unicase/tocasefold.h: Likewise.
12797         * lib/unicase/tolower.h: Likewise.
12798         * lib/unicase/totitle.h: Likewise.
12799         * lib/unicase/toupper.h: Likewise.
12800         * lib/unictype/bidi_of.h: Likewise.
12801         * lib/unictype/blocks.h: Likewise.
12802         * lib/unictype/categ_C.h: Likewise.
12803         * lib/unictype/categ_Cf.h: Likewise.
12804         * lib/unictype/categ_Cn.h: Likewise.
12805         * lib/unictype/categ_L.h: Likewise.
12806         * lib/unictype/categ_Ll.h: Likewise.
12807         * lib/unictype/categ_Lm.h: Likewise.
12808         * lib/unictype/categ_Lo.h: Likewise.
12809         * lib/unictype/categ_Lu.h: Likewise.
12810         * lib/unictype/categ_M.h: Likewise.
12811         * lib/unictype/categ_Mc.h: Likewise.
12812         * lib/unictype/categ_Mn.h: Likewise.
12813         * lib/unictype/categ_N.h: Likewise.
12814         * lib/unictype/categ_Nd.h: Likewise.
12815         * lib/unictype/categ_Nl.h: Likewise.
12816         * lib/unictype/categ_No.h: Likewise.
12817         * lib/unictype/categ_P.h: Likewise.
12818         * lib/unictype/categ_Pd.h: Likewise.
12819         * lib/unictype/categ_Po.h: Likewise.
12820         * lib/unictype/categ_S.h: Likewise.
12821         * lib/unictype/categ_Sc.h: Likewise.
12822         * lib/unictype/categ_So.h: Likewise.
12823         * lib/unictype/categ_of.h: Likewise.
12824         * lib/unictype/combining.h: Likewise.
12825         * lib/unictype/ctype_alnum.h: Likewise.
12826         * lib/unictype/ctype_alpha.h: Likewise.
12827         * lib/unictype/ctype_graph.h: Likewise.
12828         * lib/unictype/ctype_lower.h: Likewise.
12829         * lib/unictype/ctype_print.h: Likewise.
12830         * lib/unictype/ctype_punct.h: Likewise.
12831         * lib/unictype/ctype_upper.h: Likewise.
12832         * lib/unictype/decdigit.h: Likewise.
12833         * lib/unictype/digit.h: Likewise.
12834         * lib/unictype/numeric.h: Likewise.
12835         * lib/unictype/pr_alphabetic.h: Likewise.
12836         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12837         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12838         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12839         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12840         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12841         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12842         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12843         * lib/unictype/pr_combining.h: Likewise.
12844         * lib/unictype/pr_composite.h: Likewise.
12845         * lib/unictype/pr_currency_symbol.h: Likewise.
12846         * lib/unictype/pr_dash.h: Likewise.
12847         * lib/unictype/pr_decimal_digit.h: Likewise.
12848         * lib/unictype/pr_deprecated.h: Likewise.
12849         * lib/unictype/pr_diacritic.h: Likewise.
12850         * lib/unictype/pr_extender.h: Likewise.
12851         * lib/unictype/pr_grapheme_base.h: Likewise.
12852         * lib/unictype/pr_grapheme_extend.h: Likewise.
12853         * lib/unictype/pr_grapheme_link.h: Likewise.
12854         * lib/unictype/pr_id_continue.h: Likewise.
12855         * lib/unictype/pr_id_start.h: Likewise.
12856         * lib/unictype/pr_ideographic.h: Likewise.
12857         * lib/unictype/pr_ignorable_control.h: Likewise.
12858         * lib/unictype/pr_logical_order_exception.h: Likewise.
12859         * lib/unictype/pr_lowercase.h: Likewise.
12860         * lib/unictype/pr_numeric.h: Likewise.
12861         * lib/unictype/pr_other_alphabetic.h: Likewise.
12862         * lib/unictype/pr_punctuation.h: Likewise.
12863         * lib/unictype/pr_sentence_terminal.h: Likewise.
12864         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12865         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12866         * lib/unictype/pr_unified_ideograph.h: Likewise.
12867         * lib/unictype/pr_uppercase.h: Likewise.
12868         * lib/unictype/pr_xid_continue.h: Likewise.
12869         * lib/unictype/pr_xid_start.h: Likewise.
12870         * lib/unictype/pr_zero_width.h: Likewise.
12871         * lib/unictype/scripts.h: Likewise.
12872         * lib/unictype/scripts_byname.gperf: Likewise.
12873         * lib/unictype/sy_java_ident.h: Likewise.
12874         * lib/unigbrk/gbrkprop.h: Likewise.
12875         * lib/unilbrk/lbrkprop1.h: Likewise.
12876         * lib/unilbrk/lbrkprop2.h: Likewise.
12877         * lib/unilbrk/lbrktables.h: Likewise.
12878         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12879         LBP_CP. Implement rule LB30.
12880         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12881         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12882         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12883         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12884         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12885         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12886         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12887         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12888         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12889         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12890         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12891         bits instead of 16 bits in the code1 and code2 of each composition
12892         rule.
12893         (uc_composition): Update for Unicode 5.2.0.
12894         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12895         * lib/uninorm/decomposition-table2.h: Likewise.
12896         * lib/uniwbrk/wbrkprop.h: Likewise.
12897         * tests/unicase/test-cased.c: Likewise.
12898         * tests/unicase/test-ignorable.c: Likewise.
12899         * tests/unicase/test-uc_tolower.c: Likewise.
12900         * tests/unicase/test-uc_totitle.c: Likewise.
12901         * tests/unicase/test-uc_toupper.c: Likewise.
12902         * tests/unictype/test-categ_C.c: Likewise.
12903         * tests/unictype/test-categ_Cf.c: Likewise.
12904         * tests/unictype/test-categ_Cn.c: Likewise.
12905         * tests/unictype/test-categ_L.c: Likewise.
12906         * tests/unictype/test-categ_Ll.c: Likewise.
12907         * tests/unictype/test-categ_Lm.c: Likewise.
12908         * tests/unictype/test-categ_Lo.c: Likewise.
12909         * tests/unictype/test-categ_Lu.c: Likewise.
12910         * tests/unictype/test-categ_M.c: Likewise.
12911         * tests/unictype/test-categ_Mc.c: Likewise.
12912         * tests/unictype/test-categ_Mn.c: Likewise.
12913         * tests/unictype/test-categ_N.c: Likewise.
12914         * tests/unictype/test-categ_Nd.c: Likewise.
12915         * tests/unictype/test-categ_Nl.c: Likewise.
12916         * tests/unictype/test-categ_No.c: Likewise.
12917         * tests/unictype/test-categ_P.c: Likewise.
12918         * tests/unictype/test-categ_Pd.c: Likewise.
12919         * tests/unictype/test-categ_Po.c: Likewise.
12920         * tests/unictype/test-categ_S.c: Likewise.
12921         * tests/unictype/test-categ_Sc.c: Likewise.
12922         * tests/unictype/test-categ_So.c: Likewise.
12923         * tests/unictype/test-ctype_alnum.c: Likewise.
12924         * tests/unictype/test-ctype_alpha.c: Likewise.
12925         * tests/unictype/test-ctype_graph.c: Likewise.
12926         * tests/unictype/test-ctype_lower.c: Likewise.
12927         * tests/unictype/test-ctype_print.c: Likewise.
12928         * tests/unictype/test-ctype_punct.c: Likewise.
12929         * tests/unictype/test-ctype_upper.c: Likewise.
12930         * tests/unictype/test-decdigit.h: Likewise.
12931         * tests/unictype/test-digit.h: Likewise.
12932         * tests/unictype/test-numeric.h: Likewise.
12933         * tests/unictype/test-pr_alphabetic.c: Likewise.
12934         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12935         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12936         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12937         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12938         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12939         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12940         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12941         * tests/unictype/test-pr_combining.c: Likewise.
12942         * tests/unictype/test-pr_composite.c: Likewise.
12943         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12944         * tests/unictype/test-pr_dash.c: Likewise.
12945         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12946         * tests/unictype/test-pr_deprecated.c: Likewise.
12947         * tests/unictype/test-pr_diacritic.c: Likewise.
12948         * tests/unictype/test-pr_extender.c: Likewise.
12949         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12950         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12951         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12952         * tests/unictype/test-pr_id_continue.c: Likewise.
12953         * tests/unictype/test-pr_id_start.c: Likewise.
12954         * tests/unictype/test-pr_ideographic.c: Likewise.
12955         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12956         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12957         * tests/unictype/test-pr_lowercase.c: Likewise.
12958         * tests/unictype/test-pr_numeric.c: Likewise.
12959         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12960         * tests/unictype/test-pr_punctuation.c: Likewise.
12961         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12962         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12963         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12964         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12965         * tests/unictype/test-pr_uppercase.c: Likewise.
12966         * tests/unictype/test-pr_xid_continue.c: Likewise.
12967         * tests/unictype/test-pr_xid_start.c: Likewise.
12968         * tests/unictype/test-pr_zero_width.c: Likewise.
12969         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12970         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12971         changed behaviour: line breaking is now disallowed between a letter
12972         or '=' and '('.
12973         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12974         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12975         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12976         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12977         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12978         lib/uniwidth/width.c.
12979         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12980         without comments, but with the original copyright notice.
12981         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12982         changes.
12983         * lib/unictype/categ_Cc.h: Likewise.
12984         * lib/unictype/categ_Co.h: Likewise.
12985         * lib/unictype/categ_Cs.h: Likewise.
12986         * lib/unictype/categ_Lt.h: Likewise.
12987         * lib/unictype/categ_Me.h: Likewise.
12988         * lib/unictype/categ_Pc.h: Likewise.
12989         * lib/unictype/categ_Pe.h: Likewise.
12990         * lib/unictype/categ_Pf.h: Likewise.
12991         * lib/unictype/categ_Pi.h: Likewise.
12992         * lib/unictype/categ_Ps.h: Likewise.
12993         * lib/unictype/categ_Sk.h: Likewise.
12994         * lib/unictype/categ_Sm.h: Likewise.
12995         * lib/unictype/categ_Z.h: Likewise.
12996         * lib/unictype/categ_Zl.h: Likewise.
12997         * lib/unictype/categ_Zp.h: Likewise.
12998         * lib/unictype/categ_Zs.h: Likewise.
12999         * lib/unictype/ctype_blank.h: Likewise.
13000         * lib/unictype/ctype_cntrl.h: Likewise.
13001         * lib/unictype/ctype_digit.h: Likewise.
13002         * lib/unictype/ctype_space.h: Likewise.
13003         * lib/unictype/ctype_xdigit.h: Likewise.
13004         * lib/unictype/mirror.h: Likewise.
13005         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13006         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13007         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13008         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13009         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13010         * lib/unictype/pr_bidi_control.h: Likewise.
13011         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13012         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13013         * lib/unictype/pr_bidi_pdf.h: Likewise.
13014         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13015         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13016         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13017         * lib/unictype/pr_format_control.h: Likewise.
13018         * lib/unictype/pr_hex_digit.h: Likewise.
13019         * lib/unictype/pr_hyphen.h: Likewise.
13020         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13021         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13022         * lib/unictype/pr_iso_control.h: Likewise.
13023         * lib/unictype/pr_join_control.h: Likewise.
13024         * lib/unictype/pr_left_of_pair.h: Likewise.
13025         * lib/unictype/pr_line_separator.h: Likewise.
13026         * lib/unictype/pr_math.h: Likewise.
13027         * lib/unictype/pr_non_break.h: Likewise.
13028         * lib/unictype/pr_not_a_character.h: Likewise.
13029         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13030         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13031         * lib/unictype/pr_other_id_continue.h: Likewise.
13032         * lib/unictype/pr_other_id_start.h: Likewise.
13033         * lib/unictype/pr_other_lowercase.h: Likewise.
13034         * lib/unictype/pr_other_math.h: Likewise.
13035         * lib/unictype/pr_other_uppercase.h: Likewise.
13036         * lib/unictype/pr_paired_punctuation.h: Likewise.
13037         * lib/unictype/pr_paragraph_separator.h: Likewise.
13038         * lib/unictype/pr_pattern_syntax.h: Likewise.
13039         * lib/unictype/pr_pattern_white_space.h: Likewise.
13040         * lib/unictype/pr_private_use.h: Likewise.
13041         * lib/unictype/pr_quotation_mark.h: Likewise.
13042         * lib/unictype/pr_radical.h: Likewise.
13043         * lib/unictype/pr_soft_dotted.h: Likewise.
13044         * lib/unictype/pr_space.h: Likewise.
13045         * lib/unictype/pr_titlecase.h: Likewise.
13046         * lib/unictype/pr_variation_selector.h: Likewise.
13047         * lib/unictype/pr_white_space.h: Likewise.
13048         * lib/unictype/sy_c_ident.h: Likewise.
13049         * lib/unictype/sy_c_whitespace.h: Likewise.
13050         * lib/unictype/sy_java_whitespace.h: Likewise.
13051         * modules/uni*/*: Bump version number of expected libunistring version.
13052         Reported by Simon Josefsson.
13053
13054 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13055
13056         useless-if-before-free: fix typo in --help and make the internal,
13057         automatic version date update process work once again.
13058         --help output contained a NUL character instead of the
13059         backslash-zero that was intended.  Also, the "must lie within
13060         the first 8 lines" line is on line 9, and hence not getting
13061         automatically updated.
13062         * build-aux/useless-if-before-free: Fix the former by adding a
13063         backslash, and the latter by condensing the three lines of what-it-does
13064         to a single line, leaving one line of slack for the future.
13065
13066 2011-01-09  Bruno Haible  <bruno@clisp.org>
13067
13068         uniwidth/width: Fix width of U+1D173..U+1D17A.
13069         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13070         symbolic_width, output_width_property_test): New functions.
13071         (main): Invoke output_nonspacing_property, output_width_property_test.
13072         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13073         U+1D173..U+1D17A.
13074         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13075         1.
13076         * modules/uniwidth/*: Bump version number of expected libunistring
13077         version.
13078         * modules/unilbrk/*: Likewise.
13079
13080 2011-01-08  Bruno Haible  <bruno@clisp.org>
13081
13082         uninorm tests: Preserve copyright of Unicode data file.
13083         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13084         Mention modifications.
13085
13086 2011-01-08  Bruno Haible  <bruno@clisp.org>
13087
13088         gen-uni-tables: Prepare for Unicode 5.2.0.
13089         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13090         (debug_output_lbp, output_lbp): Update.
13091
13092 2011-01-08  Bruno Haible  <bruno@clisp.org>
13093
13094         unilbrk: Clarify gen-uni-tables.c code.
13095         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13096         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13097         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13098
13099 2011-01-07  Bruno Haible  <bruno@clisp.org>
13100
13101         strtod: Restore errno when successfully parsing Infinity or NaN.
13102         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13103         restore the original errno.
13104
13105 2011-01-07  Bruno Haible  <bruno@clisp.org>
13106
13107         remove test: Avoid failure on HP-UX 11.
13108         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13109
13110 2011-01-07  Bruno Haible  <bruno@clisp.org>
13111
13112         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13113         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13114         error code.
13115
13116 2011-01-07  Pádraig Brady <P@draigBrady.com>
13117
13118         ignore-value: fixup comments, and add Eric Blake
13119         as an author since he rewrote the macros.
13120         * lib/ignore-value.h (ignore_value):  State that
13121         we now support aggregates.  Also specify exactly
13122         when the GCC warn_unused_result feature was added.
13123
13124 2011-01-06  Eric Blake  <eblake@redhat.com>
13125
13126         ignore-value: support aggregate types
13127         * lib/ignore-value.h (ignore_value): Provide separate gcc
13128         definition.
13129         * modules/ignore-value-tests: New test module.
13130         * tests/test-ignore-value.c: New test.
13131
13132         maint.mk: improve sc_prohibit_strcmp regex
13133         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13134         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13135         definition of STRNEQ.
13136
13137         signal: work around Haiku issue with SIGBUS
13138         * lib/siglist.h: Add comment.
13139         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13140         strsignal's favoring of SIGSEGV.
13141         * tests/test-signal.c (main): Avoid test failure.
13142         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13143         Reported by Scott McCreary.
13144
13145         maint.mk: add pre-release check to ensure submodule commits are public
13146         * top/maint.mk (public-submodule-commit): New rule.
13147         (submodule-checks): New variable.
13148         (alpha beta stable): Depend on the variable.
13149
13150 2011-01-05  Pádraig Brady <P@draigBrady.com>
13151         and Jim Meyering  <meyering@redhat.com>
13152
13153         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13154         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13155         (ATTRIBUTE_DEPRECATED): Define.
13156         (_ignore_case): New function.
13157         (ignore_value): New macro, to replace the old function.
13158         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13159         * modules/ignore-value (Depends-on): Add stdint.
13160
13161 2011-01-04  Eric Blake  <eblake@redhat.com>
13162
13163         doc: regenerate INSTALL
13164         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13165         @firstparagraphindent support, now that autoconf dropped it.
13166         (INSTALL_PRELUDE): Reinstate old macro.
13167         * doc/install.texi: Resync from autoconf.
13168         * doc/INSTALL: Reflect recent autoconf update.
13169         * doc/INSTALL.ISO: Likewise.
13170         * doc/INSTALL.UTF-8: Likewise.
13171         Reported by Karl Berry.
13172
13173 2011-01-04  Bruce Korb  <address@hidden>
13174
13175         git-version-gen: avoid a sub-shell
13176         * build-aux/git-version-gen: Redirect stderr in `...` via
13177         "exec 2>...", rather than via an added sub-shell.
13178
13179 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13180
13181         git-version-gen: use (...) rather than sh -c '...'
13182         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13183         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13184
13185 2011-01-03  Jim Meyering  <meyering@redhat.com>
13186
13187         git-version-gen: convert leading TABs to spaces
13188         * build-aux/git-version-gen: Expand leading TABs.
13189
13190         git-version-gen: handle failed "git rev-list"
13191         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13192         from git and proceeding as if it had succeeded but printed no SHA1
13193         checksums, suppress the diagnostic and handle the failure.
13194         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13195
13196         git-version-gen: include command name in one more diagnostic
13197         * build-aux/git-version-gen: When the required .tarball-version file
13198         was missing or unreadable, you might see the diagnostic from "cat",
13199         but no trace of the name of the invoking script.  Now, you still see
13200         the diagnostic from cat, but also get one from "git-version-gen: ".
13201         Inspired by a patch from Bruce Korb.
13202
13203         update-copyright: adjust test to match changed code
13204         * tests/test-update-copyright.sh: Change test's expected output
13205         to match new actual output.
13206
13207 2011-01-02  Bruno Haible  <bruno@clisp.org>
13208
13209         getlogin_r: Avoid test failure on HP-UX 11.
13210         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13211         ERANGE when the second argument is zero.
13212         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13213         portability problem.
13214
13215 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13216
13217         * build-aux/update-copyright: doc Simon's changes
13218
13219 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13220
13221         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13222         environment variable.
13223
13224 2011-01-02  Bruno Haible  <bruno@clisp.org>
13225
13226         unigbrk: Avoid gcc warnings.
13227         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13228         unused variable.
13229         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13230         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13231         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13232         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13233         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13234         Change type of first argument to 'const char *'.
13235         (main): Remove unused variable.
13236         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13237         type of first argument to 'const char *'.
13238         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13239         Likewise.
13240         (main): Change type of variable 's'.
13241         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13242         to 'int'.
13243
13244 2011-01-02  Bruno Haible  <bruno@clisp.org>
13245
13246         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13247         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13248         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13249         bug.
13250         * lib/pwrite.c: Undo 2010-12-31 patch.
13251         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13252
13253 2011-01-02  Bruno Haible  <bruno@clisp.org>
13254
13255         pread: Fix test whether it works.
13256         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13257
13258 2011-01-02  Bruno Haible  <bruno@clisp.org>
13259
13260         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13261         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13262         ends in "6". Don't require a specific month name. Try also the locale
13263         names found on HP-UX 11 and Solaris 7.
13264
13265 2011-01-02  Bruno Haible  <bruno@clisp.org>
13266
13267         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13268         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13269         C linkage.
13270         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13271
13272 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13273
13274         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13275         for consistency, since the "cluster" term is not used elsewhere.
13276         * lib/unigbrk.in.h: Update name.
13277         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13278         * lib/unigbrk/u16-grapheme-next.c: Update name.
13279         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13280         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13281         * lib/unigbrk/u32-grapheme-next.c: Update name.
13282         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13283         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13284         * lib/unigbrk/u8-grapheme-next.c: Update name.
13285         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13286         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13287         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13288         Suggested by Bruno Haible.
13289
13290 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13291
13292         Remove module 'u8-grapheme-len' as too redundant with
13293         'u8-grapheme-next'.
13294         * modules/unigbrk/u8-grapheme-len: Delete file.
13295         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13296         * lib/unigbrk.in.h: Remove prototype for deleted function.
13297         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13298         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13299
13300         Remove module 'u16-grapheme-len' as too redundant with
13301         'u16-grapheme-next'.
13302         * modules/unigbrk/u16-grapheme-len: Delete file.
13303         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13304         * lib/unigbrk.in.h: Remove prototype for deleted function.
13305         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13306         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13307
13308         Remove module 'u32-grapheme-len' as too redundant with
13309         'u32-grapheme-next'.
13310         * modules/unigbrk/u32-grapheme-len: Delete file.
13311         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13312         * lib/unigbrk.in.h: Remove prototype for deleted function.
13313         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13314         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13315
13316         Suggested by Bruno Haible.
13317
13318 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13319
13320         * unigbrk.in.h: Fix typo: "ben" => "been".
13321         Reported by Bruno Haible.
13322
13323 2011-01-01  Jim Meyering  <meyering@redhat.com>
13324
13325         maint: update almost all copyright ranges to include 2011
13326         Run the new "make update-copyright" rule.
13327
13328 2011-01-01  Jim Meyering  <meyering@redhat.com>
13329
13330         maint: update-copyright: exempt doc/INSTALL*
13331         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13332         since they are generated.  Suggested by Bruno Haible.
13333
13334 2011-01-01  Jim Meyering  <meyering@redhat.com>
13335
13336         maint: refine the update-copyright rule
13337         * Makefile (update-copyright): Also exclude any file that includes
13338         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13339         code that merely generates the comment.
13340
13341 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13342
13343         New module 'u8-grapheme-len'.
13344         * modules/unigbrk/u8-grapheme-len: New file.
13345         * modules/unigbrk/u8-grapheme-len-tests: New file.
13346         * lib/unigbrk.in.h: Add prototype for new function.
13347         * lib/unigbrk/u8-grapheme-len.c: New file.
13348         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13349
13350         New module 'u16-grapheme-len'.
13351         * modules/unigbrk/u16-grapheme-len: New file.
13352         * modules/unigbrk/u16-grapheme-len-tests: New file.
13353         * lib/unigbrk.in.h: Add prototype for new function.
13354         * lib/unigbrk/u16-grapheme-len.c: New file.
13355         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13356
13357         New module 'u32-grapheme-len'.
13358         * modules/unigbrk/u32-grapheme-len: New file.
13359         * modules/unigbrk/u32-grapheme-len-tests: New file.
13360         * lib/unigbrk.in.h: Add prototype for new function.
13361         * lib/unigbrk/u32-grapheme-len.c: New file.
13362         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13363
13364         New module 'u8-grapheme-next'.
13365         * modules/unigbrk/u8-grapheme-next: New file.
13366         * modules/unigbrk/u8-grapheme-next-tests: New file.
13367         * lib/unigbrk.in.h: Add prototype for new function.
13368         * lib/unigbrk/u8-grapheme-next.c: New file.
13369         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13370
13371         New module 'u16-grapheme-next'.
13372         * modules/unigbrk/u16-grapheme-next: New file.
13373         * modules/unigbrk/u16-grapheme-next-tests: New file.
13374         * lib/unigbrk.in.h: Add prototype for new function.
13375         * lib/unigbrk/u16-grapheme-next.c: New file.
13376         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13377
13378         New module 'u32-grapheme-next'.
13379         * modules/unigbrk/u32-grapheme-next: New file.
13380         * modules/unigbrk/u32-grapheme-next-tests: New file.
13381         * lib/unigbrk.in.h: Add prototype for new function.
13382         * lib/unigbrk/u32-grapheme-next.c: New file.
13383         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13384
13385         New module 'u8-grapheme-prev'.
13386         * modules/unigbrk/u8-grapheme-prev: New file.
13387         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13388         * lib/unigbrk.in.h: Add prototype for new function.
13389         * lib/unigbrk/u8-grapheme-prev.c: New file.
13390         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13391
13392         New module 'u16-grapheme-prev'.
13393         * modules/unigbrk/u16-grapheme-prev: New file.
13394         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13395         * lib/unigbrk.in.h: Add prototype for new function.
13396         * lib/unigbrk/u16-grapheme-prev.c: New file.
13397         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13398
13399         New module 'u32-grapheme-prev'.
13400         * modules/unigbrk/u32-grapheme-prev: New file.
13401         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13402         * lib/unigbrk.in.h: Add prototype for new function.
13403         * lib/unigbrk/u32-grapheme-prev.c: New file.
13404         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13405
13406         New module 'u8-grapheme-breaks'.
13407         * modules/unigbrk/u8-grapheme-breaks: New file.
13408         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13409         * lib/unigbrk.in.h: Add prototype for new function.
13410         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13411         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13412
13413         New module 'u16-grapheme-breaks'.
13414         * modules/unigbrk/u16-grapheme-breaks: New file.
13415         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13416         * lib/unigbrk.in.h: Add prototype for new function.
13417         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13418         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13419
13420         New module 'u32-grapheme-breaks'.
13421         * modules/unigbrk/u32-grapheme-breaks: New file.
13422         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13423         * lib/unigbrk.in.h: Add prototype for new function.
13424         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13425         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13426
13427         New module 'ulc-grapheme-breaks'.
13428         * modules/unigbrk/ulc-grapheme-breaks: New file.
13429         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13430         * m4/locale-ar.m4: New file.
13431         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13432         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13433         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13434
13435 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13436
13437         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13438         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13439         modified how this file was generated before I initially submitted
13440         the module, but failed to regenerate it.  This meant that several
13441         of the level2 entries were wrong.
13442         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13443         Remove the division-by-2 that is folded into the table now that
13444         gbrkprop.h has been regenerated properly.  Now -1 entries are
13445         handled correctly.
13446
13447         New module 'unigbrk/uc-gbrk-prop-tests'.
13448         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13449         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13450         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13451         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13452
13453 2011-01-01  Bruno Haible  <bruno@clisp.org>
13454
13455         Avoid use of hexadecimal escapes.
13456         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13457         instead of hexadecimal escapes.
13458
13459 2011-01-01  Jim Meyering  <meyering@redhat.com>
13460
13461         maint: new rule to update copyright year ranges
13462         * Makefile (update-copyright): New rule.
13463
13464         maint: indent with TABs in Makefile
13465         * Makefile: Expand leading sequences of spaces to TABs
13466
13467         version-etc: update the copyright year it reports
13468         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13469
13470 2010-12-31  Bruno Haible  <bruno@clisp.org>
13471
13472         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13473         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13474         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13475         zero.
13476
13477 2010-12-31  Bruno Haible  <bruno@clisp.org>
13478
13479         pwrite: Work around HP-UX 11.11 bug.
13480         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13481         works and set REPLACE_PWRITE if not.
13482         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13483         function.
13484         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13485
13486 2010-12-31  Bruno Haible  <bruno@clisp.org>
13487
13488         pread: Work around HP-UX 11 bugs.
13489         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13490         and set REPLACE_PREAD if not.
13491         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13492
13493 2010-12-31  Eric Blake  <eblake@redhat.com>
13494
13495         nl_langinfo: fix YESEXPR on Irix 6.5
13496         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13497         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13498         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13499         it.
13500
13501 2010-12-31  Bruno Haible  <bruno@clisp.org>
13502
13503         iconv: Document HP-UX 11 bug.
13504         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13505
13506 2010-12-31  Bruno Haible  <bruno@clisp.org>
13507
13508         ldexpl: Fix link error on HP-UX 11.
13509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13510         LDEXPL_LIBM, using $ISNANL_LIBM.
13511
13512 2010-12-31  Eric Blake  <eblake@redhat.com>
13513
13514         ftello: avoid compilation failure with SunStudio c89
13515         * lib/ftello.c (ftello): Use lseek, not llseek.
13516
13517         tests: avoid failing coreutils tests on cygwin
13518         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13519         (create_exe_shims_): Return 0 when skipping.
13520
13521 2010-12-31  Bruno Haible  <bruno@clisp.org>
13522
13523         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13524         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13525
13526 2010-12-31  Bruno Haible  <bruno@clisp.org>
13527
13528         waitpid: Fix link error in C++ mode.
13529         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13530
13531 2010-12-31  Bruno Haible  <bruno@clisp.org>
13532
13533         isnan: Use GCC built-ins when possible.
13534         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13535         __builtin_isnan.
13536         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13537         (isnan): Define using GCC built-ins for GCC >= 4.0.
13538
13539 2010-12-31  Bruno Haible  <bruno@clisp.org>
13540
13541         isnand: Fix mistake.
13542         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13543         __builtin_isnand.
13544
13545 2010-12-31  Bruno Haible  <bruno@clisp.org>
13546
13547         open: Avoid C++ error on HP-UX 11.
13548         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13549
13550 2010-12-31  Bruno Haible  <bruno@clisp.org>
13551
13552         time_r: Add missing declarations on HP-UX 11.
13553         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13554         instead of HAVE_LOCALTIME_R.
13555         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13556         HAVE_LOCALTIME_R always.
13557         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13558         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13559         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13560         HAVE_LOCALTIME_R.
13561         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13562         * doc/posix-functions/localtime_r.texi: Likewise.
13563
13564 2010-12-29  Eric Blake  <eblake@redhat.com>
13565
13566         mountlist: tweak previous commit
13567         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13568         Reported by Paul Eggert.
13569
13570         mountlist: fix local drive detection on cygwin
13571         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13572         that works for cygwin.
13573
13574 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13575
13576         ftoastr, snprintf: ftoastr + snprintf module
13577         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13578         since the snprintf module now should be good enough here.
13579         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13580         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13581         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13582         GNULIB_SNPRINTF only for the test directory, and the latter
13583         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13584         seems to suffice by itself.
13585
13586 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13587
13588         alloca: one step towards thread-safety
13589         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13590         need for a static variable.  All callers changed.  This does not
13591         make the alloca replacement thread-safe, but it's one step.
13592
13593         tests: minor indenting change
13594         * tests/init.sh: Sync from coreutils housekeeping patch
13595         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13596         to keep lines within 80 columns.
13597
13598 2010-12-28  Jim Meyering  <meyering@redhat.com>
13599
13600         regex: don't infloop on persistent failing calloc
13601         * lib/regexec.c (build_trtable): Return failure indication upon
13602         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13603         In glibc, this was fixed for version 2.13:
13604         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13605
13606 2010-12-28  Bruno Haible  <bruno@clisp.org>
13607             Paul Eggert <eggert@cs.ucla.edu>
13608
13609         linkat: Make implementation robust against system behaviour variations.
13610         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13611         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13612         way, and to -2 if it needs a generic runtime test.
13613         * lib/linkat.c (solaris_optimized_link_immediate,
13614         solaris_optimized_link_follow): New functions.
13615         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13616         (check_same_link): Use it.
13617
13618 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13619
13620         New module 'unigbrk/base'.
13621         * modules/unigbrk/base: New file.
13622         * lib/unigbrk.in.h: New file.
13623
13624         New module 'unigbrk/uc-gbrk-prop'.
13625         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13626         * modules/unigbrk/uc-gbrk-prop: New file.
13627         * lib/unigbrk/gbrkprop.h: New file.
13628         * lib/unigbrk/uc-gbrk-prop.c: New file.
13629
13630         New module 'unigbrk/uc-is-grapheme-break'.
13631         * modules/unigbrk/uc-is-grapheme-break: New file.
13632         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13633         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13634         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13635         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13636         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13637
13638         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13639
13640 2010-12-27  Bruno Haible  <bruno@clisp.org>
13641
13642         linkat test: Avoid failure on Solaris 11 2010-11.
13643         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13644
13645 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13646
13647         utimens: work around glibc rounding bug on more platforms
13648         * lib/utimens.c (fdutimens): Work around rounding bug even if
13649         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13650         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13651
13652 2010-12-27  Bruno Haible  <bruno@clisp.org>
13653
13654         select tests: Improve comments.
13655         * tests/test-select.c (do_select): Add comments.
13656
13657 2010-12-27  Bruno Haible  <bruno@clisp.org>
13658
13659         select tests: Safer way of handling timeout.
13660         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13661         at every invocation.
13662
13663 2010-12-27  Bruno Haible  <bruno@clisp.org>
13664
13665         select tests: Use 'bool' where appropriate.
13666         * tests/test-select.c (connect_to_socket): Change argument type to
13667         'bool'.
13668
13669 2010-12-27  Bruno Haible  <bruno@clisp.org>
13670
13671         select tests: Use existing modules.
13672         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13673         (configure.ac): Don't test for unistd.h.
13674         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13675         declared in <unistd.h>.
13676
13677 2010-12-27  Bruno Haible  <bruno@clisp.org>
13678
13679         mbrtowc: Work around a Solaris 7 bug.
13680         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13681         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13682         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13683         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13684         MBRTOWC_NULL_ARG1_BUG.
13685         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13686         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13687         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13688         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13689
13690 2010-12-27  Jim Meyering  <meyering@redhat.com>
13691
13692         read-file.c: tweak syntax
13693         * lib/read-file.c (fread_file): Remove space after "*" in function
13694         definitions.
13695
13696 2010-12-27  Bruno Haible  <bruno@clisp.org>
13697
13698         times test: Avoid gcc warnings on OSF/1.
13699         * tests/test-times.c (main): Cast printf arguments from clock_t to
13700         'long int'.
13701
13702 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13703
13704         utimens: work around glibc rounding bug on older Linux kernels
13705         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13706         on Linux with a glibc whose utimes might not work, then work
13707         around a longstanding glibc bug involving rounding rather than
13708         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13710
13711 2010-12-26  Bruno Haible  <bruno@clisp.org>
13712
13713         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13714         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13715         _GL_CXXALIAS_SYS.
13716         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13717
13718 2010-12-26  Bruno Haible  <bruno@clisp.org>
13719
13720         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13721         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13722         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13723         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13724         looking for the declaration.
13725         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13726         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13727         problem.
13728         * doc/posix-functions/inet_pton.texi: Likewise.
13729
13730 2010-12-26  Bruno Haible  <bruno@clisp.org>
13731
13732         arpa_inet: Use the common idioms with C++ support.
13733         * lib/arpa_inet.in.h: Include c++defs.h.
13734         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13735         support.
13736         * modules/arpa_inet (Depends-on): Add c++defs.
13737         (Makefile.am): Substitute the contents of c++defs.h.
13738         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13739         * modules/arpa_inet-c++-tests: New file.
13740         * tests/test-arpa_inet-c++.cc: New file.
13741
13742 2010-12-25  Bruno Haible  <bruno@clisp.org>
13743
13744         Fix more C++ link errors on Solaris 8.
13745         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13746         $(LIB_EACCESS).
13747         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13748         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13749         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13750         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13751         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13752
13753 2010-12-25  Bruno Haible  <bruno@clisp.org>
13754
13755         printf-posix: Fix link error when a non-GCC compiler is used.
13756         * lib/stdio.in.h (printf): When not using GCC, override printf
13757         correctly.
13758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13759
13760 2010-12-25  Bruno Haible  <bruno@clisp.org>
13761
13762         strerror_r-posix: Update doc.
13763         * doc/posix-functions/strerror_r.texi: Update doc about the return
13764         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13765
13766 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13767
13768         utimens: simplify the logic of the previous change
13769         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13770         This should not affect whether the test succeeds or fails.
13771
13772         utimens: configure better on hosts with NFS clock skew
13773         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13774         uses the clock of the local host.  It might use the clock of the
13775         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13776         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13777
13778 2010-12-25  Bruno Haible  <bruno@clisp.org>
13779
13780         ptsname test: Avoid failure on Solaris.
13781         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13782         open a pseudo-terminal; don't use BSD-style ptys.
13783         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13784
13785 2010-12-25  Bruno Haible  <bruno@clisp.org>
13786
13787         ptsname: Avoid ERANGE failure on some systems.
13788         * lib/ptsname.c (buffer): Increase size.
13789
13790 2010-12-25  Bruno Haible  <bruno@clisp.org>
13791
13792         rename, renameat: Avoid test failures at NFS mounted locations.
13793         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13794         so that subsequent mkdir calls succeed.
13795
13796 2010-12-25  Bruno Haible  <bruno@clisp.org>
13797
13798         iswblank: Fix C++ link error on Solaris 8.
13799         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13800         _GL_FUNCDECL_SYS.
13801
13802 2010-12-25  Bruno Haible  <bruno@clisp.org>
13803
13804         unistd: Fix C++ link error on Solaris 8.
13805         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13806
13807 2010-12-25  Bruno Haible  <bruno@clisp.org>
13808
13809         readlink doc: Mention an old glibc bug.
13810         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13811
13812 2010-12-25  Bruno Haible  <bruno@clisp.org>
13813
13814         fcntl-h: Fix for use of C++ on glibc systems.
13815         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13816         also on glibc systems in C++ mode.
13817         Reported by Gary V. Vaughan <gary@gnu.org>.
13818
13819 2010-12-25  Bruno Haible  <bruno@clisp.org>
13820
13821         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13822         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13823
13824 2010-12-25  Bruno Haible  <bruno@clisp.org>
13825
13826         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13827         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13828         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13829         test whether truncl works according to ISO C 99 with IEC 60559.
13830         * m4/truncl-ieee.m4: New file.
13831         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13832         m4/signbit.m4.
13833         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13834
13835 2010-12-25  Bruno Haible  <bruno@clisp.org>
13836
13837         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13838         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13839         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13840         test whether ceill works according to ISO C 99 with IEC 60559.
13841         * m4/ceill-ieee.m4: New file.
13842         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13843         m4/signbit.m4.
13844         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13845
13846 2010-12-25  Bruno Haible  <bruno@clisp.org>
13847
13848         Ensure all prerequisites of <wchar.h> are included.
13849         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13850         before <wchar.h>.
13851         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13852         gl_MBRLEN_NUL_RETVAL): Likewise.
13853         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13854         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13855         AC_FUNC_MBRTOWC): Likewise.
13856         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13857         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13858         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13859         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13860         Likewise.
13861         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13862         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13863         (gl_WCHAR_H): Improve comments.
13864         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13865
13866 2010-12-25  Bruno Haible  <bruno@clisp.org>
13867
13868         strtok_r: Fix C syntax error in autoconf macro.
13869         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13870         characters in test program.
13871
13872 2010-12-24  Bruno Haible  <bruno@clisp.org>
13873
13874         ceil, trunc, round: Fix gcc warnings.
13875         * lib/ceil.c (MIN): Undefine before redefining.
13876         * lib/trunc.c (MIN): Likewise.
13877         * lib/round.c (MIN): Likewise.
13878         Include <math.h> first.
13879
13880 2010-12-24  Bruno Haible  <bruno@clisp.org>
13881
13882         select tests: Avoid failures on OSF/1 5.1.
13883         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13884         failure of closing the last socket; it may fail with ECONNRESET.
13885
13886 2010-12-24  Eric Blake  <eblake@redhat.com>
13887
13888         stdint: avoid HP-UX 10.20 preprocessor bug
13889         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13890         than #if.
13891         * tests/test-floor2.c (main): Likewise.
13892         Reported by Peter O'Gorman.
13893
13894         pipe: make obsoletion transition easier
13895         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13896         * modules/pipe (Files): Include revived file.
13897         (Include): Drop reference, to mirror getdate's behavior.
13898
13899 2010-12-24  Bruno Haible  <bruno@clisp.org>
13900
13901         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13902         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13903         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13904         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13905
13906 2010-12-24  Bruno Haible  <bruno@clisp.org>
13907
13908         gethostname: Ensure declaration on NonStop Kernel.
13909         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13910         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13911
13912 2010-12-24  Bruno Haible  <bruno@clisp.org>
13913
13914         sys_select: Ensure all necessary types on NonStop Kernel.
13915         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13916         include <sys/time.h>.
13917         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13918         NonStop Kernel.
13919         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13920
13921 2010-12-24  Bruno Haible  <bruno@clisp.org>
13922
13923         sys_select: Remove unneeded include.
13924         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13925         have <sys/select.h>.
13926
13927 2010-12-24  Bruno Haible  <bruno@clisp.org>
13928
13929         gethostname: Provide a fallback for HOST_NAME_MAX.
13930         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13931         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13932         instead.
13933         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13934
13935 2010-12-24  Bruno Haible  <bruno@clisp.org>
13936
13937         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13938         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13939         (SA_RESTART): Likewise.
13940         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13941
13942 2010-12-24  Bruno Haible  <bruno@clisp.org>
13943
13944         signal: Define NSIG.
13945         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13946         * tests/test-signal.c (nsig): New variable.
13947         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13948
13949 2010-12-24  Bruno Haible  <bruno@clisp.org>
13950
13951         rename, renameat: Avoid test failures on OSF/1 5.1.
13952         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13953         alternative error codes.
13954         * tests/test-renameat.c (main): Likewise.
13955
13956 2010-12-24  Bruno Haible  <bruno@clisp.org>
13957
13958         *printf: Detect large precisions bug on Solaris 10/SPARC.
13959         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13960         by Paul Eggert.
13961         * tests/test-snprintf-posix.h (test_function): Add this test code here
13962         too.
13963         * tests/test-sprintf-posix.h (test_function): Likewise.
13964         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13965         * tests/test-vasprintf-posix.c (test_function): Likewise.
13966         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13967         around by gnulib.
13968         * doc/posix-functions/printf.texi: Likewise.
13969         * doc/posix-functions/snprintf.texi: Likewise.
13970         * doc/posix-functions/sprintf.texi: Likewise.
13971         * doc/posix-functions/vfprintf.texi: Likewise.
13972         * doc/posix-functions/vprintf.texi: Likewise.
13973         * doc/posix-functions/vsnprintf.texi: Likewise.
13974         * doc/posix-functions/vsprintf.texi: Likewise.
13975         * doc/posix-functions/dprintf.texi: Undo last commit.
13976         * doc/posix-functions/vdprintf.texi: Likewise.
13977
13978 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13979
13980         tests: port test-fdutimensat.c to Solaris 8
13981         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13982         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13983         On Solaris 8, it fails with errno == ENOSYS, because there is no
13984         futimens (so it can't use the fd), and there is no lutimens (so it
13985         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13986
13987         vsnprintf: make more consistent with snprintf; doc fixes
13988
13989         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13990         the byte count return problem was promoted from the snprintf-posix
13991         to the snprintf module.
13992         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13993         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13994         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13995         * tests/test-snprintf.c (main): Check the byte count returned.
13996         * tests/test-vsnprintf.c (main): Likewise.
13997
13998 2010-12-23  Eric Blake  <eblake@redhat.com>
13999
14000         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14001         * modules/sigpipe (License): Relax license.
14002
14003 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14004
14005         doc: document Solaris printf bug with large float precisions
14006         * doc/posix-functions/dprintf.texi (dprintf):
14007         * doc/posix-functions/fprintf.texi (fprintf):
14008         * doc/posix-functions/printf.texi (printf):
14009         * doc/posix-functions/snprintf.texi (snprintf):
14010         * doc/posix-functions/sprintf.texi (sprintf):
14011         * doc/posix-functions/vdprintf.texi (vdprintf):
14012         * doc/posix-functions/vfprintf.texi (vfprintf):
14013         * doc/posix-functions/vprintf.texi (vprintf):
14014         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14015         * doc/posix-functions/vsprintf.texi (vsprintf):
14016         Mention that these functions mishandle large floating point
14017         precisions on Solaris 10.  The same bug is also present in Solaris
14018         8, and I assume earlier.  This causes "cd gnulib-tests; make
14019         check" to fail on Solaris 8 (and I assume, later) when building
14020         the latest coreutils, in test-vasprintf-posix's call to
14021         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14022         the wide flavors (e.g., wprintf) so this patch just updates the
14023         documentation for the narrow ones.
14024
14025         test-posixtm.c: add two tests
14026         * tests/test-posixtm.c: Add two tests, to highlight the
14027         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14028         around this bug; this is merely to document it.
14029
14030 2010-12-22  Bruno Haible  <bruno@clisp.org>
14031
14032         getlogin_r: Work around portability problem on OSF/1.
14033         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14034         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14035         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14036         test for a truncated result.
14037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14038         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14039         * modules/getlogin_r (Depends-on): Add memchr.
14040         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14041
14042 2010-12-22  Bruno Haible  <bruno@clisp.org>
14043
14044         ptsname: Avoid test failure on OSF/1 5.1.
14045         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14046         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14047         (same_slave): New function.
14048         (main): Use it to compare ptsname's result with the expected file name.
14049
14050 2010-12-22  Bruno Haible  <bruno@clisp.org>
14051
14052         Port extended stdio modules to HP NonStop Kernel.
14053         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14054         macros.
14055         * lib/fbufmode.c: Update comments.
14056         * lib/fflush.c: Likewise.
14057         * lib/fpurge.c: Likewise.
14058         * lib/freadable.c: Likewise.
14059         * lib/freadahead.c: Likewise.
14060         * lib/freading.c: Likewise.
14061         * lib/freadptr.c: Likewise.
14062         * lib/freadseek.c: Likewise.
14063         * lib/fseeko.c: Likewise.
14064         * lib/fseterr.c: Likewise.
14065         * lib/fwritable.c: Likewise.
14066         * lib/fwriting.c: Likewise.
14067         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14068
14069 2010-12-22  Bruno Haible  <bruno@clisp.org>
14070
14071         ttyname_r: Work around bug on OSF/1 5.1.
14072         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14073         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14074         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14075         present.
14076         * lib/ttyname_r.c (ttyname_r): Update comments.
14077
14078 2010-12-22  Bruno Haible  <bruno@clisp.org>
14079
14080         round: Implement result sign according to IEEE 754.
14081         * lib/round.c (MIN, MINUS_ZERO): New macros.
14082         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14083         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14084         * tests/test-round-ieee.c (main): Likewise.
14085         * tests/test-roundl-ieee.c (main): Likewise.
14086
14087         trunc: Implement result sign according to IEEE 754.
14088         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14089         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14090         * tests/test-trunc2.c: Include minus-zero.h.
14091         (MINUS_ZERO): New macro.
14092         (trunc_reference): Keep in sync with lib/trunc.c.
14093         * tests/test-truncf2.c: Include minus-zero.h.
14094         (MINUS_ZERO): New macro.
14095         (truncf_reference): Keep in sync with lib/trunc.c.
14096         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14097         * tests/test-trunc-ieee.c (main): Likewise.
14098         * tests/test-truncl-ieee.c (main): Likewise.
14099
14100         ceil: Implement result sign according to IEEE 754.
14101         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14102         (FUNC): Return -0.0 for -1 < x < 0.
14103         * tests/test-ceil2.c: Include minus-zero.h.
14104         (MINUS_ZERO): New macro.
14105         (ceil_reference): Keep in sync with lib/ceil.c.
14106         * tests/test-ceilf2.c: Include minus-zero.h.
14107         (MINUS_ZERO): New macro.
14108         (ceilf_reference): Keep in sync with lib/ceil.c.
14109         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14110         * tests/test-ceil-ieee.c (main): Likewise.
14111         * tests/test-ceill-ieee.c (main): Likewise.
14112
14113         floor: Implement result sign according to IEEE 754.
14114         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14115         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14116         * tests/test-floorf2.c (floorf_reference): Likewise.
14117         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14118         * tests/test-floor-ieee.c (main): Likewise.
14119         * tests/test-floorl-ieee.c (main): Likewise.
14120
14121 2010-12-22  Bruno Haible  <bruno@clisp.org>
14122
14123         getaddrinfo: Update doc.
14124         * doc/posix-functions/gai_strerror.texi: Return type is also different
14125         on AIX and HP-UX.
14126
14127 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14128
14129         getaddrinfo, inet_ntop: Update doc for Solaris.
14130         * doc/posix-functions/gai_strerror.texi: Return type is also an
14131         issue on Solaris 9 and earlier.
14132         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14133         on Solaris 10 and earlier.
14134
14135 2010-12-21  Bruno Haible  <bruno@clisp.org>
14136
14137         New module 'roundl-ieee'.
14138         * modules/roundl-ieee: New file.
14139         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14140         test whether roundl works according to ISO C 99 with IEC 60559.
14141         * m4/roundl-ieee.m4: New file.
14142         * modules/roundl-ieee-tests: New file.
14143         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14144         * tests/test-roundl.c (main): Remove signbit tests.
14145         * modules/roundl-tests (Depends-on): Remove signbit.
14146         * doc/posix-functions/roundl.texi: Mention the new module.
14147
14148 2010-12-21  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'truncl-ieee'.
14151         * modules/truncl-ieee: New file.
14152         * modules/truncl-ieee-tests: New file.
14153         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14154         * tests/test-truncl.c (main): Remove signbit tests.
14155         * modules/truncl-tests (Depends-on): Remove signbit.
14156         * doc/posix-functions/truncl.texi: Mention the new module.
14157
14158 2010-12-21  Bruno Haible  <bruno@clisp.org>
14159
14160         New module 'ceill-ieee'.
14161         * modules/ceill-ieee: New file.
14162         * modules/ceill-ieee-tests: New file.
14163         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14164         * tests/test-ceill.c (main): Remove signbit tests.
14165         * modules/ceill-tests (Depends-on): Remove signbit.
14166         * doc/posix-functions/ceill.texi: Mention the new module.
14167
14168 2010-12-21  Bruno Haible  <bruno@clisp.org>
14169
14170         New module 'floorl-ieee'.
14171         * modules/floorl-ieee: New file.
14172         * modules/floorl-ieee-tests: New file.
14173         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14174         * tests/test-floorl.c (main): Remove signbit tests.
14175         * modules/floorl-tests (Depends-on): Remove signbit.
14176         * doc/posix-functions/floorl.texi: Mention the new module.
14177
14178 2010-12-21  Bruno Haible  <bruno@clisp.org>
14179
14180         New module 'round-ieee'.
14181         * modules/round-ieee: New file.
14182         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14183         whether round works according to ISO C 99 with IEC 60559.
14184         * m4/round-ieee.m4: New file.
14185         * modules/round-ieee-tests: New file.
14186         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14187         * tests/test-round1.c (main): Remove signbit tests.
14188         * modules/round-tests (Depends-on): Remove 'signbit'.
14189         * doc/posix-functions/round.texi: Mention the new module.
14190
14191 2010-12-21  Bruno Haible  <bruno@clisp.org>
14192
14193         New module 'trunc-ieee'.
14194         * modules/trunc-ieee: New file.
14195         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14196         whether trunc works according to ISO C 99 with IEC 60559.
14197         * m4/trunc-ieee.m4: New file.
14198         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14200         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14201         * modules/trunc-ieee-tests: New file.
14202         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14203         * tests/test-trunc1.c (main): Remove signbit tests.
14204         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14205         * doc/posix-functions/trunc.texi: Mention the new module.
14206
14207 2010-12-21  Bruno Haible  <bruno@clisp.org>
14208
14209         New module 'ceil-ieee'.
14210         * modules/ceil-ieee: New file.
14211         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14212         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14213         ISO C 99 with IEC 60559.
14214         * m4/ceil-ieee.m4: New file.
14215         * modules/ceil (Files): Add lib/ceil.c.
14216         (Depends-on): Add 'float'.
14217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14218         * lib/math.in.h (ceil): New declaration.
14219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14220         REPLACE_CEIL.
14221         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14222         * modules/ceil-ieee-tests: New file.
14223         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14224         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14225         * doc/posix-functions/ceil.texi: Mention the new module.
14226
14227 2010-12-21  Bruno Haible  <bruno@clisp.org>
14228
14229         New module 'floor-ieee'.
14230         * modules/floor-ieee: New file.
14231         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14232         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14233         ISO C 99 with IEC 60559.
14234         * m4/floor-ieee.m4: New file.
14235         * modules/floor (Files): Add lib/floor.c.
14236         (Depends-on): Add 'float'.
14237         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14238         * lib/math.in.h (floor): New declaration.
14239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14240         REPLACE_FLOOR.
14241         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14242         * modules/floor-ieee-tests: New file.
14243         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14244         * tests/test-math-c++.cc: Check the signature of 'floor'.
14245         * doc/posix-functions/floor.texi: Mention the new module.
14246
14247 2010-12-21  Bruno Haible  <bruno@clisp.org>
14248
14249         New module 'roundf-ieee'.
14250         * modules/roundf-ieee: New file.
14251         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14252         test whether roundf works according to ISO C 99 with IEC 60559.
14253         * m4/roundf-ieee.m4: New file.
14254         * modules/roundf-ieee-tests: New file.
14255         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14256         * tests/test-roundf1.c (main): Remove signbit tests.
14257         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14258         * doc/posix-functions/roundf.texi: Mention the new module.
14259
14260 2010-12-21  Bruno Haible  <bruno@clisp.org>
14261
14262         New module 'truncf-ieee'.
14263         * modules/truncf-ieee: New file.
14264         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14265         test whether truncf works according to ISO C 99 with IEC 60559.
14266         * m4/truncf-ieee.m4: New file.
14267         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14269         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14270         * modules/truncf-ieee-tests: New file.
14271         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14272         * tests/test-truncf1.c (main): Remove signbit tests.
14273         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14274         * doc/posix-functions/truncf.texi: Mention the new module.
14275
14276 2010-12-21  Bruno Haible  <bruno@clisp.org>
14277
14278         New module 'ceilf-ieee'.
14279         * modules/ceilf-ieee: New file.
14280         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14281         test whether ceilf works according to ISO C 99 with IEC 60559.
14282         * m4/ceilf-ieee.m4: New file.
14283         * modules/ceilf-ieee-tests: New file.
14284         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14285         * tests/test-ceilf1.c (main): Remove signbit tests.
14286         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14287         * doc/posix-functions/ceilf.texi: Mention the new module.
14288
14289 2010-12-21  Bruno Haible  <bruno@clisp.org>
14290
14291         New module 'floorf-ieee'.
14292         * modules/floorf-ieee: New file.
14293         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14294         test whether floorf works according to ISO C 99 with IEC 60559.
14295         * m4/floorf-ieee.m4: New file.
14296         * modules/floorf-ieee-tests: New file.
14297         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14298         * tests/test-floorf1.c (main): Remove signbit tests.
14299         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14300         * doc/posix-functions/floorf.texi: Mention the new module.
14301
14302 2010-12-21  Bruno Haible  <bruno@clisp.org>
14303
14304         Support for minus zero in autoconf macros.
14305         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14306         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14307         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14308         * tests/minus-zero.h: Update comments.
14309
14310 2010-12-21  Bruno Haible  <bruno@clisp.org>
14311
14312         Tests for module 'ceil'.
14313         * modules/ceil-tests: New file.
14314         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14315         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14316
14317 2010-12-21  Bruno Haible  <bruno@clisp.org>
14318
14319         Tests for module 'floor'.
14320         * modules/floor-tests: New file.
14321         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14322         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14323
14324 2010-12-21  Bruno Haible  <bruno@clisp.org>
14325
14326         math: Fix indentation.
14327         * lib/math.in.h (floorf): Fix indentation.
14328
14329 2010-12-21  Bruno Haible  <bruno@clisp.org>
14330
14331         Fix cross-compilation guesses on Solaris.
14332         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14333         not match "solaris2.10".
14334         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14335         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14336         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14337
14338 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14339
14340         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14341         This fixes a problem observed with the latest coreutils snapshot
14342         that caused a test to fail on Solaris 8.  src/csplit.c's call
14343         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14344         earlier, instead of returning the number of bytes that would have
14345         been generated; this causes csplit to incorrectly report memory
14346         exhaustion.
14347         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14348         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14349         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14350         comments to match.
14351         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14352         Fix typo in matching older versions of Solaris: "solaris2.10"
14353         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14354         only for guessing while cross-compiling.
14355         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14356
14357 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14358
14359         ftoastr: fix comment again
14360         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14362         Also, simplify example a bit by using flags = 0.
14363
14364 2010-12-20  Bruno Haible  <bruno@clisp.org>
14365
14366         round*, trunc*: Update documentation regarding glibc.
14367         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14368         * doc/posix-functions/round.texi: Likewise.
14369         * doc/posix-functions/roundl.texi: Likewise.
14370         * doc/posix-functions/truncf.texi: Likewise.
14371         * doc/posix-functions/trunc.texi: Likewise.
14372         * doc/posix-functions/truncl.texi: Likewise.
14373
14374 2010-12-20  Bruno Haible  <bruno@clisp.org>
14375
14376         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14377         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14378         * doc/posix-functions/round.texi: Likewise.
14379         * doc/posix-functions/roundl.texi: Likewise.
14380
14381 2010-12-20  Bruno Haible  <bruno@clisp.org>
14382
14383         ttyname_r: Add missing declaration on HP-UX 11.
14384         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14385         HAVE_TTYNAME_R.
14386         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14387         declared. Set HAVE_TTYNAME_R always.
14388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14389         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14390         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14391         HAVE_TTYNAME_R.
14392         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14393
14394 2010-12-20  Bruno Haible  <bruno@clisp.org>
14395
14396         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14397         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14398         * doc/posix-functions/getlogin_r.texi: Likewise.
14399         * tests/test-getlogin.c: Include <errno.h>.
14400         (main): Avoid test failure on HP-UX 11.11.
14401         * tests/test-getlogin_r.c (main): Likewise.
14402
14403 2010-12-20  Bruno Haible  <bruno@clisp.org>
14404
14405         getlogin_r: Add missing declaration on HP-UX 11.
14406         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14407         declared also when it exists as a function.
14408         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14409
14410 2010-12-20  Bruno Haible  <bruno@clisp.org>
14411
14412         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14413         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14414         through wcrtomb.
14415
14416 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14417
14418         ftoastr: fix comment
14419         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14421
14422 2010-12-19  Bruno Haible  <bruno@clisp.org>
14423
14424         isnan: Ensure it is a macro.
14425         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14426         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14427         Solaris.
14428
14429 2010-12-19  Bruno Haible  <bruno@clisp.org>
14430
14431         ldexpl test: Fix link error on OSF/1 5.1.
14432         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14433
14434 2010-12-19  Bruno Haible  <bruno@clisp.org>
14435
14436         wctype: Make it work in C++ mode on OSF/1 5.1.
14437         * lib/wctype.in.h (iswblank): Declare but not define here.
14438         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14439         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14440         * modules/wctype (Files): Add lib/iswblank.c.
14441
14442 2010-12-19  Bruno Haible  <bruno@clisp.org>
14443
14444         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14445         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14446         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14447
14448 2010-12-19  Bruno Haible  <bruno@clisp.org>
14449
14450         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14451         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14452         _POSIX_PII_SOCKET.
14453         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14454         * doc/posix-functions/recvfrom.texi: Likewise.
14455         * doc/posix-functions/send.texi: Likewise.
14456         * doc/posix-functions/sendto.texi: Likewise.
14457
14458 2010-12-19  Bruno Haible  <bruno@clisp.org>
14459
14460         tcgetsid: Add missing declaration on OSF/1 5.1.
14461         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14462         HAVE_TCGETSID.
14463         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14464         Don't set HAVE_TCGETSID.
14465         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14466         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14467         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14468         HAVE_TCGETSID.
14469         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14470
14471 2010-12-19  Bruno Haible  <bruno@clisp.org>
14472
14473         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14474         * lib/stdio.in.h: During the include_next statement, let recursive
14475         includes of this file include only the system header file.
14476
14477 2010-12-19  Bruno Haible  <bruno@clisp.org>
14478
14479         iconv_open: Fix regression from 2010-12-04.
14480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14481         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14482
14483 2010-12-19  Bruno Haible  <bruno@clisp.org>
14484
14485         stdbool test: Avoid a gcc warning.
14486         * tests/test-stdbool.c (main): Fail if e1 is false.
14487         Reported by Jim Meyering.
14488
14489 2010-12-19  Jim Meyering  <meyering@redhat.com>
14490
14491         setenv: restore to working order
14492         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14493         mistakenly removed.
14494         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14495         HAVE_SETENV.
14496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14497         HAVE_SETENV.
14498
14499 2010-12-19  Bruno Haible  <bruno@clisp.org>
14500
14501         Document some different function declarations on OSF/1 5.1.
14502         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14503         * doc/posix-functions/inet_ntop.texi: Likewise.
14504         * doc/posix-functions/gethostname.texi: Likewise.
14505         * lib/unistd.in.h (gethostname): Update comment.
14506
14507 2010-12-19  Bruno Haible  <bruno@clisp.org>
14508
14509         doc: Mention vasprintf-posix module.
14510         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14511         the 'vasprintf-posix' module.
14512         * doc/glibc-functions/vasprintf.texi: Likewise.
14513
14514 2010-12-19  Bruno Haible  <bruno@clisp.org>
14515
14516         unsetenv: Add missing declaration on OSF/1 5.1.
14517         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14518         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14519         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14521         not HAVE_UNSETENV.
14522         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14523         HAVE_UNSETENV.
14524         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14525
14526 2010-12-19  Bruno Haible  <bruno@clisp.org>
14527
14528         setenv: Add missing declaration on OSF/1 5.1.
14529         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14531         declared. Don't set HAVE_SETENV.
14532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14533         not HAVE_SETENV.
14534         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14535         HAVE_SETENV.
14536         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14537
14538 2010-12-19  Bruno Haible  <bruno@clisp.org>
14539
14540         nl_langinfo tests: Avoid gcc warning.
14541         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14542
14543 2010-12-19  Bruno Haible  <bruno@clisp.org>
14544
14545         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14546         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14547         _GL_CXXALIAS_SYS.
14548
14549 2010-12-19  Bruno Haible  <bruno@clisp.org>
14550
14551         stdbool: Relax test.
14552         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14553         address to 'bool' work in static initializer, for compilers other than
14554         GCC.
14555
14556 2010-12-19  Bruno Haible  <bruno@clisp.org>
14557
14558         ftello: Add missing declaration on OSF/1 5.1.
14559         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14560         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14562         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14563         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14564
14565 2010-12-19  Bruno Haible  <bruno@clisp.org>
14566
14567         fseeko: Add missing declaration on OSF/1 5.1.
14568         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14569         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14571         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14572         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14573
14574 2010-12-19  Bruno Haible  <bruno@clisp.org>
14575
14576         fchdir: Add missing declaration on OSF/1 5.1.
14577         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14580         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14581         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14582
14583 2010-12-19  Bruno Haible  <bruno@clisp.org>
14584
14585         relocatable-prog-wrapper: Separate from relocatable-prog.
14586         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14587         uninstall-relocwrapper rule here.
14588         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14589         Reported by Ian Beckwith <ianb@erislabs.net>.
14590
14591 2010-12-19  Bruno Haible  <bruno@clisp.org>
14592
14593         unistr/u8-mbsnlen: Add missing dependency.
14594         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14595         Reported by Ian Beckwith <ianb@erislabs.net>.
14596
14597 2010-12-19  Bruno Haible  <bruno@clisp.org>
14598
14599         iconv: Make it possible again to use this module without 'iconv-h'.
14600         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14601         if it is not defined.
14602         Reported by Ian Beckwith <ianb@erislabs.net>.
14603
14604 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14605
14606         acl: port to Solaris 8 when copying from tmpfs to ufs
14607         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14608         error number.  Problem observed on Solaris 8 with latest
14609         coreutils, with "mv A B", where A is on a tmpfs file system and B
14610         is on a ufs file system.  This caused coreutils' mv/part-symlink
14611         test to fail.
14612
14613         tests: set fail=0 at start
14614         * tests/init.sh (setup_): Move fail=0 initialization here ...
14615         (mktempd_): ... from here, so that tests can rely on fail being
14616         set to 0 initially.  This fixes a problem in coreutils; see:
14617         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14618
14619 2010-12-18  Bruno Haible  <bruno@clisp.org>
14620
14621         memmem-simple: Stylistic changes.
14622         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14623         Fix preprocessor directive indentation.
14624
14625 2010-12-15  Pádraig Brady <P@draigBrady.com>
14626
14627         memmem, memmem-simple: reorganize and expand empty needle check
14628         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14629         functional checks to memmem-simple so that one has a fully functional
14630         memmem by using just this module.
14631         Restrict the performance only check to the memmem module.
14632         Also expand the empty needle check to ensure the correct
14633         pointer is returned, not just a non NULL pointer.
14634         * doc/glibc-functions/memmem.texi: Rearrange the portability
14635         documentation to correlate with the rearranged checks.
14636         Clarify exactly how the memmem and memmem-simple modules
14637         relate to each other.
14638
14639 2010-12-15  Pádraig Brady <P@draigBrady.com>
14640             Bruno Haible  <bruno@clisp.org>
14641
14642         Improve cross-compilation guesses for uClibc.
14643         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14644         that uClibc does not have the glibc bug.
14645         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14646         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14647
14648 2010-12-14  Eric Blake  <eblake@redhat.com>
14649
14650         configmake: provide fallbacks for oldest supported autotools
14651         * m4/configmake.m4: New file.
14652         * modules/configmake (Files): Ship it.
14653         (configure.ac): Use it to guarantee fallbacks.
14654
14655 2010-12-13  Pádraig Brady <P@draigBrady.com>
14656
14657         read-file: Improve handling of large files
14658         * lib/read-file.c (fread_file): Minimize realloc()s
14659         for regular files, and better manage sizes around SIZE_MAX.
14660
14661 2010-12-13  Eric Blake  <eblake@redhat.com>
14662
14663         cloexec, fcntl: relax license
14664         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14665         consent from all contributors.
14666         * modules/fcntl (License): Likewise.
14667
14668 2010-12-10  Bruno Haible  <bruno@clisp.org>
14669
14670         Tests for module 'pipe-posix'.
14671         * modules/pipe-posix-tests: New file.
14672         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14673
14674 2010-12-10  Bruno Haible  <bruno@clisp.org>
14675
14676         pipe-posix: Make it work in C++ mode.
14677         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14678         (pipe): Use common idiom, not a macro definition.
14679         * lib/pipe.c: New file.
14680         * m4/pipe.m4: New file.
14681         * modules/pipe-posix (Description): Enhance.
14682         (Files): Add lib/pipe.c, m4/pipe.m4.
14683         (configure.ac): Invoke gl_FUNC_PIPE.
14684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14685         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14686         * tests/test-unistd-c++.cc: Check the signature of pipe.
14687
14688 2010-12-10  Bruno Haible  <bruno@clisp.org>
14689
14690         Rename module 'pipe' to 'spawn-pipe'.
14691         * modules/spawn-pipe: New file, renamed from modules/pipe.
14692         (Files, configure.ac, Makefile.am): Update.
14693         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14694         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14695         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14696         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14697         "spawn-pipe.h" instead of "pipe.h".
14698         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14699         to gl_SPAWN_PIPE.
14700         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14701         (Files, Makefile.am): Update.
14702         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14703         Update.
14704         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14705         Include "spawn-pipe.h" instead of "pipe.h".
14706         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14707         * lib/javacomp.c: Likewise.
14708         * lib/javaversion.c: Likewise.
14709         * lib/pipe-filter-gi.c: Likewise.
14710         * lib/pipe-filter-ii.c: Likewise.
14711         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14712         * modules/javacomp (Depends-on): Likewise.
14713         * modules/javaversion (Depends-on): Likewise.
14714         * modules/pipe-filter-gi (Depends-on): Likewise.
14715         * modules/pipe-filter-ii (Depends-on): Likewise.
14716         * MODULES.html.sh (Executing programs): Update.
14717         * NEWS: Mention the change.
14718
14719 2010-12-10  Eric Blake  <eblake@redhat.com>
14720
14721         pipe-posix: new module
14722         * modules/pipe-posix: New file.
14723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14724         (gl_UNISTD_H): Check for declaration.
14725         * modules/unistd (Makefile.am): Substitute it.
14726         * lib/unistd.in.h (pipe): Provide it for mingw.
14727         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14728         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14729
14730 2010-12-07  Bruno Haible  <bruno@clisp.org>
14731
14732         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14733         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14734         u8_strcmp_gnu.
14735         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14736
14737 2010-12-06  Bruno Haible  <bruno@clisp.org>
14738
14739         Update internal documentation.
14740         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14741
14742 2010-12-04  Bruno Haible  <bruno@clisp.org>
14743
14744         Put more information about failed tests into the test return codes.
14745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14746         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14747         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14748         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14750         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14751         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14752         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14753         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14757         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14758         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14759         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14760         returns a bit mask.
14761         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14762         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14763         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14764         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14765         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14766         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14769         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14771         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14772         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14773         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14774         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14775         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14776         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14777         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14778         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14779         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14780         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14781         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14782         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14784         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14785         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14786         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14787         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14788         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14789         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14790         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14791         gl_PRINTF_PRECISION): Likewise.
14792         * m4/regex.m4 (gl_REGEX): Likewise.
14793         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14794         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14795         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14796         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14799         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14800         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14801         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14802         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14803         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14804         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14805         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14806         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14807         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14808         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14809         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14810         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14812         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14813         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14814         enumerated value.
14815         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14816
14817 2010-12-04  Bruno Haible  <bruno@clisp.org>
14818
14819         Update for Solaris 11 2010-11.
14820         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14821         Express, released in November 2010.
14822
14823 2010-12-04  Bruno Haible  <bruno@clisp.org>
14824
14825         nproc: Relax license.
14826         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14827         and Paul Eggert.
14828         Requested by Ludovic Courtès <ludo@gnu.org>.
14829
14830 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14831
14832         utimecmp: fine-grained src to nearby coarse-grained dest
14833
14834         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14835         and the source is on a file system with higher-resolution time
14836         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14837         not work, and the time stamps are close together, the algorithm to
14838         determine the exact resolution from the read-back mtime was buggy:
14839         it had a "!=" where it should have had an "==".  This bug has been
14840         in the code ever since it was introduced to gnulib.
14841         Problem reported by Dan Jacobson in
14842         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14843
14844 2010-11-30  Bruno Haible  <bruno@clisp.org>
14845
14846         strerror_r-posix: Fix autoconf test.
14847         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14848
14849 2010-11-28  Bruno Haible  <bruno@clisp.org>
14850             Paul Eggert  <eggert@cs.ucla.edu>
14851
14852         Tests for module 'getdomainname'.
14853         * modules/getdomainname-tests: New file.
14854         * tests/test-getdomainname.c: New file, based on
14855         tests/test-gethostname.c.
14856
14857 2010-11-28  Bruno Haible  <bruno@clisp.org>
14858             Paul Eggert  <eggert@cs.ucla.edu>
14859
14860         getdomainname: Use the system function when possible.
14861         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14862         (getdomainname): Replace if needed. Provide the declaration if it is
14863         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14864         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14865         (getdomainname): When the system has getdomainname, call the system
14866         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14867         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14868         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14869         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14870         the function if its second argument is of type 'int' or if it is found
14871         in libnsl.
14872         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14873         <sys/systeminfo.h> and sysinfo().
14874         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14876         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14877         HAVE_GETDOMAINNAME.
14878         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14879         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14880         * doc/glibc-functions/getdomainname.texi: Document the problems with
14881         the getdomainname declaration.
14882
14883 2010-11-28  Bruno Haible  <bruno@clisp.org>
14884
14885         sys_socket: Ensure ss_family field on AIX.
14886         * lib/sys_socket.in.h (ss_family): New macro definition.
14887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14888         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14889         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14890         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14891         * modules/sys_socket (Makefile.am): Substitute
14892         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14893         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14894
14895 2010-11-27  Bruno Haible  <bruno@clisp.org>
14896
14897         readline: Improve configure output.
14898         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14899         "checking for readline..." result understandable.
14900
14901 2010-11-27  Bruno Haible  <bruno@clisp.org>
14902
14903         *printf-posix: Detect a bug on Solaris 10/x86.
14904         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14905         for floating-point output.
14906         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14907         directive.
14908         * tests/test-snprintf-posix.h (test_function): Likewise.
14909         * tests/test-sprintf-posix.h (test_function): Likewise.
14910         * tests/test-vasprintf-posix.c (test_function): Likewise.
14911         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14912         * doc/posix-functions/printf.texi: Likewise.
14913         * doc/posix-functions/snprintf.texi: Likewise.
14914         * doc/posix-functions/sprintf.texi: Likewise.
14915         * doc/posix-functions/vfprintf.texi: Likewise.
14916         * doc/posix-functions/vprintf.texi: Likewise.
14917         * doc/posix-functions/vsnprintf.texi: Likewise.
14918         * doc/posix-functions/vsprintf.texi: Likewise.
14919         * doc/glibc-functions/obstack_printf.texi: Likewise.
14920         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14921
14922 2010-11-27  Bruno Haible  <bruno@clisp.org>
14923
14924         Fix link error when module libunistring-optional is in use.
14925         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14926         * modules/striconveha-tests (Makefile.am): Likewise.
14927
14928 2010-11-27  Bruno Haible  <bruno@clisp.org>
14929
14930         regex: Mention link dependencies.
14931         * modules/regex (Link): New section.
14932         * modules/rpmatch (Link): Likewise.
14933         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14934
14935 2010-11-27  Bruno Haible  <bruno@clisp.org>
14936
14937         ftoastr: Fix compilation error on Solaris.
14938         * lib/ftoastr.c: Include <config.h>.
14939
14940 2010-11-27  Bruno Haible  <bruno@clisp.org>
14941
14942         getloadavg: Update documentation.
14943         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14944
14945 2010-11-27  Bruno Haible  <bruno@clisp.org>
14946
14947         sys_socket: Fix test whether the functions are declared.
14948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14949         not <sys/select.h>.
14950
14951 2010-11-27  Bruno Haible  <bruno@clisp.org>
14952
14953         getpass: Make sure to get system declaration on some platforms.
14954         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14955         gl_USE_SYSTEM_EXTENSIONS.
14956         * modules/getpass (Depends-on): Add extensions.
14957
14958 2010-11-26  Bruno Haible  <bruno@clisp.org>
14959
14960         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14961         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14962         'iconv' module is present.
14963         (ICONV_CONST): New macro.
14964         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14965         ICONV_CONST.
14966         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14967         set ICONV_CONST.
14968         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14969         here.
14970         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14971         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14972         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14973         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14974         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14975         present.
14976
14977 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14978
14979         ftoastr: comment fix
14980         * lib/ftoastr.c: "little" -> "little or no" in comment
14981
14982 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14983
14984         stdint: port to GCC 4.3 + OSX + Octave
14985         On this platform, stdint.h is buggy and defines int64_t to long
14986         long int.  The replacement defined it to long int, causing
14987         problems with C++ style name mangling.  Instead, trust the system
14988         definition if INT64_MAX is defined, and likewise for the unsigned
14989         variant.   Problem reported by Jarno Rajahalme in
14990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14991         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14992         and don't mess with int64_t and INT64_MAX in this case.
14993         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14994
14995 2010-11-24  Bruno Haible  <bruno@clisp.org>
14996
14997         doc: Corrections regarding MacOS X 10.4 and 10.5.
14998         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14999         MacOS X.
15000         Reported by Simon Josefsson.
15001
15002 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15003
15004         Uninstall ".bin" files installed by relocwrapper.
15005         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15006         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15007         unless it is already there.
15008
15009 2010-11-21  Bruno Haible  <bruno@clisp.org>
15010
15011         Update for NetBSD 5.0.
15012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15013         NetBSD; the test fails on NetBSD 5.0.
15014         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15015         about NetBSD.
15016
15017 2010-11-21  Bruno Haible  <bruno@clisp.org>
15018
15019         Update for HP-UX 11.23 and HP-UX 11.31.
15020         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15021         HP-UX.
15022
15023 2010-11-21  Bruno Haible  <bruno@clisp.org>
15024
15025         Update for MacOS X 10.5.
15026         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15027         MacOS X; the test fails on MacOS X 10.5.8.
15028         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15029         about MacOS X.
15030
15031 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15032
15033         bootstrap: add bootstrap_sync option.
15034         See discussion at
15035         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15037         * build-aux/bootstrap: Accept --bootstrap-sync to update
15038         bootstrap if it is not identical to the local gnulib's
15039         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15040         enable this by default.  Accept --no-bootstrap-sync to disable
15041         it.
15042
15043 2010-11-20  Bruno Haible  <bruno@clisp.org>
15044
15045         Ensure that <features.h> is included before __GLIBC__ is tested.
15046         * lib/printf-parse.h: Include <features.h>.
15047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15048         Reported by Mike Frysinger <vapier@gentoo.org>.
15049
15050         Ensure that <features.h> is included before __GLIBC__ is tested.
15051         * lib/wchar.in.h: Include <features.h>.
15052         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15053         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15054         Reported by Mike Frysinger <vapier@gentoo.org>.
15055
15056         Ensure that <features.h> is included before __GLIBC__ is tested.
15057         * lib/arpa_inet.in.h: Include <features.h>.
15058         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15059         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15060         Reported by Mike Frysinger <vapier@gentoo.org>.
15061
15062         Ensure that <features.h> is included before __GLIBC__ is tested.
15063         * build-aux/link-warning.h: Include <features.h>.
15064         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15065         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15066         Reported by Mike Frysinger <vapier@gentoo.org>.
15067
15068         Ensure that <features.h> is included before __GLIBC__ is tested.
15069         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15070         Reported by Mike Frysinger <vapier@gentoo.org>.
15071
15072 2010-11-20  Bruno Haible  <bruno@clisp.org>
15073
15074         memmem: Fix autoconf test.
15075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15076
15077 2010-11-20  Bruno Haible  <bruno@clisp.org>
15078
15079         Port to uClibc.
15080         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15081         * lib/fcntl.in.h: Likewise.
15082         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15083         * lib/mbrtowc.c (mbrtowc): Likewise.
15084         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15085         * lib/strerror_r.c: Likewise.
15086         * lib/unistr/u8-strnlen.c: Likewise.
15087         * lib/vasnprintf.c (decimal_point_char): Likewise.
15088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15089         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15091         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15092         * tests/test-sigaction.c (handler, main): Likewise.
15093         * lib/freading.h: Treat uClibc like a non-glibc platform.
15094         * lib/freading.c: Likewise.
15095         * lib/gettext.h: Likewise.
15096         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15097         Likewise.
15098         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15099         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15100         * lib/propername.c (proper_name_utf8): Likewise.
15101         * lib/spawn.in.h: Likewise.
15102         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15103         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15104         mem_cd_iconveh_internal): Likewise.
15105         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15106         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15107         strstr, strcasestr): Likewise.
15108         * lib/unicodeio.c (unicode_to_mb): Likewise.
15109         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15110         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15111         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15112         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15113         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15114         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15115         * lib/unistr/u8-stpncpy.c: Likewise.
15116         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15117         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15120         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15121         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15125         Likewise.
15126         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15127         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15131         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15133         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15134         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15135         * tests/test-striconveha.c (main): Likewise.
15136         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15137         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15138         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15139         * doc/posix-functions/getline.texi: Likewise.
15140         Reported by Mike Frysinger <vapier@gentoo.org>.
15141
15142 2010-11-20  Bruno Haible  <bruno@clisp.org>
15143
15144         nproc: Fix condition.
15145         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15146         HAVE_PTHREAD_AFFINITY_NP.
15147
15148 2010-11-20  Bruno Haible  <bruno@clisp.org>
15149
15150         Fix a comment.
15151         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15152
15153 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15154
15155         ftoastr: don't assume snprintf
15156         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15157         Implement a subset of snprintf here, by using sprintf safely.
15158         * modules/ftoastr (Depends-on): Remove snprintf.
15159
15160 2010-11-19  Jim Meyering  <meyering@redhat.com>
15161
15162         test-rename.h: fix compilation failure
15163         * tests/test-rename.h (test_rename): Add omitted "}".
15164
15165 2010-11-17  Jim Meyering  <meyering@redhat.com>
15166
15167         maint.mk: add a URL discussing the no-@acronym policy
15168         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15169
15170 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15171
15172         ftoastr: depend on snprintf, improve comments
15173         * lib/ftoastr.c: Also mention Loitsch's draft.
15174         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15175         needed in the current implementation, but it might simplify
15176         speeding up the code later.
15177         * modules/ftoastr: Depend on snprintf; this improves portability.
15178         Suggested by Bruno Haible in the same email.
15179
15180         ftoastr: port to hosts lacking strtof and strtold
15181         Problem reported by Bruno Haible in
15182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15183         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15184         environment and strtold (and presumably strtof) are not available.
15185         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15186         (configure.ac): Require gl_C99_STRTOLD.
15187
15188 2010-11-18  Bruno Haible  <bruno@clisp.org>
15189
15190         c-strtold: Avoid link error on AIX 7.
15191         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15192         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15193         (gl_C_STRTOLD): Test whether strtold_l exists.
15194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15195
15196 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15197
15198         intprops: new macro INT_BITS_STRLEN_BOUND
15199         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15200         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15201         not exposed.  Also, it uses a slightly tighter bound than before;
15202         though this makes no practical difference, we might as well be as
15203         tight as we easily can.
15204
15205         ftoastr: new module, for lossless conversion of floats to short strings
15206         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15207         * modules/ftoastr: New files.
15208
15209 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15210
15211         bootstrap: port to Solaris sed
15212         * build-aux/bootstrap (get_version): Port to Solaris sed.
15213         See Ralf Wildenhues's note in
15214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15215
15216 2010-11-14  Jim Meyering  <meyering@redhat.com>
15217
15218         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15219         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15220         and move definition closer to sole use.
15221
15222 2010-11-13  Jim Meyering  <meyering@redhat.com>
15223
15224         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15225         Now we require at least autoconf-2.59, which means the work-around
15226         is no longer needed.
15227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15229         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15230         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15231         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15232
15233 2010-11-13  Bruno Haible  <bruno@clisp.org>
15234
15235         rename, renameat: Avoid test failures at NFS mounted locations.
15236         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15237         functions.
15238         (test_rename): Use assert_nonexistent.
15239         * tests/test-rename.c: Include <dirent.h>.
15240         * tests/test-renameat.c: Likewise.
15241         Reported by Gary V. Vaughan <gary@gnu.org>.
15242
15243         rename, renameat: Document Linux bug with NFS
15244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15245         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15246         * doc/posix-functions/renameat.texi: Likewise.
15247         Suggested by Eric Blake.
15248
15249 2010-11-13  Bruno Haible  <bruno@clisp.org>
15250
15251         rename test: Add comments.
15252         * tests/test-rename.h (test_rename): Add structure and comments.
15253
15254 2010-11-13  Eric Blake  <eblake@redhat.com>
15255
15256         maintainer-makefile: cover a few more files
15257         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15258         scripts generated within C files, for libvirt.
15259
15260 2010-11-13  Bruno Haible  <bruno@clisp.org>
15261
15262         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15263         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15264         character, return the number of bytes that belong together, not always
15265         1.
15266         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15267         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15268         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15269         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15270         number of bytes of an invalid character.
15271         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15272         (main): Invoke it.
15273         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15274         results.
15275         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15276         malformed byte sequences.
15277         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15278         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15279         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15280         Reported by Ben Pfaff and Paolo Bonzini.
15281
15282 2010-11-13  Bruno Haible  <bruno@clisp.org>
15283
15284         openat: Work around glibc bug with fchownat() and empty file names.
15285         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15286         (gl_FUNC_FCHOWNAT): Invoke it.
15287         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15288         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15289         Reported by Gary V. Vaughan <gary@gnu.org>.
15290
15291 2010-11-13  Bruno Haible  <bruno@clisp.org>
15292
15293         openat: Ensure autoconf macro ordering.
15294         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15295         gl_USE_SYSTEM_EXTENSIONS.
15296         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15297
15298 2010-11-13  Bruno Haible  <bruno@clisp.org>
15299
15300         Update comments.
15301         * lib/unistr/u8-check.c: Update file name in comments.
15302         * lib/unistr/u8-mblen.c: Likewise.
15303         * lib/unistr/u8-prev.c: Likewise.
15304         * lib/unistr/u8-strmblen.c: Likewise.
15305         * lib/unistr/u8-strmbtouc.c: Likewise.
15306
15307 2010-11-13  Jim Meyering  <meyering@redhat.com>
15308
15309         tests: avoid test failure on Solaris 10 due to lack of PATH export
15310         * tests/test-update-copyright.sh: Don't forget to export PATH.
15311
15312         init.sh: ensure that IFS is defined, just in case...
15313         * tests/init.sh (setup_): Ensure that IFS is defined,
15314         so that saving and restoring it works as expected.  This
15315         appears to be useful at least for an old version of dash
15316         from a long time ago (RH 6).  See here for details:
15317         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15318
15319         maint.mk: tighten "test a == b" check
15320         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15321         test to files that contain something like #!/bin/sh.
15322         Without this, coreutils would get two false positives in
15323         the comments of C source files.
15324
15325 2010-11-12  Eric Blake  <eblake@redhat.com>
15326
15327         bootstrap: fix typo in previous attempt
15328         * build-aux/bootstrap (buildreq): Correct the grouping.
15329         Reported by Paul Eggert.
15330
15331         maintainer-makefile: prohibit test x == x
15332         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15333         Based on a report by Matthias Bolte.
15334
15335         bootstrap: allow FreeBSD gzip
15336         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15337         which has no '.' and goes to stderr.
15338         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15339         Reported by Matthias Bolte.
15340
15341         maintainer-makefile: check for i18n setup
15342         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15343         will likely work.
15344
15345 2010-11-12  Bruno Haible  <bruno@clisp.org>
15346
15347         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15348         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15349         * lib/nanosleep.c (nanosleep): Likewise.
15350
15351 2010-11-11  Bruno Haible  <bruno@clisp.org>
15352
15353         fcntl-h: Fix for use of C++ on glibc systems.
15354         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15355         also on glibc systems in C++ mode.
15356         Reported by Gary V. Vaughan <gary@gnu.org>.
15357
15358 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15359
15360         mknod: avoid false failure with dash
15361         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15362
15363 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15364
15365         unlink: Fix "is it should" typo in diagnostic.
15366         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15368
15369 2010-11-11  Bruno Haible  <bruno@clisp.org>
15370
15371         Tests for module 'strerror_r-posix'.
15372         * modules/strerror_r-posix-tests: New file.
15373         * tests/test-strerror_r.c: New file.
15374         * tests/test-string-c++.cc: Check the signature of strerror_r.
15375
15376         New module 'strerror_r-posix'.
15377         * lib/string.in.h (strerror_r): New declaration.
15378         * lib/strerror_r.c: New file.
15379         * m4/strerror_r.m4: New file.
15380         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15381         of strerror_r.
15382         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15383         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15384         * modules/strerror_r-posix: New file.
15385         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15386         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15387         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15388         portability problems.
15389
15390 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15391
15392         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15393         line is also considered for output. Quoted function name in shell
15394         command, so temporary files for functions like MyClass::operator()
15395         are removed correctly without errors.
15396
15397 2010-11-09  Bruno Haible  <bruno@clisp.org>
15398
15399         * doc/posix-functions/strerror.texi: List more failing platforms.
15400
15401         * doc/posix-functions/strerror.texi: Add a comment.
15402
15403 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15404
15405         fdopendir: fix bug on MacOS X when low on file descriptors
15406
15407         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15408         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15409         All callers changed.
15410         (fdopendir): Invoke save_cwd at the top level, not after using
15411         multiple dup() calls to use up file descriptors.  Then retry
15412         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15413         less than the maximum number of open file descriptors, because
15414         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15415         on Mac OS X 10.6.4 for tar 1.24
15416         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15417         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15418         and for tar 1.25
15419         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15420
15421 2010-11-07  Bruno Haible  <bruno@clisp.org>
15422
15423         vasnprintf: Support I flag on glibc systems.
15424         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15425         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15426         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15427         snprintf function.
15428         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15429         glibc systems.
15430         * tests/test-vasnprintf-posix3.c: New file.
15431         * modules/vasnprintf-posix-tests (Files): Add it.
15432         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15433
15434 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15435
15436         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15437         * MODULES.html.sh: For compiler warnings, use name
15438         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15439
15440 2010-11-05  Eric Blake  <eblake@redhat.com>
15441
15442         ceil, floor: avoid spurious failure with icc
15443         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15444         [denormals-as-zero] when optimizing without -mieee-fp option.
15445         * tests/test-floorf2.c (floorf_reference): Likewise.
15446         * tests/test-ceilf1.c (dummy): New function.
15447         (main): Use it to outsmart icc's optimization.
15448         * tests/test-floorf1.c (dummy, main): Likewise.
15449
15450         tests: require working signbit
15451         * modules/ceilf-tests (Depends-on): Add signbit.
15452         * modules/ceill-tests (Depends-on): Likewise.
15453         * modules/floorf-tests (Depends-on): Likewise.
15454         * modules/floorl-tests (Depends-on): Likewise.
15455         * modules/round-tests (Depends-on): Likewise.
15456         * modules/roundf-tests (Depends-on): Likewise.
15457         * modules/roundl-tests (Depends-on): Likewise.
15458         * modules/trunc-tests (Depends-on): Likewise.
15459         * modules/truncf-tests (Depends-on): Likewise.
15460         * modules/truncl-tests (Depends-on): Likewise.
15461
15462         strtod: work around icc bug
15463         * lib/strtod.c (minus_zero): Define to working value.
15464         (strtod): Use it to avoid icc bug.
15465
15466         copysign: enhance tests
15467         * modules/copysign-tests (Files): Add minus-zero.h.
15468         * tests/test-copysign.c (main): Also test zeros.
15469
15470 2010-11-04  Eric Blake  <eblake@redhat.com>
15471
15472         ceil, floor, round, trunc: enhance tests of -0
15473         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15474         * tests/test-ceill.c (main): Likewise.
15475         * tests/test-floorf1.c (main): Likewise.
15476         * tests/test-floorl.c (main): Likewise.
15477         * tests/test-round1.c (main): Likewise.
15478         * tests/test-roundf1.c (main): Likewise.
15479         * tests/test-roundl.c (main): Likewise.
15480         * tests/test-trunc1.c (main): Likewise.
15481         * tests/test-truncf1.c (main): Likewise.
15482         * tests/test-truncl.c (main): Likewise.
15483
15484 2010-11-04  Eric Blake  <eblake@redhat.com>
15485
15486         frexp, tests: work around ICC bug with -zero
15487         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15488         works with more compilers.
15489         * tests/minus-zero.h: New file.
15490         * modules/ceilf-tests (Files): Include it.
15491         * modules/ceill-tests (Files): Likewise.
15492         * modules/floorf-tests (Files): Likewise.
15493         * modules/floorl-tests (Files): Likewise.
15494         * modules/frexp-nolibm-tests (Files): Likewise.
15495         * modules/frexp-tests (Files): Likewise.
15496         * modules/frexpl-nolibm-tests (Files): Likewise.
15497         * modules/frexpl-tests (Files): Likewise.
15498         * modules/isnan-tests (Files): Likewise.
15499         * modules/isnand-nolibm-tests (Files): Likewise.
15500         * modules/isnand-tests (Files): Likewise.
15501         * modules/isnanf-nolibm-tests (Files): Likewise.
15502         * modules/isnanf-tests (Files): Likewise.
15503         * modules/isnanl-nolibm-tests (Files): Likewise.
15504         * modules/isnanl-tests (Files): Likewise.
15505         * modules/round-tests (Files): Likewise.
15506         * modules/roundf-tests (Files): Likewise.
15507         * modules/roundl-tests (Files): Likewise.
15508         * modules/ldexpl-tests (Files): Likewise.
15509         * modules/signbit-tests (Files): Likewise.
15510         * modules/snprintf-posix-tests (Files): Likewise.
15511         * modules/sprintf-posix-tests (Files): Likewise.
15512         * modules/strtod-tests (Files): Likewise.
15513         * modules/trunc-tests (Files): Likewise.
15514         * modules/truncf-tests (Files): Likewise.
15515         * modules/truncl-tests (Files): Likewise.
15516         * modules/vsnprintf-posix-tests (Files): Likewise.
15517         * modules/vsprintf-posix-tests (Files): Likewise.
15518         * modules/vasnprintf-posix-tests (Files): Likewise.
15519         * modules/vasprintf-posix-tests (Files): Likewise.
15520         * tests/test-ceilf1.c (main): Use it.
15521         * tests/test-ceill.c (main): Likewise.
15522         * tests/test-floorf1.c (main): Likewise.
15523         * tests/test-floorl.c (main): Likewise.
15524         * tests/test-frexp.c (main): Likewise.
15525         * tests/test-frexpl.c (main): Likewise.
15526         * tests/test-isnan.c (main): Likewise.
15527         * tests/test-isnand.h (main): Likewise.
15528         * tests/test-isnanf.h (main): Likewise.
15529         * tests/test-isnanl.h (main): Likewise.
15530         * tests/test-ldexpl.c (main): Likewise.
15531         * tests/test-round.c (main): Likewise.
15532         * tests/test-roundf.c (main): Likewise.
15533         * tests/test-roundl.c (main): Likewise.
15534         * tests/test-signbit.c (test_signbitf, test_signbitd)
15535         (test_signbitl): Likewise.
15536         * tests/test-snprintf-posix.h (test_function): Likewise.
15537         * tests/test-sprintf-posix.h (test_function): Likewise.
15538         * tests/test-strtod.c (main): Likewise.
15539         * tests/test-trunc1.c (main): Likewise.
15540         * tests/test-truncf1.c (main): Likewise.
15541         * tests/test-truncl.c (main): Likewise.
15542
15543         isnanl: work around icc bug
15544         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15545
15546 2010-11-03  Eric Blake  <eblake@redhat.com>
15547
15548         tests: fix compiler warnings
15549         * tests/test-getopt.h (test_getopt): Fix condition.
15550         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15551         * tests/test-pipe2.c (main): Likewise.
15552         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15553
15554         utimens: fix broken m4 test
15555         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15556
15557 2010-10-28  Bruno Haible  <bruno@clisp.org>
15558
15559         posix_spawn*, getdtablesize: Relax license.
15560         * modules/posix_spawn (License): Change to LGPLv2+.
15561         * modules/posix_spawnp (License): Likewise.
15562         * modules/posix_spawn-internal (License): Likewise.
15563         * modules/posix_spawnattr_init (License): Likewise.
15564         * modules/posix_spawnattr_getflags (License): Likewise.
15565         * modules/posix_spawnattr_setflags (License): Likewise.
15566         * modules/posix_spawnattr_getpgroup (License): Likewise.
15567         * modules/posix_spawnattr_setpgroup (License): Likewise.
15568         * modules/posix_spawnattr_getschedparam (License): Likewise.
15569         * modules/posix_spawnattr_setschedparam (License): Likewise.
15570         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15571         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15572         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15573         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15574         * modules/posix_spawnattr_getsigmask (License): Likewise.
15575         * modules/posix_spawnattr_setsigmask (License): Likewise.
15576         * modules/posix_spawnattr_destroy (License): Likewise.
15577         * modules/posix_spawn_file_actions_init (License): Likewise.
15578         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15579         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15580         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15581         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15582         * modules/getdtablesize (License): Likewise.
15583         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15584
15585 2010-10-26  Bruno Haible  <bruno@clisp.org>
15586
15587         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15588         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15589         Cygwin and mingw.
15590         Suggested by Eric Blake.
15591
15592 2010-10-26  Bruno Haible  <bruno@clisp.org>
15593
15594         stdio: Work around compilation error due to renameat() on Solaris 10.
15595         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15596         * lib/renameat.c: Don't include <unistd.h> here.
15597         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15598         Reported by Paul Eggert and Eric Blake.
15599
15600 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         renameat: port to Solaris 10, which declares renameat in unistd.h
15603
15604         * lib/renameat.c: Include unistd.h before stdio.h, because
15605         Solaris 10 declares renameat in unistd.h.  Problem encountered
15606         when building GNU tar 1.24 on Solaris 10.
15607
15608 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15609
15610         fdopendir: fix C89 compilation
15611         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15612         compilers.
15613
15614 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         inttostr: simplify by removing unnecessary redundancy
15617         * lib/anytostr.c: Don't include verify.h.
15618         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15619         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15620         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15621         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15622         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15623         Likewise.
15624         * modules/inttostr (Depends-on): Remove 'verify'.
15625
15626 2010-10-23  Bruno Haible  <bruno@clisp.org>
15627
15628         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15629         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15630         Reported by Eric Blake.
15631
15632 2010-10-23  Bruno Haible  <bruno@clisp.org>
15633
15634         Tests: Fix LOCALE_JA on MirBSD 10.
15635         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15636         to an UTF-8 locale.
15637         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15638         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15639         Reported by Eric Blake.
15640
15641 2010-10-21  Bruno Haible  <bruno@clisp.org>
15642
15643         nl_langinfo test: Avoid test failure on NetBSD 5.
15644         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15645         Reported by Eric Blake.
15646
15647 2010-10-21  Eric Blake  <eblake@redhat.com>
15648
15649         c-stack: work around libsigsegv 2.8 bug
15650         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15651         overflow on at least PowerPC64.
15652
15653 2010-10-17  Bruno Haible  <bruno@clisp.org>
15654
15655         userspec: Drop redundant file.
15656         * modules/userspec (Files): Remove lib/inttostr.h.
15657
15658 2010-10-17  Bruno Haible  <bruno@clisp.org>
15659
15660         nl_langinfo tests: Silence some warnings.
15661         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15662         Reported by Jim Meyering.
15663
15664 2010-10-17  Bruno Haible  <bruno@clisp.org>
15665
15666         Make use of GCC's attribute __alloc_size__.
15667         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15668         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15669         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15670         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15671         __alloc_size__.
15672         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15673         Suggested by Jim Meyering.
15674
15675 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15676
15677         bootstrap: anchor .gitignore entries.
15678         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15679         with...
15680         (insert_vc_ignore): ... this new function, which prepends `/' to
15681         all .gitignore entries before passing them to
15682         insert_sorted_if_absent.
15683
15684 2010-10-16  Bruno Haible  <bruno@clisp.org>
15685
15686         nextafter: Fix configure check.
15687         * modules/nextafter (configure.ac): Correct expected prototype.
15688
15689 2010-10-16  Bruno Haible  <bruno@clisp.org>
15690
15691         termios: Update documentation.
15692         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15693
15694 2010-10-16  Bruno Haible  <bruno@clisp.org>
15695
15696         tests: Make them compile with TinyCC.
15697         * tests/test-strstr.c (main): Remove parentheses around array
15698         initializer.
15699
15700 2010-10-15  Eric Blake  <eblake@redhat.com>
15701
15702         ignore-value: make header idempotent
15703         * lib/ignore-value.h: Add double-inclusion guards.
15704         Reported by Stefan Berger.
15705
15706 2010-10-15  Jim Meyering  <meyering@redhat.com>
15707
15708         GNUmakefile: handle "stable" target, not "major"
15709         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15710         lists in maint.mk and announce-gen.  Without this, "make stable"
15711         would fail to ensure that $(VERSION) is up to date.
15712
15713 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15714
15715         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15716         & co.
15717
15718 2010-10-14  Bruno Haible  <bruno@clisp.org>
15719
15720         vasnprintf: Don't set errno to 0.
15721         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15722         block that sets it to 0.
15723         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15724
15725 2010-10-14  Bruno Haible  <bruno@clisp.org>
15726
15727         socketlib: Fix.
15728         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15729         gl_PREREQ_SYS_H_WINSOCK2.
15730         Reported by Ian Beckwith <ianb@erislabs.net>.
15731
15732 2010-10-13  Jim Meyering  <meyering@redhat.com>
15733
15734         test-select-stdin.c: avoid warn_unused_result warnings
15735         * tests/test-select-stdin.c: Include "macros.h".
15736         ASSERT that read and fflush succeed.
15737
15738 2010-10-13  Jim Meyering  <meyering@redhat.com>
15739
15740         git-version-gen: do require git-VC'd files in cwd
15741         * build-aux/git-version-gen: Reject a git version string
15742         if there are no commits associated with the current directory.
15743         This avoids an unlikely false-positive (unrelated dir whose parent
15744         repository also contains a tag matching v*), as pointed out
15745         by Giuseppe Scrivano in
15746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15747
15748 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15749
15750         argv-iter: omit nonconforming declaration
15751         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15752         enum arg_iter_err declaration, which doesn't conform to C99.
15753         Solaris 10 cc warns about this.
15754
15755 2010-10-13  Eric Blake  <eblake@redhat.com>
15756
15757         termios: fix compilation on mingw
15758         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15759         (gl_TERMIOS_H): Adjust it on mingw.
15760         * modules/termios (Makefile.am): Substitute new key.
15761         * lib/termios.in.h (includes): Make include_next conditional.
15762         * doc/posix-headers/termios.texi (termios.h): Update
15763         documentation.
15764         Reported by Daniel P. Berrange.
15765
15766 2010-10-13  Jim Meyering  <meyering@redhat.com>
15767
15768         git-version-gen: don't require that .git/ be in the current dir
15769         * build-aux/git-version-gen: Adjust this script so that it works
15770         when run from any working directory beneath the top-level .git/-
15771         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15772         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15773
15774         test-select: avoid warn_unused_result warnings
15775         * tests/test-select.c: Include "macros.h".
15776         ASSERT that each call to read, write, and pipe succeeds.
15777         While not technically required, also check each "close".
15778         * modules/select-tests (Files): Add tests/macros.h.
15779
15780         test-symlinkat: remove declaration of unused local
15781         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15782
15783         test-inttostr: avoid shadowing warnings
15784         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15785         and use malloc rather than the stack for the same reason as
15786         mentioned in the comment justifying the other allocation.
15787
15788 2010-10-11  Bruno Haible  <bruno@clisp.org>
15789
15790         stdlib: Allow multiple gnulib generated replacements to coexist.
15791         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15792         Reported by Sam Steingold <sds@gnu.org>.
15793
15794 2010-10-11  Jim Meyering  <meyering@redhat.com>
15795
15796         fix a documentation typo
15797         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15798
15799 2010-10-11  Eric Blake  <eblake@redhat.com>
15800
15801         futimens: work around Solaris 11 bug
15802         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15803         * tests/test-futimens.h (test_futimens): Enhance, rather than
15804         weaken test.
15805         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15806
15807 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         Indentation.
15810         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15811         higher-level operators more to the left.
15812
15813 2010-10-11  Jim Meyering  <meyering@redhat.com>
15814
15815         test-futimens: avoid unwarranted test failure on Solaris 5.11
15816         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15817         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15818         because it tries to dereference the NULL name argument.
15819
15820 2010-10-11  Bruno Haible  <bruno@clisp.org>
15821
15822         Indentation.
15823         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15824         indentation.
15825
15826 2010-10-11  Jim Meyering  <meyering@redhat.com>
15827
15828         spawn.in.h: make indentation consistent with parentheses
15829         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15830         Make indentation consistent with parentheses.
15831
15832 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15833
15834         Fix mismatched parens in previous commit
15835         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15836         parens.
15837
15838 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15839
15840         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15841
15842         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15843         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15844         * lib/malloca.c: Include "verify.h".
15845         (verify1): Remove, replacing with a verify call.
15846         * lib/relocwrapper.c (verify1): Likewise.
15847         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15848         Likewise.
15849         * modules/malloca (Depends-on): Add 'verify'.
15850         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15851         * modules/vasnprintf (Depends-on): Add 'verify'.
15852         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15853         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15854         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15855         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15856         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15857         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15858         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15859
15860         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15861
15862         Formerly the style was sometimes 2*X - 1, because the C standard
15863         was wrongly thought to disallow ?: in integral constant expressions.
15864         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15865         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15866         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15867         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15868         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15869         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15870         verify that time_t cannot be floating.
15871
15872 2010-10-08  Eric Blake  <eblake@redhat.com>
15873
15874         time: enforce recent POSIX ruling that time_t is integral
15875         * lib/time.in.h (__time_t_must_be_integral): Detect any
15876         problematic systems, allowing the rest of gnulib to assume POSIX.
15877
15878 2010-10-08  Jim Meyering  <meyering@redhat.com>
15879
15880         fdopendir: fix a bug on systems lacking openat and /proc support
15881         OpenBSD 4.7 is one such system.  The most noticeable effect was
15882         failure of any application making nontrivial use of fts: rm, du,
15883         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15884           ./rm: traversal failed: `a': Bad file descriptor
15885         Debugging that, you see that even though FD 6 was closed just
15886         prior to the opendir call in fd_clone_opendir, its resulting
15887         dir->dd_fd was 8, rather than the expected value of 6:
15888
15889         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15890         93                close (fd);
15891         (gdb) n
15892         94                dir = fd_clone_opendir (dupfd);
15893         (gdb) n
15894         95                saved_errno = errno;
15895         (gdb) p dir->dd_fd
15896         $11 = 8
15897
15898         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15899         The problem is that on OpenBSD, fd_clone_opendir has to resort
15900         to using the old-style save/restore CWD mechanism, due to its
15901         lack of openat/proc support, and *that* would steal the FD (6)
15902         that opendir was supposed to use.
15903
15904         The fix is to squirrel away the desired FD so that save_cwd uses a
15905         different one, and then free the dest FD right before calling opendir.
15906         That guarantees opendir will use the required file descriptor.
15907
15908         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15909
15910 2010-10-08  Bruno Haible  <bruno@clisp.org>
15911
15912         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15913         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15914
15915 2010-10-08  Bruno Haible  <bruno@clisp.org>
15916
15917         nanosleep: Make replacement POSIX compliant.
15918         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15919         is out of range.
15920         Reported by Jim Meyering.
15921
15922 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15923
15924         bootstrap: add hook for altering gnulib.mk, for Bison
15925         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15926         the Bison bootstrapping process can rewrite file names and variables
15927         in this file before later parts of 'bootstrap' use the file.
15928         Bison wants to include lib/gnulib.mk from the top-level makefile,
15929         so it needs the file names in this file to be relative to the top
15930         level, not relative to lib; plus it needs variable names to be
15931         rewritten.
15932         (slurp): Use the new function.
15933
15934         bootstrap: reformat for readability
15935         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15936
15937 2010-10-08  Eric Blake  <eblake@redhat.com>
15938
15939         docs: update cygwin progress
15940         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15941         1.7.7.
15942         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15943         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15944         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15945         * doc/posix-functions/carg.texi (carg): Likewise.
15946         * doc/posix-functions/cargf.texi (cargf): Likewise.
15947         * doc/posix-functions/casin.texi (casin): Likewise.
15948         * doc/posix-functions/casinf.texi (casinf): Likewise.
15949         * doc/posix-functions/casinh.texi (casinh): Likewise.
15950         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15951         * doc/posix-functions/catan.texi (catan): Likewise.
15952         * doc/posix-functions/catanf.texi (catanf): Likewise.
15953         * doc/posix-functions/catanh.texi (catanh): Likewise.
15954         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15955         * doc/posix-functions/ccos.texi (ccos): Likewise.
15956         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15957         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15958         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15959         * doc/posix-functions/cexp.texi (cexp): Likewise.
15960         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15961         * doc/posix-functions/cimag.texi (cimag): Likewise.
15962         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15963         * doc/posix-functions/clog.texi (clog): Likewise.
15964         * doc/posix-functions/clogf.texi (clogf): Likewise.
15965         * doc/posix-functions/conj.texi (conj): Likewise.
15966         * doc/posix-functions/conjf.texi (conjf): Likewise.
15967         * doc/posix-functions/cpow.texi (cpow): Likewise.
15968         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15969         * doc/posix-functions/cproj.texi (cproj): Likewise.
15970         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15971         * doc/posix-functions/creal.texi (creal): Likewise.
15972         * doc/posix-functions/crealf.texi (crealf): Likewise.
15973         * doc/posix-functions/csin.texi (csin): Likewise.
15974         * doc/posix-functions/csinf.texi (csinf): Likewise.
15975         * doc/posix-functions/csinh.texi (csinh): Likewise.
15976         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15977         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15978         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15979         * doc/posix-functions/ctan.texi (ctan): Likewise.
15980         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15981         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15982         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15983         * doc/posix-headers/complex.texi (complex.h): Likewise.
15984
15985 2010-10-07  Jim Meyering  <meyering@redhat.com>
15986
15987         parse-datetime: avoid compilation failure on OpenBSD 4.7
15988         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15989         This works around a compilation failure on OpenBSD 4.7:
15990         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15991
15992 2010-10-07  Eric Blake  <eblake@redhat.com>
15993
15994         docs: update cygwin progress
15995         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15996         1.7.6.
15997         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15998         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15999         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16000         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16001         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16002         Likewise.
16003         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16004         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16005         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16006         Likewise.
16007         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16008         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16009         Likewise.
16010         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16011         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16012         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16013         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16014         Likewise.
16015         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16016         Likewise.
16017         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16018
16019         docs: update parse-datetime history
16020         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16021         documentation of this function's history and alternatives.
16022
16023         cygwin: use more robust version check
16024         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16025         exclude an eventual cygwin 1.9.1.
16026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16028         (gl_FUNC_STRCASESTR): Likewise.
16029         Reported by Bruno Haible.
16030
16031 2010-10-06  Bruno Haible  <bruno@clisp.org>
16032
16033         string, sys_select: Avoid #including large headers unless necessary.
16034         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16035         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16036         OSF/1, BeOS, Haiku.
16037         Reported by Jim Meyering.
16038
16039 2010-10-05  Eric Blake  <eblake@redhat.com>
16040
16041         memmem, strstr, strcasestr: fix bug with long periodic needle
16042         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16043         periodic needle having false positive.
16044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16045         and cygwin 1.7.7.
16046         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16048         (gl_FUNC_STRCASESTR): Likewise.
16049         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16050         * tests/test-memmem.c (main): Expose the bug.
16051         * tests/test-strcasestr.c (main): Likewise.
16052         * tests/test-strstr.c (main): Likewise.
16053         * tests/test-c-strcasestr.c (main): Likewise.
16054         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16055         * doc/posix-functions/strstr.texi (strstr): Likewise.
16056         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16057         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16058
16059 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         parse-datetime: do some more renaming
16062         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16063         parse_datetime, not get_date.  Mention the renaming.
16064         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16065         in comments.
16066         * m4/bison.m4: Likewise.
16067
16068 2010-10-05  Eric Blake  <eblake@redhat.com>
16069
16070         parse-datetime: better name than get_date
16071         * NEWS: Reword the deprecation notice.
16072         * modules/get_date: Rename to modules/parse-datetime.
16073         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16074         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16075         * lib/get_date.y: Rename to lib/parse-datetime.y.
16076         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16077         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16078         * doc/getdate.texi: Provide fallback wrapper.
16079         * lib/getdate.h: Move guts, and wrap...
16080         * lib/parse-datetime.h: ...new file.
16081         * lib/parse-datetime.y (get_date): Rename...
16082         (parse_datetime): ...to this.
16083         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16084         (gl_PARSE_DATETIME): ...to this.
16085         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16086         documentation.
16087         * modules/getdate (Files): Provide fallback docs and header.
16088         (Notice, Depends-on): Update references.
16089         * tests/test-parse-datetime.c: Likewise.
16090         * DEPENDENCIES: Likewise.
16091         * MODULES.html.sh (Date and time <time.h>): Likewise.
16092         * doc/parse-datetime.texi (Date input formats)
16093         (Authors of parse_datetime): Likewise.
16094         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16095         (Include): Likewise.
16096         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16097         * gnulib-tool: Likewise.
16098         * m4/bison.m4 (gl_BISON): Likewise.
16099         Suggested by Bruno Haible.
16100
16101 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16102
16103         more ports to Solaris tr, which needs [] around ranges
16104         * gnulib-tool: Solaris tr needs [] around ranges.
16105         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16106         * tests/test-pipe-filter-gi1.c (main): Likewise.
16107         * tests/test-pipe-filter-ii1.c (main): Likewise.
16108
16109 2010-10-05  Eric Blake  <eblake@redhat.com>
16110
16111         bootstrap: fix Solaris regression
16112         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16113         around ranges.
16114         Reported by Pádraig Brady.
16115
16116         bootstrap: work with pkg-config
16117         * build-aux/bootstrap (check_versions): Also transliterate - in
16118         prerequisite name.
16119         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16120         prerequisites that were already found, to avoid confusion.
16121         Reported by Justin Clift.
16122
16123         faccessat: remove unused wrappers
16124         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16125         presence of these wrappers dragged in -lgen on Solaris.
16126         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16127
16128 2010-10-05  Jim Meyering  <meyering@redhat.com>
16129
16130         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16131         * Makefile (sc_pragma_columns): New syntax-check rule.
16132
16133 2010-10-04  Bruno Haible  <bruno@clisp.org>
16134
16135         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16136         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16137         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16138         Reported by Bruce Korb and Eric Blake.
16139
16140 2010-10-04  Bruno Haible  <bruno@clisp.org>
16141
16142         threadlib: Make option --with-libpth-prefix work.
16143         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16144         use $LIBPTH, not just -lpth.
16145
16146 2010-10-04  Bruno Haible  <bruno@clisp.org>
16147
16148         Avoid line length limitation from HP NonStop system header files.
16149         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16150         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16151         * lib/ctype.in.h: Likewise.
16152         * lib/dirent.in.h: Likewise.
16153         * lib/errno.in.h: Likewise.
16154         * lib/fcntl.in.h: Likewise.
16155         * lib/float.in.h: Likewise.
16156         * lib/getopt.in.h: Likewise.
16157         * lib/iconv.in.h: Likewise.
16158         * lib/inttypes.in.h: Likewise.
16159         * lib/langinfo.in.h: Likewise.
16160         * lib/locale.in.h: Likewise.
16161         * lib/math.in.h: Likewise.
16162         * lib/netdb.in.h: Likewise.
16163         * lib/netinet_in.in.h: Likewise.
16164         * lib/poll.in.h: Likewise.
16165         * lib/pthread.in.h: Likewise.
16166         * lib/pty.in.h: Likewise.
16167         * lib/sched.in.h: Likewise.
16168         * lib/se-selinux.in.h: Likewise.
16169         * lib/search.in.h: Likewise.
16170         * lib/signal.in.h: Likewise.
16171         * lib/spawn.in.h: Likewise.
16172         * lib/stdarg.in.h: Likewise.
16173         * lib/stddef.in.h: Likewise.
16174         * lib/stdint.in.h: Likewise.
16175         * lib/stdio.in.h: Likewise.
16176         * lib/stdlib.in.h: Likewise.
16177         * lib/string.in.h: Likewise.
16178         * lib/strings.in.h: Likewise.
16179         * lib/sys_file.in.h: Likewise.
16180         * lib/sys_ioctl.in.h: Likewise.
16181         * lib/sys_select.in.h: Likewise.
16182         * lib/sys_socket.in.h: Likewise.
16183         * lib/sys_stat.in.h: Likewise.
16184         * lib/sys_time.in.h: Likewise.
16185         * lib/sys_times.in.h: Likewise.
16186         * lib/sys_utsname.in.h: Likewise.
16187         * lib/sys_wait.in.h: Likewise.
16188         * lib/sysexits.in.h: Likewise.
16189         * lib/termios.in.h: Likewise.
16190         * lib/time.in.h: Likewise.
16191         * lib/unistd.in.h: Likewise.
16192         * lib/wchar.in.h: Likewise.
16193         * lib/wctype.in.h: Likewise.
16194         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16195         * modules/ctype (Makefile.am): Likewise.
16196         * modules/dirent (Makefile.am): Likewise.
16197         * modules/errno (Makefile.am): Likewise.
16198         * modules/fcntl-h (Makefile.am): Likewise.
16199         * modules/float (Makefile.am): Likewise.
16200         * modules/getopt-posix (Makefile.am): Likewise.
16201         * modules/iconv-h (Makefile.am): Likewise.
16202         * modules/inttypes (Makefile.am): Likewise.
16203         * modules/langinfo (Makefile.am): Likewise.
16204         * modules/locale (Makefile.am): Likewise.
16205         * modules/math (Makefile.am): Likewise.
16206         * modules/netdb (Makefile.am): Likewise.
16207         * modules/netinet_in (Makefile.am): Likewise.
16208         * modules/poll-h (Makefile.am): Likewise.
16209         * modules/pthread (Makefile.am): Likewise.
16210         * modules/pty (Makefile.am): Likewise.
16211         * modules/sched (Makefile.am): Likewise.
16212         * modules/search (Makefile.am): Likewise.
16213         * modules/selinux-h (Makefile.am): Likewise.
16214         * modules/signal (Makefile.am): Likewise.
16215         * modules/spawn (Makefile.am): Likewise.
16216         * modules/stdarg (Makefile.am): Likewise.
16217         * modules/stddef (Makefile.am): Likewise.
16218         * modules/stdint (Makefile.am): Likewise.
16219         * modules/stdio (Makefile.am): Likewise.
16220         * modules/stdlib (Makefile.am): Likewise.
16221         * modules/string (Makefile.am): Likewise.
16222         * modules/strings (Makefile.am): Likewise.
16223         * modules/sys_file (Makefile.am): Likewise.
16224         * modules/sys_ioctl (Makefile.am): Likewise.
16225         * modules/sys_select (Makefile.am): Likewise.
16226         * modules/sys_socket (Makefile.am): Likewise.
16227         * modules/sys_stat (Makefile.am): Likewise.
16228         * modules/sys_time (Makefile.am): Likewise.
16229         * modules/sys_times (Makefile.am): Likewise.
16230         * modules/sys_utsname (Makefile.am): Likewise.
16231         * modules/sys_wait (Makefile.am): Likewise.
16232         * modules/sysexits (Makefile.am): Likewise.
16233         * modules/termios (Makefile.am): Likewise.
16234         * modules/time (Makefile.am): Likewise.
16235         * modules/unistd (Makefile.am): Likewise.
16236         * modules/wchar (Makefile.am): Likewise.
16237         * modules/wctype (Makefile.am): Likewise.
16238
16239 2010-10-04  Bruno Haible  <bruno@clisp.org>
16240
16241         read-file tests: Avoid a test failure on NonStop Kernel.
16242         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16243         a regular file.
16244         Reported by Joachim Schmitz <schmitz@hp.com>.
16245
16246 2010-10-03  Bruno Haible  <bruno@clisp.org>
16247
16248         gnulib-tool: Fixes for --create-testdir with --libtool.
16249         * gnulib-tool (func_get_automake_snippet): Don't augment
16250         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16251         an executable.
16252         (func_create_testdir): Handle module 'alloca' like func_import.
16253         Reported by Bruce Korb <bruce.korb@gmail.com>.
16254
16255 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16256
16257         Avoid some lines longer than 80 characters.
16258         * lib/stdint.in.h: Break long comment lines.
16259         * lib/math.in.h: Likewise.
16260         (_GL_NUM_UINT_WORDS): New macro, for readability.
16261         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16262         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16263         * lib/stdlib.in.h: Likewise.
16264         * lib/spawn.in.h: Likewise.
16265         * lib/sys_socket.in.h: Update an URL.
16266         * lib/sys_stat.in.h: Break long line.
16267
16268 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16269
16270         Improve pmccabe2html.
16271         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16272         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16273         when the sources change. Remove the line in the HTML about "Used
16274         ranges" (which implied that there might be other unused ranges),
16275         rename "Resume" to "Summary" (easier to understand for more users).
16276         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16277         styles, and some unnecessary blank lines.
16278
16279 2010-10-03  Bruno Haible  <bruno@clisp.org>
16280             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16281
16282         acl: Add support for ACLs on NonStop Kernel.
16283         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16284         Check whether the function aclsort() exists.
16285         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16286         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16287         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16288         (acl_nontrivial [HAVE_ACLSORT]: New function.
16289         (file_has_acl): Implement for NonStop Kernel.
16290         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16291         (qset_acl): Implement for NonStop Kernel.
16292         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16293         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16294         (main): Implement for NonStop Kernel.
16295         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16296         Kernel. Handle this flavor.
16297         * tests/test-set-mode-acl.sh: Likewise.
16298         * tests/test-copy-acl.sh: Likewise.
16299         * tests/test-copy-file.sh: Likewise.
16300
16301 2010-10-03  Bruno Haible  <bruno@clisp.org>
16302
16303         Info about ACLs on NonStop Kernel.
16304         * doc/acl-resources.txt: Add info about NonStop Kernel.
16305         References by Joachim Schmitz <schmitz@hp.com>.
16306
16307 2010-10-02  Bruno Haible  <bruno@clisp.org>
16308
16309         Define missing EDQUOT on NonStop Kernel.
16310         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16311         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16313         missing.
16314         * doc/posix-headers/errno.texi: Mention the NSK bug.
16315         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16316         Reported by Joachim Schmitz <schmitz@hp.com>.
16317
16318 2010-10-02  Bruno Haible  <bruno@clisp.org>
16319
16320         Update doc for POSIX:2008.
16321         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16322         Update URL of POSIX specification.
16323
16324 2010-10-02  Bruno Haible  <bruno@clisp.org>
16325
16326         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16327         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16328         from gnulib, not from Automake.
16329
16330 2010-10-02  Bruno Haible  <bruno@clisp.org>
16331
16332         New module 'system-posix'.
16333         * modules/system-posix: New file.
16334         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16335         module is present.
16336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16337         GNULIB_SYSTEM_POSIX.
16338         * modules/stdlib (Depends-on): Remove sys_wait.
16339         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16340         * doc/posix-functions/system.texi: Mention the new module.
16341         * doc/posix-headers/stdlib.texi: Likewise.
16342         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16343         define test_sys_wait_macros to a no-op.
16344         Reported by Sam Steingold <sds@gnu.org>.
16345
16346 2010-09-30  Bruno Haible  <bruno@clisp.org>
16347
16348         More renaming from 'getdate' to 'get_date'.
16349         * doc/get_date.texi: Renamed from doc/getdate.texi.
16350         * modules/get_date (Files): Update.
16351         * MODULES.html.sh (Date and time <time.h>): Update.
16352         * DEPENDENCIES: Update.
16353         * gnulib-tool: Update comment.
16354         * m4/bison.m4 (gl_BISON): Likewise.
16355         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16356
16357 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16358
16359         bootstrap: support ACLOCAL_FLAGS during aclocal
16360         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16361         can add additional -I dir for third-party .m4 files.
16362
16363 2010-09-30  Eric Blake  <eblake@redhat.com>
16364
16365         bootstrap: use glibtoolize on MacOS
16366         * build-aux/bootstrap (check_versions): Convert libtool into
16367         libtoolize.
16368         (tool search): Move libtool check earlier, and look for
16369         glibtoolize for MacOS.
16370         (gnulib_tool_options): Auto-add --libtool when appropriate.
16371         Reported by Justin Clift.
16372
16373         poll: fix typo that broke test on MacOS
16374         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16375         Reported by Justin Clift.
16376
16377         getdate: rename to get_date
16378         Note: getdate.h is not renamed, to minimize client impact.
16379         * modules/getdate: Mark obsolete.  Move old contents...
16380         * modules/get_date: ...to new module name.
16381         * modules/getdate-tests: Move...
16382         * modules/get_date-tests: ...here.
16383         * m4/getdate.m4: Move...
16384         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16385         * lib/getdate.y: Move...
16386         * lib/get_date.y: ...here.
16387         * tests/test-getdate.c: Move...
16388         * tests/test-get_date.c: ...here.
16389         * doc/posix-functions/getdate.texi (getdate): Update name.
16390         * NEWS: Mention the change.
16391
16392 2010-09-29  Bruno Haible  <bruno@clisp.org>
16393
16394         Separate the module 'waitpid' from the module 'sys_wait'.
16395         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16396         present.
16397         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16398         gl_MODULE_INDICATOR_FOR_TESTS.
16399         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16400         * modules/sys_wait (Depends-on): Remove waitpid.
16401         (Makefile.am): Substitute GNULIB_WAITPID.
16402         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16403         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16404         signature only if the 'waitpid' module is present.
16405         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16406         * NEWS: Mention the change.
16407         * modules/grantpt (Depends-on): Add waitpid.
16408         * modules/wait-process (Depends-on): Likewise.
16409
16410 2010-09-29  Bruno Haible  <bruno@clisp.org>
16411
16412         More tests for module 'sys_wait'.
16413         * modules/sys_wait-c++-tests: New file.
16414         * tests/test-sys_wait-c++.cc: New file.
16415         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16416         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16417
16418 2010-09-29  Bruno Haible  <bruno@clisp.org>
16419
16420         New module 'waitpid'.
16421         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16422         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16423         Don't include <process.h>.
16424         (waitpid): Declare only, using modern idiom.
16425         * m4/waitpid.m4: New file.
16426         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16427         * modules/waitpid: New file.
16428         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16429         (Makefile.am): Update.
16430         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16431
16432 2010-09-28  Bruno Haible  <bruno@clisp.org>
16433
16434         poll: Assume ANSI C.
16435         * lib/poll.c (poll): Use an ANSI C declaration.
16436
16437 2010-09-28  Bruno Haible  <bruno@clisp.org>
16438
16439         poll-h: Create poll.h on all platforms.
16440         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16441         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16442         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16443         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16444         (gl_REPLACE_POLL_H): Don't set POLL_H.
16445         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16446         * modules/poll-h (Depends-on): Add include_next.
16447         (Makefile.am): Create poll.h unconditionally. Substitute also
16448         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16449
16450 2010-09-28  Bruno Haible  <bruno@clisp.org>
16451
16452         Tests for module 'poll-h'.
16453         * modules/poll-h-c++-tests: New file.
16454         * tests/test-poll-h-c++.cc: New file.
16455
16456         Tests for module 'poll-h'.
16457         * modules/poll-h-tests: New file.
16458         * tests/test-poll-h.c: New file.
16459
16460 2010-09-28  Bruno Haible  <bruno@clisp.org>
16461
16462         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16463         * modules/poll-h (Depends-on): Add 'extensions'.
16464
16465 2010-09-28  Bruno Haible  <bruno@clisp.org>
16466
16467         New module 'poll-h'.
16468         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16469         (poll): Use modern idiom.
16470         * modules/poll-h: New file.
16471         * modules/poll (Files): Remove lib/poll.in.h.
16472         (Depends-on): Add poll-h.
16473         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16474         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16475         * m4/poll_h.m4: New file.
16476         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16477         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16478         and invoke gl_REPLACE_POLL_H.
16479         * lib/poll.c: Use common idiom.
16480         * tests/test-poll.c: Likewise.
16481         * doc/posix-headers/poll.texi: Mention the poll-h module.
16482         Suggested by Eric Blake.
16483
16484 2010-09-26  Bruno Haible  <bruno@clisp.org>
16485
16486         sys_wait: Implement WSTOPSIG.
16487         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16488         Reported by Simon Josefsson.
16489
16490 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16491
16492         stdlib, sys_wait: Avoid compilation error on mingw.
16493         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16494
16495 2010-09-26  Bruno Haible  <bruno@clisp.org>
16496
16497         stdlib tests: Avoid code duplication.
16498         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16499         * modules/sys_wait-tests (Files): Likewise.
16500         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16501         * tests/test-stdlib.c: Include test-sys_wait.h.
16502         (main): Invoke test_sys_wait_macros.
16503         * tests/test-sys_wait.c: Include test-sys_wait.h.
16504         (main): Invoke test_sys_wait_macros.
16505
16506 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16507
16508         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16509         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16510         sure Windows sockets are working before calling getaddrinfo.
16511         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16512         * doc/gnulib.texi (Windows sockets): Fix typo.
16513
16514 2010-09-25  Bruno Haible  <bruno@clisp.org>
16515
16516         Tests for module 'regex-quote'.
16517         * modules/regex-quote-tests: New file.
16518         * tests/test-regex-quote.c: New file.
16519
16520         New module 'regex-quote'.
16521         * lib/regex-quote.h: New file.
16522         * lib/regex-quote.c: New file.
16523         * modules/regex-quote: New file.
16524         Suggested by Reuben Thomas <rrt@sc3d.org>.
16525
16526 2010-09-24  Bruno Haible  <bruno@clisp.org>
16527
16528         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16529         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16530
16531 2010-09-23  Bruno Haible  <bruno@clisp.org>
16532
16533         setenv: Relax license.
16534         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16535         Blake.
16536         Requested by Eric Blake.
16537
16538 2010-09-22  Bruno Haible  <bruno@clisp.org>
16539
16540         termios: Relax license.
16541         * modules/termios (License): Change to LGPLv2+.
16542         Requested by Eric Blake.
16543
16544 2010-09-22  Bruno Haible  <bruno@clisp.org>
16545
16546         threadlib: Allow the package to change the default to 'no'.
16547         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16548         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16549         Reported by Paul Eggert.
16550
16551 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16552             Bruno Haible  <bruno@clisp.org>
16553
16554         Fix endless loop in mbmemcasecoll.
16555         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16556         byte.
16557         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16558
16559 2010-09-22  Bruno Haible  <bruno@clisp.org>
16560
16561         Tests for module 'memcoll'.
16562         * modules/memcoll-tests: New file.
16563         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16564
16565         memcoll, xmemcoll: Clarify size vs. length.
16566         * modules/memcoll.c (memcoll0): Clarify specification.
16567         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16568         passed to collate_error.
16569
16570 2010-09-22  Bruno Haible  <bruno@clisp.org>
16571
16572         Tests for module 'memcasecmp'.
16573         * modules/memcasecmp-tests: New file.
16574         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16575
16576 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16577
16578         * lib/pthread.in.h: Add split double-inclusion guard, and include
16579         system <pthread.h> if there is one.  Use @@-style as in other
16580         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16581         pthread.h doesn't.
16582         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16583         (pthread_mutexattr_settype, pthread_mutex_trylock):
16584         New static inline functions, if there's no system <pthread.h>.
16585         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16586         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16587         Approximate with mutexes if the system lacks spinlocks, as in
16588         MacOS.
16589         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16590         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16591         @@-style.  Check for spinlocks separately.
16592         (gl_PTHREAD_DEFAULTS): New macro.
16593         * modules/pthread: Redo to use a more typical style for in.h files.
16594
16595 2010-09-21  Eric Blake  <eblake@redhat.com>
16596
16597         net_if: enhance tests
16598         * tests/test-net_if.c (main): Move signature checks earlier.
16599         Print failures to stderr.
16600         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16601         Document the bug that we do not yet fix.
16602
16603 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16604
16605         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16606         about gnulib, not GSS.
16607
16608 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16609
16610         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16611         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16612         for Emacs.
16613         * build-aux/pmccabe2html: Make Makefile.am example code more
16614         cut-and-paste friendly.
16615
16616 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16617
16618         * tests/test-net_if.c: New file.
16619         * modules/net_if-tests: New file.
16620
16621 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16622
16623         pthread: add pthread_spin_destroy
16624         * lib/pthread.in.h (pthread_spin_destroy): New function.
16625
16626 2010-09-19  Bruno Haible  <bruno@clisp.org>
16627
16628         gnulib-tool: Fix --help output.
16629         * gnulib-tool (func_usage): Fix help message.
16630         Reported by Reuben Thomas <rrt@sc3d.org>.
16631
16632 2010-09-18  Jim Meyering  <meyering@redhat.com>
16633
16634         maint.mk: avoid unexpanded \n in two diagnostics
16635         * top/maint.mk (sc_prohibit_always_true_header_tests):
16636         Don't use a literal \n in a halt=... assignment.  It would not be
16637         expanded, and the two \n bytes would appear in the diagnostic output
16638         rather than the desired newline.  Use halt=$$(printf ... instead.
16639         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16640
16641 2010-09-18  Bruno Haible  <bruno@clisp.org>
16642
16643         netinet_in: Doc tweak.
16644         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16645         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16646
16647 2010-09-18  Jim Meyering  <meyering@redhat.com>
16648
16649         init.sh: correct an outdated comment
16650         * tests/init.sh (create_exe_shims_):  s/function/alias/
16651
16652         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16653         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16654         a file named "*.exe" is removed between the glob expansion and the
16655         processing of that oddly named file.
16656
16657 2010-09-17  Eric Blake  <eblake@redhat.com>
16658
16659         mirbsd: add some more support
16660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16661         in BSD family.
16662         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16663         devices as OpenBSD.
16664         * m4/host-os.m4 (mirbsd): Add MirBSD.
16665
16666         tests: fix unportable assumption on sys/wait.h
16667         * tests/test-sys_wait.c (main): Relax test.
16668         * tests/test-stdlib.c (main): Likewise.
16669
16670         init.sh: accomodate directory with no .exes
16671         * tests/init.sh: Accomodate directory containing only scripts.
16672
16673         tests: avoid compiler warning
16674         * tests/test-stdlib.c (main): Use the variable.
16675
16676         fdutimens, fdutimensat: update signature, again
16677         * lib/utimens.h (gl_futimens): Delete, and move signature...
16678         (fdutimens): ...here.
16679         (fdutimensat): Rearrange signature.
16680         (lutimensat): Rename variable for clarity.
16681         * lib/fdutimensat.c (fdutimensat): Update signature.
16682         * lib/utimens.c (fdutimens): Likewise.
16683         (gl_futimens): Delete.
16684         (utimens, lutimens): Update callers.
16685         * lib/futimens.c (futimens): Likewise.
16686         * tests/test-fdutimensat.c: Likewise.
16687         * tests/test-utimens.c: Likewise.
16688         * tests/test-futimens.h: Update comment.
16689         * NEWS: Mention this.
16690         Suggested by Paul Eggert.
16691
16692 2010-09-17  Bruno Haible  <bruno@clisp.org>
16693
16694         Take over the maintenance of some older macros from Autoconf.
16695         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16696         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16697         GNU Autoconf.
16698         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16699         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16700
16701 2010-09-17  Eric Blake  <eblake@redhat.com>
16702
16703         fdutimensat: drop atflag validation
16704         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16705         with valid fd, to close a race scenario where futimens is
16706         unsupported and FILE was replaced by a symlink.
16707         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16708         accordingly.
16709         Suggested by Paul Eggert.
16710
16711 2010-09-16  Bruno Haible  <bruno@clisp.org>
16712
16713         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16714         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16715
16716 2010-09-16  Bruno Haible  <bruno@clisp.org>
16717
16718         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16719         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16720         login_tty exists.
16721         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16722
16723 2010-09-16  Bruno Haible  <bruno@clisp.org>
16724
16725         login_tty: Make the replacement code work on BSD systems.
16726         * lib/login_tty.c: Include <sys/ioctl.h>.
16727         (login_tty): Use ioctl TIOCSCTTY when available.
16728         * modules/login_tty (Depends-on): Add sys_ioctl.
16729         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16730
16731 2010-09-16  Bruno Haible  <bruno@clisp.org>
16732
16733         login_tty: Stricter unit test.
16734         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16735         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16736         and tcgetsid() after login_tty.
16737         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16738
16739 2010-09-16  Bruno Haible  <bruno@clisp.org>
16740
16741         New module 'tcgetsid'.
16742         * lib/tcgetsid.c: New file.
16743         * m4/tcgetsid.m4: New file.
16744         * modules/tcgetsid: New file.
16745         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16746         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16747         GNULIB_TCGETSID, HAVE_TCGETSID.
16748         * lib/termios.in.h: Include <sys/types.h>.
16749         (tcgetsid): New declaration.
16750         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16751         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16752         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16753         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16754
16755 2010-09-16  Bruno Haible  <bruno@clisp.org>
16756
16757         Tests for module 'termios'.
16758         * modules/termios-c++-tests: New file.
16759         * modules/termios-tests: New file.
16760         * tests/test-termios-c++.cc: New file.
16761         * tests/test-termios.c: New file.
16762
16763         New module 'termios'.
16764         * modules/termios: New file.
16765         * lib/termios.in.h: New file.
16766         * m4/termios_h.m4: New file.
16767         * doc/posix-headers/termios.texi: Mention the new module.
16768
16769 2010-09-16  Eric Blake  <eblake@redhat.com>
16770
16771         fdutimensat: add an atflag parameter
16772         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16773         * lib/utimens.h (fdutimensat): Update prototype.
16774         * tests/test-fdutimensat.c: Adjust test to match.
16775         * NEWS: Document the change.
16776         Suggested by Paul Eggert.
16777
16778 2010-09-16  Bruno Haible  <bruno@clisp.org>
16779
16780         Fix typos in comments.
16781         * lib/striconveh.h: Fix typo in comment.
16782         * lib/login_tty.c (login_tty): Likewise.
16783
16784 2010-09-15  Bruno Haible  <bruno@clisp.org>
16785
16786         stdlib: clarify MirBSD WEXITSTATUS bug
16787         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16788         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16789
16790 2010-09-15  Eric Blake  <eblake@redhat.com>
16791
16792         stdlib: work around MirBSD WEXITSTATUS bug
16793         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16794         * modules/stdlib (Depends-on): Add sys_wait.
16795         * tests/test-sys_wait.c (main): Enhance test.
16796         * tests/test-stdlib.c (main): Likewise.
16797         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16798
16799         docs: mention MacOS issue with WEXITSTATUS(constant)
16800         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16801         issue.
16802         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16803
16804         strnlen: add tests
16805         * modules/strnlen-tests: New file.
16806         * tests/test-strnlen.c: Likewise.
16807
16808 2010-09-14  Bruno Haible  <bruno@clisp.org>
16809
16810         unistr/base: Avoid link errors when module 'libunistring' is also used.
16811         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16812         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16813         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16814         Declare also when HAVE_LIBUNISTRING is set.
16815         Reported by Pádraig Brady <P@draigbrady.com>.
16816
16817 2010-09-14  Eric Blake  <eblake@redhat.com>
16818
16819         test-rawmemchr: make more robust
16820         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16821         (Depends-on, configure.ac): Add needed prerequisites to use it.
16822         * modules/memchr-tests (Files, Depends-on, configure.ac):
16823         Likewise, to avoid implicit reliance on memchr module prereqs.
16824         * tests/test-memchr.c (main): Ensure proper masking.
16825         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16826         reads.
16827
16828         memchr: detect glibc Alpha bug
16829         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16831         Alpha.
16832         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16833         * tests/test-memchr.c (main): Enhance test.
16834         Reported by Nelson H. F. Beebe.
16835
16836 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16837
16838         fts, getcwd, glob: audit for dirfd returning -1
16839         * lib/fts.c (opendir): Remove #define; no longer used.
16840         (opendirat): New arg PDIR_FD.  All callers changed.
16841         (fts_build, _opendir2): Use new opendirat to avoid the need for
16842         dirfd, or for checking whether dirfd returns a negative value.
16843         Don't use opendir; always use openat followed by fdopendir.
16844         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16845         it.
16846         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16847         returns -1 here.
16848         * modules/fts (Depends-on): Remove dirfd.
16849         * modules/getcwd (Depends-on): Likewise.
16850
16851 2010-09-13  Eric Blake  <eblake@redhat.com>
16852
16853         float: fix broken MirBSD header
16854         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16855         * doc/posix-headers/float.texi (float.h): Document it.
16856
16857 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16860         * lib/fts.c (opendirat): New arg extra_flags.
16861         (__opendir2): Use it to avoid following symlinks when opening
16862         a directory, if symlinks are not supposed to be followed.  See
16863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16864
16865         fdopendir: preserve argument fd before returning
16866         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16867         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16868         (fdopendir): Use them, arranging for FD to be open to the same
16869         directory that it was when it started.  (It might be temporarily
16870         closed while fdopendir is running, so this not thread- or
16871         signal-safe.)  Be careful to do the right thing even when file
16872         descriptors are scarce and dup fails with errno == EMFILE.  See
16873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16874
16875 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16876
16877         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16878         * NEWS: Document change.
16879         * m4/regex.m4: Disable test for regoff_t size.
16880
16881 2010-09-13  Jim Meyering  <meyering@redhat.com>
16882
16883         fts: don't operate on an invalid file descriptor after failed dup
16884         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16885         negative file descriptor.
16886
16887 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16888
16889         savedir: add streamsavedir, deprecate fdsavedir
16890         * NEWS: Mention deprecation of fdsavedir.
16891         * lib/savedir.c (streamsavedir): New extern function, whose name
16892         ends in "savedir" to be consistent with the others.  This differs
16893         from savedirstream in that it doesn't close its argument.  The
16894         next version of GNU tar will use this instead of fdsavedir, to
16895         avoid some race conditions and conserve file descriptors.
16896         (savedirstream): Reimplement as a wrapper around streamsavedir.
16897         (fdsavedir): Add a comment deprecating this function.  As far as
16898         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16899         * lib/savedir.h (streamsavedir): New decl.
16900         (fdsavedir): Add a comment deprecating this.
16901
16902 2010-09-10  Bruno Haible  <bruno@clisp.org>
16903
16904         langinfo: Fix last commit.
16905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16906         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16908
16909 2010-09-10  Bruno Haible  <bruno@clisp.org>
16910
16911         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16912         * lib/progreloc.c (O_EXEC): Define fallback.
16913
16914 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16915
16916         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16917         * NEWS: Document recent changes to fcntl-h.
16918         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16919         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16920         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16921         Similarly for O_SEARCH; this last was already true, but not documented.
16922         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16923         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16924         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16925         Likewise.
16926         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16927         is zero, not whether it is defined.
16928         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16929         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16930         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16931
16932 2010-09-10  Bruno Haible  <bruno@clisp.org>
16933
16934         langinfo, nl_langinfo: Fix for IRIX 5.3.
16935         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16936         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16937         HAVE_LANGINFO_YESEXPR.
16938         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16939         HAVE_LANGINFO_YESEXPR.
16940         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16941         HAVE_LANGINFO_T_FMT_AMPM is 0.
16942         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16943         HAVE_LANGINFO_YESEXPR is 0.
16944         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16945         NOEXPR.
16946         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16947         * doc/posix-functions/nl_langinfo.texi: Likewise.
16948         Reported by Eric Blake.
16949
16950 2010-09-10  Bruno Haible  <bruno@clisp.org>
16951
16952         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16953         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16954         on FreeBSD 8.0 and OpenBSD 4.6.
16955         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16956         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16957         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16958         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16959         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16960         ac_includes_default.
16961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16962
16963 2010-09-09  Eric Blake  <eblake@redhat.com>
16964
16965         strsignal: work around NetBSD bug
16966         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16967         * lib/string.in.h (includes): Likewise.
16968         * doc/posix-functions/strsignal.texi (strsignal): Document the
16969         bug.
16970         Reported by Nelson H. F. Beebe.
16971
16972         gnulib-tool: work with NetBSD /bin/sh
16973         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16974         (func_get_description, func_get_comment, func_get_status)
16975         (func_get_notice, func_get_applicability, func_get_filelist)
16976         (func_get_dependencies, func_get_autoconf_early_snippet)
16977         (func_get_autoconf_snippet, func_get_automake_snippet)
16978         (func_get_include_directive, func_get_link_directive)
16979         (func_get_license, func_get_maintainer, func_import): Avoid
16980         shell syntax errors from parsing syntax extensions.
16981
16982 2010-09-09  Bruno Haible  <bruno@clisp.org>
16983
16984         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16985         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16986         a reliable way to determine whether the 'alias' command works.
16987
16988 2010-09-08  Jim Meyering  <meyering@redhat.com>
16989
16990         init.sh: penalize a set-x-impaired shell; don't disqualify it
16991         * tests/init.sh: Too many shells corrupt application stderr when
16992         you set -x, so we can't afford to disqualify them, since at least
16993         on Irix-6.5, that would disqualify all bourne shells.
16994         Instead, use a two-pass approach.
16995         On the first pass, try to find a shell that meets the stricter
16996         condition that set -x does not corrupt stderr.
16997         If no shell meets the stricter condition, retest each candidate
16998         shell, but without that extra condition.  Finally, when
16999         VERBOSE=yes is requested and set -x might cause trouble, simply
17000         issue a warning and refrain from enabling debug output.
17001
17002 2010-09-08  Eric Blake  <eblake@redhat.com>
17003
17004         unsetenv: fix OpenBSD bug
17005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17006         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17007         documentation.
17008         Reported by Jim Meyering.
17009
17010         strtod: work around IRIX 6.5 bug
17011         * lib/strtod.c (strtod): Reparse number on shorter string if
17012         exponent parse was invalid.
17013         * tests/test-strtod.c (main): Add check for "0x1p 2".
17014         Reported by Tom G. Christensen.
17015
17016         getopt: optimize previous patch
17017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17018         empty variable.  Speed up awk script.
17019         Reported by Paolo Bonzini.
17020
17021 2010-09-08  Jim Meyering  <meyering@redhat.com>
17022
17023         test.sh: disqualify shells for which set -x corrupts stderr
17024         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17025         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17026         appear in stderr output.  For example, this command:
17027             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17028         prints "P=1" on those two systems:
17029
17030 2010-09-08  Bruno Haible  <bruno@clisp.org>
17031
17032         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17033         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17034         commands, because some shells ignore redirections when there is an
17035         error in the command lookup.
17036         Reported by Eric Blake.
17037
17038 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17039
17040         * lib/regex.h: Fix a mention of `regex_compile' (should be
17041         `re_compile_pattern').
17042         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17043         (re_set_registers): Correct name of parameter in comment.
17044
17045         * doc/regex.texi: Add documentation for missing syntax flags.
17046         Remove commented-out documentation of defunct syntax option
17047         RE_NO_EMPTY_ALTS.
17048         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17049         Add documentation of re_set_registers.
17050         Document trick to re-use a pattern buffer by setting fastmap manually.
17051         Update documentation of struct re_pattern_buffer per public members.
17052         Uncomment documentation of equivalence class operators and
17053         collating symbol operators, since they are now implemented,
17054         Explain leftmost-longest matching in relation to alternatives.
17055         Tidy documentation of substring matching.
17056         Remove POSIX documentation, which is done better in
17057         glibc, and refer the reader there. Keep BSD API documentation, as
17058         that is not readily available elsewhere.
17059
17060 2010-09-07  Eric Blake  <eblake@redhat.com>
17061
17062         getopt: handle POSIXLY_CORRECT set but not exported
17063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17064         export state of POSIXLY_CORRECT, due to bash set -o posix.
17065         Reported by Dustin J. Mitchell.
17066
17067 2010-09-05  Bruno Haible  <bruno@clisp.org>
17068
17069         gnulib-tool: Highlight the changed options.
17070         * gnulib-tool (func_usage): Display the --import, --add-import,
17071         --remove-import explanations in bold font.
17072
17073 2010-09-06  Karl Berry  <karl@gnu.org>
17074
17075         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17076
17077 2010-09-05  Bruno Haible  <bruno@clisp.org>
17078
17079         uniwidth/width: Update comment.
17080         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17081         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17082
17083 2010-09-05  Bruno Haible  <bruno@clisp.org>
17084
17085         isinf, isnan: Relax license.
17086         * modules/isinf (License): Change from GPL to LGPL, with consent from
17087         Ben Pfaff.
17088         * modules/isnan (License): Likewise.
17089         Requested by Ludovic Courtès.
17090
17091 2010-09-04  Bruno Haible  <bruno@clisp.org>
17092
17093         gnulib-tool: Help migration from --import to --add-import or --update.
17094         * gnulib-tool: Emit a verbose error message when --import is used
17095         without any module name.
17096
17097 2010-09-04  Bruno Haible  <bruno@clisp.org>
17098
17099         Update doc about gnulib-tool.
17100         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17101         'gnulib-tool --update' in more detail.
17102         Reported by Eric Blake.
17103
17104 2010-09-04  Bruno Haible  <bruno@clisp.org>
17105
17106         gnulib-tool: Change --import. New options --add/remove-import.
17107         * gnulib-tool: New options --add-import, --remove-import.
17108         (func_usage): Document them.
17109         (have_associative): Define always.
17110         (func_import): In import mode, don't merge the specified settings with
17111         the cached settings. Implement remove-import mode.
17112         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17113         Explain when to use them versus --import.
17114         (Simple update): Use --add-import instead of --import.
17115         * NEWS: Mention the change.
17116
17117 2010-09-04  Bruno Haible  <bruno@clisp.org>
17118
17119         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17120         separate gnulib.mk.
17121
17122 2010-09-04  Bruno Haible  <bruno@clisp.org>
17123
17124         gnulib-tool: Don't talk about CVS any more.
17125         * gnulib-tool (func_usage, func_import): Write "version control"
17126         instead of CVS.
17127
17128 2010-09-04  Jim Meyering  <meyering@redhat.com>
17129
17130         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17131         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17132         false positives (whose names may be ill-chosen) when searching
17133         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17134         would cause a false-positive.
17135
17136         avoid coreutils "make distcheck" failure
17137         Coreutils tests with an absolute build directory name that contains
17138         a space.  Not quoting this directory name caused a failure.
17139         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17140         * tests/test-vc-list-files-cvs.sh: Likewise.
17141
17142 2010-09-04  Bruno Haible  <bruno@clisp.org>
17143
17144         gnulib-tool: Avoid error when run in a package without Makefile.am.
17145         * gnulib-tool: When collecting the m4dirs in a package that does not
17146         have a Makefile.am, eliminate those directories that contain no
17147         gnulib-cache.m4. Fix expression that counts these directories.
17148
17149 2010-09-04  Bruno Haible  <bruno@clisp.org>
17150
17151         update-copyright test: Improve output when perl is missing or too old.
17152         * tests/test-update-copyright.sh: Move test of Perl version down after
17153         the test whether Perl exists. Provide an explanation relating Perl's
17154         error message to Automake's SKIP: message.
17155
17156 2010-09-04  Bruno Haible  <bruno@clisp.org>
17157
17158         Don't augment PATH in TESTS_ENVIRONMENT.
17159         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17160         set abs_aux_dir instead of augmenting PATH.
17161         * modules/vc-list-files-tests (Makefile.am): Likewise.
17162         * tests/test-update-copyright.sh: Augment PATH here.
17163         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17164         path_prepend_.
17165         * tests/test-vc-list-files-git.sh: Likewise.
17166
17167 2010-09-04  Jim Meyering  <meyering@redhat.com>
17168
17169         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17170         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17171
17172 2010-09-04  Bruno Haible  <bruno@clisp.org>
17173
17174         strdup: Fix compilation error in C++ mode.
17175         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17176         the macro.
17177
17178 2010-09-04  Bruno Haible  <bruno@clisp.org>
17179
17180         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17181         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17182         macro into a function.
17183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17184
17185 2010-09-04  Bruno Haible  <bruno@clisp.org>
17186
17187         Set PATH_SEPARATOR the same way autoconf does.
17188         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17189         the value of PATH_SEPARATOR the same way autoconf-generated configure
17190         scripts do.
17191         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17192         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17193
17194 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17195
17196         Set PATH_SEPARATOR the same way autoconf does.
17197         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17198         the same way autoconf-generated configure scripts do.
17199         * posix-modules: Likewise.
17200
17201 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17202
17203         hash: fix safe_hasher const typo
17204         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17205         const; otherwise, there is a type error later.
17206
17207 2010-09-02  Jim Meyering  <meyering@redhat.com>
17208
17209         test-update-copyright.sh: require perl 5.8.0
17210         * tests/test-update-copyright.sh: Require 5.8.0,
17211         which Tom G. Christensen has confirmed is adequate,
17212         while 5.6.1 is not.
17213
17214 2010-09-02  Eric Blake  <eblake@redhat.com>
17215
17216         tests: init.sh improvements for re-exec'ing with zsh
17217         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17218         -vx through shell re-exec.
17219         Reported by Tom G. Christensen.
17220
17221         wctype: fix typo in previous commit
17222         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17223         Reported by Ludovic Courtès.
17224
17225 2010-09-02  Jim Meyering  <meyering@redhat.com>
17226
17227         test-update-copyright.sh: skip test if Perl is too old
17228         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17229         Reported by Tom G. Christensen.
17230
17231 2010-09-02  Bruno Haible  <bruno@clisp.org>
17232
17233         wctype: Avoid compilation error on IRIX 6.5.30.
17234         * lib/wctype.in.h (iswblank): Declare with a replacement if
17235         REPLACE_ISWBLANK is set.
17236         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17237         declared. Set REPLACE_ISWBLANK.
17238         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17239         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17240         * doc/posix-headers/wctype.texi: Likewise.
17241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17242
17243 2010-09-01  Bruno Haible  <bruno@clisp.org>
17244
17245         New module 'socketlib'.
17246         * modules/socketlib: New file.
17247         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17248         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17249         * modules/sockets (Depends-on): Add socketlib.
17250         Suggested by Sam Steingold <sds@gnu.org>.
17251
17252 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17253
17254         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17255
17256         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17257         when one needs search access to a directory but not read access.
17258         On systems where it is available, it works in some cases where
17259         O_RDONLY does not, namely on directories that are searchable but
17260         not readable, and which need only to be searchable.  If O_SEARCH
17261         is not available, fall back to the traditional method of using
17262         O_RDONLY.
17263
17264         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17265         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17266         when opening a directory that needs only to be searchable.
17267         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17268         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17269         * lib/openat-proc.c (openat_proc_name): Likewise.
17270         * lib/openat.c (openat_needs_fchdir): Likewise.
17271         * lib/save-cwd.c (save_cwd): Likewise.
17272         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17273
17274 2010-08-28  Bruno Haible  <bruno@clisp.org>
17275
17276         New module 'host-cpu-c-abi'.
17277         * modules/host-cpu-c-abi: New file.
17278         * m4/host-cpu-c-abi.m4: New file, based on part of
17279         clisp/src/m4/general.m4.
17280         Requested by Sam Steingold <sds@gnu.org>.
17281
17282 2010-08-31  Eric Blake  <eblake@redhat.com>
17283         and Jim Meyering  <meyering@redhat.com>
17284
17285         hash: factor, and guard against misbehaving hasher function
17286         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17287         of table->hasher's return value.  Also protect against a hash value
17288         so large that adding it to table->bucket results in a NULL pointer.
17289         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17290         Use it in place of open-coded check-and-abort.
17291
17292 2010-08-30  Bruno Haible  <bruno@clisp.org>
17293
17294         hash: silence spurious clang warning
17295         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17296         Reported by Eric Blake.
17297
17298 2010-08-30  Eric Blake  <eblake@redhat.com>
17299
17300         strstr, memmem, strcasestr: avoid leaked shell message
17301         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17302         FreeBSD.
17303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17305
17306         tests: silence clang warning
17307         * tests/test-malloca.c (do_allocation): Avoid dead store.
17308
17309 2010-08-29  Bruno Haible  <bruno@clisp.org>
17310
17311         gettext: Fix recent mistake.
17312         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17313
17314 2010-08-29  Bruno Haible  <bruno@clisp.org>
17315
17316         selinux-h: Offer a --without-selinux option.
17317         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17318         --without-selinux was specified, skip all tests and define
17319         HAVE_SELINUX_SELINUX_H to 0.
17320         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17321         set LIB_SELINUX to empty.
17322         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17323         gl_LIBSELINUX. If --without-selinux was specified, replace
17324         selinux/context.h.
17325         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17326
17327 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17328             Bruno Haible  <bruno@clisp.org>
17329
17330         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17331         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17332         of HAVE_REALLOC.
17333         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17334         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17335         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17336         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17337
17338 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17339             Bruno Haible  <bruno@clisp.org>
17340
17341         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17342         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17343         HAVE_CALLOC.
17344         * lib/xmalloc.c: Update accordingly.
17345         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17346         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17347         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17348
17349 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17350             Bruno Haible  <bruno@clisp.org>
17351
17352         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17353         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17354         HAVE_MALLOC.
17355         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17356         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17357         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17358
17359 2010-08-29  Bruno Haible  <bruno@clisp.org>
17360
17361         Update modules list.
17362         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17363         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17364         (String handling <string.h>): Add astrxfrm.
17365         (File system functions): Add readlinkat.
17366
17367 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17368
17369         Tests for module 'realloc-gnu'.
17370         * modules/realloc-gnu-tests: New file.
17371         * tests/test-realloc-gnu.c: New file.
17372
17373         Tests for module 'calloc-gnu'.
17374         * modules/calloc-gnu-tests: New file.
17375         * tests/test-calloc-gnu.c: New file.
17376
17377         Tests for module 'malloc-gnu'.
17378         * modules/malloc-gnu-tests: New file.
17379         * tests/test-malloc-gnu.c: New file.
17380
17381 2010-08-28  Bruno Haible  <bruno@clisp.org>
17382
17383         Rename module 'realloc' -> 'realloc-gnu'.
17384         * modules/realloc-gnu: New file, copied from modules/realloc.
17385         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17386         obsolete.
17387         * modules/mgetgroups (Depends-on): Update.
17388         * doc/posix-functions/realloc.texi: Update.
17389         * NEWS: Mention the change.
17390
17391         Rename module 'calloc' -> 'calloc-gnu'.
17392         * modules/calloc-gnu: New file, copied from modules/calloc.
17393         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17394         obsolete.
17395         * doc/posix-functions/calloc.texi: Update.
17396         * NEWS: Mention the change.
17397
17398         Rename module 'malloc' -> 'malloc-gnu'.
17399         * modules/malloc-gnu: New file, copied from modules/malloc.
17400         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17401         obsolete.
17402         * modules/argp (Depends-on): Update.
17403         * modules/regex (Depends-on): Update.
17404         * doc/posix-functions/malloc.texi: Update.
17405         * NEWS: Mention the change.
17406
17407 2010-08-28  Eric Blake  <eblake@redhat.com>
17408
17409         pread, pwrite: add missing dependency
17410         * modules/pread (Depends-on): Add extensions.
17411         * modules/pwrite (Depends-on): Likewise.
17412
17413 2010-08-28  Bruno Haible  <bruno@clisp.org>
17414
17415         unistr/u*-strchr: Fix tests dependencies.
17416         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17417         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17418         Reported by Ian Beckwith <ianb@erislabs.net>.
17419
17420 2010-08-28  Bruno Haible  <bruno@clisp.org>
17421
17422         read-file: Don't occupy too much unused memory.
17423         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17424
17425 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17426             Eric Blake  <eblake@redhat.com>
17427             Bruno Haible  <bruno@clisp.org>
17428
17429         read-file: Avoid memory reallocations with regular files.
17430         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17431         (fread_file): With regular files, use the remaining length as the
17432         initial buffer size.  Check against overflow.
17433         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17434         sys_stat.
17435
17436 2010-08-28  Bruno Haible  <bruno@clisp.org>
17437
17438         ftello: Relax license.
17439         * modules/ftello (License): Relax to LGPLv2+.
17440         Reported by Eric Blake.
17441
17442 2010-08-28  Bruno Haible  <bruno@clisp.org>
17443
17444         Avoid relocwrapper link errors due to gnulib replacement functions.
17445         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17446         function.
17447         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17448
17449 2010-08-28  Bruno Haible  <bruno@clisp.org>
17450
17451         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17452         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17453         defined.
17454         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17455         Suggested by Eric Blake.
17456
17457 2010-08-28  Bruno Haible  <bruno@clisp.org>
17458
17459         sys_socket, netdb: Ensure socklen_t gets defined.
17460         * modules/sys_socket (Depends-on): Add socklen.
17461         * modules/netdb (Depends-on): Likewise.
17462         * modules/getaddrinfo (Depends-on): Remove socklen.
17463         * modules/getsockopt (Depends-on): Likewise.
17464         * modules/setsockopt (Depends-on): Likewise.
17465         * tests/test-sys_socket.c: Check that socklen_t is defined.
17466         * tests/test-netdb.c: Likewise.
17467         * m4/socklen.m4: Update comments.
17468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17469
17470 2010-08-27  Eric Blake  <eblake@redhat.com>
17471
17472         login_tty: add missing dependency
17473         * modules/login_tty (Depends-on): Add pty.
17474
17475 2010-08-26  Eric Blake  <eblake@redhat.com>
17476
17477         lib-symbol-versions: fix m4 quoting
17478         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17479         format for AC_LINK_IFELSE.
17480
17481         glob: fix compile test
17482         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17483
17484         btowc: fix missing file
17485         * modules/btowc (Files): Also ship locale-fr.m4.
17486
17487         lseek: fix link test
17488         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17489         AC_LINK_IFELSE.
17490
17491         include_next: silence autoconf 2.68 warning
17492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17493         AC_COMPILE_IFELSE as special.
17494         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17495         autoconf < 2.68.
17496
17497         acl: fix compilation test
17498         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17499         AC_COMPILE_IFELSE.
17500
17501 2010-08-26  Bruno Haible  <bruno@clisp.org>
17502
17503         Modernize AC_TRY_RUN invocations.
17504         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17506         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17507         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17508         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17509         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17510         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17512         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17513         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17514         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17515         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17516         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17517         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17519         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17520         gl_MBRLEN_NUL_RETVAL): Likewise.
17521         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17522         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17523         Likewise.
17524         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17525         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17526         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17527         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17528         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17529         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17530         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17531         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17532         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17533         Likewise.
17534         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17535         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17537         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17539         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17540         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17541         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17542         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17544
17545 2010-08-26  Bruno Haible  <bruno@clisp.org>
17546
17547         Modernize AC_TRY_LINK invocations.
17548         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17549         AC_TRY_LINK.
17550         * m4/argp.m4 (gl_ARGP): Likewise.
17551         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17552         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17553         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17554         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17555         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17556         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17557         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17558         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17559         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17560         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17561         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17562         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17563         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17564         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17565         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17566         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17567         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17568         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17569         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17570         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17571         Likewise.
17572         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17573         Likewise.
17574         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17575         Likewise.
17576         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17578         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17579         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17580         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17581         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17582         * m4/servent.m4 (gl_SERVENT): Likewise.
17583         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17584         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17585         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17586         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17587         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17588         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17589         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17591         * modules/tsearch-tests (configure.ac): Likewise.
17592
17593 2010-08-26  Bruno Haible  <bruno@clisp.org>
17594
17595         Modernize AC_TRY_COMPILE invocations.
17596         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17597         AC_TRY_COMPILE.
17598         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17599         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17600         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17601         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17602         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17603         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17604         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17605         * m4/lock.m4 (gl_LOCK): Likewise.
17606         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17608         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17609         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17610         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17611         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17612         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17614         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17615         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17616         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17617         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17618         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17619         extraneous semicolon.
17620
17621 2010-08-26  Jim Meyering  <meyering@redhat.com>
17622
17623         stat-time: relax license LGPL
17624         * modules/stat-time (License): Change from GPL to LGPL,
17625         with consent from all contributors, for use in libguile.
17626         Requested by Ludovic Courtès.
17627
17628 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17629
17630         poll: return immediately on POLLHUP.
17631         * lib/poll.c (poll): Always set timeout before wait_timeout is
17632         computed.
17633
17634 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17635
17636         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17637         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17638         rmdir ("dir/.//"), unlinkat.
17639
17640 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17641
17642         stdbool: avoid spurious failure with modern xlc
17643         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17644
17645 2010-08-24  Bruno Haible  <bruno@clisp.org>
17646
17647         getloadavg: simplify code
17648         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17649         gl_have_func. Update comments.
17650
17651 2010-08-24  Eric Blake  <eblake@redhat.com>
17652
17653         getloadavg: don't define SVR4 on cygwin
17654         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17655         only define SVR4 when -lkvm is required.
17656         Reported by Yaakov Selkowitz.
17657
17658 2010-08-24  Bruno Haible  <bruno@clisp.org>
17659
17660         priv-set: fix comment
17661         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17662
17663 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         priv-set: fix comments
17666         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17667         to match code, as suggested by David Bartley in:
17668         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17669
17670 2010-08-23  Eric Blake  <eblake@redhat.com>
17671
17672         stdbool: avoid rejecting clang
17673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17674         * tests/test-stdbool.c: Enable more tests if using the system
17675         <stdbool.h> instead of the gnulib replacement.
17676         (main): Move xlc bug test to a runtime test for all compilers.
17677         Reported by Anders Kaseorg.
17678
17679         argz: fix shell quoting issue
17680         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17681         Reported by Charles Wilson.
17682
17683 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17684             Erik Faye-Lund <kusmabite@gmail.com>
17685
17686         poll, select: handle ERROR_BROKEN_PIPE.
17687         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17688         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17689         * lib/select.c (win32_compute_revents): Do not mark a pipe
17690         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17691
17692 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17693
17694         fts: allow compilation with C++
17695         * lib/fts_.h: Specify extern "C" linkage with C++.
17696
17697 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17698
17699         Fix gnulib-tool sed script de-commentation for AIX sed.
17700         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17701         sed.
17702
17703 2010-08-17  Eric Blake  <eblake@redhat.com>
17704
17705         test-stddef: test for (some) offsetof bugs
17706         * tests/test-stddef.c: Enhance test to ensure correct type of
17707         offsetof.
17708         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17709         that we are not fixing at this time.
17710
17711 2010-08-15  Bruno Haible  <bruno@clisp.org>
17712
17713         stpncpy: Allow stpncpy to be defined as a macro.
17714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17715         if it's already correctly declared.
17716         * lib/string.in.h (stpncpy): Undefine before redefining.
17717         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17718
17719 2010-08-14  Bruno Haible  <bruno@clisp.org>
17720
17721         Rename module 'memxfrm' to 'amemxfrm'.
17722         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17723         (amemxfrm): Renamed from memxfrm.
17724         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17725         (amemxfrm): Renamed from memxfrm.
17726         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17727         * NEWS: Mention the change.
17728         * MODULES.html.sh (String handling <string.h>): Update.
17729         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17730         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17731         * lib/unicase/u16-casexfrm.c: Likewise.
17732         * lib/unicase/u32-casexfrm.c: Likewise.
17733         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17734         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17735         * lib/uninorm/u16-normxfrm.c: Likewise.
17736         * lib/uninorm/u32-normxfrm.c: Likewise.
17737         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17738         memxfrm.
17739         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17740         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17741         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17742         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17743         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17744         Suggested by Paul Eggert.
17745
17746 2010-08-14  Bruno Haible  <bruno@clisp.org>
17747
17748         Tests for module 'astrxfrm'.
17749         * modules/astrxfrm-tests: New file.
17750         * tests/test-astrxfrm.c: New file.
17751
17752         New module 'astrxfrm'.
17753         * lib/astrxfrm.h: New file.
17754         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17755         * modules/astrxfrm: New file.
17756
17757 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17758
17759         regex: Tweak doc.
17760         * doc/regex.texi (Overview): Don't mention regex.c.
17761         (GNU Regular Expression Compiling): Likewise.
17762         (Match-end-of-line Operator): Mention 'not_eol'.
17763
17764 2010-08-14  Brian Gough  <bjg@gnu.org>
17765             Bruno Haible  <bruno@clisp.org>
17766
17767         git-merge-changelog: add doc relating to use with bzr and hg.
17768         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17769
17770 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17771
17772         pthread: fix pthread.h creation for srcdir != builddir
17773         * modules/pthread (Makefile.am): Fix the rule to work also in a
17774         non-srcdir build.
17775
17776 2010-08-13  Karl Berry  <karl@gnu.org>
17777
17778         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17779         * doc/posix-*/*: force line break before @url of POSIX
17780         specifications.
17781         Suggested by Werner Lemberg.
17782
17783 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17784
17785         strtod: fix const diagnostic
17786         * lib/strtod.c (strtod): Don't assign const char * to char *,
17787         as this elicits a warning from GCC when warnings are enabled.
17788
17789 2010-08-10  Pádraig Brady <P@draigbrady.com>
17790         and Eric Blake  <eblake@redhat.com>
17791
17792         copy-acl: ignore ENOTSUP on HP-UX
17793         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17794         so that it is available for HP-UX.
17795         * lib/copy-acl.c (qcopy_acl): Use it.
17796         Reported by Patrick M. Callahan.
17797
17798 2010-08-10  Eric Blake  <eblake@redhat.com>
17799
17800         open, chown: relax license
17801         * modules/open (License): Change to LGPLv2+, with consent by all
17802         authors, for use in augeas.
17803         * modules/chown (License): Likewise.
17804         * modules/lchown (Likewise): Likewise.
17805         Requested by Adam Stokes.
17806
17807 2010-08-09  Karl Berry  <karl@gnu.org>
17808
17809         * build-aux/ar-lib: new file, import from Automake.
17810         * config/srclist.txt: autocheck for updates.
17811
17812 2010-08-09  Eric Blake  <eblake@redhat.com>
17813
17814         readlinkat: adjust client modules
17815         * modules/areadlinkat (Depends-on): Use readlinkat, not
17816         symlinkat.
17817         * modules/areadlinkat-with-size (Depends-on): Likewise.
17818
17819         mknod: be more vocal about danger of running tests as root
17820         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17821         root, since that is just asking for problems.
17822         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17823
17824         readlinkat: split into its own module
17825         * modules/symlinkat: Split readlinkat...
17826         * modules/readlinkat: ...into separate module.
17827         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17828         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17829         * lib/symlinkat.c (readlinkat): Move...
17830         * lib/readlinkat.c: ...into new file.
17831         * modules/symlinkat-tests: Split readlinkat test...
17832         * modules/readlinkat-tests: ...into separate module.
17833         * tests/test-symlinkat.c: Split...
17834         * tests/test-readlinkat.c: ...into new file.
17835         * NEWS: Document the split.
17836         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17837         * lib/unistd.in.h (readlinkat): Likewise.
17838         Suggested by Bruno Haible.
17839
17840 2010-08-08  Bruno Haible  <bruno@clisp.org>
17841
17842         memxfrm: Speed up.
17843         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17844         that usually only one call to strxfrm is necessary for each string
17845         part.
17846         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17847
17848 2010-08-07  Karl Berry  <karl@gnu.org>
17849
17850         * doc/posix-headers/limits.texi,
17851         * doc/posix-functions/malloc.texi,
17852         * doc/posix-functions/strsignal.texi: missing @item.
17853         * doc/ld-version-script.texi: spurious leading i.
17854         * doc/regex.texi (Interval Operators): no commas inside @var.
17855
17856 2010-08-01  Bruno Haible  <bruno@clisp.org>
17857
17858         Integrate the regex documentation.
17859         * doc/gnulib.texi: Define 'cn' index.
17860         (Regular expressions): New a chapter that includes regex.texi and
17861         regexprops-generic.texi.
17862         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17863         syntax.
17864
17865         Whitespace cleanup.
17866         * doc/regex.texi: Remove trailing spaces.
17867
17868         Add regex documentation.
17869         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17870         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17871         Written by Kathy A. Hargreaves and Karl Berry.
17872
17873 2010-08-01  Bruno Haible  <bruno@clisp.org>
17874
17875         link: Update documentation.
17876         * doc/posix-functions/link.texi: Update regarding Solaris.
17877
17878 2010-07-31  Bruno Haible  <bruno@clisp.org>
17879
17880         Update modules list.
17881         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17882         (String handling <string.h>): Add memcmp2, memxfrm.
17883         (Container data structures): Add xlist, xsublist, xoset.
17884         (Core language properties): Add alignof, unused-parameter.
17885         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17886         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17887         (Unibyte characters <ctype.h>): New section.
17888         (String handling <string.h>): New section.
17889         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17890         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17891         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17892         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17893         tan, tanh, tanl, y0, y1, yn.
17894         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17895         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17896         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17897         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17898         unlockpt, vdprintf, vdprintf-posix.
17899         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17900         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17901         xconcat-filename.
17902         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17903         getdtablesize, pipe2, pipe2-safer.
17904         (Security): New section.
17905         (Networking functions): Add accept4.
17906         (Signal handling): Add sigpipe.
17907         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17908         mbmemcasecoll.
17909         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17910         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17911         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17912         pipe-filter-ii.
17913         (Misc): Add argp-version-etc, login_tty, parse-duration.
17914
17915 2010-07-31  Bruno Haible  <bruno@clisp.org>
17916
17917         Improve doc in MODULES.html.
17918         * modules/linkat (Description): Add the word "function".
17919         * modules/mkfifo (Description): Likewise.
17920         * modules/mknod (Description): Likewise.
17921         * modules/remove (Description): Likewise.
17922         * modules/renameat (Description): Likewise.
17923         * modules/stat (Description): Likewise.
17924         * modules/symlink (Description): Likewise.
17925         * modules/unlink (Description): Likewise.
17926
17927 2010-07-31  Bruno Haible  <bruno@clisp.org>
17928
17929         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17930         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17931         option --enable/disable-c++ instead of --enable/disable-cxx.
17932         * NEWS: Mention the change.
17933
17934 2010-07-31  Bruno Haible  <bruno@clisp.org>
17935
17936         readlink, areadlink: Relax test a bit.
17937         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17938         alternative to ENOTDIR.
17939         * tests/test-areadlink.h (test_areadlink): Likewise.
17940         Reported by Rainer Tammer.
17941
17942 2010-07-31  Bruno Haible  <bruno@clisp.org>
17943
17944         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17945         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17946         character, perform the search using U_STRCHR.
17947         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17948         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17949         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17950         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17951         Suggested by Paolo Bonzini.
17952
17953 2010-07-31  Bruno Haible  <bruno@clisp.org>
17954
17955         unistr/u*-strstr: Fix dependencies.
17956         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17957         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17958         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17959
17960 2010-07-31  Bruno Haible  <bruno@clisp.org>
17961
17962         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17963         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17964         the beginning of the loop.
17965         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17966         cases in 'switch' statement.
17967
17968         unistr/u8-strchr: Fix several bugs.
17969         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17970         the string. When not found, return NULL, not a pointer near the end.
17971
17972         More tests for unistr/u8-strchr.
17973         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17974         that the function does not read past the first occurrence of the byte
17975         being searched.
17976         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17977         * tests/unistr/test-u16-strchr.c (main): New function.
17978         * tests/unistr/test-u32-strchr.c (main): New function.
17979
17980 2010-07-31  Bruno Haible  <bruno@clisp.org>
17981
17982         posix-modules: Ignore backup files of documentation files.
17983         * posix-modules: grep only through files named *.texi.
17984
17985 2010-07-31  Bruno Haible  <bruno@clisp.org>
17986
17987         symlinkat: Fix documentation.
17988         * doc/posix-functions/readlinkat.texi: Fix module name.
17989
17990 2010-07-31  Bruno Haible  <bruno@clisp.org>
17991
17992         fchownat: Replace also when chown has the trailing slash bug.
17993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17994         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17995         introduced on 2010-04-10.
17996         Reported by Rainer Tammer.
17997
17998 2010-07-31  Bruno Haible  <bruno@clisp.org>
17999
18000         linkat: Work around AIX 7.1 bug.
18001         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18002         whether linkat handles trailing slash correctly. If not, replace linkat
18003         and define LINKAT_TRAILING_SLASH_BUG.
18004         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18005         check whether (fd1,file1) points to a directory if file1 or file2 ends
18006         in a slash. Code taken from lib/link.c.
18007         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18008         Reported by Rainer Tammer.
18009
18010 2010-07-31  Bruno Haible  <bruno@clisp.org>
18011
18012         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18013         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18014         This disables an xlc optimization that was causing wrong test results.
18015         Reported by Rainer Tammer.
18016
18017 2010-07-31  Bruno Haible  <bruno@clisp.org>
18018
18019         iconv: Work around AIX 6.1..7.1 bug.
18020         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18021         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18022         cross-compiling, guess no on all versions of AIX.
18023         Reported by Rainer Tammer.
18024
18025 2010-07-31  Bruno Haible  <bruno@clisp.org>
18026
18027         readlink: Relax test a bit.
18028         * tests/test-readlink.h (test_readlink): Allow different errno value
18029         when readlink is called with a file name that ends in / and refers to
18030         a file.
18031         Suggested by Eric Blake.
18032         Reported by Rainer Tammer.
18033
18034 2010-07-31  Bruno Haible  <bruno@clisp.org>
18035
18036         copysign: Does not require -lm on glibc systems.
18037         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18038         gl_COMMON_DOUBLE_MATHFUNC.
18039         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18040
18041 2010-07-31  Bruno Haible  <bruno@clisp.org>
18042
18043         duplocale: Work around AIX 7.1 bug.
18044         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18045         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18046         * lib/duplocale.c (rpl_duplocale): Update comment.
18047         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18048         Reported by Rainer Tammer.
18049
18050 2010-07-30  Bruno Haible  <bruno@clisp.org>
18051
18052         dirfd: Avoid link error on AIX 7.1.
18053         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18054         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18055         exist, set REPLACE_DIRFD.
18056         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18057         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18058         * doc/posix-functions/dirfd.texi: Update.
18059         Reported by Rainer Tammer.
18060
18061 2010-07-30  Eric Blake  <eblake@redhat.com>
18062
18063         strtod: next round of AIX fixes
18064         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18065         exponent.
18066         * tests/test-strtod.c (main): Enhance tests.
18067         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18068         Reported by Rainer Tammer.
18069
18070         futimens: fix configure check
18071         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18072         Reported by Bruno Haible.
18073
18074 2010-07-30  Bruno Haible  <bruno@clisp.org>
18075
18076         getline: Update regarding AIX.
18077         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18078         Reported by Rainer Tammer.
18079
18080 2010-07-30  Bruno Haible  <bruno@clisp.org>
18081
18082         wcwidth: Drop replacement on AIX 7.
18083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18084         AIX 7.
18085         Reported by Rainer Tammer.
18086
18087 2010-07-30  Bruno Haible  <bruno@clisp.org>
18088
18089         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18090         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18091         a 'char *'.
18092         Reported by Rainer Tammer.
18093
18094 2010-07-30  Bruno Haible  <bruno@clisp.org>
18095
18096         unlink: Update regarding AIX.
18097         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18098         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18099         Reported by Rainer Tammer.
18100
18101 2010-07-30  Bruno Haible  <bruno@clisp.org>
18102
18103         symlink: Update regarding AIX.
18104         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18105         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18106         Reported by Rainer Tammer.
18107
18108 2010-07-30  Bruno Haible  <bruno@clisp.org>
18109
18110         strndup: Update regarding AIX.
18111         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18112         AIX 7.
18113         Reported by Rainer Tammer.
18114
18115 2010-07-30  Bruno Haible  <bruno@clisp.org>
18116
18117         stat: Update regarding AIX.
18118         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18119         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18120         Reported by Rainer Tammer.
18121
18122 2010-07-30  Bruno Haible  <bruno@clisp.org>
18123
18124         truncl: Fix autoconf test.
18125         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18126         whether truncl works.
18127         Reported by Rainer Tammer.
18128
18129 2010-07-30  Bruno Haible  <bruno@clisp.org>
18130
18131         round: Update regarding AIX.
18132         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18133         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18134         Reported by Rainer Tammer.
18135
18136 2010-07-30  Bruno Haible  <bruno@clisp.org>
18137
18138         rename: Update regarding AIX.
18139         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18140         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18141         Reported by Rainer Tammer.
18142
18143 2010-07-30  Bruno Haible  <bruno@clisp.org>
18144
18145         printf.m4: Update regarding AIX.
18146         * m4/printf.m4: Update comments regarding AIX.
18147         Reported by Rainer Tammer.
18148
18149 2010-07-30  Bruno Haible  <bruno@clisp.org>
18150
18151         iconv: Update regarding AIX.
18152         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18153         AIX 7.
18154         Reported by Rainer Tammer.
18155
18156 2010-07-30  Bruno Haible  <bruno@clisp.org>
18157
18158         getopt: Update regarding AIX.
18159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18160         no on AIX.
18161         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18162         Reported by Rainer Tammer.
18163
18164 2010-07-30  Bruno Haible  <bruno@clisp.org>
18165
18166         ldexpl; Update regarding AIX.
18167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18168         on AIX 7.
18169         Reported by Rainer Tammer.
18170
18171 2010-07-30  Bruno Haible  <bruno@clisp.org>
18172
18173         frexpl: Update regarding AIX.
18174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18175         on AIX 7.
18176         Reported by Rainer Tammer.
18177
18178 2010-07-30  Bruno Haible  <bruno@clisp.org>
18179
18180         open, fopen: Update regarding AIX.
18181         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18182         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18183         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18184         * doc/posix-functions/fopen.texi: Likewise.
18185         Reported by Rainer Tammer.
18186
18187 2010-07-30  Bruno Haible  <bruno@clisp.org>
18188
18189         chown: Update doc regarding AIX.
18190         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18191         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18192         Reported by Rainer Tammer.
18193
18194 2010-07-30  Eric Blake  <eblake@redhat.com>
18195
18196         strtod: fix bug in replacement function on AIX
18197         * lib/strtod.c (strtod): Special case broken "0x" parse in
18198         underlying strtod.
18199         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18200         * doc/posix-functions/strtod.texi (strtod): Likewise.
18201         Reported by Rainer Tammer.
18202
18203 2010-07-30  Bruno Haible  <bruno@clisp.org>
18204
18205         mbrlen: Fix cross-compilation guess for AIX.
18206         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18207         guess. Leftover from 2008-12-22.
18208
18209 2010-07-30  Bruno Haible  <bruno@clisp.org>
18210
18211         mbrtowc: Fix cross-compilation guess for AIX.
18212         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18213         guess. Leftover from 2008-12-21.
18214
18215 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18216
18217         init.sh: work around trap limitation of some shells
18218         * tests/init.sh (setup_): Move exit trap outside of shell function.
18219
18220 2010-07-29  Eric Blake  <eblake@redhat.com>
18221
18222         strtod: aid debugging
18223         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18224         understanding why strtod is rejected.
18225
18226 2010-07-28  Bruno Haible  <bruno@clisp.org>
18227
18228         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18229         * lib/unistr/u8-chr.c: Include <string.h>.
18230         * tests/unistr/test-u8-chr.c: Likewise.
18231         * tests/unistr/test-u16-chr.c: Likewise.
18232         * tests/unistr/test-u32-chr.c: Likewise.
18233         * tests/unistr/test-u8-strchr.c: Likewise.
18234         * tests/unistr/test-u16-strchr.c: Likewise.
18235         * tests/unistr/test-u32-strchr.c: Likewise.
18236         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18237         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18238         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18239         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18240
18241 2010-07-28  Bruno Haible  <bruno@clisp.org>
18242
18243         Use spaces for indentation, not tabs.
18244         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18245
18246 2010-07-27  Bruno Haible  <bruno@clisp.org>
18247
18248         mbspcasecmp: Fix function specification.
18249         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18250         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18251         Reported by Eric Blake <eblake@redhat.com>.
18252
18253 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18254
18255         timespec: use cast and not conditional, as truncation isn't possible
18256         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18257         instead of a conditional.  Comment about the situation in more detail.
18258         This undoes most of the 2009-10-29 patch.
18259
18260 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18261
18262         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18263         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18264         * lib/unistr/u8-strchr.c: Likewise.
18265         * modules/unistr/u8-chr: Depend on memchr.
18266
18267         unistr/u*-strchr: add tests
18268         * modules/unistr/u8-strchr-tests: New file.
18269         * modules/unistr/u16-strchr-tests: New file.
18270         * modules/unistr/u32-strchr-tests: New file.
18271         * tests/unistr/test-strchr.h: New file.
18272         * tests/unistr/test-u8-strchr.c: New file.
18273         * tests/unistr/test-u16-strchr.c: New file.
18274         * tests/unistr/test-u32-strchr.c: New file.
18275
18276         unistr/u*-chr: test multibyte sequences more
18277         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18278         test vector.
18279         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18280         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18281         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18282
18283         unistr/u*-chr: test multibyte sequences
18284         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18285
18286         unistr/u*-chr: prepare for multibyte tests
18287         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18288         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18289         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18290         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18291         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18292         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18293
18294 2010-07-18  Bruno Haible  <bruno@clisp.org>
18295
18296         unistr/u8-strchr: Optimize non-ASCII argument case.
18297         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18298         because the first byte often matches anyway.
18299         Reported by Pádraig Brady <P@draigbrady.com>.
18300
18301 2010-07-15  Karl Berry  <karl@gnu.org>
18302
18303         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18304
18305 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18306
18307         getcwd: on Solaris, work better if ancestors are inaccessible
18308         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18309         buffer and size, try again with a large buffer.  This works better
18310         on Solaris, since its getcwd succeeds even if the path to the root
18311         is inaccessible, and this is helpful in common cases such as .zfs
18312         hidden directories.  Problem reported by J Chapman Flack in
18313         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18314         Use system getcwd if it's declared, not merely if it's partly
18315         working; use the partly-working test only to avoid needless effort
18316         if the system getcwd fails.
18317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18318         comment that was already obsolete and is now even more obsolete.
18319         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18320         now might call strdup.
18321
18322 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18323
18324         pthread: Add enough so that coreutils/src/sort.c compiles.
18325         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18326         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18327         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18328         Include <sys/types.h>, in case it defines pthread_t.
18329         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18330         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18331         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18332         (pthread_rwlockattr_t, pthread_spinlock_t):
18333         New typedefs, if HAVE_PTHREAD_T is not defined.
18334         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18335         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18336         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18337         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18338         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18339         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18340         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18341         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18342         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18343         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18344         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18345         New macros.
18346         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18347         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18348         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18349         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18350         (pthread_spin_unlock): New dummy functions.
18351         (pthread_create): Return EAGAIN; don't set errno.
18352         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18353         require AC_C_INLINE.
18354         * modules/pthread (Depends-on): Add sched, time.
18355         (pthread.h): Use AM_V_GEN.
18356
18357 2010-07-13  Bruno Haible  <bruno@clisp.org>
18358
18359         striconveh: Don't malloc memory if the result buffer is sufficient.
18360         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18361         buffer if its size is sufficient.
18362         Reported by Ludovic Courtès <ludo@gnu.org>.
18363
18364 2010-07-13  Bruno Haible  <bruno@clisp.org>
18365
18366         strtod: Add safety check.
18367         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18368
18369 2010-07-12  Bruno Haible  <bruno@clisp.org>
18370
18371         Unify tests that set gl_cv_func_ldexpl_no_libm.
18372         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18373         gl_FUNC_LDEXPL.
18374         (gl_FUNC_LDEXPL): Invoke it.
18375         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18376
18377 2010-07-12  Bruno Haible  <bruno@clisp.org>
18378
18379         Unify tests that set gl_cv_func_ldexp_no_libm.
18380         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18381         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18382         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18383         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18384         * modules/strtod (Files): Add m4/ldexp.m4.
18385
18386 2010-07-12  Bruno Haible  <bruno@clisp.org>
18387
18388         Unify tests that set gl_cv_func_frexpl_no_libm.
18389         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18390         gl_FUNC_FREXPL_NO_LIBM.
18391         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18392         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18393
18394 2010-07-12  Bruno Haible  <bruno@clisp.org>
18395
18396         Unify tests that set gl_cv_func_frexp_no_libm.
18397         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18398         gl_FUNC_FREXP_NO_LIBM.
18399         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18400         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18401
18402 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18403
18404         memcoll: clarify sizes versus lengths, document better, and tweak perf
18405         * lib/memcoll.c (strcoll_loop, memcoll0):
18406         Improve quality of descriptive comments.  Name variables
18407         consistently as to whether they are lengths (which do not include
18408         terminating null) versus sizes (which do).
18409         * lib/xmemcoll.c (xmemcoll0): Likewise.
18410         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18411         returned when s1size == 0; this is easier to compile and saves
18412         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18413
18414 2010-07-12  Bruno Haible  <bruno@clisp.org>
18415
18416         Tests for module '_Exit'.
18417         * modules/_Exit-tests: New file.
18418         * tests/test-_Exit.sh: New file.
18419         * tests/test-_Exit.c: New file.
18420
18421         New module '_Exit'.
18422         * lib/stdlib.in.h (__attribute__): New macro.
18423         (_Exit): New declaration.
18424         * lib/_Exit.c: New file.
18425         * m4/_Exit.m4: New file.
18426         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18427         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18428         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18429         * modules/_Exit: New file.
18430         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18431         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18432
18433 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18434
18435         strtod: make it more-accurate typically, and don't require libm
18436         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18437         Include limits.h.  Don't include string.h.
18438         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18439         (locale_isspace): New function, so that no casts are needed to
18440         check whether *s is a space.
18441         (ldexp): Provide an unused dummy if not available.
18442         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18443         (strtod): Use them.  This implementation prefers to use the
18444         underlying strtod if available, falling back on our own code
18445         only to fix known bugs.  This is more likely to produce an
18446         accurate result.  Also, it avoids the use of libm functions.
18447         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18448         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18449         was absent, but it caused a test failure with coreutils.
18450         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18451         with libm.
18452         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18453         * modules/strtod-tests (Makefile.am): Likewise.
18454
18455 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18456             Bruno Haible  <bruno@clisp.org>
18457
18458         unistr/u8-strchr: Optimize ASCII argument case.
18459         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18460
18461 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18462
18463         (x)memcoll: minor tweaks
18464         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18465         is after the type that it qualifies.
18466         (memcoll0): Likewise.
18467         * lib/memcoll.h (memcoll0): Likewise.
18468         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18469         * lib/xmemcoll.h (xmemcoll0): Likewise.
18470         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18471         differs from memcoll in that the NUL byte is part of the argument.
18472         Omit the abort-checks, as performance is a real issue here.  Plus,
18473         the checks were wrong anyway (an off-by-one error).  Omit local
18474         variable 'diff', as it's a bit clearer that way.
18475         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18476         no longer needed.
18477
18478 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18479
18480         (x)memcoll: speedup when input is known to be NUL delimited
18481         * lib/memcoll.c: Include stdlib.
18482         (memcoll0): New function.
18483         (strcoll_loop): New function, refactored for use in both memcoll
18484         and memcoll0.
18485         * lib/memcoll.h (memcoll0): Add prototype.
18486         * lib/xmemcoll.c (xmemcoll0): New function.
18487         (collate_error): New function, refactored for use in both xmemcoll
18488         and xmemcoll0.
18489         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18490         * m4/memcoll.m4: add inline invocation.
18491
18492 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18493
18494         * build-aux/bootstrap: Remove any local translations
18495         from the translation project synchronization directory,
18496         so that local only translations are not distributed.
18497
18498 2010-07-04  Bruno Haible  <bruno@clisp.org>
18499
18500         fsusage: Clarify which code applies to which platforms.
18501         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18502         platform.
18503         * lib/fsusage.c (get_fs_usage): Likewise.
18504
18505 2010-07-04  Bruno Haible  <bruno@clisp.org>
18506
18507         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18508         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18509         Reported by Martin Lambers <marlam@marlam.de>.
18510
18511 2010-07-04  Jim Meyering  <meyering@redhat.com>
18512
18513         hash: once again explicitly disallow insertion of NULL
18514         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18515         inserting a NULL pointer cannot work with these functions.
18516         Add a comment with details.
18517         This reverts part of the 2010-07-01 commit, 5bef1a35
18518         "hash: extend module to deal with non-pointer keys".
18519
18520 2010-07-01  Bruno Haible  <bruno@clisp.org>
18521
18522         stdbool: Update doc.
18523         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18524         Info from Christian Weisgerber <naddy@mips.inka.de>.
18525
18526 2010-07-01  Jim Meyering  <meyering@redhat.com>
18527
18528         hash: extend module to deal with non-pointer keys
18529         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18530         but that allows insertion of non-pointer entries.
18531         Do not disallow an ENTRY value of NULL.
18532         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18533         * lib/hash.h (hash_insert0): Declare.
18534
18535 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18536
18537         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18538         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18539         not present (i.e. with autoconf 2.59 and when using gettextize, not
18540         gnulib), require AC_GNU_SOURCE instead.
18541
18542 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18543
18544         idpriv-drop: Fix tests.
18545         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18546         not to the test-idpriv-droptemp program.
18547
18548 2010-06-29  Bruno Haible  <bruno@clisp.org>
18549
18550         string: Fix syntax error with g++ 2.96.
18551         * lib/string.in.h (__pure__): Remove definition.
18552         (_GL_ATTRIBUTE_PURE): New macro.
18553         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18554         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18555         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18556
18557 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18558
18559         unitypes: Fix bug introduced on 2010-05-18.
18560         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18561
18562 2010-06-22  Eric Blake  <eblake@redhat.com>
18563
18564         memmem: slight optimization
18565         * lib/str-two-way.h (critical_factorization): Update comments.
18566         Reduce work during factorization phase.
18567         Reported by Carlos Bueno <carlos@bueno.org>.
18568
18569 2010-06-21  Bruno Haible  <bruno@clisp.org>
18570
18571         Fix HAVE_CALLOC_POSIX misnomer.
18572         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18573         !HAVE_CALLOC_POSIX.
18574         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18575         HAVE_CALLOC_POSIX.
18576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18577         instead of HAVE_CALLOC_POSIX.
18578         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18579         HAVE_CALLOC_POSIX.
18580
18581         Use modern idiom for calloc() replacement.
18582         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18583         AC_FUNC_CALLOC.
18584         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18585         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18586         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18587         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18588         (gl_REPLACE_CALLOC): New macro.
18589
18590 2010-06-21  Bruno Haible  <bruno@clisp.org>
18591
18592         Fix HAVE_REALLOC_POSIX misnomer.
18593         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18594         !HAVE_REALLOC_POSIX.
18595         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18596         HAVE_REALLOC_POSIX.
18597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18598         instead of HAVE_REALLOC_POSIX.
18599         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18600         HAVE_REALLOC_POSIX.
18601
18602         Use modern idiom for realloc() replacement.
18603         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18604         AC_FUNC_REALLOC.
18605         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18606         Autoconf's AC_FUNC_REALLOC.
18607         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18608         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18609         (gl_REPLACE_REALLOC): New macro.
18610         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18611
18612 2010-06-21  Bruno Haible  <bruno@clisp.org>
18613
18614         Fix HAVE_MALLOC_POSIX misnomer.
18615         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18616         !HAVE_MALLOC_POSIX.
18617         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18618         HAVE_MALLOC_POSIX.
18619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18620         instead of HAVE_MALLOC_POSIX.
18621         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18622         HAVE_MALLOC_POSIX.
18623
18624         Use modern idiom for malloc() replacement.
18625         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18626         AC_FUNC_MALLOC.
18627         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18628         Autoconf's AC_FUNC_MALLOC.
18629         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18630         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18631         (gl_REPLACE_MALLOC): New macro.
18632         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18633
18634 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18635
18636         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18637         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18638         This macro takes 3 arguments, not 4.
18639
18640 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18641
18642         ipv6: fix detection under mingw
18643         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18644         in6_addr.
18645
18646 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18647
18648         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18649         that strtod() works when cross-compiling to a glibc version known
18650         to work.
18651
18652 2010-06-15  Bruno Haible  <bruno@clisp.org>
18653
18654         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18655
18656 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18657
18658         select: Correct timeout.
18659         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18660
18661 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18662
18663         git-version-gen: init shell var to avoid env var influence
18664         * build-aux/git-version-gen (v): Init shell var to empty.
18665
18666 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18667
18668         priv-set: Don't assume that priv.h exists merely because getppriv does.
18669         See Jan Andersen's bug report about AIX 5L in
18670         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18671         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18672         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18673         * lib/priv-set.h: Likewise.
18674         * tests/test-priv-set.c: Likewise.
18675
18676 2010-06-13  Bruno Haible  <bruno@clisp.org>
18677
18678         relocatable: Make it easier to test whether to install wrappers.
18679         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18680         RELOCATABLE_VIA_WRAPPER.
18681
18682 2010-06-13  Bruno Haible  <bruno@clisp.org>
18683
18684         gnulib-tool: Display specified modules and dependencies differently.
18685         * gnulib-tool (func_show_module_list): New function.
18686         (func_import, func_create_testdir): Invoke it.
18687         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18688
18689 2010-06-13  Bruno Haible  <bruno@clisp.org>
18690
18691         gnulib-tool: Align code of func_import and func_create_testdir.
18692         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18693         specified_modules.
18694
18695 2010-06-12  Jim Meyering  <meyering@redhat.com>
18696
18697         test-inttostr: avoid spurious failure on Solaris 9
18698         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18699         to accept "%ju".  Reported by Bruno Haible.
18700
18701 2010-06-11  Jim Meyering  <meyering@redhat.com>
18702
18703         test-sys_socket: mark variables as used more readably
18704         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18705         as "used" explicitly via (void) statement casts.  This is more
18706         readable than using them in an artificial return expression.
18707         Suggestion from Bruno Haible.
18708
18709 2010-06-11  Bruno Haible  <bruno@clisp.org>
18710
18711         Avoid some more warnings from "gcc -Wwrite-strings".
18712         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18713         to 'const char *'.
18714         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18715         * tests/test-c-strcasestr.c (main): Likewise.
18716         * tests/test-mbscasestr1.c (main): Likewise.
18717         * tests/test-mbscasestr2.c (main): Likewise.
18718         * tests/test-memmem.c (main): Likewise.
18719         * tests/test-strstr.c (main): Likewise.
18720         * tests/test-strcasestr.c (main): Likewise.
18721
18722 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18723
18724         init.sh: change framework_failure_ to fail with status 99, not 1
18725         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18726         automake's parallel-tests rule that this is an unexpected failure,
18727         even if the test is listed in XFAIL_TESTS.
18728
18729 2010-06-11  Jim Meyering  <meyering@redhat.com>
18730
18731         test-inttostr: avoid warnings about 4-6KB literal strings
18732         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18733         Include "macros.h", for its definition of ASSERT.
18734         (CK): s/assert/ASSERT/
18735         * modules/inttostr-tests (Files): Add macros.h.
18736
18737         init.sh: don't use $ME_ or skip_ before they are defined
18738         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18739         their first uses.  Also hoist their companions: warn_, fail_,
18740         framework_failure_, $stderr_fileno.  Prompted by a patch from
18741         Stefano Lattarini.
18742
18743         test-sys_socket: avoid set-but-not-used warnings from gcc
18744         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18745         avoid warning about set-but-not-used variables.
18746
18747         test-xvasprintf: avoid 'const' discard warnings
18748         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18749         "const" when assigning from literal strings.
18750         (test_xasprintf): Add "void" in function argument list to placate
18751         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18752
18753         tests: avoid compilation warnings in argmatch and exclude tests...
18754         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18755         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18756         Since it always exits, declare with the "noreturn" attribute.
18757         * tests/test-argmatch.c: Likewise.
18758
18759         tests: avoid 'const' discard warnings in mbsstr tests
18760         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18761         * tests/test-mbsstr2.c (main): Likewise.
18762
18763         test-verify: avoid warning from gcc's -Wmissing-declarations
18764         * tests/test-verify.c (function): Declare to be static.
18765
18766         test-inttostr.c: include <string.h> for use of strcmp
18767         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18768
18769         test-linkat: avoid failed assertion on "other" architectures
18770         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18771         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18772         sparc: https://bugs.launchpad.net/bugs/591968
18773
18774 2010-06-11  Jim Meyering  <meyering@redhat.com>
18775
18776         printf.m4: avoid autoconf's "Expanded Before Required" warning
18777         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18778         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18779         autoconf warning.
18780
18781 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18782
18783         Replacement header templates are now named with ".in", not "_".
18784         * doc/gnulib-intro.texi: Correct.
18785
18786 2010-06-10  Jim Meyering  <meyering@redhat.com>
18787
18788         inttostr-tests: depend on snprintf, not snprintf-posix
18789         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18790         snprintf-posix, to avoid this aclocal failure:
18791           missing file gnulib-tests/vasnprintf.c
18792           configure.ac:45: error: expected source file, required through \
18793           AC_LIBSOURCES, not found
18794
18795 2010-06-10  Jim Meyering  <meyering@redhat.com>
18796
18797         inttostr: add a new function, inttostr, and tests
18798         The namesake function was not available.  The existence of the
18799         template file, inttostr.c makes its addition nontrivial.
18800         * lib/anytostr.c: Rename from inttostr.c.
18801         (anytostr): Rename from inttostr.
18802         * lib/inttostr.c: New file.
18803         * modules/inttostr (Files): Add anytostr.c.
18804         (Makefile.am): Set lib_SOURCES instead of ...
18805         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18806         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18807         * lib/offtostr.c: Likewise.
18808         * lib/uinttostr.c: Likewise.
18809         * lib/umaxtostr.c: Likewise.
18810         * modules/inttostr-tests: New file.
18811         * tests/test-inttostr.c: New file.  Test these functions.
18812
18813 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18814             Bruno Haible  <bruno@clisp.org>
18815
18816         Add "Extending Gnulib" chapter to manual.
18817         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18818         chapter.
18819         (Extending Gnulib): New chapter.
18820         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18821         chapter.
18822
18823 2010-06-09  Bruno Haible  <bruno@clisp.org>
18824
18825         Avoid relocwrapper link errors due to gnulib replacement functions.
18826         * lib/areadlink.c: Use the system's malloc, realloc functions.
18827         (areadlink): Set errno to ENOMEM explicitly.
18828         * modules/areadlink (Depends-on): Remove malloc-posix.
18829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18830
18831 2010-06-09  Bruno Haible  <bruno@clisp.org>
18832
18833         Avoid relocwrapper link errors due to gnulib replacement functions.
18834         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18835         * lib/malloca.c: Likewise.
18836         * lib/relocatable.c: Likewise.
18837         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18838         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18839         * lib/setenv.c: Use the system's malloc, realloc functions.
18840         * lib/strerror.c: Use the system's sprintf function.
18841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18842
18843 2010-06-04  Bruno Haible  <bruno@clisp.org>
18844
18845         Prefer documented low-level autoconf macro names.
18846         * m4/lib-link.m4: Use m4_translit instead of translit.
18847         * m4/environ.m4: Likewise.
18848         * m4/mathfunc.m4: Likewise.
18849         * m4/onceonly.m4: Likewise.
18850         * m4/stdint.m4: Likewise.
18851         Suggested by Eric Blake.
18852
18853 2010-06-04  Martin Lambers  <marlam@marlam.de>
18854             Bruno Haible  <bruno@clisp.org>
18855
18856         havelib: Allow library names with '+' characters.
18857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18858         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18859
18860 2010-06-09  Bruno Haible  <bruno@clisp.org>
18861
18862         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18863         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18864         realloc failed.
18865
18866 2010-06-08  Peter Simons  <simons@cryp.to>
18867
18868         maint.mk: make the news-check rule more configurable
18869         * top/maint.mk (news-check-lines-spec): New variable.
18870         (news-check): Use "sed -n 1,10p" in place of "head".
18871
18872 2010-06-07  Jim Meyering  <meyering@redhat.com>
18873
18874         do-release-commit-and-tag: fix typo in --help
18875         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18876
18877         regex: avoid new dead-code warning with gcc-4.6.0
18878         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18879         if-block containing a while-loop.  It's been unused for at least
18880         5 years.
18881
18882 2010-06-05  Bruno Haible  <bruno@clisp.org>
18883
18884         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18885         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18886
18887 2010-06-04  Bruno Haible  <bruno@clisp.org>
18888
18889         Update to GNU gettext 0.18.1.
18890         * modules/gettext (configure.ac): Require gettext infrastructure from
18891         version 0.18.1.
18892
18893 2010-06-03  Bruno Haible  <bruno@clisp.org>
18894
18895         Don't use AC_LIBOBJ with file names in subdirectories.
18896         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18897         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18898         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18899         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18900         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18901         gl_LIBUNISTRING_LIBSOURCE.
18902         (Makefile.am): Augment lib_SOURCES here, conditionally.
18903         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18904
18905 2010-06-03  Bruno Haible  <bruno@clisp.org>
18906
18907         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18908         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18909         expansion does not end with a newline.
18910         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18911         unnecessary newline.
18912
18913 2010-06-03  Bruno Haible  <bruno@clisp.org>
18914
18915         Reduce dependencies.
18916         * tests/test-quotearg.h: New file, extracted from
18917         tests/test-quotearg.c.
18918         * tests/test-quotearg-simple.c: New file, extracted from
18919         tests/test-quotearg.c.
18920         * tests/test-quotearg.c: Don't include <ctype.h>.
18921         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18922         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18923         use_quote_double_quotes, use_quotearg_colon): Moved to
18924         tests/test-quotearg.h.
18925         (results_g, flag_results, custom_quotes, custom_results): Moved
18926         to tests/test-quotearg-simple.c.
18927         (main): Moved the part that does not depend on gettext to
18928         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18929         performed.
18930         * modules/quotearg-simple: New file.
18931         * modules/quotearg-simple-tests: New file.
18932         * modules/quotearg (Depends-on): Add quotearg-simple.
18933         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18934         (Files): Add tests/test-quotearg.h.
18935         Reported by Paolo Bonzini.
18936
18937 2010-06-03  Bruno Haible  <bruno@clisp.org>
18938
18939         Reduce dependencies.
18940         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18941
18942 2010-06-03  Bruno Haible  <bruno@clisp.org>
18943
18944         time: Undefine more broken macros.
18945         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18946         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18947         Reported by Eric Blake.
18948
18949 2010-06-03  Bruno Haible  <bruno@clisp.org>
18950
18951         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18952         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18953         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18954         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18955         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18956         Reported by Ludovic Courtès <ludo@gnu.org>.
18957
18958 2010-06-02  Eric Blake  <eblake@redhat.com>
18959
18960         time: work with mingw + pthreads-win32 library
18961         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18962         if timespec is defined only in pthread.h.
18963         * modules/time (Makefile.am): Substitute it.
18964         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18965         <pthread.h>, when needed.
18966         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18967         from the library.
18968
18969 2010-05-31  Bruno Haible  <bruno@clisp.org>
18970
18971         Avoid expanding two macros in the wrong order.
18972         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18973         gl_LIBUNISTRING if it is defined.
18974         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18975         autoconf >= 2.64.
18976         Reported by Ludovic Courtès <ludo@gnu.org>.
18977
18978 2010-05-27  Jim Meyering  <meyering@redhat.com>
18979
18980         maint.mk: also prohibit "#undef" of always-defined symbols
18981         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18982         Allow more than one space before the symbol name.
18983         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18984         the regexp uses alternation.
18985
18986 2010-05-26  Eric Blake  <eblake@redhat.com>
18987
18988         maint.mk: avoid echo -e
18989         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18990         Convert all uses of echo -* to printf.
18991         Reported by Matthias Bolte.
18992
18993 2010-05-25  Bruno Haible  <bruno@clisp.org>
18994
18995         Update to GNU gettext 0.18, part 2.
18996         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18997         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18998
18999 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19000
19001         Add missing include in test-pwrite.c.
19002         * tests/test-pwrite.c: Include string.h, for strcmp.
19003
19004 2010-05-24  Bruno Haible  <bruno@clisp.org>
19005
19006         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19007
19008 2010-05-24  Bruno Haible  <bruno@clisp.org>
19009
19010         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19011         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19012         iconveh_error argument.
19013         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19014         U_STRCONV_TO_LOCALE.
19015         * lib/unistr/u16-strcoll.c: Likewise.
19016         * lib/unistr/u32-strcoll.c: Likewise.
19017         * modules/unistr/u8-strcoll (Depends-on): Add
19018         uniconv/u8-strconv-to-enc, localcharset. Remove
19019         uniconv/u8-strconv-to-locale.
19020         (configure.ac): Bump version number.
19021         * modules/unistr/u16-strcoll (Depends-on): Add
19022         uniconv/u16-strconv-to-enc, localcharset. Remove
19023         uniconv/u16-strconv-to-locale.
19024         (configure.ac): Bump version number.
19025         * modules/unistr/u32-strcoll (Depends-on): Add
19026         uniconv/u32-strconv-to-enc, localcharset. Remove
19027         uniconv/u32-strconv-to-locale.
19028         (configure.ac): Bump version number.
19029
19030 2010-05-24  Bruno Haible  <bruno@clisp.org>
19031
19032         Avoid a test failure on NetBSD 5.0.
19033         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19034         an iconv() bug.
19035
19036 2010-05-24  Bruno Haible  <bruno@clisp.org>
19037
19038         Adjust #include directive style.
19039         * modules/regex (Includes): Recommend to write <regex.h>.
19040
19041 2010-05-24  Bruno Haible  <bruno@clisp.org>
19042
19043         regex: Don't require alloca.
19044         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19045         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19046         only inside if (0).
19047
19048 2010-05-23  Jim Meyering  <meyering@redhat.com>
19049
19050         test-renameat.c: include <sys/stat.h>
19051         * tests/test-renameat.c: Include <sys/stat.h>; required for
19052         definition of S_IS* macros.
19053
19054 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19055
19056         Update maintainer documentation for 'relocatable-prog' module.
19057         * doc/relocatable-maint.texi: Update.
19058         Comments by Bruno Haible.
19059
19060 2010-05-23  Bruno Haible  <bruno@clisp.org>
19061
19062         git-merge-changelog: Enable --split-merged-entry by default.
19063         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19064         (usage): Don't mention this option any more.
19065         Reported by Ralf Wildenhues.
19066
19067 2010-05-23  Jim Meyering  <meyering@redhat.com>
19068
19069         test-pwrite: do not leave behind a test file named "out"
19070         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19071         The trivial-looking use of init.sh is really necessary.
19072         It ensures that the temporary file, "out", is created in
19073         a temporary directory, and removed upon termination.
19074         * tests/test-pwrite.sh: Re-add file.
19075         * modules/pwrite-tests: Reference it.
19076
19077 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19078
19079         Fix output redirection buglet in init.sh.
19080         * tests/init.sh: Fix redirection of stderr.
19081
19082 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19083
19084         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19085
19086 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19087
19088         * modules/valgrind-tests: New file.
19089         * m4/valgrind-tests.m4: New file.
19090         * doc/valgrind-tests.texi: New file.
19091         * doc/gnulib.texi (Running self-tests under valgrind): New
19092         section.
19093
19094 2010-05-19  Bruno Haible  <bruno@clisp.org>
19095
19096         Clean up dead code in recent commit.
19097         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19098         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19099         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19100         Suggested by Paolo Bonzini.
19101
19102 2010-05-19  Bruno Haible  <bruno@clisp.org>
19103
19104         Avoid valgrind error reports from libunistring.
19105         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19106         * modules/libunistring (Files): Add it.
19107         * modules/libunistring-optional (Files): Likewise.
19108
19109 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19110             Bruno Haible  <bruno@clisp.org>
19111
19112         New module 'libunistring-optional'.
19113         * modules/libunistring-optional: New file.
19114         * m4/libunistring-base.m4: New file.
19115         * m4/libunistring-optional.m4: New file.
19116         * lib/unicase.in.h: Renamed from lib/unicase.h.
19117         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19118         * lib/unictype.in.h: Renamed from lib/unictype.h.
19119         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19120         * lib/uniname.in.h: Renamed from lib/uniname.h.
19121         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19122         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19123         * lib/unistr.in.h: Renamed from lib/unistr.h.
19124         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19125         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19126         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19127         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19128         gl_LIBUNISTRING. If the library was found, determine the installed
19129         version and set LIBUNISTRING_VERSION.
19130         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19131         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19132         handle a configuration option --with-included-libunistring.
19133         * modules/libunistring (Files): Add m4/absolute-header.m4.
19134         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19135         Add m4/libunistring-base.m4.
19136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19137         (Makefile.am): Build unicase.h from unicase.in.h.
19138         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19139         Add m4/libunistring-base.m4.
19140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19141         (Makefile.am): Build uniconv.h from uniconv.in.h.
19142         * modules/unictype/base (Files): Use unictype.in.h instead of
19143         unictype.h. Add m4/libunistring-base.m4.
19144         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19145         (Makefile.am): Build unictype.h from unictype.in.h.
19146         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19147         Add m4/libunistring-base.m4.
19148         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19149         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19150         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19151         Add m4/libunistring-base.m4.
19152         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19153         (Makefile.am): Build uniname.h from uniname.in.h.
19154         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19155         Add m4/libunistring-base.m4.
19156         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19157         (Makefile.am): Build uninorm.h from uninorm.in.h.
19158         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19159         unistdio.h. Add m4/libunistring-base.m4.
19160         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19161         (Makefile.am): Build unistdio.h from unistdio.in.h.
19162         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19163         Add m4/libunistring-base.m4.
19164         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19165         (Makefile.am): Build unistr.h from unistr.in.h.
19166         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19167         Add m4/libunistring-base.m4.
19168         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19169         (Makefile.am): Build unitypes.h from unitypes.in.h.
19170         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19171         Add m4/libunistring-base.m4.
19172         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19173         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19174         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19175         uniwidth.h. Add m4/libunistring-base.m4.
19176         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19177         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19178         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19179         instead of augmenting lib_SOURCES.
19180         * modules/unicase/empty-suffix-context: Likewise.
19181         * modules/unicase/locale-language: Likewise.
19182         * modules/unicase/tolower: Likewise.
19183         * modules/unicase/totitle: Likewise.
19184         * modules/unicase/toupper: Likewise.
19185         * modules/unicase/u8-casecmp: Likewise.
19186         * modules/unicase/u8-casecoll: Likewise.
19187         * modules/unicase/u8-casefold: Likewise.
19188         * modules/unicase/u8-casexfrm: Likewise.
19189         * modules/unicase/u8-ct-casefold: Likewise.
19190         * modules/unicase/u8-ct-tolower: Likewise.
19191         * modules/unicase/u8-ct-totitle: Likewise.
19192         * modules/unicase/u8-ct-toupper: Likewise.
19193         * modules/unicase/u8-is-cased: Likewise.
19194         * modules/unicase/u8-is-casefolded: Likewise.
19195         * modules/unicase/u8-is-lowercase: Likewise.
19196         * modules/unicase/u8-is-titlecase: Likewise.
19197         * modules/unicase/u8-is-uppercase: Likewise.
19198         * modules/unicase/u8-prefix-context: Likewise.
19199         * modules/unicase/u8-suffix-context: Likewise.
19200         * modules/unicase/u8-tolower: Likewise.
19201         * modules/unicase/u8-totitle: Likewise.
19202         * modules/unicase/u8-toupper: Likewise.
19203         * modules/unicase/u16-casecmp: Likewise.
19204         * modules/unicase/u16-casecoll: Likewise.
19205         * modules/unicase/u16-casefold: Likewise.
19206         * modules/unicase/u16-casexfrm: Likewise.
19207         * modules/unicase/u16-ct-casefold: Likewise.
19208         * modules/unicase/u16-ct-tolower: Likewise.
19209         * modules/unicase/u16-ct-totitle: Likewise.
19210         * modules/unicase/u16-ct-toupper: Likewise.
19211         * modules/unicase/u16-is-cased: Likewise.
19212         * modules/unicase/u16-is-casefolded: Likewise.
19213         * modules/unicase/u16-is-lowercase: Likewise.
19214         * modules/unicase/u16-is-titlecase: Likewise.
19215         * modules/unicase/u16-is-uppercase: Likewise.
19216         * modules/unicase/u16-prefix-context: Likewise.
19217         * modules/unicase/u16-suffix-context: Likewise.
19218         * modules/unicase/u16-tolower: Likewise.
19219         * modules/unicase/u16-totitle: Likewise.
19220         * modules/unicase/u16-toupper: Likewise.
19221         * modules/unicase/u32-casecmp: Likewise.
19222         * modules/unicase/u32-casecoll: Likewise.
19223         * modules/unicase/u32-casefold: Likewise.
19224         * modules/unicase/u32-casexfrm: Likewise.
19225         * modules/unicase/u32-ct-casefold: Likewise.
19226         * modules/unicase/u32-ct-tolower: Likewise.
19227         * modules/unicase/u32-ct-totitle: Likewise.
19228         * modules/unicase/u32-ct-toupper: Likewise.
19229         * modules/unicase/u32-is-cased: Likewise.
19230         * modules/unicase/u32-is-casefolded: Likewise.
19231         * modules/unicase/u32-is-lowercase: Likewise.
19232         * modules/unicase/u32-is-titlecase: Likewise.
19233         * modules/unicase/u32-is-uppercase: Likewise.
19234         * modules/unicase/u32-prefix-context: Likewise.
19235         * modules/unicase/u32-suffix-context: Likewise.
19236         * modules/unicase/u32-tolower: Likewise.
19237         * modules/unicase/u32-totitle: Likewise.
19238         * modules/unicase/u32-toupper: Likewise.
19239         * modules/unicase/ulc-casecmp: Likewise.
19240         * modules/unicase/ulc-casecoll: Likewise.
19241         * modules/unicase/ulc-casexfrm: Likewise.
19242         * modules/uniconv/u8-conv-from-enc: Likewise.
19243         * modules/uniconv/u8-conv-to-enc: Likewise.
19244         * modules/uniconv/u8-strconv-from-enc: Likewise.
19245         * modules/uniconv/u8-strconv-from-locale: Likewise.
19246         * modules/uniconv/u8-strconv-to-enc: Likewise.
19247         * modules/uniconv/u8-strconv-to-locale: Likewise.
19248         * modules/uniconv/u16-conv-from-enc: Likewise.
19249         * modules/uniconv/u16-conv-to-enc: Likewise.
19250         * modules/uniconv/u16-strconv-from-enc: Likewise.
19251         * modules/uniconv/u16-strconv-from-locale: Likewise.
19252         * modules/uniconv/u16-strconv-to-enc: Likewise.
19253         * modules/uniconv/u16-strconv-to-locale: Likewise.
19254         * modules/uniconv/u32-conv-from-enc: Likewise.
19255         * modules/uniconv/u32-conv-to-enc: Likewise.
19256         * modules/uniconv/u32-strconv-from-enc: Likewise.
19257         * modules/uniconv/u32-strconv-from-locale: Likewise.
19258         * modules/uniconv/u32-strconv-to-enc: Likewise.
19259         * modules/uniconv/u32-strconv-to-locale: Likewise.
19260         * modules/unictype/bidicategory-byname: Likewise.
19261         * modules/unictype/bidicategory-name: Likewise.
19262         * modules/unictype/bidicategory-of: Likewise.
19263         * modules/unictype/bidicategory-test: Likewise.
19264         * modules/unictype/block-list: Likewise.
19265         * modules/unictype/block-test: Likewise.
19266         * modules/unictype/category-C: Likewise.
19267         * modules/unictype/category-Cc: Likewise.
19268         * modules/unictype/category-Cf: Likewise.
19269         * modules/unictype/category-Cn: Likewise.
19270         * modules/unictype/category-Co: Likewise.
19271         * modules/unictype/category-Cs: Likewise.
19272         * modules/unictype/category-L: Likewise.
19273         * modules/unictype/category-Ll: Likewise.
19274         * modules/unictype/category-Lm: Likewise.
19275         * modules/unictype/category-Lo: Likewise.
19276         * modules/unictype/category-Lt: Likewise.
19277         * modules/unictype/category-Lu: Likewise.
19278         * modules/unictype/category-M: Likewise.
19279         * modules/unictype/category-Mc: Likewise.
19280         * modules/unictype/category-Me: Likewise.
19281         * modules/unictype/category-Mn: Likewise.
19282         * modules/unictype/category-N: Likewise.
19283         * modules/unictype/category-Nd: Likewise.
19284         * modules/unictype/category-Nl: Likewise.
19285         * modules/unictype/category-No: Likewise.
19286         * modules/unictype/category-P: Likewise.
19287         * modules/unictype/category-Pc: Likewise.
19288         * modules/unictype/category-Pd: Likewise.
19289         * modules/unictype/category-Pe: Likewise.
19290         * modules/unictype/category-Pf: Likewise.
19291         * modules/unictype/category-Pi: Likewise.
19292         * modules/unictype/category-Po: Likewise.
19293         * modules/unictype/category-Ps: Likewise.
19294         * modules/unictype/category-S: Likewise.
19295         * modules/unictype/category-Sc: Likewise.
19296         * modules/unictype/category-Sk: Likewise.
19297         * modules/unictype/category-Sm: Likewise.
19298         * modules/unictype/category-So: Likewise.
19299         * modules/unictype/category-Z: Likewise.
19300         * modules/unictype/category-Zl: Likewise.
19301         * modules/unictype/category-Zp: Likewise.
19302         * modules/unictype/category-Zs: Likewise.
19303         * modules/unictype/category-and: Likewise.
19304         * modules/unictype/category-and-not: Likewise.
19305         * modules/unictype/category-byname: Likewise.
19306         * modules/unictype/category-name: Likewise.
19307         * modules/unictype/category-none: Likewise.
19308         * modules/unictype/category-of: Likewise.
19309         * modules/unictype/category-or: Likewise.
19310         * modules/unictype/category-test: Likewise.
19311         * modules/unictype/combining-class: Likewise.
19312         * modules/unictype/ctype-alnum: Likewise.
19313         * modules/unictype/ctype-alpha: Likewise.
19314         * modules/unictype/ctype-blank: Likewise.
19315         * modules/unictype/ctype-cntrl: Likewise.
19316         * modules/unictype/ctype-digit: Likewise.
19317         * modules/unictype/ctype-graph: Likewise.
19318         * modules/unictype/ctype-lower: Likewise.
19319         * modules/unictype/ctype-print: Likewise.
19320         * modules/unictype/ctype-punct: Likewise.
19321         * modules/unictype/ctype-space: Likewise.
19322         * modules/unictype/ctype-upper: Likewise.
19323         * modules/unictype/ctype-xdigit: Likewise.
19324         * modules/unictype/decimal-digit: Likewise.
19325         * modules/unictype/digit: Likewise.
19326         * modules/unictype/mirror: Likewise.
19327         * modules/unictype/numeric: Likewise.
19328         * modules/unictype/property-alphabetic: Likewise.
19329         * modules/unictype/property-ascii-hex-digit: Likewise.
19330         * modules/unictype/property-bidi-arabic-digit: Likewise.
19331         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19332         * modules/unictype/property-bidi-block-separator: Likewise.
19333         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19334         * modules/unictype/property-bidi-common-separator: Likewise.
19335         * modules/unictype/property-bidi-control: Likewise.
19336         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19337         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19338         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19339         * modules/unictype/property-bidi-european-digit: Likewise.
19340         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19341         * modules/unictype/property-bidi-left-to-right: Likewise.
19342         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19343         * modules/unictype/property-bidi-other-neutral: Likewise.
19344         * modules/unictype/property-bidi-pdf: Likewise.
19345         * modules/unictype/property-bidi-segment-separator: Likewise.
19346         * modules/unictype/property-bidi-whitespace: Likewise.
19347         * modules/unictype/property-byname: Likewise.
19348         * modules/unictype/property-combining: Likewise.
19349         * modules/unictype/property-composite: Likewise.
19350         * modules/unictype/property-currency-symbol: Likewise.
19351         * modules/unictype/property-dash: Likewise.
19352         * modules/unictype/property-decimal-digit: Likewise.
19353         * modules/unictype/property-default-ignorable-code-point: Likewise.
19354         * modules/unictype/property-deprecated: Likewise.
19355         * modules/unictype/property-diacritic: Likewise.
19356         * modules/unictype/property-extender: Likewise.
19357         * modules/unictype/property-format-control: Likewise.
19358         * modules/unictype/property-grapheme-base: Likewise.
19359         * modules/unictype/property-grapheme-extend: Likewise.
19360         * modules/unictype/property-grapheme-link: Likewise.
19361         * modules/unictype/property-hex-digit: Likewise.
19362         * modules/unictype/property-hyphen: Likewise.
19363         * modules/unictype/property-id-continue: Likewise.
19364         * modules/unictype/property-id-start: Likewise.
19365         * modules/unictype/property-ideographic: Likewise.
19366         * modules/unictype/property-ids-binary-operator: Likewise.
19367         * modules/unictype/property-ids-trinary-operator: Likewise.
19368         * modules/unictype/property-ignorable-control: Likewise.
19369         * modules/unictype/property-iso-control: Likewise.
19370         * modules/unictype/property-join-control: Likewise.
19371         * modules/unictype/property-left-of-pair: Likewise.
19372         * modules/unictype/property-line-separator: Likewise.
19373         * modules/unictype/property-logical-order-exception: Likewise.
19374         * modules/unictype/property-lowercase: Likewise.
19375         * modules/unictype/property-math: Likewise.
19376         * modules/unictype/property-non-break: Likewise.
19377         * modules/unictype/property-not-a-character: Likewise.
19378         * modules/unictype/property-numeric: Likewise.
19379         * modules/unictype/property-other-alphabetic: Likewise.
19380         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19381         * modules/unictype/property-other-grapheme-extend: Likewise.
19382         * modules/unictype/property-other-id-continue: Likewise.
19383         * modules/unictype/property-other-id-start: Likewise.
19384         * modules/unictype/property-other-lowercase: Likewise.
19385         * modules/unictype/property-other-math: Likewise.
19386         * modules/unictype/property-other-uppercase: Likewise.
19387         * modules/unictype/property-paired-punctuation: Likewise.
19388         * modules/unictype/property-paragraph-separator: Likewise.
19389         * modules/unictype/property-pattern-syntax: Likewise.
19390         * modules/unictype/property-pattern-white-space: Likewise.
19391         * modules/unictype/property-private-use: Likewise.
19392         * modules/unictype/property-punctuation: Likewise.
19393         * modules/unictype/property-quotation-mark: Likewise.
19394         * modules/unictype/property-radical: Likewise.
19395         * modules/unictype/property-sentence-terminal: Likewise.
19396         * modules/unictype/property-soft-dotted: Likewise.
19397         * modules/unictype/property-space: Likewise.
19398         * modules/unictype/property-terminal-punctuation: Likewise.
19399         * modules/unictype/property-test: Likewise.
19400         * modules/unictype/property-titlecase: Likewise.
19401         * modules/unictype/property-unassigned-code-value: Likewise.
19402         * modules/unictype/property-unified-ideograph: Likewise.
19403         * modules/unictype/property-uppercase: Likewise.
19404         * modules/unictype/property-variation-selector: Likewise.
19405         * modules/unictype/property-white-space: Likewise.
19406         * modules/unictype/property-xid-continue: Likewise.
19407         * modules/unictype/property-xid-start: Likewise.
19408         * modules/unictype/property-zero-width: Likewise.
19409         * modules/unictype/scripts: Likewise.
19410         * modules/unictype/syntax-c-ident: Likewise.
19411         * modules/unictype/syntax-c-whitespace: Likewise.
19412         * modules/unictype/syntax-java-ident: Likewise.
19413         * modules/unictype/syntax-java-whitespace: Likewise.
19414         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19415         * modules/unilbrk/u8-width-linebreaks: Likewise.
19416         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19417         * modules/unilbrk/u16-width-linebreaks: Likewise.
19418         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19419         * modules/unilbrk/u32-width-linebreaks: Likewise.
19420         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19421         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19422         * modules/uniname/uniname: Likewise.
19423         * modules/uninorm/canonical-decomposition: Likewise.
19424         * modules/uninorm/composition: Likewise.
19425         * modules/uninorm/decomposing-form: Likewise.
19426         * modules/uninorm/decomposition: Likewise.
19427         * modules/uninorm/filter: Likewise.
19428         * modules/uninorm/nfc: Likewise.
19429         * modules/uninorm/nfd: Likewise.
19430         * modules/uninorm/nfkc: Likewise.
19431         * modules/uninorm/nfkd: Likewise.
19432         * modules/uninorm/u8-normalize: Likewise.
19433         * modules/uninorm/u8-normcmp: Likewise.
19434         * modules/uninorm/u8-normcoll: Likewise.
19435         * modules/uninorm/u8-normxfrm: Likewise.
19436         * modules/uninorm/u16-normalize: Likewise.
19437         * modules/uninorm/u16-normcmp: Likewise.
19438         * modules/uninorm/u16-normcoll: Likewise.
19439         * modules/uninorm/u16-normxfrm: Likewise.
19440         * modules/uninorm/u32-normalize: Likewise.
19441         * modules/uninorm/u32-normcmp: Likewise.
19442         * modules/uninorm/u32-normcoll: Likewise.
19443         * modules/uninorm/u32-normxfrm: Likewise.
19444         * modules/unistdio/u8-asnprintf: Likewise.
19445         * modules/unistdio/u8-asprintf: Likewise.
19446         * modules/unistdio/u8-snprintf: Likewise.
19447         * modules/unistdio/u8-sprintf: Likewise.
19448         * modules/unistdio/u8-u8-asnprintf: Likewise.
19449         * modules/unistdio/u8-u8-asprintf: Likewise.
19450         * modules/unistdio/u8-u8-snprintf: Likewise.
19451         * modules/unistdio/u8-u8-sprintf: Likewise.
19452         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19453         * modules/unistdio/u8-u8-vasprintf: Likewise.
19454         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19455         * modules/unistdio/u8-u8-vsprintf: Likewise.
19456         * modules/unistdio/u8-vasnprintf: Likewise.
19457         * modules/unistdio/u8-vasprintf: Likewise.
19458         * modules/unistdio/u8-vsnprintf: Likewise.
19459         * modules/unistdio/u8-vsprintf: Likewise.
19460         * modules/unistdio/u16-asnprintf: Likewise.
19461         * modules/unistdio/u16-asprintf: Likewise.
19462         * modules/unistdio/u16-snprintf: Likewise.
19463         * modules/unistdio/u16-sprintf: Likewise.
19464         * modules/unistdio/u16-u16-asnprintf: Likewise.
19465         * modules/unistdio/u16-u16-asprintf: Likewise.
19466         * modules/unistdio/u16-u16-snprintf: Likewise.
19467         * modules/unistdio/u16-u16-sprintf: Likewise.
19468         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19469         * modules/unistdio/u16-u16-vasprintf: Likewise.
19470         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19471         * modules/unistdio/u16-u16-vsprintf: Likewise.
19472         * modules/unistdio/u16-vasnprintf: Likewise.
19473         * modules/unistdio/u16-vasprintf: Likewise.
19474         * modules/unistdio/u16-vsnprintf: Likewise.
19475         * modules/unistdio/u16-vsprintf: Likewise.
19476         * modules/unistdio/u32-asnprintf: Likewise.
19477         * modules/unistdio/u32-asprintf: Likewise.
19478         * modules/unistdio/u32-snprintf: Likewise.
19479         * modules/unistdio/u32-sprintf: Likewise.
19480         * modules/unistdio/u32-u32-asnprintf: Likewise.
19481         * modules/unistdio/u32-u32-asprintf: Likewise.
19482         * modules/unistdio/u32-u32-snprintf: Likewise.
19483         * modules/unistdio/u32-u32-sprintf: Likewise.
19484         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19485         * modules/unistdio/u32-u32-vasprintf: Likewise.
19486         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19487         * modules/unistdio/u32-u32-vsprintf: Likewise.
19488         * modules/unistdio/u32-vasnprintf: Likewise.
19489         * modules/unistdio/u32-vasprintf: Likewise.
19490         * modules/unistdio/u32-vsnprintf: Likewise.
19491         * modules/unistdio/u32-vsprintf: Likewise.
19492         * modules/unistdio/ulc-asnprintf: Likewise.
19493         * modules/unistdio/ulc-asprintf: Likewise.
19494         * modules/unistdio/ulc-fprintf: Likewise.
19495         * modules/unistdio/ulc-snprintf: Likewise.
19496         * modules/unistdio/ulc-sprintf: Likewise.
19497         * modules/unistdio/ulc-vasnprintf: Likewise.
19498         * modules/unistdio/ulc-vasprintf: Likewise.
19499         * modules/unistdio/ulc-vfprintf: Likewise.
19500         * modules/unistdio/ulc-vsnprintf: Likewise.
19501         * modules/unistdio/ulc-vsprintf: Likewise.
19502         * modules/unistr/u8-check: Likewise.
19503         * modules/unistr/u8-chr: Likewise.
19504         * modules/unistr/u8-cmp: Likewise.
19505         * modules/unistr/u8-cmp2: Likewise.
19506         * modules/unistr/u8-cpy: Likewise.
19507         * modules/unistr/u8-cpy-alloc: Likewise.
19508         * modules/unistr/u8-endswith: Likewise.
19509         * modules/unistr/u8-mblen: Likewise.
19510         * modules/unistr/u8-mbsnlen: Likewise.
19511         * modules/unistr/u8-mbtouc: Likewise.
19512         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19513         * modules/unistr/u8-mbtoucr: Likewise.
19514         * modules/unistr/u8-move: Likewise.
19515         * modules/unistr/u8-next: Likewise.
19516         * modules/unistr/u8-prev: Likewise.
19517         * modules/unistr/u8-set: Likewise.
19518         * modules/unistr/u8-startswith: Likewise.
19519         * modules/unistr/u8-stpcpy: Likewise.
19520         * modules/unistr/u8-stpncpy: Likewise.
19521         * modules/unistr/u8-strcat: Likewise.
19522         * modules/unistr/u8-strchr: Likewise.
19523         * modules/unistr/u8-strcmp: Likewise.
19524         * modules/unistr/u8-strcoll: Likewise.
19525         * modules/unistr/u8-strcpy: Likewise.
19526         * modules/unistr/u8-strcspn: Likewise.
19527         * modules/unistr/u8-strdup: Likewise.
19528         * modules/unistr/u8-strlen: Likewise.
19529         * modules/unistr/u8-strmblen: Likewise.
19530         * modules/unistr/u8-strmbtouc: Likewise.
19531         * modules/unistr/u8-strncat: Likewise.
19532         * modules/unistr/u8-strncmp: Likewise.
19533         * modules/unistr/u8-strncpy: Likewise.
19534         * modules/unistr/u8-strnlen: Likewise.
19535         * modules/unistr/u8-strpbrk: Likewise.
19536         * modules/unistr/u8-strrchr: Likewise.
19537         * modules/unistr/u8-strspn: Likewise.
19538         * modules/unistr/u8-strstr: Likewise.
19539         * modules/unistr/u8-strtok: Likewise.
19540         * modules/unistr/u8-to-u16: Likewise.
19541         * modules/unistr/u8-to-u32: Likewise.
19542         * modules/unistr/u8-uctomb: Likewise.
19543         * modules/unistr/u16-check: Likewise.
19544         * modules/unistr/u16-chr: Likewise.
19545         * modules/unistr/u16-cmp: Likewise.
19546         * modules/unistr/u16-cmp2: Likewise.
19547         * modules/unistr/u16-cpy: Likewise.
19548         * modules/unistr/u16-cpy-alloc: Likewise.
19549         * modules/unistr/u16-endswith: Likewise.
19550         * modules/unistr/u16-mblen: Likewise.
19551         * modules/unistr/u16-mbsnlen: Likewise.
19552         * modules/unistr/u16-mbtouc: Likewise.
19553         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19554         * modules/unistr/u16-mbtoucr: Likewise.
19555         * modules/unistr/u16-move: Likewise.
19556         * modules/unistr/u16-next: Likewise.
19557         * modules/unistr/u16-prev: Likewise.
19558         * modules/unistr/u16-set: Likewise.
19559         * modules/unistr/u16-startswith: Likewise.
19560         * modules/unistr/u16-stpcpy: Likewise.
19561         * modules/unistr/u16-stpncpy: Likewise.
19562         * modules/unistr/u16-strcat: Likewise.
19563         * modules/unistr/u16-strchr: Likewise.
19564         * modules/unistr/u16-strcmp: Likewise.
19565         * modules/unistr/u16-strcoll: Likewise.
19566         * modules/unistr/u16-strcpy: Likewise.
19567         * modules/unistr/u16-strcspn: Likewise.
19568         * modules/unistr/u16-strdup: Likewise.
19569         * modules/unistr/u16-strlen: Likewise.
19570         * modules/unistr/u16-strmblen: Likewise.
19571         * modules/unistr/u16-strmbtouc: Likewise.
19572         * modules/unistr/u16-strncat: Likewise.
19573         * modules/unistr/u16-strncmp: Likewise.
19574         * modules/unistr/u16-strncpy: Likewise.
19575         * modules/unistr/u16-strnlen: Likewise.
19576         * modules/unistr/u16-strpbrk: Likewise.
19577         * modules/unistr/u16-strrchr: Likewise.
19578         * modules/unistr/u16-strspn: Likewise.
19579         * modules/unistr/u16-strstr: Likewise.
19580         * modules/unistr/u16-strtok: Likewise.
19581         * modules/unistr/u16-to-u32: Likewise.
19582         * modules/unistr/u16-to-u8: Likewise.
19583         * modules/unistr/u16-uctomb: Likewise.
19584         * modules/unistr/u32-check: Likewise.
19585         * modules/unistr/u32-chr: Likewise.
19586         * modules/unistr/u32-cmp: Likewise.
19587         * modules/unistr/u32-cmp2: Likewise.
19588         * modules/unistr/u32-cpy: Likewise.
19589         * modules/unistr/u32-cpy-alloc: Likewise.
19590         * modules/unistr/u32-endswith: Likewise.
19591         * modules/unistr/u32-mblen: Likewise.
19592         * modules/unistr/u32-mbsnlen: Likewise.
19593         * modules/unistr/u32-mbtouc: Likewise.
19594         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19595         * modules/unistr/u32-mbtoucr: Likewise.
19596         * modules/unistr/u32-move: Likewise.
19597         * modules/unistr/u32-next: Likewise.
19598         * modules/unistr/u32-prev: Likewise.
19599         * modules/unistr/u32-set: Likewise.
19600         * modules/unistr/u32-startswith: Likewise.
19601         * modules/unistr/u32-stpcpy: Likewise.
19602         * modules/unistr/u32-stpncpy: Likewise.
19603         * modules/unistr/u32-strcat: Likewise.
19604         * modules/unistr/u32-strchr: Likewise.
19605         * modules/unistr/u32-strcmp: Likewise.
19606         * modules/unistr/u32-strcoll: Likewise.
19607         * modules/unistr/u32-strcpy: Likewise.
19608         * modules/unistr/u32-strcspn: Likewise.
19609         * modules/unistr/u32-strdup: Likewise.
19610         * modules/unistr/u32-strlen: Likewise.
19611         * modules/unistr/u32-strmblen: Likewise.
19612         * modules/unistr/u32-strmbtouc: Likewise.
19613         * modules/unistr/u32-strncat: Likewise.
19614         * modules/unistr/u32-strncmp: Likewise.
19615         * modules/unistr/u32-strncpy: Likewise.
19616         * modules/unistr/u32-strnlen: Likewise.
19617         * modules/unistr/u32-strpbrk: Likewise.
19618         * modules/unistr/u32-strrchr: Likewise.
19619         * modules/unistr/u32-strspn: Likewise.
19620         * modules/unistr/u32-strstr: Likewise.
19621         * modules/unistr/u32-strtok: Likewise.
19622         * modules/unistr/u32-to-u16: Likewise.
19623         * modules/unistr/u32-to-u8: Likewise.
19624         * modules/unistr/u32-uctomb: Likewise.
19625         * modules/uniwbrk/u8-wordbreaks: Likewise.
19626         * modules/uniwbrk/u16-wordbreaks: Likewise.
19627         * modules/uniwbrk/u32-wordbreaks: Likewise.
19628         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19629         * modules/uniwbrk/wordbreak-property: Likewise.
19630         * modules/uniwidth/u8-strwidth: Likewise.
19631         * modules/uniwidth/u8-width: Likewise.
19632         * modules/uniwidth/u16-strwidth: Likewise.
19633         * modules/uniwidth/u16-width: Likewise.
19634         * modules/uniwidth/u32-strwidth: Likewise.
19635         * modules/uniwidth/u32-width: Likewise.
19636         * modules/uniwidth/width: Likewise.
19637         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19638         with $(LIBUNISTRING).
19639         * modules/unicase/ignorable-tests: Likewise.
19640         * modules/unicase/locale-language-tests: Likewise.
19641         * modules/unicase/tolower-tests: Likewise.
19642         * modules/unicase/totitle-tests: Likewise.
19643         * modules/unicase/toupper-tests: Likewise.
19644         * modules/unicase/u8-casecmp-tests: Likewise.
19645         * modules/unicase/u8-casecoll-tests: Likewise.
19646         * modules/unicase/u8-casefold-tests: Likewise.
19647         * modules/unicase/u8-is-cased-tests: Likewise.
19648         * modules/unicase/u8-is-casefolded-tests: Likewise.
19649         * modules/unicase/u8-is-lowercase-tests: Likewise.
19650         * modules/unicase/u8-is-titlecase-tests: Likewise.
19651         * modules/unicase/u8-is-uppercase-tests: Likewise.
19652         * modules/unicase/u8-tolower-tests: Likewise.
19653         * modules/unicase/u8-totitle-tests: Likewise.
19654         * modules/unicase/u8-toupper-tests: Likewise.
19655         * modules/unicase/u16-casecmp-tests: Likewise.
19656         * modules/unicase/u16-casecoll-tests: Likewise.
19657         * modules/unicase/u16-casefold-tests: Likewise.
19658         * modules/unicase/u16-is-cased-tests: Likewise.
19659         * modules/unicase/u16-is-casefolded-tests: Likewise.
19660         * modules/unicase/u16-is-lowercase-tests: Likewise.
19661         * modules/unicase/u16-is-titlecase-tests: Likewise.
19662         * modules/unicase/u16-is-uppercase-tests: Likewise.
19663         * modules/unicase/u16-tolower-tests: Likewise.
19664         * modules/unicase/u16-totitle-tests: Likewise.
19665         * modules/unicase/u16-toupper-tests: Likewise.
19666         * modules/unicase/u32-casecmp-tests: Likewise.
19667         * modules/unicase/u32-casecoll-tests: Likewise.
19668         * modules/unicase/u32-casefold-tests: Likewise.
19669         * modules/unicase/u32-is-cased-tests: Likewise.
19670         * modules/unicase/u32-is-casefolded-tests: Likewise.
19671         * modules/unicase/u32-is-lowercase-tests: Likewise.
19672         * modules/unicase/u32-is-titlecase-tests: Likewise.
19673         * modules/unicase/u32-is-uppercase-tests: Likewise.
19674         * modules/unicase/u32-tolower-tests: Likewise.
19675         * modules/unicase/u32-totitle-tests: Likewise.
19676         * modules/unicase/u32-toupper-tests: Likewise.
19677         * modules/unicase/ulc-casecmp-tests: Likewise.
19678         * modules/unicase/ulc-casecoll-tests: Likewise.
19679         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19680         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19681         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19682         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19683         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19684         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19685         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19686         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19687         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19688         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19689         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19690         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19691         * modules/unictype/bidicategory-byname-tests: Likewise.
19692         * modules/unictype/bidicategory-name-tests: Likewise.
19693         * modules/unictype/bidicategory-of-tests: Likewise.
19694         * modules/unictype/bidicategory-test-tests: Likewise.
19695         * modules/unictype/block-list-tests: Likewise.
19696         * modules/unictype/block-of-tests: Likewise.
19697         * modules/unictype/block-test-tests: Likewise.
19698         * modules/unictype/category-C-tests: Likewise.
19699         * modules/unictype/category-Cc-tests: Likewise.
19700         * modules/unictype/category-Cf-tests: Likewise.
19701         * modules/unictype/category-Cn-tests: Likewise.
19702         * modules/unictype/category-Co-tests: Likewise.
19703         * modules/unictype/category-Cs-tests: Likewise.
19704         * modules/unictype/category-L-tests: Likewise.
19705         * modules/unictype/category-Ll-tests: Likewise.
19706         * modules/unictype/category-Lm-tests: Likewise.
19707         * modules/unictype/category-Lo-tests: Likewise.
19708         * modules/unictype/category-Lt-tests: Likewise.
19709         * modules/unictype/category-Lu-tests: Likewise.
19710         * modules/unictype/category-M-tests: Likewise.
19711         * modules/unictype/category-Mc-tests: Likewise.
19712         * modules/unictype/category-Me-tests: Likewise.
19713         * modules/unictype/category-Mn-tests: Likewise.
19714         * modules/unictype/category-N-tests: Likewise.
19715         * modules/unictype/category-Nd-tests: Likewise.
19716         * modules/unictype/category-Nl-tests: Likewise.
19717         * modules/unictype/category-No-tests: Likewise.
19718         * modules/unictype/category-P-tests: Likewise.
19719         * modules/unictype/category-Pc-tests: Likewise.
19720         * modules/unictype/category-Pd-tests: Likewise.
19721         * modules/unictype/category-Pe-tests: Likewise.
19722         * modules/unictype/category-Pf-tests: Likewise.
19723         * modules/unictype/category-Pi-tests: Likewise.
19724         * modules/unictype/category-Po-tests: Likewise.
19725         * modules/unictype/category-Ps-tests: Likewise.
19726         * modules/unictype/category-S-tests: Likewise.
19727         * modules/unictype/category-Sc-tests: Likewise.
19728         * modules/unictype/category-Sk-tests: Likewise.
19729         * modules/unictype/category-Sm-tests: Likewise.
19730         * modules/unictype/category-So-tests: Likewise.
19731         * modules/unictype/category-Z-tests: Likewise.
19732         * modules/unictype/category-Zl-tests: Likewise.
19733         * modules/unictype/category-Zp-tests: Likewise.
19734         * modules/unictype/category-Zs-tests: Likewise.
19735         * modules/unictype/category-and-not-tests: Likewise.
19736         * modules/unictype/category-and-tests: Likewise.
19737         * modules/unictype/category-byname-tests: Likewise.
19738         * modules/unictype/category-name-tests: Likewise.
19739         * modules/unictype/category-none-tests: Likewise.
19740         * modules/unictype/category-of-tests: Likewise.
19741         * modules/unictype/category-or-tests: Likewise.
19742         * modules/unictype/category-test-withtable-tests: Likewise.
19743         * modules/unictype/combining-class-tests: Likewise.
19744         * modules/unictype/ctype-alnum-tests: Likewise.
19745         * modules/unictype/ctype-alpha-tests: Likewise.
19746         * modules/unictype/ctype-blank-tests: Likewise.
19747         * modules/unictype/ctype-cntrl-tests: Likewise.
19748         * modules/unictype/ctype-digit-tests: Likewise.
19749         * modules/unictype/ctype-graph-tests: Likewise.
19750         * modules/unictype/ctype-lower-tests: Likewise.
19751         * modules/unictype/ctype-print-tests: Likewise.
19752         * modules/unictype/ctype-punct-tests: Likewise.
19753         * modules/unictype/ctype-space-tests: Likewise.
19754         * modules/unictype/ctype-upper-tests: Likewise.
19755         * modules/unictype/ctype-xdigit-tests: Likewise.
19756         * modules/unictype/decimal-digit-tests: Likewise.
19757         * modules/unictype/digit-tests: Likewise.
19758         * modules/unictype/mirror-tests: Likewise.
19759         * modules/unictype/numeric-tests: Likewise.
19760         * modules/unictype/property-alphabetic-tests: Likewise.
19761         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19762         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19763         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19764         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19765         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19766         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19767         * modules/unictype/property-bidi-control-tests: Likewise.
19768         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19769         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19770         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19771         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19772         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19773         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19774         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19775         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19776         * modules/unictype/property-bidi-pdf-tests: Likewise.
19777         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19778         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19779         * modules/unictype/property-byname-tests: Likewise.
19780         * modules/unictype/property-combining-tests: Likewise.
19781         * modules/unictype/property-composite-tests: Likewise.
19782         * modules/unictype/property-currency-symbol-tests: Likewise.
19783         * modules/unictype/property-dash-tests: Likewise.
19784         * modules/unictype/property-decimal-digit-tests: Likewise.
19785         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19786         * modules/unictype/property-deprecated-tests: Likewise.
19787         * modules/unictype/property-diacritic-tests: Likewise.
19788         * modules/unictype/property-extender-tests: Likewise.
19789         * modules/unictype/property-format-control-tests: Likewise.
19790         * modules/unictype/property-grapheme-base-tests: Likewise.
19791         * modules/unictype/property-grapheme-extend-tests: Likewise.
19792         * modules/unictype/property-grapheme-link-tests: Likewise.
19793         * modules/unictype/property-hex-digit-tests: Likewise.
19794         * modules/unictype/property-hyphen-tests: Likewise.
19795         * modules/unictype/property-id-continue-tests: Likewise.
19796         * modules/unictype/property-id-start-tests: Likewise.
19797         * modules/unictype/property-ideographic-tests: Likewise.
19798         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19799         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19800         * modules/unictype/property-ignorable-control-tests: Likewise.
19801         * modules/unictype/property-iso-control-tests: Likewise.
19802         * modules/unictype/property-join-control-tests: Likewise.
19803         * modules/unictype/property-left-of-pair-tests: Likewise.
19804         * modules/unictype/property-line-separator-tests: Likewise.
19805         * modules/unictype/property-logical-order-exception-tests: Likewise.
19806         * modules/unictype/property-lowercase-tests: Likewise.
19807         * modules/unictype/property-math-tests: Likewise.
19808         * modules/unictype/property-non-break-tests: Likewise.
19809         * modules/unictype/property-not-a-character-tests: Likewise.
19810         * modules/unictype/property-numeric-tests: Likewise.
19811         * modules/unictype/property-other-alphabetic-tests: Likewise.
19812         * modules/unictype/property-other-default-ignorable-code-point-tests:
19813         Likewise.
19814         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19815         * modules/unictype/property-other-id-continue-tests: Likewise.
19816         * modules/unictype/property-other-id-start-tests: Likewise.
19817         * modules/unictype/property-other-lowercase-tests: Likewise.
19818         * modules/unictype/property-other-math-tests: Likewise.
19819         * modules/unictype/property-other-uppercase-tests: Likewise.
19820         * modules/unictype/property-paired-punctuation-tests: Likewise.
19821         * modules/unictype/property-paragraph-separator-tests: Likewise.
19822         * modules/unictype/property-pattern-syntax-tests: Likewise.
19823         * modules/unictype/property-pattern-white-space-tests: Likewise.
19824         * modules/unictype/property-private-use-tests: Likewise.
19825         * modules/unictype/property-punctuation-tests: Likewise.
19826         * modules/unictype/property-quotation-mark-tests: Likewise.
19827         * modules/unictype/property-radical-tests: Likewise.
19828         * modules/unictype/property-sentence-terminal-tests: Likewise.
19829         * modules/unictype/property-soft-dotted-tests: Likewise.
19830         * modules/unictype/property-space-tests: Likewise.
19831         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19832         * modules/unictype/property-test-tests: Likewise.
19833         * modules/unictype/property-titlecase-tests: Likewise.
19834         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19835         * modules/unictype/property-unified-ideograph-tests: Likewise.
19836         * modules/unictype/property-uppercase-tests: Likewise.
19837         * modules/unictype/property-variation-selector-tests: Likewise.
19838         * modules/unictype/property-white-space-tests: Likewise.
19839         * modules/unictype/property-xid-continue-tests: Likewise.
19840         * modules/unictype/property-xid-start-tests: Likewise.
19841         * modules/unictype/property-zero-width-tests: Likewise.
19842         * modules/unictype/scripts-tests: Likewise.
19843         * modules/unictype/syntax-c-ident-tests: Likewise.
19844         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19845         * modules/unictype/syntax-java-ident-tests: Likewise.
19846         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19847         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19848         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19849         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19850         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19851         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19852         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19853         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19854         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19855         * modules/uniname/uniname-tests: Likewise.
19856         * modules/uninorm/canonical-decomposition-tests: Likewise.
19857         * modules/uninorm/compat-decomposition-tests: Likewise.
19858         * modules/uninorm/composition-tests: Likewise.
19859         * modules/uninorm/decomposing-form-tests: Likewise.
19860         * modules/uninorm/decomposition-tests: Likewise.
19861         * modules/uninorm/filter-tests: Likewise.
19862         * modules/uninorm/nfc-tests: Likewise.
19863         * modules/uninorm/nfd-tests: Likewise.
19864         * modules/uninorm/nfkc-tests: Likewise.
19865         * modules/uninorm/nfkd-tests: Likewise.
19866         * modules/uninorm/u8-normcmp-tests: Likewise.
19867         * modules/uninorm/u8-normcoll-tests: Likewise.
19868         * modules/uninorm/u16-normcmp-tests: Likewise.
19869         * modules/uninorm/u16-normcoll-tests: Likewise.
19870         * modules/uninorm/u32-normcmp-tests: Likewise.
19871         * modules/uninorm/u32-normcoll-tests: Likewise.
19872         * modules/unistdio/u8-asnprintf-tests: Likewise.
19873         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19874         * modules/unistdio/u8-vasprintf-tests: Likewise.
19875         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19876         * modules/unistdio/u8-vsprintf-tests: Likewise.
19877         * modules/unistdio/u16-asnprintf-tests: Likewise.
19878         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19879         * modules/unistdio/u16-vasprintf-tests: Likewise.
19880         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19881         * modules/unistdio/u16-vsprintf-tests: Likewise.
19882         * modules/unistdio/u32-asnprintf-tests: Likewise.
19883         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19884         * modules/unistdio/u32-vasprintf-tests: Likewise.
19885         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19886         * modules/unistdio/u32-vsprintf-tests: Likewise.
19887         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19888         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19889         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19890         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19891         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19892         * modules/unistr/u8-check-tests: Likewise.
19893         * modules/unistr/u8-chr-tests: Likewise.
19894         * modules/unistr/u8-cmp-tests: Likewise.
19895         * modules/unistr/u8-cmp2-tests: Likewise.
19896         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19897         * modules/unistr/u8-cpy-tests: Likewise.
19898         * modules/unistr/u8-mblen-tests: Likewise.
19899         * modules/unistr/u8-mbsnlen-tests: Likewise.
19900         * modules/unistr/u8-mbtouc-tests: Likewise.
19901         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19902         * modules/unistr/u8-mbtoucr-tests: Likewise.
19903         * modules/unistr/u8-move-tests: Likewise.
19904         * modules/unistr/u8-next-tests: Likewise.
19905         * modules/unistr/u8-prev-tests: Likewise.
19906         * modules/unistr/u8-set-tests: Likewise.
19907         * modules/unistr/u8-stpcpy-tests: Likewise.
19908         * modules/unistr/u8-stpncpy-tests: Likewise.
19909         * modules/unistr/u8-strcat-tests: Likewise.
19910         * modules/unistr/u8-strcmp-tests: Likewise.
19911         * modules/unistr/u8-strcoll-tests: Likewise.
19912         * modules/unistr/u8-strcpy-tests: Likewise.
19913         * modules/unistr/u8-strdup-tests: Likewise.
19914         * modules/unistr/u8-strlen-tests: Likewise.
19915         * modules/unistr/u8-strmblen-tests: Likewise.
19916         * modules/unistr/u8-strmbtouc-tests: Likewise.
19917         * modules/unistr/u8-strncat-tests: Likewise.
19918         * modules/unistr/u8-strncmp-tests: Likewise.
19919         * modules/unistr/u8-strncpy-tests: Likewise.
19920         * modules/unistr/u8-strnlen-tests: Likewise.
19921         * modules/unistr/u8-to-u16-tests: Likewise.
19922         * modules/unistr/u8-to-u32-tests: Likewise.
19923         * modules/unistr/u8-uctomb-tests: Likewise.
19924         * modules/unistr/u16-check-tests: Likewise.
19925         * modules/unistr/u16-chr-tests: Likewise.
19926         * modules/unistr/u16-cmp-tests: Likewise.
19927         * modules/unistr/u16-cmp2-tests: Likewise.
19928         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19929         * modules/unistr/u16-cpy-tests: Likewise.
19930         * modules/unistr/u16-mblen-tests: Likewise.
19931         * modules/unistr/u16-mbsnlen-tests: Likewise.
19932         * modules/unistr/u16-mbtouc-tests: Likewise.
19933         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19934         * modules/unistr/u16-mbtoucr-tests: Likewise.
19935         * modules/unistr/u16-move-tests: Likewise.
19936         * modules/unistr/u16-next-tests: Likewise.
19937         * modules/unistr/u16-prev-tests: Likewise.
19938         * modules/unistr/u16-set-tests: Likewise.
19939         * modules/unistr/u16-stpcpy-tests: Likewise.
19940         * modules/unistr/u16-stpncpy-tests: Likewise.
19941         * modules/unistr/u16-strcat-tests: Likewise.
19942         * modules/unistr/u16-strcmp-tests: Likewise.
19943         * modules/unistr/u16-strcoll-tests: Likewise.
19944         * modules/unistr/u16-strcpy-tests: Likewise.
19945         * modules/unistr/u16-strdup-tests: Likewise.
19946         * modules/unistr/u16-strlen-tests: Likewise.
19947         * modules/unistr/u16-strmblen-tests: Likewise.
19948         * modules/unistr/u16-strmbtouc-tests: Likewise.
19949         * modules/unistr/u16-strncat-tests: Likewise.
19950         * modules/unistr/u16-strncmp-tests: Likewise.
19951         * modules/unistr/u16-strncpy-tests: Likewise.
19952         * modules/unistr/u16-strnlen-tests: Likewise.
19953         * modules/unistr/u16-to-u32-tests: Likewise.
19954         * modules/unistr/u16-to-u8-tests: Likewise.
19955         * modules/unistr/u16-uctomb-tests: Likewise.
19956         * modules/unistr/u32-check-tests: Likewise.
19957         * modules/unistr/u32-chr-tests: Likewise.
19958         * modules/unistr/u32-cmp-tests: Likewise.
19959         * modules/unistr/u32-cmp2-tests: Likewise.
19960         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19961         * modules/unistr/u32-cpy-tests: Likewise.
19962         * modules/unistr/u32-mblen-tests: Likewise.
19963         * modules/unistr/u32-mbsnlen-tests: Likewise.
19964         * modules/unistr/u32-mbtouc-tests: Likewise.
19965         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19966         * modules/unistr/u32-mbtoucr-tests: Likewise.
19967         * modules/unistr/u32-move-tests: Likewise.
19968         * modules/unistr/u32-next-tests: Likewise.
19969         * modules/unistr/u32-prev-tests: Likewise.
19970         * modules/unistr/u32-set-tests: Likewise.
19971         * modules/unistr/u32-stpcpy-tests: Likewise.
19972         * modules/unistr/u32-stpncpy-tests: Likewise.
19973         * modules/unistr/u32-strcat-tests: Likewise.
19974         * modules/unistr/u32-strcmp-tests: Likewise.
19975         * modules/unistr/u32-strcoll-tests: Likewise.
19976         * modules/unistr/u32-strcpy-tests: Likewise.
19977         * modules/unistr/u32-strdup-tests: Likewise.
19978         * modules/unistr/u32-strlen-tests: Likewise.
19979         * modules/unistr/u32-strmblen-tests: Likewise.
19980         * modules/unistr/u32-strmbtouc-tests: Likewise.
19981         * modules/unistr/u32-strncat-tests: Likewise.
19982         * modules/unistr/u32-strncmp-tests: Likewise.
19983         * modules/unistr/u32-strncpy-tests: Likewise.
19984         * modules/unistr/u32-strnlen-tests: Likewise.
19985         * modules/unistr/u32-to-u16-tests: Likewise.
19986         * modules/unistr/u32-to-u8-tests: Likewise.
19987         * modules/unistr/u32-uctomb-tests: Likewise.
19988         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19989         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19990         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19991         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19992         * modules/uniwidth/u8-strwidth-tests: Likewise.
19993         * modules/uniwidth/u8-width-tests: Likewise.
19994         * modules/uniwidth/u16-strwidth-tests: Likewise.
19995         * modules/uniwidth/u16-width-tests: Likewise.
19996         * modules/uniwidth/u32-strwidth-tests: Likewise.
19997         * modules/uniwidth/u32-width-tests: Likewise.
19998         * modules/uniwidth/width-tests: Likewise.
19999
20000 2010-05-18  Richard Jones  <rjones@redhat.com>
20001
20002         doc: users.txt: list hivex
20003         * users.txt: Add hivex.
20004
20005 2010-05-18  Richard Jones  <rjones@redhat.com>
20006
20007         doc: users.txt: list febootstrap
20008         * users.txt: Add febootstrap.
20009
20010 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20011
20012         bootstrap: fix an error when gnulib is not used as a git submodule
20013         * build-aux/bootstrap (gnulib_path): If its length is zero then
20014         assign "gnulib" to it.
20015         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20016
20017 2010-05-16  Bruno Haible  <bruno@clisp.org>
20018
20019         Avoid autoconf warnings about AM_ICONV.
20020         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20021         2.64.
20022
20023 2010-05-16  Bruno Haible  <bruno@clisp.org>
20024
20025         absolute-header: Make the macro usable in more situations.
20026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20027         from gl_ABSOLUTE_HEADER.
20028         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20029
20030 2010-05-16  James Youngman  <jay@gnu.org>
20031
20032         doc: update users.txt
20033         * users.txt: Add CSSC.
20034
20035 2010-05-16  Jim Meyering  <meyering@redhat.com>
20036
20037         init.sh: fix an error in the previous change; add more comments
20038         * tests/init.sh: Compare exit code in loop against 9, not 2.
20039         Patch by Bruno Haible.
20040         Make the two tests more similar by adding an empty "then" clause.
20041         Add comments.
20042
20043         init.sh: avoid unnecessary shell re-exec
20044         * tests/init.sh: Improve the re-exec-required check to first test the
20045         current shell.  If it passes the test, do not search for a shell that
20046         does pass, and do not re-exec.  This test is particularly contorted to
20047         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20048         of $(...) evokes a syntax error and causes immediate shell exit with
20049         status 2.  Bruno Haible reported that the re-exec made it impossible
20050         to single-step through any init.sh-using script.
20051
20052 2010-05-16  Bruno Haible  <bruno@clisp.org>
20053
20054         Fix collision between gnulib's and libintl's printf replacements.
20055         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20056         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20057         (printf): When using GNU C, map the __printf__ function to rpl_printf
20058         via __asm__. When not using GNU C, define rpl_printf instead of
20059         __printf__.
20060         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20061         commit.
20062         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20063         commit.
20064         * m4/asm-underscore.m4: New file.
20065         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20066         * modules/stdio (Files): Add m4/asm-underscore.m4.
20067         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20068         Reported by Ben Pfaff.
20069
20070 2010-05-16  Bruno Haible  <bruno@clisp.org>
20071
20072         verify: Avoid skipping the test on openSUSE 11.0.
20073         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20074
20075 2010-05-13  Bruno Haible  <bruno@clisp.org>
20076
20077         Avoid useless warnings from G++.
20078         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20079         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20080         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20081
20082 2010-05-11  Jim Meyering  <meyering@redhat.com>
20083
20084         maint.mk: tweak preceding change
20085         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20086         regexps tighter by anchoring at EOL, and make the new group "shy"
20087         for slightly decreased overhead.
20088
20089 2010-05-11  Eric Blake  <eblake@redhat.com>
20090
20091         maint.mk: gnulib doesn't guarantee NSIG
20092         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20093
20094 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20095
20096         test-pwrite.c: Remove unused variable declaration.
20097         * tests/test-pwrite.c (main): Remove read_buf declaration.
20098
20099         Remove useless test-pwrite.sh file.
20100         * tests/test-pwrite.sh: Delete file.
20101         * modules/pwrite-tests: Remove references.
20102         Reported by Bruno Haible.
20103
20104 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20105
20106         init.sh: fix a typo
20107         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20108
20109 2010-05-10  Jim Meyering  <meyering@redhat.com>
20110
20111         maint.mk: avoid using a temporary file in the always-defined-macros check
20112         * top/maint.mk (.re-defmac): Remove rule.
20113         (gl_trap_): Remove definition.
20114         (sc_prohibit_always-defined_macros): Rewrite not to create and
20115         depend on a temporary file.  Instead, depend on GNU grep's ability
20116         to read a list of regular expressions from stdin when given "-f -".
20117
20118 2010-05-09  Bruno Haible  <bruno@clisp.org>
20119
20120         Update to GNU gettext 0.18, part 1.
20121         * m4/gettext.m4: Update to GNU gettext 0.18.
20122         * m4/intl.m4: Likewise.
20123         * m4/po.m4: Likewise.
20124         * modules/gettext (Files): Add m4/fcntl-o.m4.
20125         (configure.ac): Require gettext infrastructure from version 0.18.
20126
20127 2010-05-09  Jim Meyering  <meyering@redhat.com>
20128
20129         init.sh: enable MALLOC_PERTURB_
20130         * tests/init.sh: Enable glibc's malloc-perturbing option.
20131
20132         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20133         With my recent change in init.sh from the two-line form:
20134             -#   : ${srcdir=.}
20135             -#   . "$srcdir/init.sh"; path_prepend_ .
20136             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20137         I noticed that using the one-line form would cause this test
20138         to fail with a false-positive, or to stop working altogether,
20139         depending on whether help-version changed or all the tests did.
20140         * top/maint.mk (_hv_regex): Remove this definition.
20141         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20142         (_hv_regex_strong): Use a stronger regex to check for conformance.
20143         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20144         Give a separate diagnostic for lack of conforming use.
20145
20146         maint.mk: prohibit definition of symbols defined by gnulib
20147         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20148         definition of symbols defined by gnulib.
20149
20150 2010-05-09  Bruno Haible  <bruno@clisp.org>
20151
20152         acl: Avoid test failure on Cygwin-hosted mingw.
20153         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20154
20155 2010-05-09  Bruno Haible  <bruno@clisp.org>
20156
20157         error: Use system's fcntl function.
20158         * lib/error.c (fcntl): Undefine.
20159
20160 2010-05-09  Jim Meyering  <meyering@redhat.com>
20161
20162         verify: adjust formatting to be more consistent
20163         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20164         argument-list '('s, and after one comma.
20165
20166 2010-05-09  Bruno Haible  <bruno@clisp.org>
20167
20168         error: More reliable output on mingw.
20169         * lib/error.c: Include <windows.h>.
20170         (is_open): New function.
20171         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20172         defined.
20173
20174 2010-05-09  Bruno Haible  <bruno@clisp.org>
20175
20176         vasnprintf: Fix syntax errors in libintl build on mingw.
20177         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20178         pad_ourselves and prec_ourselves after use.
20179
20180 2010-05-08  Bruno Haible  <bruno@clisp.org>
20181
20182         * lib/config.charset: Update comments for Cygwin 1.7.
20183         * lib/localcharset.c: Likewise.
20184
20185 2010-05-07  Jim Meyering  <meyering@redhat.com>
20186
20187         init.sh: improve comments
20188         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20189         . "${srcdir=.}/init.sh"; path_prepend_ .
20190         Add a note about path_prepend_ and the alternative of using
20191         TESTS_ENVIRONMENT.
20192
20193 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20194
20195         exclude: Unescape hashed patterns in wildcard mode.
20196         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20197         to the hash list.
20198         * tests/test-exclude8.sh: New test case.
20199         * modules/exclude-tests: Add new test.
20200
20201 2010-05-05  Eric Blake  <eblake@redhat.com>
20202
20203         verify: automate tests
20204         * modules/verify-tests: New module.
20205         * tests/test-verify.sh: New file.
20206         * tests/test-verify.c: Guard each negative test with a unique id.
20207         Also avoid warning about unused left hand of comma expressions.
20208
20209 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20210
20211         Further improvements to verify.h, suggested by Eric Blake.
20212         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20213         the GL_* versions, to avoid collision with OpenGL.
20214         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20215         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20216         than testing merely whether it's defined.
20217
20218         Modify verify.h to pacify gcc -Wredundant_decls.
20219         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20220         These use the prefix "GL_" since they're likely to be useful elsewhere.
20221         We may need to break them out into a different .h file.
20222         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20223         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20224         of verify_function__.
20225
20226 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20227
20228         Tests for module pwrite.
20229         * modules/pwrite-tests: New file.
20230         * tests/test-pwrite.sh: New file.
20231         * tests/test-pwrite.c: New file.
20232
20233         New module pwrite.
20234         * lib/unistd.in.h (pwrite): New declaration.
20235         * lib/pwrite.c: New file, from glibc with modifications.
20236         * m4/pwrite.m4: New file.
20237         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20238         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20239         REPLACE_PWRITE.
20240         * modules/pwrite: New file.
20241         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20242         REPLACE_PWRITE.
20243         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20244         * doc/posix-functions/pwrite.texi: Mention the new module.
20245
20246 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20247
20248         pread: Update documentation.
20249         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20250
20251 2010-05-04  Eric Blake  <eblake@redhat.com>
20252
20253         docs: update cygwin progress
20254         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20255         this bug.
20256         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20257         Added in cygwin 1.7.2.
20258         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20259         Likewise.
20260         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20261         Likewise.
20262         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20263         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20264         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20265         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20266         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20267         Mention nproc module.
20268         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20269         bug in cygwin 1.7.5 addition.
20270         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20271         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20272         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20273         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20274         1.7.5.
20275         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20276         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20277         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20278         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20279         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20280         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20281         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20282         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20283         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20284         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20285         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20286         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20287         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20288         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20289         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20290         Likewise.
20291         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20292         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20293         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20294         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20295         Likewise.
20296         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20297         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20298         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20299         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20300         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20301         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20302         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20303         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20304         Likewise.
20305         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20306         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20307         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20308         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20309         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20310         Likewise.
20311         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20312         Likewise.
20313         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20314         Likewise.
20315         * doc/glibc-functions/xdrrec_endofrecord.texi
20316         (xdrrec_endofrecord): Likewise.
20317         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20318         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20319         Likewise.
20320         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20321         Likewise.
20322
20323 2010-05-04  Jim Meyering  <meyering@redhat.com>
20324
20325         gendocs.sh: make its "-s FILE" option more useful
20326         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20327         $PACKAGE to reflect the probably-different basename of "FILE".
20328
20329 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20330
20331         bootstrap: don't ignore download_po_files failure
20332         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20333         failure.
20334
20335 2010-05-03  Jim Meyering  <meyering@redhat.com>
20336
20337         maint.mk: allow to pass options to gendocs.sh
20338         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20339         (gendocs_options_): New overridable variable.
20340
20341         gnu-web-doc-update: don't ignore configure or build failure
20342         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20343
20344         announce-gen: backslash-escape '@'s in --help output
20345         * build-aux/announce-gen: Fix syntax errors.
20346
20347         maint.mk, announce-gen: allow project-specific announcement mail headers
20348         * top/maint.mk (translation_project_): Define default.
20349         (announcement_Cc_, announcement_mail_headers_): Likewise.
20350         (announcement): Invoke announce-gen with new --mail-headers option.
20351         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20352
20353         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20354         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20355         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20356         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20357         line in the "err2" output file when running "make check" in verbose
20358         mode (i.e., with set -x enabled).
20359
20360 2010-05-03  Bruno Haible  <bruno@clisp.org>
20361
20362         wctob: Fix for weird platforms.
20363         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20364         argument value.
20365
20366 2010-05-03  Jim Meyering  <meyering@redhat.com>
20367
20368         maint.mk: prohibit unwarranted use of <strings.h>
20369         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20370         strings.h in a file that does not also use strcasecmp, strncasecmp,
20371         ffs or ffsll.
20372
20373         maint.mk: remove obsolete comments
20374         * top/maint.mk: Remove stale, commented-out rules.
20375
20376 2010-05-02  Bruno Haible  <bruno@clisp.org>
20377
20378         wcwidth: Declare also when it's aliased.
20379         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20380         macro.
20381
20382 2010-05-02  Bruno Haible  <bruno@clisp.org>
20383
20384         Fix regression from 2010-04-25.
20385         * gnulib-tool (func_modules_transitive_closure): Check the status of
20386         all modules, not only of the tests that are of the form foo-tests where
20387         foo is a module.
20388
20389 2010-05-02  Bruno Haible  <bruno@clisp.org>
20390
20391         wctob: Work around nasty Cygwin 1.7.2 bug.
20392         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20393         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20394
20395 2010-05-01  Bruno Haible  <bruno@clisp.org>
20396
20397         fpurge: Sharper test.
20398         * tests/test-fpurge.c (main): Add one more ftell check.
20399         * modules/fpurge-tests (Depends-on): Add ftell.
20400         Suggested by Eric Blake.
20401
20402 2010-05-01  Bruno Haible  <bruno@clisp.org>
20403
20404         ftello: Another test.
20405         * tests/test-ftello3.c: New file.
20406         * modules/ftello-tests (Files): Add it.
20407         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20408         MOSTLYCLEANFILES.
20409
20410         ftell: Another test.
20411         * tests/test-ftell3.c: New file.
20412         * modules/ftell-tests (Files): Add it.
20413         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20414         MOSTLYCLEANFILES.
20415
20416 2010-05-01  Bruno Haible  <bruno@clisp.org>
20417
20418         ftell, ftello: Work around Solaris bug.
20419         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20420         * lib/ftello.c: Include stdio-impl.h.
20421         (ftello): On Solaris, when _IOWRT is set, compute the result without
20422         looking at _IOREAD.
20423         * modules/ftello (Files): Add lib/stdio-impl.h.
20424         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20425         * doc/posix-functions/ftello.texi: Likewise.
20426         Reported by Eric Blake.
20427
20428 2010-05-01  Bruno Haible  <bruno@clisp.org>
20429
20430         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20431         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20432         the _IOWRT flag is also set.
20433
20434 2010-05-01  Bruno Haible  <bruno@clisp.org>
20435
20436         Fix doc about a HP-UX stdio bug.
20437         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20438         * doc/posix-functions/ftello.texi: Likewise.
20439
20440 2010-05-01  Bruno Haible  <bruno@clisp.org>
20441
20442         lseek test: Fix failure on Solaris.
20443         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20444         output.
20445
20446 2010-04-30  Jim Meyering  <meyering@redhat.com>
20447
20448         bootstrap: don't ignore failure to generate po*/Makevars
20449         * build-aux/bootstrap (with_gettext): Don't ignore failure
20450         to create po/Makevars or runtime-po/Makevars.
20451
20452 2010-04-29  Eric Blake  <eblake@redhat.com>
20453
20454         headers: relax license to LGPLv2+
20455         * modules/fcntl-h (License): Relax license.
20456         * modules/getopt-posix (License): Likewise.
20457         * modules/locale (License): Likewise.
20458         * modules/math (License): Likewise.
20459         * modules/pty (License): Likewise.
20460         * modules/sched (License): Likewise.
20461         * modules/search (License): Likewise.
20462         * modules/spawn (License): Likewise.
20463         * modules/stdarg (License): Likewise.
20464         * modules/sysexits (License): Likewise.
20465
20466 2010-04-29  Jim Meyering  <meyering@redhat.com>
20467
20468         inttypes: relax license to LGPLv2+
20469         * modules/inttypes (License): Relax license.
20470
20471 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20472
20473         * top/maint.mk (indent): Run twice to produce idempotent results.
20474
20475 2010-04-28  Bruno Haible  <bruno@clisp.org>
20476
20477         getdate: Generate getdate.c in the source directory.
20478         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20479         MOSTLYCLEANFILES.
20480         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20481
20482 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20483
20484         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20485         is not declared as a const *; avoid warnings in that case.
20486
20487 2010-04-28  Eric Blake  <eblake@redhat.com>
20488
20489         canonicalize-lgpl: avoid compiler warning
20490         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20491         declaration' / 'extraneous semicolon' warning with some compilers.
20492         Reported by Andreas Gruenbacher.
20493
20494 2010-04-28  Jim Meyering  <meyering@redhat.com>
20495
20496         init.sh: ensure a more reliable exit status when exiting via trap
20497         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20498         Inspired by patches from Dmitry V. Levin.
20499         Also trap on signal 3 (SIGQUIT).
20500
20501 2010-04-27  Bruno Haible  <bruno@clisp.org>
20502
20503         Update doc about utimes().
20504         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20505         'utimens' module.
20506         Reported by Andreas Gruenbacher <agruen@suse.de>.
20507
20508 2010-04-27  Eric Blake  <eblake@redhat.com>
20509
20510         full-read, full-write: relax license
20511         * modules/full-read (License): Drop to LGPLv2+.
20512         * modules/full-write (License): Likewise.
20513         * modules/safe-read (License): Likewise.
20514         * modules/safe-write (License): Likewise.
20515
20516         pthread: mention library for linking
20517         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20518
20519 2010-04-27  Jim Meyering  <meyering@redhat.com>
20520
20521         maint.mk: fix a bug introduced in last change
20522         * top/maint.mk (gl_assured_headers_): Now that all names are on
20523         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20524         is not anchored to end of word, it should be adequate.
20525
20526         maint.mk: avoid side-effect in latest syntax-check
20527         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20528         to run commands via $(shell...), and hence to incur cost only when
20529         the new rule is actually run.
20530
20531         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20532         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20533         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20534         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20535         (gl_assured_headers_, az_, AZ_): Define.
20536         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20537
20538 2010-04-26  Jim Meyering  <jim@meyering.net>
20539             Bruno Haible  <bruno@clisp.org>
20540
20541         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20542         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20543         Prompted by an exchange with Gilles Espinasse.
20544
20545 2010-04-26  Jim Meyering  <meyering@redhat.com>
20546
20547         git-version-gen: aesthetic tweak
20548         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20549         so that the command remains on a single line.
20550
20551 2010-04-26  Eric Blake  <eblake@redhat.com>
20552
20553         git-version-gen: allow use on EBCDIC hosts
20554         * build-aux/git-version-gen (dirty): Use literal rather than tying
20555         ourselves to ascii.
20556         Reported by Steve Goetze.
20557
20558 2010-04-25  Bruno Haible  <bruno@clisp.org>
20559
20560         netdb: Add support for GNULIB_POSIXCHECK.
20561         * lib/netdb.in.h: Include warn-on-use.h.
20562         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20563         functions are used when GNULIB_POSIXCHECK is defined and the
20564         getaddrinfo module is not in use.
20565         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20566         freeaddrinfo, gai_strerror, getnameinfo are declared.
20567         * modules/netdb (Depends-on): Add warn-on-use.
20568         (Makefile.am): Include warn-on-use.h in netdb.h.
20569
20570 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20571
20572         build: avoid "make check" failure without .git/ directory
20573         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20574         there is no .git/ directory.
20575
20576 2010-04-25  Bruno Haible  <bruno@clisp.org>
20577
20578         ptsname: Fix misuse of ttyname_r.
20579         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20580         of errno.
20581
20582 2010-04-25  Bruno Haible  <bruno@clisp.org>
20583
20584         ttyname_r: Make it work on Solaris 10.
20585         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20586         if the system function has the POSIX declaration. Test whether the
20587         function fails if the buffer is less than 128 bytes large.
20588         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20589         system's ttyname_r function. Provide a reasonably large buffer.
20590         * modules/ttyname_r (Depends-on): Add extensions.
20591         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20592
20593 2010-04-25  Bruno Haible  <bruno@clisp.org>
20594
20595         Use the 'extensions' module for some more functions on Solaris.
20596         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20597         module.
20598         * doc/posix-functions/ctime_r.texi: Likewise.
20599         * doc/posix-functions/getgrgid_r.texi: Likewise.
20600         * doc/posix-functions/getgrnam_r.texi: Likewise.
20601         * doc/posix-functions/getpwnam_r.texi: Likewise.
20602         * doc/posix-functions/getpwuid_r.texi: Likewise.
20603         * doc/posix-functions/readdir_r.texi: Likewise.
20604         * doc/posix-functions/sigwait.texi: Likewise.
20605         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20606         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20607
20608 2010-04-25  Bruno Haible  <bruno@clisp.org>
20609
20610         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20611         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20612         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20613         * lib/ttyname_r.c: Include <limits.h>.
20614         (ttyname_r): Define using the system's ttyname_r function, if it exists
20615         and not on Solaris.
20616         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20617         set.
20618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20619         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20620         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20621         Reported by Simon Josefsson.
20622
20623 2010-04-25  Bruno Haible  <bruno@clisp.org>
20624
20625         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20626         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20627         * doc/posix-functions/ctime_r.texi: Likewise.
20628         * doc/posix-functions/getgrgid_r.texi: Likewise.
20629         * doc/posix-functions/getgrnam_r.texi: Likewise.
20630         * doc/posix-functions/getlogin_r.texi: Likewise.
20631         * doc/posix-functions/getpwnam_r.texi: Likewise.
20632         * doc/posix-functions/getpwuid_r.texi: Likewise.
20633         * doc/posix-functions/readdir_r.texi: Likewise.
20634         * doc/posix-functions/sigwait.texi: Likewise.
20635         * doc/posix-functions/ttyname_r.texi: Likewise.
20636         Reported by Simon Josefsson.
20637
20638 2010-04-25  Bruno Haible  <bruno@clisp.org>
20639
20640         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20641         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20642         also to --create-testdir.
20643         (func_acceptable): Don't consider the status of *-tests modules here.
20644         (func_modules_transitive_closure): Consider it here, before including a
20645         test module.
20646         (func_import, func_create_testdir): Set inc_all_direct_tests,
20647         inc_all_indirect_tests.
20648         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20649         --create-testdir and --create-megatestdir.
20650
20651 2010-04-25  Bruno Haible  <bruno@clisp.org>
20652
20653         gnulib-tool: Add --without-*-tests options.
20654         * gnulib-tool (func_usage): Document the --without-*-tests options.
20655         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20656         excl_unportable_tests): New variables.
20657         Fail if they are specified with --import or --update.
20658         (func_acceptable): Respect the excl_*_tests variables.
20659         (func_import): Set the excl_*_tests variables to empty.
20660
20661 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20662             Bruno Haible  <bruno@clisp.org>
20663
20664         Work around a MacOS X 10.4 bug with openpty.
20665         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20666         * tests/test-openpty.c (main): Close the master side explicitly.
20667
20668 2010-04-25  Bruno Haible  <bruno@clisp.org>
20669
20670         strnlen: Fix a C++ test error on MacOS X and Solaris.
20671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20672         the function is not declared.
20673         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20674         Simon Josefsson.
20675
20676 2010-04-24  Bruno Haible  <bruno@clisp.org>
20677
20678         Avoid a gcc warning.
20679         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20680         of correct type for %08lx directive.
20681         Reported by Eric Blake.
20682
20683 2010-04-24  Bruno Haible  <bruno@clisp.org>
20684
20685         vasnprintf: Correct errno value in case of out-of-memory.
20686         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20687         or sprintf. Use the errno value from SNPRINTF or sprintf.
20688         Reported by Ian Beckwith <ianb@erislabs.net>.
20689
20690 2010-04-24  Bruno Haible  <bruno@clisp.org>
20691
20692         ansi-c++-opt: Find correct compiler when cross-compiling.
20693         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20694         AC_CHECK_PROGS.
20695         Reported by Simon Josefsson.
20696
20697 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20698
20699         vc-list-files: Add support for subversion
20700         * build-aux/vc-list-files: Use "svn list" to generate the list of
20701         files controlled by subversion.
20702
20703 2010-04-23  Jim Meyering  <meyering@redhat.com>
20704
20705         vc-list-files tests: convert to use init.sh
20706         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20707         path_prepend_.
20708         Use Exit, not exit.
20709         Use skip_ rather than open coding it.
20710         Remove trap set-up and compare definitions.
20711         * tests/test-vc-list-files-git.sh: Likewise.
20712         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20713
20714 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20715
20716         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20717         backup files.
20718
20719 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20720
20721         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20722
20723 2010-04-20  Eric Blake  <eblake@redhat.com>
20724
20725         tests: be robust to ignored SIGPIPE
20726         * tests/test-select-in.sh: Consume all output.
20727         * tests/test-lseek.sh: Check correct exit status, while avoiding
20728         EPIPE.
20729
20730 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20731             Bruno Haible  <bruno@clisp.org>
20732
20733         visibility: Don't use -fvisibility if it leads to a warning.
20734         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20735         yes, don't pretend that visibility works if it leads to a warning.
20736         Reported by Mike Gran <spk121@yahoo.com>.
20737
20738 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20739
20740         * build-aux/bootstrap: Use "git -h" for testing for supported options
20741         instead of "git --help".  The short-form option only shows a summary,
20742         and doesn't layout the full man page.  Grep for the full option name
20743         in the summary, too.
20744
20745 2010-04-19  Bruno Haible  <bruno@clisp.org>
20746
20747         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20748         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20749         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20750         mention of RELOCATABLE_STRIP.
20751         Reported by Sylvain Beucler <beuc@beuc.net>.
20752
20753 2010-04-19  Bruno Haible  <bruno@clisp.org>
20754
20755         * lib/diffseq.h: Fix typo in comment.
20756         Reported by Eric Blake.
20757
20758 2010-04-19  Bruno Haible  <bruno@clisp.org>
20759
20760         ioctl: Move autoconf macro to a .m4 file.
20761         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20762         * modules/ioctl (Files): Add it.
20763         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20764         Reported by Ian Beckwith <ianb@erislabs.net>.
20765
20766 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20767             Bruno Haible  <bruno@clisp.org>
20768
20769         diffseq: Accommodate use-case with abstract arrays.
20770         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20771         is not defined.
20772         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20773         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20774
20775 2010-04-18  Bruno Haible  <bruno@clisp.org>
20776
20777         * doc/posix-headers/stdbool.texi: More precise wording.
20778
20779 2010-04-17  Jim Meyering  <meyering@redhat.com>
20780
20781         maint.mk: use gnu-style indentation in an embedded perl script
20782         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20783         Rename variable: s/two/last_two_bytes/
20784
20785 2010-04-16  Eric Blake  <eblake@redhat.com>
20786
20787         test-stdbool: skip test that fails with Solaris CC
20788         * tests/test-stdbool.c (f): Skip test that causes compilation
20789         error under buggy C++ compiler.
20790         * lib/stdbool.in.h: Document the limitation.
20791         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20792
20793         setenv: allow compilation with C++
20794         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20795         register keyword.
20796
20797         stdint: allow test to pass with C++
20798         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20799
20800         getopt: allow compilation with C++
20801         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20802         struct.
20803         * lib/getopt.c (_getopt_internal_r): Use correct type.
20804         Reported by Dagobert Michelson, via Joel E. Denny.
20805
20806 2010-04-16  Bruno Haible  <bruno@clisp.org>
20807
20808         Override netdb.h always.
20809         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20811         Reported by Ludovic Courtès <ludo@gnu.org>.
20812
20813 2010-04-15  Bruno Haible  <bruno@clisp.org>
20814
20815         openpty: Fix mistake from 2010-03-21.
20816         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20817         Reported by Simon Josefsson.
20818
20819 2010-04-15  Eric Blake  <eblake@redhat.com>
20820
20821         test-forkpty: fix expected signature
20822         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20823         Reported by Simon Josefsson.
20824
20825 2010-04-15  Jim Meyering  <meyering@redhat.com>
20826
20827         maint.mk: texinfo_suffix_re_: correct the default regexp
20828         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20829
20830         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20831         make it configurable via texinfo_suffix_re_.
20832
20833 2010-04-14  Eric Blake  <eblake@redhat.com>
20834
20835         strtok_r: relax license to LGPLv2+
20836         * modules/strtok_r (License): Relax license.
20837         Reported by Matthias Bolte.
20838
20839 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20840
20841         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20842         version 1.4.4 by default instead of requiring the libgcrypt
20843         version used during build.  This makes it possible to use the
20844         application with older but still binary compatible libgcrypt
20845         versions.
20846
20847 2010-04-13  Eric Blake  <eblake@redhat.com>
20848
20849         getopt-gnu: match recent glibc fixes and posix ruling
20850         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20851         '+' handling, when requesting extensions.
20852         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20853         'W;' handling.
20854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20855         * doc/posix-functions/getopt.texi (getopt): Document this.
20856         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20857         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20858         Likewise.
20859
20860         getopt: merge bug fixes from glibc
20861         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20862         diagnostics.  Honor '+:' correctly.  Reject ';'.
20863
20864         getopt-posix: detect MacOS bug
20865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20866         optind when missing a required argument.
20867         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20868         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20869         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20870         Likewise.
20871
20872         getopt-posix: avoid spurious failure on Solaris
20873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20874         an indicator that setting optind=1 is sufficient for reset.
20875
20876         getopt-posix: avoid spurious failure on FreeBSD
20877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20878         in POSIX mode, since the m4 test uses it.
20879
20880         gnulib-tool: silence warning on BSD sh
20881         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20882
20883 2010-04-13  Jim Meyering  <meyering@redhat.com>
20884
20885         doc: users.txt: GNU patch now uses gnulib
20886         * users.txt: Add patch.
20887
20888 2010-04-12  Jim Meyering  <meyering@redhat.com>
20889
20890         maint.mk: generate more concise timing data for syntax-check rules
20891         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20892         " done" from each line that reports a syntax-check test duration.
20893
20894 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20895
20896         git-version-gen: use "git update-index..." rather than "git status"
20897         * build-aux/git-version-gen: Use git update-index --refresh, not
20898         "git status".  With some versions of git, "git status" would fail
20899         to update the index and result in an unwarranted "-dirty" suffix.
20900
20901 2010-04-11  Jim Meyering  <meyering@redhat.com>
20902
20903         openat: correct formatting (no semantic change)
20904         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20905         Suggested by Bruno Haible.
20906
20907 2010-04-11  Bruno Haible  <bruno@clisp.org>
20908
20909         Stricter declaration checking in testdirs.
20910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20911         If for_tests is true, augment AM_CPPFLAGS to define
20912         GNULIB_STRICT_CHECKING.
20913         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20914         GNULIB_STRICT_CHECKING is defined, verify that the function is
20915         declared.
20916
20917 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20918             Bruno Haible  <bruno@clisp.org>
20919
20920         libunistring: Improve configure output.
20921         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20922         Don't say "consider installing GNU libunistring" when checking again
20923         with libiconv.
20924
20925 2010-04-11  Bruno Haible  <bruno@clisp.org>
20926
20927         libunistring: Correct value of $LTLIBUNISTRING.
20928         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20929         correct the value of $LTLIBUNISTRING.
20930
20931 2010-04-11  Bruno Haible  <bruno@clisp.org>
20932
20933         havelib: Add static libraries to LIBS in the right order.
20934         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20935         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20936
20937 2010-04-11  Bruno Haible  <bruno@clisp.org>
20938
20939         libunistring: Detect libunistring also when it depends on libiconv.
20940         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20941         the second AC_LIB_HAVE_LINKFLAGS invocation.
20942
20943 2010-04-11  James Youngman  <jay@gnu.org>
20944
20945         close-stream: declare local scalars to be "const"
20946         * lib/close-stream.c (close_stream): Make boolean variables const
20947         to document the fact that we set but do not change them.
20948
20949 2010-04-11  Bruno Haible  <bruno@clisp.org>
20950
20951         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20952
20953 2010-04-11  Jim Meyering  <meyering@redhat.com>
20954
20955         maint.mk: don't include dist-check.mk
20956         * top/maint.mk: Remove bogus include directive.
20957
20958         maint.mk: improve empty-line-at-EOF check
20959         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20960         solution, rather than tail+Perl-based one.  The latter would read
20961         a few kilobytes from the end of each file, and did not handle empty
20962         files properly.
20963
20964         maint.mk: print the elapsed time for each syntax-check rule
20965         * top/maint.mk (sc_m_rules_): Save start time in a file.
20966         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20967         (local-check): Interpose the .z rules
20968
20969 2010-04-11  Jim Meyering  <meyering@redhat.com>
20970
20971         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20972         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20973         empty file with one that ends in an empty line.
20974
20975 2010-04-10  Bruno Haible  <bruno@clisp.org>
20976
20977         mkdir: Make it work on mingw64.
20978         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20979         * lib/mkdir.c: Update comment.
20980         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20981
20982 2010-04-10  Bruno Haible  <bruno@clisp.org>
20983
20984         Don't override improved macro from newer autoconf.
20985         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20986         autoconf >= 2.62.
20987         Reported by Joel E. Denny <jdenny@clemson.edu>.
20988
20989 2010-04-10  Jim Meyering  <meyering@redhat.com>
20990
20991         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20992         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20993
20994         maint.mk: correct a diagnostic
20995         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20996         in diagnostic; now use $prohibit.
20997
20998 2010-04-10  Bruno Haible  <address@hidden>
20999
21000         fchownat: Fix a C++ test error on Solaris 8.
21001         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21002         the function does not exist.
21003
21004 2010-04-10  Bruno Haible  <bruno@clisp.org>
21005
21006         vasnprintf: Add more tests.
21007         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21008         (test_function): Test converting an invalid wide string.
21009
21010         vasnprintf: Correct handling of unconvertible wide string arguments.
21011         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21012         VASNPRINTF.
21013         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21014         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21015         smaller than the expected maximum need for the directive. Set errno to
21016         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21017         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21019         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21020         * modules/vasnprintf (Files): Add m4/printf.m4.
21021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21022
21023 2010-04-10  Bruno Haible  <bruno@clisp.org>
21024
21025         vasnprintf: Fix crash in %ls directive.
21026         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21027         string is passed as argument to %ls, with no precision and no width.
21028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21029
21030 2010-04-10  Bruno Haible  <bruno@clisp.org>
21031
21032         vasnprintf: Fix multiple test failures on mingw.
21033         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21034         _snprintf, or snwprintf, not _snwprintf.
21035
21036 2010-04-10  Bruno Haible  <bruno@clisp.org>
21037
21038         write: Fix a C++ test error on mingw.
21039         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21040
21041 2010-04-10  Bruno Haible  <bruno@clisp.org>
21042
21043         vasnprintf test: Reduce code duplication.
21044         * tests/test-vasnprintf.c (test_function): New function, extracted from
21045         test_vasnprintf.
21046         (test_vasnprintf, test_asnprintf): Invoke it.
21047
21048 2010-04-10  Bruno Haible  <bruno@clisp.org>
21049
21050         strnlen: Fix warning in C++ mode on MacOS X.
21051         * lib/string.in.h (strnlen): Use the modern idiom.
21052         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21053         defining strnlen as a macro already in <config.h>.
21054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21055         REPLACE_STRNLEN.
21056         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21058
21059 2010-04-08  James Youngman  <jay@gnu.org>
21060
21061         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21062         the example.
21063
21064 2010-04-09  Jim Meyering  <meyering@redhat.com>
21065
21066         maint.mk: print better diagnostic when there is no $(_hv_file)
21067         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21068         announce that when $(_hv_file) (aka help-version) does not exist.
21069
21070         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21071         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21072         not try to interpret its random input bytes.  Jarno Rajahalme reported
21073         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21074         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21075         (mktempd_): Likewise, just in case.
21076
21077         ftruncate: add two years to projected module removal date: 2012
21078         * m4/ftruncate.m4: Adjust comments.
21079
21080         ftruncate: mark module as obsolete; even MinGW provides it, now
21081         * modules/ftruncate (Status): Obsolete.
21082         (Notice): Say that.
21083         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21084         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21085
21086 2010-04-08  Bruno Haible  <bruno@clisp.org>
21087
21088         Fix side effects from tests-related modules.
21089         * modules/dprintf-posix (Comment): New section.
21090         * modules/fprintf-posix (Comment): Likewise.
21091         * modules/obstack-printf-posix (Comment): Likewise.
21092         * modules/printf-posix (Comment): Likewise.
21093         * modules/snprintf-posix (Comment): Likewise.
21094         * modules/sprintf-posix (Comment): Likewise.
21095         * modules/vasnprintf-posix (Comment): Likewise.
21096         * modules/vasprintf-posix (Comment): Likewise.
21097         * modules/vdprintf-posix (Comment): Likewise.
21098         * modules/vfprintf-posix (Comment): Likewise.
21099         * modules/vprintf-posix (Comment): Likewise.
21100         * modules/vsnprintf-posix (Comment): Likewise.
21101         * modules/vsprintf-posix (Comment): Likewise.
21102         * modules/xprintf-posix (Comment): Likewise.
21103         * modules/xvasprintf-posix (Comment): Likewise.
21104         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21105         * modules/floorf-tests (Depends-on): Likewise.
21106         * modules/round-tests (Depends-on): Likewise.
21107         * modules/roundf-tests (Depends-on): Likewise.
21108         * modules/trunc-tests (Depends-on): Likewise.
21109         * modules/truncf-tests (Depends-on): Likewise.
21110         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21111         'fprintf-posix' module is not present.
21112         * tests/test-floorf2.c (check): Likewise.
21113         * tests/test-trunc2.c (check): Likewise.
21114         * tests/test-truncf2.c (check): Likewise.
21115         * tests/test-round2.c (equal): Likewise.
21116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21117
21118 2010-04-07  Karl Berry  <karl@gnu.org>
21119
21120         * config/srclist.txt,
21121         * config/srclistvars.sh,
21122         * config/srclist-update: doc fixes.
21123
21124 2010-04-07  Jim Meyering  <meyering@redhat.com>
21125
21126         maint.mk: add a PATH crosschecking syntax-check rule
21127         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21128         Useful if you use a test like the one in help-version (coreutils,
21129         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21130         printed by prog --version.
21131
21132 2010-04-06  Bruno Haible  <bruno@clisp.org>
21133
21134         Fix link error on mingw.
21135         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21136         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21137
21138 2010-04-06  Bruno Haible  <bruno@clisp.org>
21139
21140         Assume rmdir exists.
21141         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21142
21143 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21144
21145         doc: update users.txt
21146         * users.txt: Add gcal.
21147
21148 2010-04-06  Jim Meyering  <meyering@redhat.com>
21149
21150         init.sh: simply unset TMPDIR rather than risking env -i
21151         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21152         although it probably works fine on all Unix-based systems, some
21153         systems (Cygwin?) cannot tolerate a totally cleared environment.
21154         Suggestion from Eric Blake.
21155
21156 2010-04-06  Jim Meyering  <meyering@redhat.com>
21157
21158         init.sh: portability fix: use env's POSIX-specified -i option not -u
21159         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21160         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21161
21162 2010-04-05  Bruno Haible  <bruno@clisp.org>
21163
21164         btowc: Work around Cygwin 1.7.2 bug.
21165         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21166         does not map NUL to 0.
21167         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21168
21169 2010-04-05  Bruno Haible  <bruno@clisp.org>
21170
21171         Make the multithread modules work on Cygwin 1.7.2.
21172         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21173         imported symbols can be declared weak, so that it returns "no" on
21174         Cygwin 1.7.2.
21175
21176 2010-04-05  Bruno Haible  <bruno@clisp.org>
21177
21178         Use the module 'strncat'.
21179         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21180
21181         Tests for module 'strncat'.
21182         * modules/strncat-tests: New file.
21183         * tests/test-strncat.c: New file.
21184
21185         New module 'strncat'.
21186         * lib/string.in.h (strncat): New declaration.
21187         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21188         * m4/strncat.m4: New file, based on m4/memchr.m4.
21189         * modules/strncat: New file.
21190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21191         is declared.
21192         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21193         REPLACE_STRNCAT.
21194         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21195         REPLACE_STRNCAT.
21196         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21197         module.
21198         * tests/test-string-c++.cc: Check signature of strncat.
21199
21200 2010-04-05  Jim Meyering  <meyering@redhat.com>
21201
21202         xstrtoumax-tests: convert to use init.sh
21203         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21204         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21205         Use Exit, not exit.
21206         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21207
21208         xstrtoimax-tests: convert to use init.sh
21209         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21210         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21211         Use Exit, not exit.
21212         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21213
21214 2010-04-05  Bruno Haible  <bruno@clisp.org>
21215
21216         sys_socket: Avoid #define replacements in C++ mode.
21217         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21218         warning to the function if possible, rather than #defining the symbol
21219         to a dysfunctional alias.
21220
21221 2010-04-05  Bruno Haible  <bruno@clisp.org>
21222
21223         fseeko: Fix C++ test error on mingw.
21224         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21225         gl_FUNC_FSEEKO.
21226         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21227         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21228         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21229         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21230
21231 2010-04-05  Bruno Haible  <bruno@clisp.org>
21232
21233         duplocale: Improve test output.
21234         * tests/test-duplocale.c (main): Print reason for skipped test.
21235
21236 2010-04-05  Bruno Haible  <bruno@clisp.org>
21237
21238         Assume rmdir exists.
21239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21240         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21241
21242 2010-04-05  Bruno Haible  <bruno@clisp.org>
21243
21244         Fix link error on Solaris 8 with cc.
21245         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21246
21247 2010-04-05  Bruno Haible  <bruno@clisp.org>
21248
21249         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21250         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21251
21252 2010-04-05  Bruno Haible  <bruno@clisp.org>
21253
21254         vasprintf: Update documentation.
21255         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21256
21257 2010-04-05  Bruno Haible  <bruno@clisp.org>
21258
21259         ptsname: Improve test.
21260         * tests/test-ptsname.c (main): Also try the various master names of BSD
21261         systems.
21262
21263 2010-04-05  Bruno Haible  <bruno@clisp.org>
21264
21265         memchr: Avoid a possible C++ test error.
21266         * lib/string.in.h (memchr): Provide declaration if function is missing.
21267         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21268         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21270         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21271
21272 2010-04-05  Bruno Haible  <bruno@clisp.org>
21273
21274         strtok_r: Improve idiom.
21275         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21276         AC_LIBOBJ is used.
21277
21278 2010-04-05  Bruno Haible  <bruno@clisp.org>
21279
21280         strdup: Improve idiom.
21281         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21282         AC_LIBOBJ is used.
21283         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21284         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21285         when AC_LIBOBJ is used.
21286
21287 2010-04-05  Bruno Haible  <bruno@clisp.org>
21288
21289         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21290         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21291         don't set REPLACE_MBSINIT to 1.
21292         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21293         don't set REPLACE_MBRTOWC to 1.
21294         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21295         exist, don't set REPLACE_MBSRTOWCS to 1.
21296         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21297         exist, don't set REPLACE_MBSNRTOWCS to 1.
21298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21299         don't set REPLACE_WCRTOMB to 1.
21300         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21301         exist, don't set REPLACE_WCSRTOMBS to 1.
21302         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21303         exist, don't set REPLACE_WCSNRTOMBS to 1.
21304
21305 2010-04-05  Bruno Haible  <bruno@clisp.org>
21306
21307         ldexpl: Improve idiom.
21308         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21309         make sure to set HAVE_DECL_LDEXPL to 0.
21310
21311 2010-04-05  Jim Meyering  <meyering@redhat.com>
21312
21313         xstrtol-tests: convert to use init.sh
21314         * modules/xstrtol-tests (Files): Add tests/init.sh.
21315         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21316         Use Exit, not exit.
21317         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21318
21319         atexit-tests: convert to use init.sh
21320         * modules/atexit-tests (Files): Add tests/init.sh.
21321         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21322         Use Exit, not exit.
21323         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21324
21325         init.sh: fix typo
21326         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21327
21328         init.sh: make it easier for a test script to write to the tty, ...
21329         when using automake's parallel-tests mode.
21330         * tests/init.sh (stderr_fileno_): Define overridable variable.
21331         (warn_): New function, to use it.
21332         (fail_, skip_, framework_failure_): Use warn_.
21333
21334 2010-04-04  Bruno Haible  <bruno@clisp.org>
21335
21336         btowc: Avoid warning.
21337         * lib/btowc.c: Include <stdlib.h>.
21338         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21339
21340 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21341             Bruno Haible  <bruno@clisp.org>
21342
21343         wchar: Port to NetBSD 1.5.
21344         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21345         * lib/wctype.in.h (WEOF): Likewise.
21346
21347 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21348             Bruno Haible  <bruno@clisp.org>
21349
21350         Port extended stdio to NetBSD 1.5.
21351         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21352         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21353         older.
21354
21355 2010-04-04  Bruno Haible  <bruno@clisp.org>
21356
21357         string: Remove unused substitution.
21358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21359         HAVE_DECL_STRERROR.
21360         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21361
21362 2010-04-04  Bruno Haible  <bruno@clisp.org>
21363
21364         strtod: Avoid a possible C++ test error.
21365         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21366         set REPLACE_STRTOD.
21367
21368 2010-04-04  Bruno Haible  <bruno@clisp.org>
21369
21370         strerror: Update documentation.
21371         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21372
21373 2010-04-04  Bruno Haible  <bruno@clisp.org>
21374
21375         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21376         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21377         _GL_CXXALIAS_SYS_CAST.
21378
21379 2010-04-04  Bruno Haible  <bruno@clisp.org>
21380
21381         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21382         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21383         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21384         REPLACE_FREXPL to 1.
21385         * doc/posix-functions/frexpl.texi: Update documentation.
21386
21387 2010-04-04  Bruno Haible  <bruno@clisp.org>
21388
21389         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21390         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21391
21392 2010-04-04  Bruno Haible  <bruno@clisp.org>
21393
21394         Implement nanosleep for native Windows.
21395         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21396
21397 2010-04-04  Bruno Haible  <bruno@clisp.org>
21398
21399         math: Fix some C++ test errors on Solaris 8.
21400         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21401
21402 2010-04-04  Bruno Haible  <bruno@clisp.org>
21403
21404         math: Fix some C++ test errors on Cygwin.
21405         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21406         truncl): Provide declaration if the system does not have it.
21407         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21408         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21409         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21410         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21411         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21412         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21413         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21414         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21415         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21416         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21417         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21418         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21419         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21420         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21421         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21422         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21424         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21425         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21426         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21427         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21428         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21429
21430 2010-04-04  Bruno Haible  <bruno@clisp.org>
21431
21432         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21433         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21434         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21435         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21436         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21437         * m4/isinf.m4 (gl_ISINF): Likewise.
21438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21439
21440 2010-04-04  Bruno Haible  <bruno@clisp.org>
21441
21442         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21443         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21444
21445 2010-04-04  Bruno Haible  <bruno@clisp.org>
21446
21447         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21448         * modules/tmpfile (configure.ac): Update.
21449
21450         tmpfile: Fix C++ test error on mingw.
21451         * lib/stdio.in.h (tmpfile): New declaration.
21452         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21453         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21454         * modules/tmpfile (Depends-on): Add stdio.
21455         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21456         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21457         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21458         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21459         REPLACE_TMPFILE.
21460         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21461
21462 2010-04-04  Bruno Haible  <bruno@clisp.org>
21463
21464         ioctl: Fix C++ test error on mingw.
21465         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21466         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21467         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21468
21469 2010-04-03  Bruno Haible  <bruno@clisp.org>
21470
21471         wcwidth: Fix C++ test error on mingw.
21472         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21474         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21475
21476 2010-04-03  Bruno Haible  <bruno@clisp.org>
21477
21478         nanosleep: Fix C++ test error on mingw.
21479         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21480         * lib/time.in.h (nanosleep): Use modern idiom.
21481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21482         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21483         REPLACE_NANOSLEEP to 1.
21484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21485         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21486
21487 2010-04-03  Bruno Haible  <bruno@clisp.org>
21488
21489         strptime: Fix C++ test error on mingw.
21490         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21491         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21492         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21493         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21494         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21495         not REPLACE_STRPTIME.
21496         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21497         REPLACE_STRPTIME.
21498
21499 2010-04-03  Bruno Haible  <bruno@clisp.org>
21500
21501         timegm: Fix C++ test error on mingw.
21502         * lib/time.in.h (timegm): Use modern idiom.
21503         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21504         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21505         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21506         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21507
21508 2010-04-03  Bruno Haible  <bruno@clisp.org>
21509
21510         timegm: Assume declaration if function exists.
21511         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21512         if it exists. Don't clobber ac_cv_func_timegm.
21513
21514 2010-04-03  Bruno Haible  <bruno@clisp.org>
21515
21516         time_r: Fix C++ test error on mingw.
21517         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21518         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21519         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21521         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21522
21523 2010-04-03  Bruno Haible  <bruno@clisp.org>
21524
21525         time_r: Minor updates.
21526         * modules/time_r (Description): Mention the provided functions.
21527         * lib/time_r.c: Don't include <string.h>.
21528         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21529         * doc/posix-functions/localtime_r.texi: Likewise.
21530
21531 2010-04-03  Bruno Haible  <bruno@clisp.org>
21532
21533         time: Fix regression introduced on 2010-03-08.
21534         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21535         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21536
21537 2010-04-03  Jim Meyering  <meyering@redhat.com>
21538
21539         maint.mk: don't silently disable project-specific syntax-check rules
21540         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21541         that they need to convert their project-specific syntax-check rules
21542         to use the new _sc_search_regexp.
21543
21544 2010-04-03  Bruno Haible  <bruno@clisp.org>
21545
21546         fchdir: Fix regression introduced on 2010-03-08.
21547         * lib/unistd.in.h (fchdir): Fix declaration.
21548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21550         REPLACE_FCHDIR.
21551         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21552         REPLACE_FCHDIR.
21553
21554 2010-04-03  Bruno Haible  <bruno@clisp.org>
21555
21556         getpagesize: Fix C++ test error on mingw.
21557         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21558         system does not declare the function.
21559         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21560         declared.
21561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21562         HAVE_DECL_GETPAGESIZE.
21563         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21564
21565 2010-04-03  Bruno Haible  <bruno@clisp.org>
21566
21567         stdio: Make C++ tests work on mingw.
21568         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21569         does not declare the function.
21570
21571 2010-04-03  Bruno Haible  <bruno@clisp.org>
21572
21573         ftello: Fix C++ test error on mingw.
21574         * lib/stdio.in.h (ftello): Use modern idiom.
21575         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21576         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21577         is missing and that it needs to be replaced.
21578         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21580         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21581
21582 2010-04-03  Bruno Haible  <bruno@clisp.org>
21583
21584         fseeko: Fix C++ test error on mingw.
21585         * lib/stdio.in.h (fseeko): Use modern idiom.
21586         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21588         is missing and that it needs to be replaced.
21589         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21591         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21592
21593 2010-04-03  Bruno Haible  <bruno@clisp.org>
21594
21595         mkstemp: Fix C++ test error on mingw.
21596         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21598         function is missing and that it needs to be replaced.
21599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21600         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21601
21602 2010-04-03  Bruno Haible  <bruno@clisp.org>
21603
21604         stpncpy: Fix C++ test error on mingw.
21605         * lib/string.in.h (stpncpy): Use modern idiom.
21606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21607         function is missing and that it needs to be replaced.
21608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21609         REPLACE_STPNCPY.
21610         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21611
21612 2010-04-03  Bruno Haible  <bruno@clisp.org>
21613
21614         sys_stat: Fix C++ test error on mingw.
21615         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21616         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21617
21618 2010-04-03  Bruno Haible  <bruno@clisp.org>
21619
21620         pty: Update doc.
21621         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21622
21623 2010-04-03  Bruno Haible  <bruno@clisp.org>
21624
21625         unistd: Fix C++ test error on mingw.
21626         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21627
21628 2010-04-03  Bruno Haible  <bruno@clisp.org>
21629
21630         Update doc regarding mingw.
21631         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21632         * doc/glibc-functions/login_tty.texi: Likewise.
21633         * doc/glibc-functions/forkpty.texi: Likewise.
21634
21635 2010-04-03  Bruno Haible  <bruno@clisp.org>
21636
21637         stdlib: Avoid compilation failure of c-strtold on mingw.
21638         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21639
21640 2010-04-03  Bruno Haible  <bruno@clisp.org>
21641
21642         locale: Make C++ tests work on Cygwin and mingw.
21643         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21644         cannot provide the function.
21645         Reported by Simon Josefsson.
21646
21647 2010-04-03  Bruno Haible  <bruno@clisp.org>
21648
21649         localename: Port to MacOS X 10.6.
21650         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21651         memory layout of the locales in MacOS X 10.6 as well.
21652         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21653
21654 2010-04-02  Bruno Haible  <bruno@clisp.org>
21655
21656         gnulib-tool: Ensure that long-running tests are executed last.
21657         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21658         running tests after the one for the other tests.
21659
21660 2010-04-02  Bruno Haible  <bruno@clisp.org>
21661
21662         gnulib-tool: Ensure the tests in the main directory are executed first.
21663         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21664         start with the current directory.
21665
21666 2010-04-02  Bruno Haible  <bruno@clisp.org>
21667
21668         Tests for module 'havelib', moved here from GNU gettext.
21669         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21670         modifications.
21671         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21672         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21673         with modifications.
21674         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21675         modifications.
21676         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21677         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21678         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21679         with modifications.
21680         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21681         with modifications.
21682         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21683         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21684         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21685         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21686         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21687         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21688         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21689         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21690         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21691         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21692         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21693         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21694         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21695         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21696         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21697         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21698         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21699         with modifications.
21700         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21701         with modifications.
21702         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21703         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21704         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21705         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21706         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21707         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21708         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21709         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21710         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21711         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21712         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21713         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21714         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21715         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21716         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21717         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21718         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21719         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21720         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21721         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21722         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21723         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21724         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21725         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21726         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21727         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21728         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21729         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21730         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21731         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21732         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21733         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21734         * tests/havelib/rpathx/rpathx.c: New file, from
21735         gettext/autoconf-lib-link.
21736         * tests/havelib/rpathx/Makefile.am: New file, from
21737         gettext/autoconf-lib-link.
21738         * tests/havelib/rpathx/configure.ac: New file, from
21739         gettext/autoconf-lib-link with modifications.
21740         * tests/havelib/rpathy/rpathy.c: New file, from
21741         gettext/autoconf-lib-link.
21742         * tests/havelib/rpathy/Makefile.am: New file, from
21743         gettext/autoconf-lib-link.
21744         * tests/havelib/rpathy/configure.ac: New file, from
21745         gettext/autoconf-lib-link with modifications.
21746         * tests/havelib/rpathz/rpathz.c: New file, from
21747         gettext/autoconf-lib-link.
21748         * tests/havelib/rpathz/Makefile.am: New file, from
21749         gettext/autoconf-lib-link.
21750         * tests/havelib/rpathz/configure.ac: New file, from
21751         gettext/autoconf-lib-link with modifications.
21752         * tests/havelib/rpathlx/usex.c: New file, from
21753         gettext/autoconf-lib-link.
21754         * tests/havelib/rpathlx/Makefile.am: New file, from
21755         gettext/autoconf-lib-link.
21756         * tests/havelib/rpathlx/configure.ac: New file, from
21757         gettext/autoconf-lib-link with modifications.
21758         * tests/havelib/rpathly/usey.c: New file, from
21759         gettext/autoconf-lib-link.
21760         * tests/havelib/rpathly/Makefile.am: New file, from
21761         gettext/autoconf-lib-link.
21762         * tests/havelib/rpathly/configure.ac: New file, from
21763         gettext/autoconf-lib-link with modifications.
21764         * tests/havelib/rpathlz/usez.c: New file, from
21765         gettext/autoconf-lib-link.
21766         * tests/havelib/rpathlz/Makefile.am: New file, from
21767         gettext/autoconf-lib-link.
21768         * tests/havelib/rpathlz/configure.ac: New file, from
21769         gettext/autoconf-lib-link with modifications.
21770         * tests/havelib/rpathlyx/usey.c: New file, from
21771         gettext/autoconf-lib-link.
21772         * tests/havelib/rpathlyx/Makefile.am: New file, from
21773         gettext/autoconf-lib-link.
21774         * tests/havelib/rpathlyx/configure.ac: New file, from
21775         gettext/autoconf-lib-link with modifications.
21776         * tests/havelib/rpathlzyx/usez.c: New file, from
21777         gettext/autoconf-lib-link.
21778         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21779         gettext/autoconf-lib-link.
21780         * tests/havelib/rpathlzyx/configure.ac: New file, from
21781         gettext/autoconf-lib-link with modifications.
21782         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21783         with modifications.
21784
21785 2010-04-02  Bruno Haible  <bruno@clisp.org>
21786
21787         gnulib-tool: Create distributed built sources also for the tests.
21788         * gnulib-tool (func_create_testdir): Also generate distributed built
21789         sources in the tests directory.
21790
21791 2010-04-02  Bruno Haible  <bruno@clisp.org>
21792
21793         gnulib-tool: Obey user's environment variables.
21794         * gnulib-tool (func_create_testdir): When creating built sources,
21795         respect the environment variables for autoconf, automake, etc. given by
21796         the user.
21797
21798 2010-04-02  Bruno Haible  <bruno@clisp.org>
21799
21800         gnulib-tool: Provide the value of --m4-base to modules.
21801         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21802         of gl_m4_base.
21803
21804 2010-04-02  Eric Blake  <eblake@redhat.com>
21805
21806         maint.mk: fix some fallout
21807         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21808         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21809
21810 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21811
21812         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21813         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21814         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21815         (sc_cast_of_x_alloc_return_value): Likewise.
21816         (sc_cast_of_alloca_return_value): Likewise.
21817         (sc_space_tab): Likewise.
21818         (sc_prohibit_atoi_atof): Likewise.
21819         (sc_prohibit_magic_number_exit): Likewise.
21820         (sc_error_exit_success): Likewise.
21821         (sc_file_system): Likewise.
21822         (sc_prohibit_have_config_h): Likewise.
21823         (sc_require_config_h): Likewise.
21824         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21825         (sc_obsolete_symbols): Likewise.
21826         (sc_changelog): Likewise.
21827         (sc_program_name): Likewise.
21828         (sc_the_the): Likewise.
21829         (sc_trailing_blank): Likewise.
21830         (sc_two_space_separator_in_usage): Likewise.
21831         (sc_useless_cpp_parens): Likewise.
21832         (sc_GPL_version): Likewise.
21833         (sc_GFDL_version): Likewise.
21834         (sc_texinfo_acronym): Likewise.
21835         (sc_prohibit_cvs_keyword): Likewise.
21836         (sc_prohibit_stat_st_blocks): Likewise.
21837         (sc_prohibit_S_IS_definition): Likewise.
21838         (sc_redundant_const): Likewise.
21839         (sc_makefile_TAB_only_indentation): Likewise.
21840         (sc_m4_quote_check): Likewise.
21841         (sc_makefile_path_separator_check): Likewise.
21842         (sc_copyright_check): Likewise.
21843         (sc_Wundef_boolean): Likewise.
21844         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21845
21846         maint.mk: match 0 or more whitespace-before-function-call '('
21847         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21848         that have zero or two-and-more spaces between the function name
21849         and the open parenthesis.
21850         (sc_error_message_warn_fatal): Likewise.
21851         (sc_error_message_uppercase): Likewise.
21852         (sc_error_message_period): Likewise.
21853
21854 2010-03-31  Eric Blake  <eblake@redhat.com>
21855
21856         maint.mk: check for [ as well as test
21857         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21858         Based on a libvirt report by Matthias Bolte.
21859
21860         gnumakefile: don't squelch _version output
21861         * top/GNUmakefile (_version): Create one-shot dependency rather
21862         than using $(shell) when version must be regenerated.
21863         (_autoreconf): Run verbosely, by default.
21864
21865         sys_time: avoid compiler warnings
21866         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21867         unconditional, fixing regression from 2010-03-29.
21868         Reported by Simon Josefsson.
21869
21870 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21871
21872         maint.mk: s/_header_without_use/_sc_header_without_use/
21873         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21874         (sc_prohibit_assert_without_use): Use the new name.
21875         (sc_prohibit_close_stream_without_use): Likewise.
21876         (sc_prohibit_getopt_without_use): Likewise.
21877         (sc_prohibit_quotearg_without_use): Likewise.
21878         (sc_prohibit_quote_without_use): Likewise.
21879         (sc_prohibit_long_options_without_use): Likewise.
21880         (sc_prohibit_inttostr_without_use): Likewise.
21881         (sc_prohibit_ignore_value_without_use): Likewise.
21882         (sc_prohibit_error_without_use): Likewise.
21883         (sc_prohibit_xalloc_without_use): Likewise.
21884         (sc_prohibit_hash_without_use): Likewise.
21885         (sc_prohibit_hash_pjw_without_use): Likewise.
21886         (sc_prohibit_safe_read_without_use): Likewise.
21887         (sc_prohibit_argmatch_without_use): Likewise.
21888         (sc_prohibit_canonicalize_without_use): Likewise.
21889         (sc_prohibit_root_dev_ino_without_use): Likewise.
21890         (sc_prohibit_openat_without_use): Likewise.
21891         (sc_prohibit_c_ctype_without_use): Likewise.
21892         (sc_prohibit_signal_without_use): Likewise.
21893         (sc_prohibit_intprops_without_use): Likewise.
21894
21895 2010-03-30  Eric Blake  <eblake@redhat.com>
21896
21897         maint: improve module indicators
21898         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21899         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21900         columns, and avoid extra macro expansion.
21901
21902         fdopendir: work around FreeBSD bug
21903         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21904         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21905         * modules/dirent (Makefile.am): Substitute it.
21906         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21907         declaration.
21908         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21909         fix.
21910         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21911
21912 2010-03-29  Bruno Haible  <bruno@clisp.org>
21913
21914         Emit #pragma system_header after the inclusion guard, not before.
21915         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21916         guard that spans the entire file, not before. This enables an
21917         optimization in GCC's preprocessor.
21918         * lib/ctype.in.h: Likewise.
21919         * lib/dirent.in.h: Likewise.
21920         * lib/errno.in.h: Likewise.
21921         * lib/float.in.h: Likewise.
21922         * lib/getopt.in.h: Likewise.
21923         * lib/iconv.in.h: Likewise.
21924         * lib/langinfo.in.h: Likewise.
21925         * lib/locale.in.h: Likewise.
21926         * lib/math.in.h: Likewise.
21927         * lib/netdb.in.h: Likewise.
21928         * lib/netinet_in.in.h: Likewise.
21929         * lib/pty.in.h: Likewise.
21930         * lib/sched.in.h: Likewise.
21931         * lib/se-selinux.in.h: Likewise.
21932         * lib/search.in.h: Likewise.
21933         * lib/spawn.in.h: Likewise.
21934         * lib/stdarg.in.h: Likewise.
21935         * lib/stdint.in.h: Likewise.
21936         * lib/string.in.h: Likewise.
21937         * lib/strings.in.h: Likewise.
21938         * lib/sys_file.in.h: Likewise.
21939         * lib/sys_ioctl.in.h: Likewise.
21940         * lib/sys_time.in.h: Likewise.
21941         * lib/sys_times.in.h: Likewise.
21942         * lib/sys_utsname.in.h: Likewise.
21943         * lib/sys_wait.in.h: Likewise.
21944         * lib/sysexits.in.h: Likewise.
21945         * lib/wctype.in.h: Likewise.
21946
21947 2010-03-28  James Youngman  <jay@gnu.org>
21948
21949         save-cwd: don't leak a file descriptor when the caller execs.
21950         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21951         saved file descriptor.
21952         * modules/save-cwd (Depends-on): Depend on cloexec.
21953
21954 2010-03-29  Bruno Haible  <bruno@clisp.org>
21955
21956         Remove vestiges of fts-lgpl module.
21957         * lib/fts_.h: Assume GNULIB_FTS is 1.
21958         * lib/fts.c: Likewise.
21959         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21960
21961 2010-03-28  Bruno Haible  <bruno@clisp.org>
21962
21963         Fix definition of tests witness macro.
21964         * gnulib-tool (func_import): Fix definition of witness macro.
21965
21966 2010-03-28  Bruno Haible  <bruno@clisp.org>
21967
21968         Fix ioctl's protoype on glibc systems.
21969         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21970         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21971         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21972         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21973         signature. If not, arrange to replace the ioctl function.
21974         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21975         REPLACE_IOCTL.
21976         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21977         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21978         Reported by Ludovic Courtès <ludo@gnu.org>.
21979
21980 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21981
21982         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21983         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21984         made it so grep -r --include=GLOB* ... did not work.
21985
21986 2010-03-26  Jim Meyering  <meyering@redhat.com>
21987             Eric Blake  <eblake@redhat.com>
21988
21989         maint.mk: prohibit use of test's -o and -a operators
21990         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21991
21992 2010-03-28  Bruno Haible  <bruno@clisp.org>
21993
21994         Remove unused GNULIB_XYZ macro definitions.
21995         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21996         invocation.
21997
21998 2010-03-28  Bruno Haible  <bruno@clisp.org>
21999
22000         Mark privileged tests modules.
22001         * modules/idpriv-drop-tests (Status): New section.
22002         * modules/idpriv-droptemp-tests (Status): New section.
22003
22004 2010-03-28  Bruno Haible  <bruno@clisp.org>
22005
22006         Split C++ tests into separate tests modules.
22007         * modules/dirent-c++-tests: New file, extracted from
22008         modules/dirent-tests.
22009         * modules/dirent-tests: Depend on it.
22010         * modules/fcntl-h-c++-tests: New file, extracted from
22011         modules/fcntl-h-tests.
22012         * modules/fcntl-h-tests: Depend on it.
22013         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22014         * modules/glob-tests: Depend on it.
22015         * modules/iconv-h-c++-tests: New file, extracted from
22016         modules/iconv-h-tests.
22017         * modules/iconv-h-tests: Depend on it.
22018         * modules/langinfo-c++-tests: New file, extracted from
22019         modules/langinfo-tests.
22020         * modules/langinfo-tests: Depend on it.
22021         * modules/locale-c++-tests: New file, extracted from
22022         modules/locale-tests.
22023         * modules/locale-tests: Depend on it.
22024         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22025         * modules/math-tests: Depend on it.
22026         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22027         * modules/pty-tests: Depend on it.
22028         * modules/search-c++-tests: New file, extracted from
22029         modules/search-tests.
22030         * modules/search-tests: Depend on it.
22031         * modules/signal-c++-tests: New file, extracted from
22032         modules/signal-tests.
22033         * modules/signal-tests: Depend on it.
22034         * modules/spawn-c++-tests: New file, extracted from
22035         modules/spawn-tests.
22036         * modules/spawn-tests: Depend on it.
22037         * modules/stdio-c++-tests: New file, extracted from
22038         modules/stdio-tests.
22039         * modules/stdio-tests: Depend on it.
22040         * modules/stdlib-c++-tests: New file, extracted from
22041         modules/stdlib-tests.
22042         * modules/stdlib-tests: Depend on it.
22043         * modules/string-c++-tests: New file, extracted from
22044         modules/string-tests.
22045         * modules/string-tests: Depend on it.
22046         * modules/sys_ioctl-c++-tests: New file, extracted from
22047         modules/sys_ioctl-tests.
22048         * modules/sys_ioctl-tests: Depend on it.
22049         * modules/sys_select-c++-tests: New file, extracted from
22050         modules/sys_select-tests.
22051         * modules/sys_select-tests: Depend on it.
22052         * modules/sys_socket-c++-tests: New file, extracted from
22053         modules/sys_socket-tests.
22054         * modules/sys_socket-tests: Depend on it.
22055         * modules/sys_stat-c++-tests: New file, extracted from
22056         modules/sys_stat-tests.
22057         * modules/sys_stat-tests: Depend on it.
22058         * modules/sys_time-c++-tests: New file, extracted from
22059         modules/sys_time-tests.
22060         * modules/sys_time-tests: Depend on it.
22061         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22062         * modules/time-tests: Depend on it.
22063         * modules/unistd-c++-tests: New file, extracted from
22064         modules/unistd-tests.
22065         * modules/unistd-tests: Depend on it.
22066         * modules/wchar-c++-tests: New file, extracted from
22067         modules/wchar-tests.
22068         * modules/wchar-tests: Depend on it.
22069         * modules/wctype-c++-tests: New file, extracted from
22070         modules/wctype-tests.
22071         * modules/wctype-tests: Depend on it.
22072         Reported by Simon Josefsson.
22073
22074 2010-03-28  Bruno Haible  <bruno@clisp.org>
22075
22076         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22077         * gnulib-tool (func_exists_module): New function, extracted from
22078         func_verify_module.
22079         (func_verify_module): Use it.
22080         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22081         'foo' only if 'foo' exists.
22082         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22083         module.
22084
22085 2010-03-28  Bruno Haible  <bruno@clisp.org>
22086
22087         gnulib-tool: Add support for special categories of tests.
22088         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22089         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22090         (func_usage): Document them.
22091         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22092         inc_unportable_tests, inc_all_tests): New variables.
22093         (func_acceptable): Consider these variables.
22094         (func_modules_transitive_closure): Make it work when the 'Status' field
22095         consists of multiple words.
22096         (func_import): Store and restore the values of inc_cxx_tests,
22097         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22098         inc_all_tests in gnulib-comp.m4.
22099         (func_create_testdir): Set inc_all_tests to true.
22100         * doc/gnulib.texi (Extra tests modules): New section.
22101         Suggested by Jim Meyering.
22102
22103 2010-03-28  Bruno Haible  <bruno@clisp.org>
22104
22105         ansi-c++-opt: Allow turning off the C++ build by default.
22106         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22107         gl_CXX_CHOICE_DEFAULT_NO is defined.
22108         Requested by Eric Blake.
22109
22110 2010-03-28  Bruno Haible  <bruno@clisp.org>
22111
22112         unistd: Avoid #define replacements in C++ mode.
22113         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22114         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22115         setsockopt, shutdown, select): In C++, attach a warning to the function
22116         if possible, rather than #defining the symbol to a dysfunctional alias.
22117         Reported by John W. Eaton <jwe@gnu.org>.
22118
22119 2010-03-28  Bruno Haible  <bruno@clisp.org>
22120
22121         Fix link errors on mingw.
22122         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22123         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22124         $(LIBSOCKET).
22125         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22126         $(LIBSOCKET).
22127
22128 2010-03-28  Bruno Haible  <bruno@clisp.org>
22129             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22130
22131         lib-ignore: Determine different options for different compilers.
22132         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22133         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22134         Add comments.
22135         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22136         * NEWS: Mention the change.
22137
22138 2010-03-27  Bruno Haible  <bruno@clisp.org>
22139
22140         Remove unused GNULIB_XYZ macro definitions.
22141         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22142         * modules/fseek (configure.ac): Likewise.
22143         * modules/ioctl (configure.ac): Likewise.
22144         * modules/open (configure.ac): Likewise.
22145         * modules/stdlib-safer (configure.ac): Likewise.
22146
22147 2010-03-27  Bruno Haible  <bruno@clisp.org>
22148
22149         Add a remark about certain modules.
22150         * modules/malloc (Comment): New section.
22151         * modules/realloc (Comment): Likewise.
22152         * modules/sigpipe (Comment): Likewise.
22153
22154 2010-03-27  Bruno Haible  <bruno@clisp.org>
22155
22156         Resolve conflict between the two kinds of module indicators.
22157         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22158         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22159         * modules/canonicalize (configure.ac): Invoke
22160         gl_MODULE_INDICATOR_FOR_TESTS.
22161         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22162         GNULIB_XYZ.
22163         * tests/test-dirent-c++.cc: Likewise.
22164         * tests/test-dirent-safer.c: Likewise.
22165         * tests/test-dup2.c: Likewise.
22166         * tests/test-fchdir.c: Likewise.
22167         * tests/test-fcntl-h-c++.cc: Likewise.
22168         * tests/test-getopt.c: Likewise.
22169         * tests/test-getopt.h: Likewise.
22170         * tests/test-langinfo-c++.cc: Likewise.
22171         * tests/test-locale-c++.cc: Likewise.
22172         * tests/test-math-c++.cc: Likewise.
22173         * tests/test-pty-c++.cc: Likewise.
22174         * tests/test-search-c++.cc: Likewise.
22175         * tests/test-signal-c++.cc: Likewise.
22176         * tests/test-spawn-c++.cc: Likewise.
22177         * tests/test-stdio-c++.cc: Likewise.
22178         * tests/test-stdlib-c++.cc: Likewise.
22179         * tests/test-string-c++.cc: Likewise.
22180         * tests/test-sys_ioctl-c++.cc: Likewise.
22181         * tests/test-sys_select-c++.cc: Likewise.
22182         * tests/test-sys_socket-c++.cc: Likewise.
22183         * tests/test-sys_stat-c++.cc: Likewise.
22184         * tests/test-sys_time-c++.cc: Likewise.
22185         * tests/test-time-c++.cc: Likewise.
22186         * tests/test-unistd-c++.cc: Likewise.
22187         * tests/test-wchar-c++.cc: Likewise.
22188         * tests/uninorm/test-u8-nfc.c: Likewise.
22189         * tests/uninorm/test-u8-nfd.c: Likewise.
22190         * tests/uninorm/test-u8-nfkc.c: Likewise.
22191         * tests/uninorm/test-u8-nfkd.c: Likewise.
22192         * tests/uninorm/test-u16-nfc.c: Likewise.
22193         * tests/uninorm/test-u16-nfd.c: Likewise.
22194         * tests/uninorm/test-u16-nfkc.c: Likewise.
22195         * tests/uninorm/test-u16-nfkd.c: Likewise.
22196         * tests/uninorm/test-u32-nfc.c: Likewise.
22197         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22198         * tests/uninorm/test-u32-nfd.c: Likewise.
22199         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22200         * tests/uninorm/test-u32-nfkc.c: Likewise.
22201         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22202         * tests/uninorm/test-u32-nfkd.c: Likewise.
22203         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22204         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22205
22206 2010-03-27  Bruno Haible  <bruno@clisp.org>
22207
22208         Distinguish two kinds of module indicators.
22209         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22210         gl_MODULE_INDICATOR.
22211         (gl_MODULE_INDICATOR): New macro.
22212         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22213         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22214         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22215         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22216         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22217         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22218         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22219         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22220         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22221         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22222         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22223         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22226         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22227         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22228         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22229         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22230         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22231         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22232         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22233         * modules/cloexec (configure.ac): Likewise.
22234         * modules/getopt-gnu (configure.ac): Likewise.
22235         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22236         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22237         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22238         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22239
22240 2010-03-27  Bruno Haible  <bruno@clisp.org>
22241
22242         New module description field 'Comment'.
22243         * gnulib-tool: New option --extract-comment.
22244         (func_usage): Document it.
22245         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22246         (func_get_comment): New function.
22247         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22248
22249 2010-03-27  Bruno Haible  <bruno@clisp.org>
22250
22251         Addendum to 2010-02-07 commit.
22252         * gnulib-tool (func_usage): Document --extract-applicability option.
22253
22254 2010-03-27  Bruno Haible  <bruno@clisp.org>
22255
22256         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22257         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22258         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22259         rather than link errors.
22260
22261 2010-03-27  Bruno Haible  <bruno@clisp.org>
22262
22263         Avoid side effects from tests-related modules on the compilation of lib.
22264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22265         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22266         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22267         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22268         macro.
22269         (func_import): Define a witness macro. Assign it a value that depends
22270         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22271         tests-related modules.
22272         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22273         Reported by Jim Meyering.
22274
22275 2010-03-27  Bruno Haible  <bruno@clisp.org>
22276
22277         Factorize common .m4 code.
22278         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22279         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22280         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22281         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22282         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22283         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22284         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22285         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22286         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22287         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22288         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22289         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22290         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22291         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22292         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22293         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22294         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22295         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22297         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22298         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22299         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22300         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22301         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22302         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22303         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22304         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22307         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22308         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22309         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22310
22311 2010-03-27  Bruno Haible  <bruno@clisp.org>
22312
22313         Fix a compilation error on Cygwin with g++ >= 4.3.
22314         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22315         if it is undefined or if we alias it to chmod.
22316         (lstat): Don't warn about the use of this function if it is undefined
22317         or if we alias it to stat.
22318         Reported by Simon Josefsson.
22319
22320 2010-03-27  Bruno Haible  <bruno@clisp.org>
22321
22322         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22323         * modules/getlogin (configure.ac): Update.
22324
22325         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22326         * modules/getlogin_r (configure.ac): Update.
22327
22328         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22330         * modules/inet_ntop (configure.ac): Update.
22331
22332         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22333         * modules/inet_pton (configure.ac): Update.
22334
22335         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22336         * modules/mbslen (configure.ac): Update.
22337
22338         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22339         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22340         * modules/forkpty (configure.ac): Update.
22341         * modules/openpty (configure.ac): Update.
22342
22343 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22344
22345         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22346         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22347
22348 2010-03-25  Eric Blake  <eblake@redhat.com>
22349
22350         maint: use pragma consistently across replacement headers
22351         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22352         * lib/dirent.in.h (system_header): Likewise.
22353         * lib/errno.in.h (system_header): Likewise.
22354         * lib/float.in.h (system_header): Likewise.
22355         * lib/getopt.in.h (system_header): Likewise.
22356         * lib/iconv.in.h (system_header): Likewise.
22357         * lib/inttypes.in.h (system_header): Likewise.
22358         * lib/langinfo.in.h (system_header): Likewise.
22359         * lib/locale.in.h (system_header): Likewise.
22360         * lib/math.in.h (system_header): Likewise.
22361         * lib/netdb.in.h (system_header): Likewise.
22362         * lib/netinet_in.in.h (system_header): Likewise.
22363         * lib/pty.in.h (system_header): Likewise.
22364         * lib/sched.in.h (system_header): Likewise.
22365         * lib/se-selinux.in.h (system_header): Likewise.
22366         * lib/search.in.h (system_header): Likewise.
22367         * lib/spawn.in.h (system_header): Likewise.
22368         * lib/stdarg.in.h (system_header): Likewise.
22369         * lib/stdint.in.h (system_header): Likewise.
22370         * lib/string.in.h (system_header): Likewise.
22371         * lib/strings.in.h (system_header): Likewise.
22372         * lib/sys_file.in.h (system_header): Likewise.
22373         * lib/sys_ioctl.in.h (system_header): Likewise.
22374         * lib/sys_socket.in.h (system_header): Likewise.
22375         * lib/sys_times.in.h (system_header): Likewise.
22376         * lib/sys_utsname.in.h (system_header): Likewise.
22377         * lib/sys_wait.in.h (system_header): Likewise.
22378         * lib/sysexits.in.h (system_header): Likewise.
22379         * lib/unistd.in.h (system_header): Likewise.
22380         * lib/wctype.in.h (system_header): Likewise.
22381
22382         arpa/inet: fix mingw compilation warning
22383         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22384         Reported by Matthew Bolte.
22385
22386 2010-03-25  Bruno Haible  <bruno@clisp.org>
22387
22388         Avoid collision between gnulib wrapper and libintl wrapper.
22389         * lib/printf.c (printf): Don't define if a printf wrapper is already
22390         defined in intl/printf.c.
22391         Reported by Michel Boaventura <michel@michelboaventura.com>.
22392
22393 2010-03-25  Bruno Haible  <bruno@clisp.org>
22394
22395         Use ANSI C.
22396         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22397
22398 2010-03-25  Bruno Haible  <bruno@clisp.org>
22399
22400         Minor formatting changes.
22401         * lib/acosl.c: Insert space before function argument list.
22402         * lib/argz.c: Likewise.
22403         * lib/asinl.c: Likewise.
22404         * lib/expl.c: Likewise.
22405         * lib/gen-uni-tables.c: Likewise.
22406         * lib/gettext.h: Likewise.
22407         * lib/glthread/lock.h: Likewise.
22408         * lib/tanl.c: Likewise.
22409         * lib/uniname/uniname.c: Likewise.
22410         * tests/test-idpriv-drop.c: Likewise.
22411         * tests/test-idpriv-droptemp.c: Likewise.
22412         * tests/test-lock.c: Likewise.
22413         * tests/test-tls.c: Likewise.
22414         * lib/argp-help.c: Insert space before function-like macro argument
22415         list.
22416         * lib/memcmp.c: Likewise.
22417         * tests/test-base64.c: Likewise.
22418         * lib/localename.c: Insert space before sizeof's argument list.
22419         * lib/safe-alloc.h: Likewise.
22420         * lib/file-set.h: Insert space before macro argument list.
22421         * tests/test-argp.c: Likewise.
22422         * lib/argp-namefrob.h: Insert space before function parameter list.
22423         * lib/getaddrinfo.c: Likewise.
22424         * lib/netdb.in.h: Likewise.
22425         * lib/parse-duration.h: Likewise.
22426         * lib/parse-duration.c: Likewise.
22427         * lib/poll.c: Likewise.
22428         * lib/select.c: Likewise.
22429         * lib/trim.h: Likewise.
22430         * tests/test-usleep.c: Likewise.
22431         * lib/ldexpl.c: Insert space before function parameter list and before
22432         function argument list.
22433         * lib/logl.c: Likewise.
22434         * lib/sqrtl.c: Likewise.
22435         * lib/trim.c: Likewise.
22436         * lib/cosl.c: Use GNU style indentation. Insert space before function
22437         argument list.
22438         * lib/sinl.c: Likewise.
22439         * lib/tsearch.c: Insert space after 'for'.
22440         Reported by Jim Meyering.
22441
22442 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22443
22444         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22445         config header before grepping, as it's not present before
22446         autoreconf/configure are run.  Reported by Simon Josefsson.
22447
22448 2010-03-23  Bruno Haible  <bruno@clisp.org>
22449
22450         pt_chown: Make it work with automake < 1.11.
22451         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22452         Reported by Simon Josefsson.
22453
22454 2010-03-23  Bruno Haible  <bruno@clisp.org>
22455
22456         pt_chown: Don't depend on GPLed modules.
22457         * lib/pt_chown.c: Don't include idpriv.h.
22458         (main): Don't drop privileges.
22459         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22460         Reported by Simon Josefsson.
22461
22462 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22463
22464         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22465         suggestions from karl@freefriends.org (Karl Berry).
22466
22467 2010-03-22  Eric Blake  <eblake@redhat.com>
22468
22469         gethostname: further tweaks
22470         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22471         are overriding gethostname.
22472         Suggested by Bruno Haible.
22473
22474 2010-03-21  Bruno Haible  <bruno@clisp.org>
22475
22476         Fix comments.
22477         * lib/forkpty.c (rpl_forkpty): Fix comment.
22478         * lib/openpty.c (rpl_openpty): Likewise.
22479         Reported by Eric Blake.
22480
22481 2010-03-22  Eric Blake  <eblake@redhat.com>
22482
22483         gethostname: fix build on mingw
22484         * lib/unistd.in.h (includes): Work around fact that mingw
22485         <winsock2.h> re-includes <unistd.h>, by avoiding any
22486         redeclarations if we are being included by <winsock2.h>.
22487         Reported by Matthias Bolte.
22488
22489 2010-03-21  Bruno Haible  <bruno@clisp.org>
22490
22491         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22492         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22493         modifications.
22494         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22495         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22496         provide the replacement.
22497         * modules/forkpty (Depends-on): Add openpty, login_tty.
22498         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22499         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22500         * doc/glibc-functions/forkpty.texi: More supported platforms.
22501         * config/srclist.txt: Add forkpty.c (commented).
22502
22503 2010-03-21  Bruno Haible  <bruno@clisp.org>
22504
22505         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22506         (Makefile.am): Verify that PTY_LIB is defined.
22507
22508         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22509
22510 2010-03-21  Bruno Haible  <bruno@clisp.org>
22511
22512         Tests for module 'login_tty'.
22513         * modules/login_tty-tests: New file.
22514         * tests/test-login_tty.c: New file.
22515
22516         New module 'login_tty'.
22517         * lib/login_tty.c: New file.
22518         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22519         * modules/login_tty: New file.
22520         * doc/glibc-functions/login_tty.texi: Mention the new module.
22521
22522 2010-03-21  Bruno Haible  <bruno@clisp.org>
22523
22524         login_tty: Documentation.
22525         * doc/glibc-functions/login_tty.texi: New file.
22526         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22527
22528 2010-03-21  Bruno Haible  <bruno@clisp.org>
22529
22530         pty: Consistent macro naming.
22531         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22532         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22533         * modules/pty (configure.ac): Update.
22534
22535 2010-03-21  Bruno Haible  <bruno@clisp.org>
22536
22537         Tests for openpty: Make stricter.
22538         * tests/test-openpty.c (main): Add test of canonical processing and
22539         erase.
22540         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22541
22542         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22543         * lib/openpty.c (openpty): New replacement function.
22544         * lib/pty.in.h: Include <termios.h>.
22545         (openpty): Update declaration. Add comments.
22546         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22547         is not declared, arrange to provide the replacement. Check for _getpty
22548         and posix_openpt.
22549         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22550         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22551         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22552         * modules/pty-tests (test_pty_c___LDADD): New variable.
22553         * doc/glibc-functions/openpty.texi: More supported platforms.
22554
22555 2010-03-21  Bruno Haible  <bruno@clisp.org>
22556
22557         setenv: Tweaks.
22558         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22559         the test program.
22560         * doc/posix-functions/setenv.texi: Update platforms list.
22561
22562 2010-03-21  Bruno Haible  <bruno@clisp.org>
22563
22564         New module 'unlockpt'.
22565         * lib/unlockpt.c: New file, from glibc with modifications.
22566         * m4/unlockpt.m4: New file.
22567         * modules/unlockpt: New file.
22568         * lib/stdlib.in.h (unlockpt): New declaration.
22569         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22570         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22571         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22572         HAVE_UNLOCKPT.
22573         * doc/posix-functions/unlockpt.texi: Mention the new module.
22574         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22575         * config/srclist.txt: Add unlockpt.c (commented).
22576
22577 2010-03-21  Jim Meyering  <meyering@redhat.com>
22578
22579         maint.mk: prohibit inclusion of "intprops.h" without use
22580         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22581
22582 2010-03-21  Bruno Haible  <bruno@clisp.org>
22583
22584         New module 'grantpt'.
22585         * lib/grantpt.c: New file, from glibc with modifications.
22586         * m4/grantpt.m4: New file.
22587         * modules/grantpt: New file.
22588         * lib/stdlib.in.h (grantpt): New declaration.
22589         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22590         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22591         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22592         HAVE_GRANTPT.
22593         * doc/posix-functions/grantpt.texi: Mention the new module.
22594         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22595         * config/srclist.txt: Add grantpt.c (commented).
22596
22597 2010-03-21  Bruno Haible  <bruno@clisp.org>
22598
22599         New module 'pt_chown'.
22600         * lib/pt_chown.c: New file, from glibc with modifications.
22601         * lib/pty-private.h: New file, from glibc with modifications.
22602         * modules/pt_chown: New file.
22603         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22604
22605 2010-03-21  Bruno Haible  <bruno@clisp.org>
22606
22607         Tests for module 'ptsname'.
22608         * modules/ptsname-tests: New file.
22609         * tests/test-ptsname.c: New file.
22610
22611         New module 'ptsname'.
22612         * lib/ptsname.c: New file, from glibc with modifications.
22613         * m4/ptsname.m4: New file.
22614         * modules/ptsname: New file.
22615         * lib/stdlib.in.h (ptsname): New declaration.
22616         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22617         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22618         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22619         HAVE_PTSNAME.
22620         * doc/posix-functions/ptsname.texi: Mention the new module.
22621         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22622         * config/srclist.txt: Add ptsname.c (commented).
22623
22624 2010-03-21  Bruno Haible  <bruno@clisp.org>
22625
22626         Tests for module 'ttyname_r'.
22627         * modules/ttyname_r-tests: New file.
22628         * tests/test-ttyname_r.c: New file.
22629
22630         New module 'ttyname_r'.
22631         * lib/ttyname_r.c: New file.
22632         * m4/ttyname_r.m4: New file.
22633         * modules/ttyname_r: New file.
22634         * lib/unistd.in.h (ttyname_r): New declaration.
22635         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22636         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22637         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22638         HAVE_TTYNAME_R.
22639         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22640         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22641
22642 2010-03-20  Bruno Haible  <bruno@clisp.org>
22643
22644         signal: Undefine macro definitions in C++ mode.
22645         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22646         sigfillset): Undefine macro definitions from the system header in C++
22647         mode.
22648         Reported by John W. Eaton <jwe@gnu.org>.
22649
22650 2010-03-20  Bruno Haible  <bruno@clisp.org>
22651
22652         Ensure no #include statements inside extern "C" { ... }.
22653         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22654         contain #include statements.
22655         * lib/time.in.h: Likewise.
22656
22657 2010-03-20  Bruno Haible  <bruno@clisp.org>
22658
22659         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22660         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22661         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22662         Reported by John W. Eaton <jwe@gnu.org>.
22663
22664 2010-03-20  Bruno Haible  <bruno@clisp.org>
22665
22666         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22667         Reported by Jim Meyering.
22668
22669 2010-03-20  Bruno Haible  <bruno@clisp.org>
22670
22671         pipe: Set errno upon failure.
22672         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22673         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22674         errno value in error message.
22675
22676 2010-03-20  Bruno Haible  <bruno@clisp.org>
22677             Jim Meyering  <meyering@redhat.com>
22678
22679         lchown: Avoid "unused variable" warning.
22680         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22681
22682 2010-03-20  Bruno Haible  <bruno@clisp.org>
22683
22684         Work around unlink() bug on MacOS X 10.5.6.
22685         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22686         attempting to unlink a parent directory.
22687         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22688         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22689         activate for the replacement function.
22690         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22691
22692 2010-03-20  Bruno Haible  <bruno@clisp.org>
22693
22694         Fix link errors on Solaris 8.
22695         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22696         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22697
22698 2010-03-19  Jim Meyering  <meyering@redhat.com>
22699
22700         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22701         The _LIBC implementation of build_range_exp correctly honors the
22702         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22703         However, the non-_LIBC implementation would ignore that syntax-bit
22704         flag and return REG_ERANGE unconditionally.
22705         This change makes it honor that flag.
22706         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22707         Make two pointer parameters "const".
22708         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22709         (parse_bracket_exp): Update caller.
22710
22711         regex.m4: correct the reversed range endpoint ([b-a]) test
22712         * m4/regex.m4: When requiring that [b-a] evoke failure,
22713         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22714         test pass once again for x86-based systems.
22715
22716 2010-03-19  Bruno Haible  <bruno@clisp.org>
22717
22718         scandir: Fix link error on Solaris 8.
22719         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22720         macros.
22721
22722 2010-03-19  Bruno Haible  <bruno@clisp.org>
22723
22724         getusershell: Fix documentation.
22725         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22726         module.
22727         * doc/glibc-functions/setusershell.texi: Likewise.
22728
22729         getusershell: Provide declaration, missing on Solaris 9.
22730         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22731         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22732         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22733         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22735         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22736         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22737         HAVE_GETUSERSHELL.
22738         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22739
22740 2010-03-19  Bruno Haible  <bruno@clisp.org>
22741
22742         wctype: Provide iswblank function.
22743         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22744         exists and is fine.
22745         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22746         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22747         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22748         * doc/posix-functions/iswblank.texi: Update.
22749
22750 2010-03-19  Bruno Haible  <bruno@clisp.org>
22751
22752         Tests of module 'pty' in C++ mode.
22753         * modules/pty-tests: New file.
22754         * tests/test-pty-c++.cc: New file.
22755         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22756
22757 2010-03-19  Eric Blake  <eblake@redhat.com>
22758
22759         logb: fix documentation
22760         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22761         1.5 declaration bug.
22762
22763         forkpty, openpty: prefer glibc's const-safe prototype
22764         * lib/forkpty.c (rpl_forkpty): New file.
22765         * lib/openpty.c (rpl_openpty): Likewise.
22766         * modules/forkpty (Files): Distribute it.
22767         * modules/openpty (Files): Likewise.
22768         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22769         check...
22770         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22771         replacement for for non-const BSD signature.
22772         * modules/pty (Makefile.am): Substitute witnesses.
22773         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22774         * tests/test-forkpty.c: Update signature check.
22775         * tests/test-openpty.c: Likewise.
22776         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22777         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22778
22779         forkpty, openpty: split functions into new modules
22780         * modules/pty (Makefile.am): Substitute new witnesses.
22781         (Libraries): Move library detection...
22782         * modules/forkpty: ...into new module.
22783         * modules/openpty: Another new module.
22784         * modules/pty-tests: Rename and split...
22785         * modules/forkpty-tests: ...to this...
22786         * modules/openpty-tests: ...and this.
22787         * tests/test-pty.c: Rename and split...
22788         * tests/test-forkpty.c: ...to this...
22789         * tests/test-openpty.c: ...and this.
22790         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22791         (gl_PTY): Split library searching...
22792         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22793         (gl_FORKPTY, gl_OPENPTY): New macros.
22794         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22795         * NEWS: Mention the split.
22796         * MODULES.html.sh (Misc): Document the modules.
22797         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22798         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22799
22800         pty: improve replacement header
22801         * lib/pty.in.h: New file.
22802         * modules/pty (Files): Ship it.
22803         (Makefile.am): Always build replacement.
22804         * m4/pty.m4: Rename...
22805         * m4/pty_h.m4: ...to this.
22806         (gl_PTY): Modernize setting of witness macros; update check of
22807         forkpty to take proper advantage of cache.
22808         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22809
22810         getopt: avoid compiler warning
22811         * lib/getopt.c (attribute_hidden): Remove unused macro.
22812
22813 2010-03-18  Bruno Haible  <bruno@clisp.org>
22814
22815         Fix link errors on Solaris 8.
22816         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22817         * modules/search-tests (test_search_c___LDADD): Likewise.
22818         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22819         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22820         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22821         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22822         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22823         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22824         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22825
22826 2010-03-18  Bruno Haible  <bruno@clisp.org>
22827
22828         Fix bug introduced on 2010-03-14.
22829         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22830         (gl_SPAWN_H): Require it.
22831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22832         Reported by Simon Josefsson.
22833
22834 2010-03-18  Bruno Haible  <bruno@clisp.org>
22835
22836         Fix typo introduced on 2009-12-31.
22837         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22838         posix_spawn_file_actions_adddup2.
22839
22840 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22841         and Eric Blake  <eblake@redhat.com>
22842
22843         test-vc-list-files-git: make more robust
22844         * tests/test-vc-list-files-git.sh: Unset problematic environment
22845         variables.  Chain commands together.
22846
22847 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22848
22849         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22850         `AC_CHECK_DECL' invocation.
22851
22852 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22853
22854         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22855         appears before executable statements. Suggested by Petr Sumbera
22856         <Petr.Sumbera@Sun.COM>.
22857
22858 2010-03-14  Bruno Haible  <bruno@clisp.org>
22859
22860         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22861         portability problems. Instead use a simpler test.
22862         (main): Check that invalid arguments are rejected only on Linux.
22863
22864 2010-03-14  Bruno Haible  <bruno@clisp.org>
22865
22866         Fix bug introduced on 2009-12-31.
22867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22868         gl_PREREQ_SYS_H_WINSOCK2 always.
22869         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22870         SYS_SOCKET_H variable.
22871         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22872         Update comments.
22873         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22874         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22875         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22876         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22877         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22878
22879 2010-03-14  Bruno Haible  <bruno@clisp.org>
22880
22881         Fix values returned by sinl, cosl.
22882         * lib/trigl.h: Add specification comments.
22883         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22884         that combines the values from the precomputed table with the values of
22885         the Chebyshev polynomials.
22886
22887 2010-03-14  Bruno Haible  <bruno@clisp.org>
22888
22889         Fix compilation error when modules 'posix_spawn[p]' are not used.
22890         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22892
22893 2010-03-14  Bruno Haible  <bruno@clisp.org>
22894
22895         Fix compilation error on mingw when module 'time_r' is not used.
22896         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22897         is 1.
22898         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22899         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22900         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22901         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22902
22903 2010-03-14  Bruno Haible  <bruno@clisp.org>
22904
22905         Fix compilation error with Sun C.
22906         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22907         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22908         instead of GCC specific ULONG_LONG_MAX.
22909         * lib/xstrtoll.c: Likewise.
22910         * lib/xstrtoull.c: Likewise.
22911
22912 2010-03-13  Bruno Haible  <bruno@clisp.org>
22913
22914         Allow the user to disable C++ code and tests.
22915         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22916         (gl_PROG_ANSI_CXX): Require it.
22917
22918 2010-03-13  Bruno Haible  <bruno@clisp.org>
22919
22920         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22921         cases.
22922
22923 2010-03-13  Bruno Haible  <bruno@clisp.org>
22924
22925         Test that gnulib does not break the standard C++ headers.
22926         * tests/test-locale-c++2.cc: New file.
22927         * modules/locale-tests (Files): Add it.
22928         (Makefile.am): Compile it for test-locale-c++.
22929         * tests/test-math-c++2.cc: New file.
22930         * modules/math-tests (Files): Add it.
22931         (Makefile.am): Compile it for test-math-c++.
22932         * tests/test-signal-c++2.cc: New file.
22933         * modules/signal-tests (Files): Add it.
22934         (Makefile.am): Compile it for test-signal-c++.
22935         * tests/test-stdio-c++2.cc: New file.
22936         * modules/stdio-tests (Files): Add it.
22937         (Makefile.am): Compile it for test-stdio-c++.
22938         * tests/test-stdlib-c++2.cc: New file.
22939         * modules/stdlib-tests (Files): Add it.
22940         (Makefile.am): Compile it for test-stdlib-c++.
22941         * tests/test-string-c++2.cc: New file.
22942         * modules/string-tests (Files): Add it.
22943         (Makefile.am): Compile it for test-string-c++.
22944         * tests/test-time-c++2.cc: New file.
22945         * modules/time-tests (Files): Add it.
22946         (Makefile.am): Compile it for test-time-c++.
22947         Reported by John W. Eaton <jwe@gnu.org>.
22948
22949 2010-03-13  Bruno Haible  <bruno@clisp.org>
22950
22951         * gnulib-tool (func_usage): Clarify which options are available for
22952         --create-testdir and --create-megatestdir.
22953
22954 2010-03-13  Bruno Haible  <bruno@clisp.org>
22955
22956         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22957         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22958         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22959         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22960         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22961         when appropriate.
22962         Reported by Jim Meyering.
22963
22964 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22965
22966         * gnulib-tool (func_import): Explain origin of code.
22967
22968 2010-03-12  Bruno Haible  <bruno@clisp.org>
22969
22970         Fix problem with automake's definition of CXXLINK.
22971         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22972         Reported by Simon Josefsson and Ludovic Courtès.
22973
22974 2010-03-12  Bruno Haible  <bruno@clisp.org>
22975
22976         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22977         stable releases.
22978
22979 2010-03-11  Bruno Haible  <bruno@clisp.org>
22980
22981         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22982         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22983         whether the system provides one variant or multiple variants of the
22984         function.
22985         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22986         C++ compilers.
22987         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22988         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22989         Reported by Jim Meyering.
22990
22991 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22992
22993         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22994
22995 2010-03-08  Bruno Haible  <bruno@clisp.org>
22996
22997         gnulib-tool: Add support for --libtool in --create-testdir.
22998         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22999         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23000
23001 2010-03-08  Eric Blake  <eblake@redhat.com>
23002
23003         gnulib-tool.texi: mention possibility of git submodule
23004         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23005         submodules.
23006         * doc/.gitignore: Ignore another generated file.
23007
23008 2010-03-08  Karl Berry  <karl@gnu.org>
23009
23010         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23011         of committing gnulib files while skipping others.
23012
23013 2010-03-07  Bruno Haible  <bruno@clisp.org>
23014
23015         Tests of module 'wctype' in C++ mode.
23016         * tests/test-wctype-c++.cc: New file.
23017         * modules/wctype-tests (Files): Add it and tests/signature.h.
23018         (Depends-on): Add ansi-c++-opt.
23019         (Makefile.am): Arrange to compile and run test-wctype-c++.
23020
23021         Tests of module 'wchar' in C++ mode.
23022         * tests/test-wchar-c++.cc: New file.
23023         * modules/wchar-tests (Files): Add it and tests/signature.h.
23024         (Depends-on): Add ansi-c++-opt.
23025         (Makefile.am): Arrange to compile and run test-wchar-c++.
23026         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23027         gl_MODULE_INDICATOR.
23028
23029         Tests of module 'unistd' in C++ mode.
23030         * tests/test-unistd-c++.cc: New file.
23031         * modules/unistd-tests (Files): Add it and tests/signature.h.
23032         (Depends-on): Add ansi-c++-opt.
23033         (Makefile.am): Arrange to compile and run test-unistd-c++.
23034         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23035         gl_MODULE_INDICATOR.
23036
23037         Tests of module 'time' in C++ mode.
23038         * tests/test-time-c++.cc: New file.
23039         * modules/time-tests (Files): Add it and tests/signature.h.
23040         (Depends-on): Add ansi-c++-opt.
23041         (Makefile.am): Arrange to compile and run test-time-c++.
23042         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23043
23044         Tests of module 'sys_time' in C++ mode.
23045         * tests/test-sys_time-c++.cc: New file.
23046         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23047         (Depends-on): Add ansi-c++-opt.
23048         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23049         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23050         gl_MODULE_INDICATOR.
23051
23052         Tests of module 'sys_stat' in C++ mode.
23053         * tests/test-sys_stat-c++.cc: New file.
23054         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23055         (Depends-on): Add ansi-c++-opt.
23056         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23057         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23058         gl_MODULE_INDICATOR.
23059
23060         Tests of module 'sys_socket' in C++ mode.
23061         * tests/test-sys_socket-c++.cc: New file.
23062         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23063         (Depends-on): Add ansi-c++-opt.
23064         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23066         gl_MODULE_INDICATOR.
23067
23068         Tests of module 'sys_select' in C++ mode.
23069         * tests/test-sys_select-c++.cc: New file.
23070         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23071         (Depends-on): Add ansi-c++-opt.
23072         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23073         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23074         gl_MODULE_INDICATOR.
23075
23076         Tests of module 'sys_ioctl' in C++ mode.
23077         * tests/test-sys_ioctl-c++.cc: New file.
23078         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23079         (Depends-on): Add ansi-c++-opt.
23080         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23081         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23082         gl_MODULE_INDICATOR.
23083
23084         Tests of module 'string' in C++ mode.
23085         * tests/test-string-c++.cc: New file.
23086         * modules/string-tests (Files): Add it and tests/signature.h.
23087         (Depends-on): Add ansi-c++-opt.
23088         (Makefile.am): Arrange to compile and run test-string-c++.
23089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23090         gl_MODULE_INDICATOR.
23091
23092         Tests of module 'stdlib' in C++ mode.
23093         * tests/test-stdlib-c++.cc: New file.
23094         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23095         (Depends-on): Add ansi-c++-opt.
23096         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23097         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23098         gl_MODULE_INDICATOR.
23099
23100         Tests of module 'stdio' in C++ mode.
23101         * tests/test-stdio-c++.cc: New file.
23102         * modules/stdio-tests (Files): Add it and tests/signature.h.
23103         (Depends-on): Add ansi-c++-opt.
23104         (Makefile.am): Arrange to compile and run test-stdio-c++.
23105         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23106         gl_MODULE_INDICATOR.
23107
23108         Tests of module 'spawn' in C++ mode.
23109         * tests/test-spawn-c++.cc: New file.
23110         * modules/spawn-tests (Files): Add it and tests/signature.h.
23111         (Depends-on): Add ansi-c++-opt.
23112         (Makefile.am): Arrange to compile and run test-spawn-c++.
23113         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23114         gl_MODULE_INDICATOR.
23115
23116         Tests of module 'signal' in C++ mode.
23117         * tests/test-signal-c++.cc: New file.
23118         * modules/signal-tests (Files): Add it and tests/signature.h.
23119         (Depends-on): Add ansi-c++-opt.
23120         (Makefile.am): Arrange to compile and run test-signal-c++.
23121         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23122         gl_MODULE_INDICATOR.
23123
23124         Tests of module 'search' in C++ mode.
23125         * tests/test-search-c++.cc: New file.
23126         * modules/search-tests (Files): Add it and tests/signature.h.
23127         (Depends-on): Add ansi-c++-opt.
23128         (Makefile.am): Arrange to compile and run test-search-c++.
23129         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23130         gl_MODULE_INDICATOR.
23131
23132         Tests of module 'math' in C++ mode.
23133         * tests/test-math-c++.cc: New file.
23134         * modules/math-tests (Files): Add it and tests/signature.h.
23135         (Depends-on): Add ansi-c++-opt.
23136         (Makefile.am): Arrange to compile and run test-math-c++.
23137         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23138
23139         Tests of module 'locale' in C++ mode.
23140         * tests/test-locale-c++.cc: New file.
23141         * modules/locale-tests (Files): Add it and tests/signature.h.
23142         (Depends-on): Add ansi-c++-opt.
23143         (Makefile.am): Arrange to compile and run test-locale-c++.
23144         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23145         gl_MODULE_INDICATOR.
23146
23147         Tests of module 'langinfo' in C++ mode.
23148         * tests/test-langinfo-c++.cc: New file.
23149         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23150         (Depends-on): Add ansi-c++-opt.
23151         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23152         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23153         gl_MODULE_INDICATOR.
23154
23155         Tests of module 'iconv-h' in C++ mode.
23156         * tests/test-iconv-h-c++.cc: New file.
23157         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23158         (Depends-on): Add ansi-c++-opt.
23159         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23160
23161         Tests of module 'glob' in C++ mode.
23162         * tests/test-glob-c++.cc: New file.
23163         * modules/glob-tests (Files): Add it.
23164         (Depends-on): Add ansi-c++-opt.
23165         (Makefile.am): Arrange to compile and run test-glob-c++.
23166
23167         Tests of module 'fcntl-h' in C++ mode.
23168         * tests/test-fcntl-h-c++.cc: New file.
23169         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23170         (Depends-on): Add ansi-c++-opt.
23171         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23172         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23173         gl_MODULE_INDICATOR.
23174
23175         Tests of module 'dirent' in C++ mode.
23176         * tests/test-dirent-c++.cc: New file.
23177         * modules/dirent-tests (Files): Add it and tests/signature.h.
23178         (Depends-on): Add ansi-c++-opt.
23179         (Makefile.am): Arrange to compile and run test-dirent-c++.
23180         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23181         gl_MODULE_INDICATOR.
23182
23183         New module 'ansi-c++-opt'.
23184         * modules/ansi-c++-opt: New file.
23185         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23186
23187         Document C++ namespace mode.
23188         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23189
23190         wctype: Avoid #define replacements in C++ mode.
23191         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23192         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23193         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23194         In C++, define a namespaced alias symbol.
23195         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23196         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23197         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23198         rule.
23199
23200         wchar: Avoid #define replacements in C++ mode.
23201         * lib/wchar.in.h: Include c++defs.h.
23202         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23203         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23204         symbol.
23205         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23206         * modules/wchar (Depends-on): Add c++defs.
23207         (Makefile.am): Update wchar.h rule.
23208
23209         unistd: Avoid #define replacements in C++ mode.
23210         * lib/unistd.in.h: Include c++defs.h.
23211         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23212         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23213         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23214         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23215         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23216         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23217         symbol.
23218         (environ): Update.
23219         * modules/unistd (Depends-on): Add c++defs.
23220         (Makefile.am): Update unistd.h rule.
23221
23222         time: Avoid #define replacements in C++ mode.
23223         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23224         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23225         define a namespaced alias symbol.
23226         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23227         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23228         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23229         * modules/time (Depends-on): Add c++defs, warn-on-use.
23230         (Makefile.am): Update time.h rule.
23231         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23232         * modules/nanosleep (configure.ac): Likewise.
23233         * modules/strptime (configure.ac): Likewise.
23234         * modules/timegm (configure.ac): Likewise.
23235
23236         sys_time: Avoid #define replacements in C++ mode.
23237         * lib/sys_time.in.h: Include c++defs.h.
23238         (gettimeofday): In C++, define a namespaced alias symbol.
23239         * modules/sys_time (Depends-on): Add c++defs.
23240         (Makefile.am): Update sys/time.h rule.
23241
23242         sys_stat: Avoid #define replacements in C++ mode.
23243         * lib/sys_stat.in.h: Include c++defs.h.
23244         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23245         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23246         namespaced alias symbol.
23247         In C++, define a namespaced alias symbol.
23248         * modules/sys_stat (Depends-on): Add c++defs.
23249         (Makefile.am): Update sys/stat.h rule.
23250
23251         sys_socket: Avoid #define replacements in C++ mode.
23252         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23253         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23254         definitions also when the system has a <sys/socket.h>.
23255         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23256         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23257         In C++, define a namespaced alias symbol.
23258         * modules/sys_socket (Depends-on): Add c++defs.
23259         (Makefile.am): Update sys/socket.h rule.
23260
23261         sys_select: Avoid #define replacements in C++ mode.
23262         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23263         definitions also when the system has a <sys/select.h>.
23264         (select): In C++, define a namespaced alias symbol.
23265         * modules/sys_select (Depends-on): Add c++defs.
23266         (Makefile.am): Update sys/select.h rule.
23267
23268         sys_ioctl: Avoid #define replacements in C++ mode.
23269         * lib/sys_ioctl.in.h: Include c++defs.h.
23270         (ioctl): In C++, define a namespaced alias symbol.
23271         * modules/sys_ioctl (Depends-on): Add c++defs.
23272         (Makefile.am): Update sys/ioctl.h rule.
23273
23274         string: Avoid #define replacements in C++ mode.
23275         * lib/string.in.h: Include c++defs.h.
23276         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23277         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23278         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23279         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23280         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23281         * modules/string (Depends-on): Add c++defs.
23282         (Makefile.am): Update string.h rule.
23283
23284         stdlib: Avoid #define replacements in C++ mode.
23285         * lib/stdlib.in.h: Include c++defs.h.
23286         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23287         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23288         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23289         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23290         symbol.
23291         * modules/stdlib (Depends-on): Add c++defs.
23292         (Makefile.am): Update stdlib.h rule.
23293
23294         stdio: Avoid #define replacements in C++ mode.
23295         * lib/stdio.in.h: Include c++defs.h.
23296         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23297         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23298         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23299         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23300         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23301         namespaced alias symbol.
23302         * modules/stdio (Depends-on): Add c++defs.
23303         (Makefile.am): Update stdio.h rule.
23304
23305         spawn: Avoid #define replacements in C++ mode.
23306         * lib/spawn.in.h: Include c++defs.h.
23307         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23308         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23309         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23310         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23311         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23312         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23313         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23314         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23315         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23316         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23317         In C++, define a namespaced alias symbol.
23318         * modules/spawn (Depends-on): Add c++defs.
23319         (Makefile.am): Update spawn.h rule.
23320
23321         signal: Avoid #define replacements in C++ mode.
23322         * lib/signal.in.h: Include c++defs.h.
23323         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23324         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23325         namespaced alias symbol.
23326         * modules/signal (Depends-on): Add c++defs.
23327         (Makefile.am): Update signal.h rule.
23328
23329         search: Avoid #define replacements in C++ mode.
23330         * lib/search.in.h: Include c++defs.h.
23331         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23332         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23333         symbol.
23334         * modules/search (Depends-on): Add c++defs.
23335         (Makefile.am): Update search.h rule.
23336
23337         math: Avoid #define replacements in C++ mode.
23338         * lib/math.in.h: Include c++defs.h.
23339         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23340         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23341         trunc, truncl): In C++, define a namespaced alias symbol.
23342         * modules/math (Depends-on): Add c++defs.
23343         (Makefile.am): Update math.h rule.
23344
23345         locale: Avoid #define replacements in C++ mode.
23346         * lib/locale.in.h: Include c++defs.h.
23347         (duplocale): In C++, define a namespaced alias symbol.
23348         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23349         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23350         * modules/locale (Depends-on): Add c++defs.
23351         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23352
23353         langinfo: Avoid #define replacements in C++ mode.
23354         * lib/langinfo.in.h: Include c++defs.h.
23355         (nl_langinfo): In C++, define a namespaced alias symbol.
23356         * modules/langinfo (Depends-on): Add c++defs.
23357         (Makefile.am): Update langinfo.h rule.
23358
23359         iconv-h: Avoid #define replacements in C++ mode.
23360         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23361         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23362         symbol.
23363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23364         whenever iconv is present.
23365         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23366         (Makefile.am): Update iconv.h rule.
23367
23368         glob: Avoid #define replacements in C++ mode.
23369         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23370         (_gl_glob_errfunc_fn): New type.
23371         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23372         symbol.
23373         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23374         (Makefile.am): Update glob.h rule.
23375
23376         fcntl-h: Avoid #define replacements in C++ mode.
23377         * lib/fcntl.in.h: Include c++defs.h.
23378         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23379         * modules/fcntl-h (Depends-on): Add c++defs.
23380         (Makefile.am): Update fcntl.h rule.
23381
23382         dirent: Avoid #define replacements in C++ mode.
23383         * lib/dirent.in.h: Include c++defs.h.
23384         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23385         namespaced alias symbol.
23386         (dirfd): Update declaration.
23387         * modules/dirent (Depends-on): Add c++defs.
23388         (Makefile.am): Update dirent.h rule.
23389
23390         ctype: Make it usable in C++ code.
23391         * lib/ctype.in.h: Include c++defs.h.
23392         (isblank): Declare as extern "C".
23393         * modules/ctype (Depends-on): Add c++defs.
23394         (Makefile.am): Update ctype.h rule.
23395
23396         New module 'c++defs'.
23397         * modules/c++defs: New file.
23398         * build-aux/c++defs.h: New file.
23399         Reported by John W. Eaton <jwe@gnu.org>.
23400
23401 2010-03-07  Bruno Haible  <bruno@clisp.org>
23402
23403         logb: Provide missing declaration for Cygwin.
23404         * lib/math.in.h (logb): New declaration.
23405         * m4/logb.m4: New file.
23406         * modules/logb (Files): Add m4/logb.m4.
23407         (Depends-on): Add math.
23408         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23409         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23411         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23412         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23413
23414 2010-03-07  Bruno Haible  <bruno@clisp.org>
23415
23416         Fix test-cond link error.
23417         * tests/test-cond.c: Include <stdio.h>.
23418
23419 2010-03-07  Bruno Haible  <bruno@clisp.org>
23420
23421         Fix test-dirent-safer link error.
23422         * modules/dirent-safer-tests (Makefile.am): Define
23423         test_dirent_safer_LDADD.
23424
23425 2010-03-07  Bruno Haible  <bruno@clisp.org>
23426
23427         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23428         among default module list.
23429
23430 2010-03-07  Bruno Haible  <bruno@clisp.org>
23431
23432         Fix link error on platforms with GNU libiconv.
23433         * modules/unistr/u8-strcoll-tests (Makefile): Define
23434         test_u8_strcoll_LDADD.
23435         * modules/unistr/u16-strcoll-tests (Makefile): Define
23436         test_u16_strcoll_LDADD.
23437         * modules/unistr/u32-strcoll-tests (Makefile): Define
23438         test_u32_strcoll_LDADD.
23439
23440 2010-03-07  Bruno Haible  <bruno@clisp.org>
23441
23442         Use POSIX declarations for socket functions.
23443         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23444         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23445         rpl_sendto): Change declaration to match POSIX.
23446         * lib/connect.c (rpl_connect): Likewise.
23447         * lib/accept.c (rpl_accept): Likewise.
23448         * lib/bind.c (rpl_bind): Likewise.
23449         * lib/getpeername.c (rpl_getpeername): Likewise.
23450         * lib/getsockname.c (rpl_getsockname): Likewise.
23451         * lib/recv.c (rpl_recv): Likewise.
23452         * lib/send.c (rpl_send): Likewise.
23453         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23454         * lib/sendto.c (rpl_sendto): Likewise.
23455
23456 2010-03-06  Bruno Haible  <bruno@clisp.org>
23457
23458         Clarify access, euidaccess, faccessat.
23459         * doc/posix-functions/faccessat.texi: Mention security problem under
23460         "Other problems", not "Portability problems".
23461         * doc/posix-functions/access.texi: Likewise. Mention a related security
23462         problem.
23463         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23464         * lib/euidaccess.c: Add comments about platforms.
23465         * lib/unistd.in.h (access, euidaccess): Add warnings.
23466
23467 2010-03-07  Bruno Haible  <bruno@clisp.org>
23468
23469         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23470         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23471         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23472         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23473         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23474         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23475         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23476         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23477         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23478         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23479         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23480         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23481         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23482         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23483         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23484         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23485         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23486         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23487         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23488         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23489         Likewise.
23490         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23491         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23492         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23493         Likewise.
23494         * tests/test-spawn.c (main): Make it work when
23495         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23496
23497 2010-03-07  Bruno Haible  <bruno@clisp.org>
23498
23499         Fix incorrect Makefile.am generation in German locale.
23500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23501         Execute sed command with character range in C locale.
23502
23503 2010-03-06  Bruno Haible  <bruno@clisp.org>
23504
23505         Tests for module 'iconv-h'.
23506         * modules/iconv-h-tests: New file.
23507         * tests/test-iconv-h.c: New file.
23508
23509         New module 'iconv-h'.
23510         * modules/iconv-h: New file.
23511         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23512         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23513         (configure.ac): Remove gl_ICONV_H.
23514         (Makefile.am): Remove rule for iconv.h.
23515
23516 2010-03-06  Bruno Haible  <bruno@clisp.org>
23517
23518         More consistent naming of *.m4 files.
23519         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23520         * modules/wctype (Files): Update.
23521
23522         More consistent naming of *.m4 files.
23523         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23524         * modules/wchar (Files): Update.
23525
23526 2010-03-06  Jim Meyering  <meyering@redhat.com>
23527
23528         euidaccess: relax license to LGPLv2+
23529         * modules/euidaccess (License): Relax to LGPLv2+.
23530
23531 2010-03-06  Bruno Haible  <bruno@clisp.org>
23532
23533         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23534         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23535         (Makefile.am): Augment lib_SOURCES instead.
23536
23537 2010-03-04  Jim Meyering  <meyering@redhat.com>
23538
23539         utime: remove obsolete module
23540         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23541         unnecessary for years, and has been marked as obsolete for 10 months.
23542         * modules/utime: Remove file.
23543         * lib/utime.c: Remove file.
23544         * m4/utime.m4: Remove file.
23545         * m4/utimes-null.m4: Remove file.
23546         * doc/posix-functions/utime.texi (utime): Remove reference to
23547         the module.  Move the sole "fixed by gnulib" item into the
23548         "problems not fixed by Gnulib" list.
23549         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23550
23551 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23552
23553         * modules/exit (License): Relax license to LGPLv2+.
23554         (Status): Mark as obsolete.
23555         * NEWS: Mention deprecated 'exit' module.
23556         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23557         of now obsolete 'exit'.
23558
23559 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23560
23561         fts-lgpl: remove unused module
23562         * modules/fts-lgpl: Remove.
23563         * MODULES.html.sh (func_all_modules): Adjust.
23564         * check-module (find_included_lib_files): Adjust.
23565         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23566
23567 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23568
23569         copy-acl: enhance Solaris ACL error handling
23570         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23571         * lib/set-mode-acl.c (qset_acl): Likewise.
23572
23573 2010-03-02  Bruno Haible  <bruno@clisp.org>
23574
23575         spawn: Don't override the system defined values on FreeBSD 8.
23576         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23577         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23578         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23579         if HAVE_POSIX_SPAWN is 1.
23580         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23581
23582 2010-03-01  Bruno Haible  <bruno@clisp.org>
23583
23584         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23585         regarding Automake.
23586
23587 2010-02-25  Bruno Haible  <bruno@clisp.org>
23588
23589         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23590         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23591         setting, not afterwards.
23592         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23593
23594 2010-02-24  Eric Blake  <eblake@redhat.com>
23595
23596         bootstrap, git-version-gen: use timestamp
23597         * build-aux/git-version-gen (scriptversion): Force UTC.
23598         * build-aux/bootstrap (scriptversion): New variable.
23599
23600         bootstrap: allow older git
23601         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23602         older than 1.6.4.  Requested by the libvirt project.
23603
23604 2010-02-23  Eric Blake  <eblake@redhat.com>
23605
23606         warn-on-use: work with old autoconf
23607         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23608         AS_VAR semantics of autoconf 2.60.
23609         Reported by Bruno Haible.
23610
23611         bootstrap: improve some comments
23612         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23613         clarification comments.
23614
23615         gettimeofday: provide correct function
23616         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23617         when replacement is declared, otherwise provide gettimeofday.
23618         Reported by Michael Goffioul.
23619
23620 2010-02-23  Jim Meyering  <meyering@redhat.com>
23621
23622         lib-ignore: relax license to "unlimited", not LGPLv2+
23623         * modules/lib-ignore (License): Relax to "unlimited".
23624
23625 2010-02-23  Jim Meyering  <meyering@redhat.com>
23626
23627         lib-ignore: relax license to LGPLv2+
23628         * modules/lib-ignore (License): Relax to LGPLv2+.
23629
23630 2010-02-22  Eric Blake  <eblake@redhat.com>
23631
23632         lseek: avoid bash 3.2 broken pipe bug
23633         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23634         warning from bash 3.2.
23635         Reported by Ben Pfaff, with analysis from Bruno Haible.
23636
23637         bootstrap: support non-FSF copyright holder
23638         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23639         bootstrap.conf override of COPYRIGHT_HOLDER.
23640         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23641
23642         bootstrap: interoperate with gettext 0.14.1
23643         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23644
23645         bootstrap: allow for alternate submodule location
23646         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23647         hardcoding submodule location.
23648         (gnulib_mk): Allow direct use of Makefile.am.
23649
23650         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23651         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23652         rather than reconfiguring where the submodule points.
23653
23654         gettimeofday: restore support for platforms that lack function
23655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23656         replacement if function is missing.
23657         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23658         * modules/sys_time (Makefile.am): Substitute it.
23659         * lib/sys_time.in.h (gettimeofday): Check it.
23660         Reported by Michael Goffioul.
23661
23662 2010-02-21  Bruno Haible  <bruno@clisp.org>
23663
23664         * lib/stdio.in.h (obstack_printf): Fix typo.
23665
23666 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23667
23668         vc-list-files: use bzr ls's -R option
23669         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23670         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23671
23672 2010-02-21  Jim Meyering  <meyering@redhat.com>
23673
23674         init.sh: fix EXEEXT shims to work also for names like test-prog
23675         * tests/init.sh: Re-exec a better shell, when needed.
23676         If the current shell lacks support for posix $(...), an init.sh-using
23677         test will now try to find a shell that supports that.  If EXEEXT is
23678         nonempty, we also require support for hyphen-in-alias-name and shell
23679         substitutions like ${var#glob}.  Failure to find such a shell results
23680         in a skipped test.
23681
23682 2010-02-21  Bruno Haible  <bruno@clisp.org>
23683
23684         Really work around around "broken pipe" error message from bash 3.2.
23685         * gnulib-tool (func_reset_sigpipe): Remove function.
23686         (echo): In bash 3.2, define to a function that uses printf.
23687         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23688
23689 2010-02-20  Bruno Haible  <bruno@clisp.org>
23690
23691         Restore support for automake 1.9.6 with autoconf 2.61.
23692         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23693         Reported by James Youngman <jay@gnu.org>.
23694
23695 2010-02-20  Bruno Haible  <bruno@clisp.org>
23696
23697         Improve *printf warning condition.
23698         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23699         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23700         and the function is overridden due to SIGPIPE emulation.
23701
23702 2010-02-20  Bruno Haible  <bruno@clisp.org>
23703
23704         * lib/stdio.in.h: Tweak comments.
23705
23706 2010-02-19  Bruno Haible  <bruno@clisp.org>
23707
23708         Make it easier to find modules. New gnulib-tool option '--find'.
23709         * gnulib-tool: New option --find.
23710         (func_usage): Document it.
23711         (func_sanitize_modulelist): New function, extracted from
23712         func_all_modules.
23713         (func_all_modules): Invoke it.
23714         * doc/gnulib-tool.texi (Which modules?): New node.
23715
23716 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23717
23718         * lib/sys_select.in.h: Provide select replacement even if
23719         sys/select.h exists on a system, for Interix.
23720
23721 2010-02-18  Jim Meyering  <meyering@redhat.com>
23722
23723         init.sh: don't use $(...) just yet
23724         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23725         to accommodate e.g., Solaris' /bin/sh.
23726
23727 2010-02-17  Bruno Haible  <bruno@clisp.org>
23728
23729         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23730         Reported by Ludovic Courtès <ludo@gnu.org>.
23731
23732 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23733
23734         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23735         linking with -lintl.
23736
23737 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23738
23739         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23740         if not provided by the system's netdb.h.  Reported by
23741         ludo@gnu.org (Ludovic Courtès).
23742
23743 2010-02-15  Jim Meyering  <meyering@redhat.com>
23744
23745         init.sh: improve portability and efficiency
23746         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23747         "dummy" in a for loop.
23748         Use '!', not '^' to select the complement of a character set used
23749         in a "case" statement.
23750         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23751         Suggestions from Eric Blake.
23752
23753         init.sh: automatically accommodate programs with the .exe suffix
23754         Automatically arrange for an invocation of "prog" to execute the
23755         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23756         may use the simpler "prog", yet still work when built on a system
23757         that requires specifying the added suffix.
23758         Do this by constructing a function named "prog" that invokes
23759         "prog.exe" for each .exe file in selected directories.
23760         * tests/init.sh (find_exe_basenames_): New function.
23761         (create_exe_shim_functions_): New function.
23762         (path_prepend_): Use it.
23763
23764         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23765         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23766         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23767
23768 2010-02-14  Jim Meyering  <meyering@redhat.com>
23769
23770         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23771         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23772         (sc_prohibit_hash_pjw_without_use): New rule.
23773
23774         maint.mk: allow the default upload destination dir to be overridden
23775         * top/maint.mk (upload_dest_dir_): Define with a default that
23776         preserves the status quo.
23777         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23778         Reported by Peter Simons.
23779
23780         maint.mk: prohibit inclusion of "hash.h" without_use
23781         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23782
23783 2010-02-10  Jim Meyering  <meyering@redhat.com>
23784
23785         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23786         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23787
23788 2010-02-09  Eric Blake  <ebb9@byu.net>
23789         and Bruno Haible  <bruno@clisp.org>
23790
23791         obstack-printf-posix: ensure declaration
23792         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23793         extracted from gl_FUNC_OBSTACK_PRINTF.
23794         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23795         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23796         Likewise.
23797         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23798         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23799         0.
23800
23801 2010-02-08  Bruno Haible  <bruno@clisp.org>
23802
23803         gnulib-tool: Fix typo in 2010-02-07 commit.
23804         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23805         Reported by Eric Blake.
23806
23807 2010-02-07  Bruno Haible  <bruno@clisp.org>
23808
23809         gnulib-tool: Fix up caching patches.
23810         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23811         option --no-cache. Use associative arrays when supported by the shell.
23812         (sed_comments): New variable.
23813         (modcache): Renamed from do_cache.
23814         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23815         abbreviate unnecessarily.
23816         (have_associative): New variable.
23817         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23818         way also for ksh and zsh.
23819         (func_init_sed_convert_to_cache_statements): New function, extracted
23820         from func_cache_lookup_module. Add support for associative arrays.
23821         Don't set the c_MODULE_cached variable here. Ignore all lines before
23822         the first field header. Remove only the final newline, not all trailing
23823         newlines. Support empty fields correctly. Limit the use of 'eval' to
23824         assignments.
23825         (func_get_description, func_get_status, func_get_notice,
23826         func_get_applicability, func_get_filelist, func_get_dependencies,
23827         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23828         func_get_automake_snippet, func_get_include_directive,
23829         func_get_link_directive, func_get_license, func_get_maintainer):
23830         Update documentation. List the unoptimized code first. Add support for
23831         associative arrays. Limit the use of 'eval' to assignments.
23832         (func_get_applicability): Undo stylistic pessimisations.
23833         (func_get_automake_snippet, func_get_include_directive): Reduce code
23834         duplication.
23835         (func_modules_transitive_closure, func_modules_add_dummy,
23836         func_modules_notice, func_modules_to_filelist, func_add_file,
23837         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23838         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23839         func_create_testdir, func_create_megatestdir): Update documentation.
23840
23841 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23842
23843         * gnulib-tool (func_cache_lookup_module): Store the module name
23844         belonging to the cache variable; error out if two different
23845         module names map to the same cache variable name.
23846
23847 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23848
23849         gnulib-tool: Make caching optional.
23850         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23851         Update matching short versions of --no-changelog.
23852         (func_usage): Update.
23853         (sed_extract_cache_prog): Renamed from ...
23854         (sed_extract_prog): ... this; revert to old extraction script.
23855         (func_get_description, func_get_status)
23856         (func_get_notice, func_get_applicability, func_get_filelist)
23857         (func_get_dependencies, func_get_autoconf_early_snippet)
23858         (func_get_autoconf_snippet, func_get_automake_snippet)
23859         (func_get_include_directive, func_get_link_directive)
23860         (func_get_license, func_get_maintainer): If $do_cache is false,
23861         use old, non-caching extraction scripts.
23862         Suggestion by Bruno Haible.
23863
23864 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23865
23866         gnulib-tool: cache module metainformation.
23867         * gnulib-tool (sed_extract_prog): Match newline before each
23868         header, and rewrite header to a shell variable suffix.
23869         (func_cache_var, func_cache_lookup_module): New functions,
23870         to turn a module name into a cache variable prefix, and to
23871         look up and cache module metainformation.
23872         (func_get_description, func_get_status)
23873         (func_get_notice, func_get_applicability, func_get_filelist)
23874         (func_get_dependencies, func_get_autoconf_early_snippet)
23875         (func_get_autoconf_snippet, func_get_automake_snippet)
23876         (func_get_include_directive, func_get_link_directive)
23877         (func_get_license, func_get_maintainer): Use
23878         func_cache_lookup_module.
23879
23880 2010-02-07  Bruno Haible  <bruno@clisp.org>
23881
23882         fnctl: Fix missing dependency.
23883         * modules/fcntl (Depends-on): Add getdtablesize.
23884         Reported by John W. Eaton <jwe@gnu.org>.
23885
23886 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23887
23888         Argp: fix recognition of short alias options.
23889
23890         * lib/argp-parse.c (convert_options): Fix improper use of
23891         `|' between character values.
23892         * tests/test-argp.c (group1_option): New alias option
23893         --read (-r).
23894         (group1_parser): Special handling for 'r'.
23895         (test15): New test case.
23896         (test_fun): Add test15.
23897         * tests/test-argp-2.sh: Update expected --help and --usage
23898         outputs.
23899
23900 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23901
23902         * tests/test-argp.c: Fix indentation.
23903
23904 2010-02-04  Eric Blake  <ebb9@byu.net>
23905
23906         gettimeofday: expose type of second argument
23907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23908         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23909         * tests/test-gettimeofday.c: Use it to silence warning.
23910         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23911         the issue.
23912
23913 2010-02-03  Jim Meyering  <meyering@redhat.com>
23914
23915         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23916         * lib/regcomp.c (TYPE_SIGNED): Define.
23917         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23918
23919         regcomp.c: avoid a new -Wshadow warning
23920         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23921
23922 2010-02-01  Jim Meyering  <meyering@redhat.com>
23923
23924         removing useless parentheses in cpp #define directives
23925         For motivation, see commit c0221df4, "define STREQ(a,b)
23926         consistently, removing useless parentheses"
23927         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23928         * lib/mountlist.c (MNT_IGNORE): Likewise.
23929         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23930
23931 2010-02-01  Eric Blake  <ebb9@byu.net>
23932
23933         sys_time: use link-warning
23934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23935         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23936         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23937         * modules/sys_time (Depends-on): Add warn-on-use.
23938         (Makefile.am): Always build replacement.
23939         (configure.ac): Update substitutions.
23940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23941         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23942         bother with SYS_TIME_H.
23943         * modules/gettimeofday (configure.ac): Declare indicator.
23944         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23945         in use.
23946
23947         closein-tests: silence compiler warning
23948         * tests/test-closein.c (main): Ignore fread result.
23949         * modules/closein-tests (Depends-on): Add ignore-value.
23950
23951         tests: silence warning about system return
23952         * tests/test-areadlink-with-size.c (main): Ignore system result.
23953         * tests/test-areadlink.c (main): Likewise.
23954         * tests/test-areadlinkat-with-size.c (main): Likewise.
23955         * tests/test-areadlinkat.c (main): Likewise.
23956         * tests/test-canonicalize-lgpl.c (main): Likewise.
23957         * tests/test-canonicalize.c (main): Likewise.
23958         * tests/test-chown.c (main): Likewise.
23959         * tests/test-fchownat.c (main): Likewise.
23960         * tests/test-fdutimensat.c (main): Likewise.
23961         * tests/test-fstatat.c (main): Likewise.
23962         * tests/test-futimens.c (main): Likewise.
23963         * tests/test-lchown.c (main): Likewise.
23964         * tests/test-link.c (main): Likewise.
23965         * tests/test-linkat.c (main): Likewise.
23966         * tests/test-lstat.c (main): Likewise.
23967         * tests/test-mkdir.c (main): Likewise.
23968         * tests/test-mkdirat.c (main): Likewise.
23969         * tests/test-mkfifo.c (main): Likewise.
23970         * tests/test-mkfifoat.c (main): Likewise.
23971         * tests/test-mknod.c (main): Likewise.
23972         * tests/test-readlink.c (main): Likewise.
23973         * tests/test-remove.c (main): Likewise.
23974         * tests/test-rename.c (main): Likewise.
23975         * tests/test-renameat.c (main): Likewise.
23976         * tests/test-rmdir.c (main): Likewise.
23977         * tests/test-symlink.c (main): Likewise.
23978         * tests/test-symlinkat.c (main): Likewise.
23979         * tests/test-unlink.c (main): Likewise.
23980         * tests/test-unlinkat.c (main): Likewise.
23981         * tests/test-utimens.c (main): Likewise.
23982         * tests/test-utimensat.c (main): Likewise.
23983         * modules/areadlink-tests (Depends-on): Add ignore-value.
23984         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23985         * modules/areadlinkat-tests (Depends-on): Likewise.
23986         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23987         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23988         * modules/canonicalize-tests (Depends-on): Likewise.
23989         * modules/chown-tests (Depends-on): Likewise.
23990         * modules/fdutimensat-tests (Depends-on): Likewise.
23991         * modules/futimens-tests (Depends-on): Likewise.
23992         * modules/lchown-tests (Depends-on): Likewise.
23993         * modules/link-tests (Depends-on): Likewise.
23994         * modules/linkat-tests (Depends-on): Likewise.
23995         * modules/lstat-tests (Depends-on): Likewise.
23996         * modules/mkdir-tests (Depends-on): Likewise.
23997         * modules/mkfifo-tests (Depends-on): Likewise.
23998         * modules/mkfifoat-tests (Depends-on): Likewise.
23999         * modules/mknod-tests (Depends-on): Likewise.
24000         * modules/openat-tests (Depends-on): Likewise.
24001         * modules/readlink-tests (Depends-on): Likewise.
24002         * modules/remove-tests (Depends-on): Likewise.
24003         * modules/rename-tests (Depends-on): Likewise.
24004         * modules/renameat-tests (Depends-on): Likewise.
24005         * modules/rmdir-tests (Depends-on): Likewise.
24006         * modules/symlink-tests (Depends-on): Likewise.
24007         * modules/symlinkat-tests (Depends-on): Likewise.
24008         * modules/unlink-tests (Depends-on): Likewise.
24009         * modules/utimens-tests (Depends-on): Likewise.
24010         * modules/utimensat-tests (Depends-on): Likewise.
24011
24012 2010-01-31  Bruno Haible  <bruno@clisp.org>
24013
24014         Perform the same test for many <math.h> functions.
24015         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24016         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24017         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24018         of gl_MATHFUNC.
24019         * modules/acos (configure.ac): Likewise.
24020         * modules/asin (configure.ac): Likewise.
24021         * modules/atan (configure.ac): Likewise.
24022         * modules/atan2 (configure.ac): Likewise.
24023         * modules/cbrt (configure.ac): Likewise.
24024         * modules/copysign (configure.ac): Likewise.
24025         * modules/cos (configure.ac): Likewise.
24026         * modules/cosh (configure.ac): Likewise.
24027         * modules/erf (configure.ac): Likewise.
24028         * modules/erfc (configure.ac): Likewise.
24029         * modules/exp (configure.ac): Likewise.
24030         * modules/fmod (configure.ac): Likewise.
24031         * modules/hypot (configure.ac): Likewise.
24032         * modules/j0 (configure.ac): Likewise.
24033         * modules/j1 (configure.ac): Likewise.
24034         * modules/jn (configure.ac): Likewise.
24035         * modules/lgamma (configure.ac): Likewise.
24036         * modules/log (configure.ac): Likewise.
24037         * modules/log10 (configure.ac): Likewise.
24038         * modules/log1p (configure.ac): Likewise.
24039         * modules/pow (configure.ac): Likewise.
24040         * modules/remainder (configure.ac): Likewise.
24041         * modules/sin (configure.ac): Likewise.
24042         * modules/sinh (configure.ac): Likewise.
24043         * modules/tan (configure.ac): Likewise.
24044         * modules/tanh (configure.ac): Likewise.
24045         * modules/y0 (configure.ac): Likewise.
24046         * modules/y1 (configure.ac): Likewise.
24047         * modules/yn (configure.ac): Likewise.
24048         Suggested by Paolo Bonzini.
24049
24050 2010-01-31  Bruno Haible  <bruno@clisp.org>
24051
24052         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24053
24054 2010-01-31  Bruno Haible  <bruno@clisp.org>
24055
24056         Work around getdelim() bug on FreeBSD 8.0.
24057         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24058         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24059         not work.
24060         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24061         is 1.
24062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24063         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24064         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24065         a non-zero size.
24066         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24067
24068 2010-01-31  Bruno Haible  <bruno@clisp.org>
24069
24070         Work around getline() bug on FreeBSD 8.0.
24071         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24072         and a non-zero size.
24073         * tests/test-getline.c (main): Likewise.
24074         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24075         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24076
24077 2010-01-28  Eric Blake  <ebb9@byu.net>
24078
24079         regex: fix build failure
24080         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24081         platforms.
24082
24083 2010-01-28  Jim Meyering  <meyering@redhat.com>
24084
24085         regex: do not ignore memory allocation failure
24086         * lib/regex_internal.c (create_cd_newstate): Detect
24087         re_node_set_init_copy failure.   Extracted from glibc commit
24088         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24089
24090         regex: sync more white-space changes from libc
24091         * lib/regex_internal.c: White-space only changes.
24092         * lib/regexec.c: Likewise.
24093
24094         regex: add many uses of __attribute_warn_unused_result__
24095         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24096         * lib/regexec.c: Likewise.
24097         Extracted from a messy glibc commit.
24098
24099         regcomp.c: spelling and merge-artifact from glibc
24100         * lib/regcomp.c: Merge remainder of glibc's
24101         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24102
24103         regcomp.c: sync white-space changes from glibc
24104         * lib/regcomp.c: Merge to accommodate white space
24105         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24106
24107         regcomp.c: do not ignore internal return values
24108         * lib/regcomp.c: Do not ignore internal return values.
24109         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24110         but without its white-space changes and spelling fixes.
24111
24112         regex_internal.h: define __attribute_warn_unused_result__
24113         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24114
24115         maint: add a syntax-check rule to check for vulnerable Makefile.in
24116         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24117
24118 2010-01-27  Jim Meyering  <meyering@redhat.com>
24119
24120         ncftpput-ftp: clean up spaces
24121         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24122         Remove trailing blanks.
24123
24124 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24125
24126         * build-aux/git-version-gen: Fix copyright statement.
24127         * build-aux/gnupload: Likewise.
24128         * tests/test-arcfour.c: Likewise.
24129         * tests/test-arctwo.c: Likewise.
24130         * tests/test-count-one-bits.c: Likewise.
24131         * tests/test-crc.c: Likewise.
24132         * tests/test-des.c: Likewise.
24133         * tests/test-gc-arcfour.c: Likewise.
24134         * tests/test-gc-arctwo.c: Likewise.
24135         * tests/test-gc-des.c: Likewise.
24136         * tests/test-gc-hmac-md5.c: Likewise.
24137         * tests/test-gc-hmac-sha1.c: Likewise.
24138         * tests/test-gc-md2.c: Likewise.
24139         * tests/test-gc-md4.c: Likewise.
24140         * tests/test-gc-md5.c: Likewise.
24141         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24142         * tests/test-gc-rijndael.c: Likewise.
24143         * tests/test-gc-sha1.c: Likewise.
24144         * tests/test-gc.c: Likewise.
24145         * tests/test-gethostname.c: Likewise.
24146         * tests/test-gettimeofday.c: Likewise.
24147         * tests/test-hash.c: Likewise.
24148         * tests/test-hmac-md5.c: Likewise.
24149         * tests/test-hmac-sha1.c: Likewise.
24150         * tests/test-md2.c: Likewise.
24151         * tests/test-md4.c: Likewise.
24152         * tests/test-md5.c: Likewise.
24153         * tests/test-memchr.c: Likewise.
24154         * tests/test-memchr2.c: Likewise.
24155         * tests/test-memcmp.c: Likewise.
24156         * tests/test-memmem.c: Likewise.
24157         * tests/test-memrchr.c: Likewise.
24158         * tests/test-rawmemchr.c: Likewise.
24159         * tests/test-read-file.c: Likewise.
24160         * tests/test-rijndael.c: Likewise.
24161         * tests/test-sockets.c: Likewise.
24162         * tests/test-strchrnul.c: Likewise.
24163         * tests/test-strstr.c: Likewise.
24164         * tests/test-strtod.c: Likewise.
24165         * build-aux/ncftpput-ftp: Likewise.
24166
24167 2010-01-26  Eric Blake  <ebb9@byu.net>
24168
24169         ignore-value: update recommended header name
24170         * modules/ignore-value (Include): Only use <> for headers that
24171         exist in glibc.
24172
24173 2010-01-26  Jim Meyering  <meyering@redhat.com>
24174
24175         test-userspec.c: avoid compiler warnings
24176         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24177         and "initialization discards qualifiers..." warnings.
24178         Put the first "uid" in its own scope, and make char* members "const".
24179
24180 2010-01-25  Bruno Haible  <bruno@clisp.org>
24181
24182         gnulib-tool: Make warning diagnostics consistent.
24183         * gnulib-tool (func_warning): New function.
24184         Use it everywhere where gnulib-tool produces output to stderr and it is
24185         not a fatal error.
24186
24187 2010-01-25  Bruno Haible  <bruno@clisp.org>
24188
24189         Fix test dependencies.
24190         * modules/xstrtol-tests (Depends-on): Add inttypes.
24191         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24192
24193 2010-01-25 Pádraig Brady <P@draigBrady.com>
24194
24195         syntax-check: detect incorrect boolean macro values in config.h
24196         * modules/maintainer-makefile (configure.ac): Parameterize the location
24197         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24198         The logic is from Eric Blake and the location indicated by Jim Meyering.
24199         Note the more natural CONFIG_HEADER name is prohibited by automake
24200         for backwards compatibility reasons.
24201         * top/maint.mk (sc_Wundef_boolean): New rule.
24202
24203 2010-01-25  Jim Meyering  <meyering@redhat.com>
24204
24205         bootstrap: detect MacOS 10.6's shasum, too
24206         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24207         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24208
24209 2010-01-23  Jim Meyering  <meyering@redhat.com>
24210
24211         xstrtoll: new module
24212         * modules/xstrtoll: New file.
24213         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24214         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24215         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24216         ./configure fails if you use this module and lack "long long".
24217         * modules/xstrtoll-tests: New module.
24218         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24219         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24220         new init.sh-based test framework.
24221
24222 2010-01-24  Bruno Haible  <bruno@clisp.org>
24223
24224         Tests for module 'yn'.
24225         * modules/yn-tests: New file.
24226         * tests/test-yn.c: New file.
24227
24228         Tests for module 'y1'.
24229         * modules/y1-tests: New file.
24230         * tests/test-y1.c: New file.
24231
24232         Tests for module 'y0'.
24233         * modules/y0-tests: New file.
24234         * tests/test-y0.c: New file.
24235
24236         Tests for module 'tanh'.
24237         * modules/tanh-tests: New file.
24238         * tests/test-tanh.c: New file.
24239
24240         Tests for module 'tan'.
24241         * modules/tan-tests: New file.
24242         * tests/test-tan.c: New file.
24243
24244         Tests for module 'sqrt'.
24245         * modules/sqrt-tests: New file.
24246         * tests/test-sqrt.c: New file.
24247
24248         Tests for module 'sinh'.
24249         * modules/sinh-tests: New file.
24250         * tests/test-sinh.c: New file.
24251
24252         Tests for module 'sin'.
24253         * modules/sin-tests: New file.
24254         * tests/test-sin.c: New file.
24255
24256         Tests for module 'rint'.
24257         * modules/rint-tests: New file.
24258         * tests/test-rint.c: New file.
24259
24260         Tests for module 'remainder'.
24261         * modules/remainder-tests: New file.
24262         * tests/test-remainder.c: New file.
24263
24264         Tests for module 'pow'.
24265         * modules/pow-tests: New file.
24266         * tests/test-pow.c: New file.
24267
24268         Tests for module 'nextafter'.
24269         * modules/nextafter-tests: New file.
24270         * tests/test-nextafter.c: New file.
24271
24272         Tests for module 'modf'.
24273         * modules/modf-tests: New file.
24274         * tests/test-modf.c: New file.
24275
24276         Tests for module 'logb'.
24277         * modules/logb-tests: New file.
24278         * tests/test-logb.c: New file.
24279
24280         Tests for module 'log1p'.
24281         * modules/log1p-tests: New file.
24282         * tests/test-log1p.c: New file.
24283
24284         Tests for module 'log10'.
24285         * modules/log10-tests: New file.
24286         * tests/test-log10.c: New file.
24287
24288         Tests for module 'log'.
24289         * modules/log-tests: New file.
24290         * tests/test-log.c: New file.
24291
24292         Tests for module 'lgamma'.
24293         * modules/lgamma-tests: New file.
24294         * tests/test-lgamma.c: New file.
24295
24296         Tests for module 'ldexp'.
24297         * modules/ldexp-tests: New file.
24298         * tests/test-ldexp.c: New file.
24299
24300         Tests for module 'jn'.
24301         * modules/jn-tests: New file.
24302         * tests/test-jn.c: New file.
24303
24304         Tests for module 'j1'.
24305         * modules/j1-tests: New file.
24306         * tests/test-j1.c: New file.
24307
24308         Tests for module 'j0'.
24309         * modules/j0-tests: New file.
24310         * tests/test-j0.c: New file.
24311
24312         Tests for module 'hypot'.
24313         * modules/hypot-tests: New file.
24314         * tests/test-hypot.c: New file.
24315
24316         Tests for module 'fmod'.
24317         * modules/fmod-tests: New file.
24318         * tests/test-fmod.c: New file.
24319
24320         Tests for module 'fabs'.
24321         * modules/fabs-tests: New file.
24322         * tests/test-fabs.c: New file.
24323
24324         Tests for module 'exp'.
24325         * modules/exp-tests: New file.
24326         * tests/test-exp.c: New file.
24327
24328         Tests for module 'erfc'.
24329         * modules/erfc-tests: New file.
24330         * tests/test-erfc.c: New file.
24331
24332         Tests for module 'erf'.
24333         * modules/erf-tests: New file.
24334         * tests/test-erf.c: New file.
24335
24336         Tests for module 'cosh'.
24337         * modules/cosh-tests: New file.
24338         * tests/test-cosh.c: New file.
24339
24340         Tests for module 'cos'.
24341         * modules/cos-tests: New file.
24342         * tests/test-cos.c: New file.
24343
24344         Tests for module 'copysign'.
24345         * modules/copysign-tests: New file.
24346         * tests/test-copysign.c: New file.
24347
24348         Tests for module 'cbrt'.
24349         * modules/cbrt-tests: New file.
24350         * tests/test-cbrt.c: New file.
24351
24352         Tests for module 'atan2'.
24353         * modules/atan2-tests: New file.
24354         * tests/test-atan2.c: New file.
24355
24356         Tests for module 'atan'.
24357         * modules/atan-tests: New file.
24358         * tests/test-atan.c: New file.
24359
24360         Tests for module 'asin'.
24361         * modules/asin-tests: New file.
24362         * tests/test-asin.c: New file.
24363
24364         Tests for module 'acos'.
24365         * modules/acos-tests: New file.
24366         * tests/test-acos.c: New file.
24367
24368 2010-01-24  Bruno Haible  <bruno@clisp.org>
24369
24370         Fix tests for common <math.h> functions.
24371         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24372         code snippet that references the function pointer, rather than merely
24373         calling the function. Substitute the FUNC_LIBM variable.
24374         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24375         * modules/acos (configure.ac): Likewise.
24376         * modules/asin (configure.ac): Likewise.
24377         * modules/atan (configure.ac): Likewise.
24378         * modules/atan2 (configure.ac): Likewise.
24379         * modules/cbrt (configure.ac): Likewise.
24380         * modules/copysign (configure.ac): Likewise.
24381         * modules/cos (configure.ac): Likewise.
24382         * modules/cosh (configure.ac): Likewise.
24383         * modules/erf (configure.ac): Likewise.
24384         * modules/erfc (configure.ac): Likewise.
24385         * modules/exp (configure.ac): Likewise.
24386         * modules/fabs (configure.ac): Likewise.
24387         * modules/fmod (configure.ac): Likewise.
24388         * modules/hypot (configure.ac): Likewise.
24389         * modules/j0 (configure.ac): Likewise.
24390         * modules/j1 (configure.ac): Likewise.
24391         * modules/jn (configure.ac): Likewise.
24392         * modules/ldexp (configure.ac): Likewise.
24393         * modules/lgamma (configure.ac): Likewise.
24394         * modules/log (configure.ac): Likewise.
24395         * modules/log10 (configure.ac): Likewise.
24396         * modules/log1p (configure.ac): Likewise.
24397         * modules/logb (configure.ac): Likewise.
24398         * modules/modf (configure.ac): Likewise.
24399         * modules/nextafter (configure.ac): Likewise.
24400         * modules/pow (configure.ac): Likewise.
24401         * modules/remainder (configure.ac): Likewise.
24402         * modules/rint (configure.ac): Likewise.
24403         * modules/sin (configure.ac): Likewise.
24404         * modules/sinh (configure.ac): Likewise.
24405         * modules/tan (configure.ac): Likewise.
24406         * modules/tanh (configure.ac): Likewise.
24407         * modules/y0 (configure.ac): Likewise.
24408         * modules/y1 (configure.ac): Likewise.
24409         * modules/yn (configure.ac): Likewise.
24410
24411 2010-01-24  Bruno Haible  <bruno@clisp.org>
24412
24413         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24414         * tests/test-acosl.c (x): New variable.
24415         (main): Store argument in x and fetch it from x.
24416         * tests/test-asinl.c (x): New variable.
24417         (main): Store argument in x and fetch it from x.
24418         * tests/test-atanl.c (x): New variable.
24419         (main): Store argument in x and fetch it from x.
24420         * tests/test-cosl.c (x): New variable.
24421         (main): Store argument in x and fetch it from x.
24422         * tests/test-expl.c (x): New variable.
24423         (main): Store argument in x and fetch it from x.
24424         * tests/test-logl.c (x): New variable.
24425         (main): Store argument in x and fetch it from x.
24426         * tests/test-sinl.c (x): New variable.
24427         (main): Store argument in x and fetch it from x.
24428         * tests/test-sqrtl.c (x): New variable.
24429         (main): Store argument in x and fetch it from x.
24430         * tests/test-tanl.c (x): New variable.
24431         (main): Store argument in x and fetch it from x.
24432
24433 2010-01-24  Bruno Haible  <bruno@clisp.org>
24434
24435         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24436         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24437         assignments to the initial TESTS_ENVIRONMENT.
24438         * doc/gnulib.texi (Unit test modules): Document it.
24439         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24440         TESTS_ENVIRONMENT.
24441         * modules/btowc-tests (Makefile.am): Likewise.
24442         * modules/c-stack-tests (Makefile.am): Likewise.
24443         * modules/c-strcase-tests (Makefile.am): Likewise.
24444         * modules/copy-file-tests (Makefile.am): Likewise.
24445         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24446         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24447         * modules/mbrtowc-tests (Makefile.am): Likewise.
24448         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24449         * modules/mbscasestr-tests (Makefile.am): Likewise.
24450         * modules/mbschr-tests (Makefile.am): Likewise.
24451         * modules/mbscspn-tests (Makefile.am): Likewise.
24452         * modules/mbsinit-tests (Makefile.am): Likewise.
24453         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24454         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24455         * modules/mbspbrk-tests (Makefile.am): Likewise.
24456         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24457         * modules/mbsrchr-tests (Makefile.am): Likewise.
24458         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24459         * modules/mbsspn-tests (Makefile.am): Likewise.
24460         * modules/mbsstr-tests (Makefile.am): Likewise.
24461         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24462         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24463         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24464         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24465         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24466         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24467         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24468         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24469         * modules/wcrtomb-tests (Makefile.am): Likewise.
24470         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24471         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24472         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24473         assignments from TESTS_ENVIRONMENT.
24474         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24475         augmentation.
24476         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24477         * modules/atexit-tests (Makefile.am): Likewise.
24478         * modules/binary-io-tests (Makefile.am): Likewise.
24479         * modules/closein-tests (Makefile.am): Likewise.
24480         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24481         * modules/exclude-tests (Makefile.am): Likewise.
24482         * modules/fflush-tests (Makefile.am): Likewise.
24483         * modules/fpending-tests (Makefile.am): Likewise.
24484         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24485         * modules/freadahead-tests (Makefile.am): Likewise.
24486         * modules/freadptr-tests (Makefile.am): Likewise.
24487         * modules/freadseek-tests (Makefile.am): Likewise.
24488         * modules/fseek-tests (Makefile.am): Likewise.
24489         * modules/fseeko-tests (Makefile.am): Likewise.
24490         * modules/ftell-tests (Makefile.am): Likewise.
24491         * modules/ftello-tests (Makefile.am): Likewise.
24492         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24493         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24494         * modules/lseek-tests (Makefile.am): Likewise.
24495         * modules/parse-duration-tests (Makefile.am): Likewise.
24496         * modules/perror-tests (Makefile.am): Likewise.
24497         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24498         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24499         * modules/pipe-tests (Makefile.am): Likewise.
24500         * modules/pread-tests (Makefile.am): Likewise.
24501         * modules/printf-posix-tests (Makefile.am): Likewise.
24502         * modules/select-tests (Makefile.am): Likewise.
24503         * modules/sigpipe-tests (Makefile.am): Likewise.
24504         * modules/tsearch-tests (Makefile.am): Likewise.
24505         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24506         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24507         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24508         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24509         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24510         * modules/version-etc-tests (Makefile.am): Likewise.
24511         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24512         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24513         * modules/xalloc-die-tests (Makefile.am): Likewise.
24514         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24515         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24516         * modules/xstrtol-tests (Makefile.am): Likewise.
24517         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24518         * modules/yesno-tests (Makefile.am): Likewise.
24519         Suggested by Jim Meyering.
24520
24521 2010-01-24  Bruno Haible  <bruno@clisp.org>
24522
24523         More documentation.
24524         * doc/gnulib.texi (Writing modules): New chapter.
24525         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24526         the new chapter.
24527
24528 2010-01-24  Jim Meyering  <meyering@redhat.com>
24529
24530         maint.mk: do not prepend "./" after filtering
24531         * top/maint.mk (_prepend_srcdir_prefix): New variable
24532         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24533         "./" when $(srcdir) is ".".
24534
24535         define STREQ(a,b) consistently, removing useless parentheses
24536         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24537         since the only risk is that "a" or "b" contains an unparenthesized
24538         comma, but if either did that, STREQ would have 3 or more arguments.
24539         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24540         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24541         * lib/hash-triple.c (STREQ): Likewise.
24542         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24543         * lib/getugroups.c (STREQ): Likewise.
24544
24545 2010-01-23  Jim Meyering  <meyering@redhat.com>
24546
24547         maint.mk: fix syntax-check in a non-srcdir build directory
24548         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24549         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24550
24551 2010-01-22  Jim Meyering  <meyering@redhat.com>
24552
24553         userspec: add unit tests
24554         * tests/test-userspec.c: New file.
24555         * modules/userspec-tests: Likewise.
24556
24557 2010-01-21  Jim Meyering  <meyering@redhat.com>
24558
24559         maint.mk: handle source file names containing "." robustly
24560         * top/maint.mk (_dot_escaped_srcdir): Define.
24561         (VC_LIST): Use it in LHS of sed substitution.
24562
24563 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24564
24565         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24566         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24567         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24568         from a non-srcdir build.
24569
24570 2010-01-20  Eric Blake  <ebb9@byu.net>
24571
24572         warn-on-use: use instead of link-warning
24573         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24574         * modules/unistd (Depends-on, Makefile.am): Likewise.
24575         * modules/arpa_inet (Depends-on): Replace link-warning with
24576         warn-on-use.
24577         (Makefile.am): Update rules accordingly.
24578         * modules/ctype (Depends-on, Makefile.am): Likewise.
24579         * modules/dirent (Depends-on, Makefile.am): Likewise.
24580         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24581         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24582         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24583         * modules/locale (Depends-on, Makefile.am): Likewise.
24584         * modules/math (Depends-on, Makefile.am): Likewise.
24585         * modules/search (Depends-on, Makefile.am): Likewise.
24586         * modules/signal (Depends-on, Makefile.am): Likewise.
24587         * modules/spawn (Depends-on, Makefile.am): Likewise.
24588         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24589         * modules/string (Depends-on, Makefile.am): Likewise.
24590         * modules/strings (Depends-on, Makefile.am): Likewise.
24591         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24592         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24593         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24594         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24595         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24596         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24597         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24598         * modules/wchar (Depends-on, Makefile.am): Likewise.
24599         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24600         should be poisoned.
24601         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24602         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24603         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24604         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24605         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24606         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24607         * m4/math_h.m4 (gl_MATH_H): Likewise.
24608         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24609         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24610         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24611         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24612         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24613         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24614         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24615         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24616         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24620         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24621         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24622         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24623         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24624         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24625         GL_LINK_WARNING.
24626         * lib/ctype.in.h: Likewise.
24627         * lib/dirent.in.h: Likewise.
24628         * lib/fcntl.in.h: Likewise.
24629         * lib/inttypes.in.h: Likewise.
24630         * lib/langinfo.in.h: Likewise.
24631         * lib/locale.in.h: Likewise.
24632         * lib/math.in.h: Likewise.
24633         * lib/search.in.h: Likewise.
24634         * lib/signal.in.h: Likewise.
24635         * lib/spawn.in.h: Likewise.
24636         * lib/stdio.in.h: Likewise.
24637         * lib/stdlib.in.h: Likewise.
24638         * lib/string.in.h: Likewise.
24639         * lib/strings.in.h: Likewise.
24640         * lib/sys_file.in.h: Likewise.
24641         * lib/sys_ioctl.in.h: Likewise.
24642         * lib/sys_select.in.h: Likewise.
24643         * lib/sys_socket.in.h: Likewise.
24644         * lib/sys_stat.in.h: Likewise.
24645         * lib/sys_times.in.h: Likewise.
24646         * lib/sys_utsname.in.h: Likewise.
24647         * lib/unistd.in.h: Likewise.
24648         * lib/wchar.in.h: Likewise.
24649
24650 2010-01-20  Bruno Haible  <bruno@clisp.org>
24651
24652         Avoid duplicate -lm.
24653         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24654         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24657         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24658         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24659         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24660         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24661         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24662         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24663         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24664         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24665         Reported by Paolo Bonzini.
24666
24667 2010-01-19  Bruno Haible  <bruno@clisp.org>
24668
24669         langinfo, nl_langinfo: Relicense under LGPLv2+.
24670         * modules/langinfo (License): Change to LGPLv2+.
24671         * modules/nl_langinfo (License): Likewise.
24672         Patch by David Lutterkort <lutter@redhat.com>.
24673
24674 2010-01-19  Bruno Haible  <bruno@clisp.org>
24675
24676         Avoid compilation error with cc on OSF/1 5.1.
24677         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24678         statement, not before.
24679         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24680
24681 2010-01-18  Bruno Haible  <bruno@clisp.org>
24682
24683         Avoid a link error due to the __printf__ symbol.
24684         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24685         and 2.6.x.
24686         (__format__, __printf__): Remove definitions.
24687         * lib/argp-fmtstream.h: Likewise.
24688         * lib/argp.h: Likewise.
24689         * lib/error.h: Likewise.
24690         * lib/vasnprintf.h: Likewise.
24691         * lib/xprintf.h: Likewise.
24692         * lib/xvasprintf.h: Likewise.
24693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24694
24695 2010-01-18  Bruno Haible  <bruno@clisp.org>
24696
24697         Tests for module 'tanl'.
24698         * modules/tanl-tests: New file.
24699         * tests/test-tanl.c: New file.
24700
24701         Tests for module 'sqrtl'.
24702         * modules/sqrtl-tests: New file.
24703         * tests/test-sqrtl.c: New file.
24704
24705         Tests for module 'sinl'.
24706         * modules/sinl-tests: New file.
24707         * tests/test-sinl.c: New file.
24708
24709         Tests for module 'logl'.
24710         * modules/logl-tests: New file.
24711         * tests/test-logl.c: New file.
24712
24713         Tests for module 'expl'.
24714         * modules/expl-tests: New file.
24715         * tests/test-expl.c: New file.
24716
24717         Tests for module 'cosl'.
24718         * modules/cosl-tests: New file.
24719         * tests/test-cosl.c: New file.
24720
24721         Tests for module 'atanl'.
24722         * modules/atanl-tests: New file.
24723         * tests/test-atanl.c: New file.
24724
24725         Tests for module 'asinl'.
24726         * modules/asinl-tests: New file.
24727         * tests/test-asinl.c: New file.
24728
24729         Tests for module 'acosl'.
24730         * modules/acosl-tests: New file.
24731         * tests/test-acosl.c: New file.
24732
24733         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24734         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24735         tanl): Use the standard gnulib idiom.
24736         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24737         * lib/sinl.c: Likewise.
24738         * lib/tanl.c: Don't include trigl.c.
24739         (kernel_tanl): Make static.
24740         * lib/sincosl.c: Include trigl.h first.
24741         * lib/trigl.c: Likewise.
24742         * m4/acosl.m4: New file.
24743         * m4/asinl.m4: New file.
24744         * m4/atanl.m4: New file.
24745         * m4/cosl.m4: New file.
24746         * m4/expl.m4: New file.
24747         * m4/logl.m4: New file.
24748         * m4/sinl.m4: New file.
24749         * m4/sqrtl.m4: New file.
24750         * m4/tanl.m4: New file.
24751         * m4/mathl.m4: Remove file.
24752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24753         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24754         Don't initialize GNULIB_MATHL.
24755         * modules/acosl: New file.
24756         * modules/asinl: New file.
24757         * modules/atanl: New file.
24758         * modules/cosl: New file.
24759         * modules/expl: New file.
24760         * modules/logl: New file.
24761         * modules/sinl: New file.
24762         * modules/sqrtl: New file.
24763         * modules/tanl: New file.
24764         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24765         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24766         substitute GNULIB_MATHL.
24767         * modules/mathl: Rewritten.
24768         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24769         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24770         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24771         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24772         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24773         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24774         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24775         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24776         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24777
24778 2010-01-18  Bruno Haible  <bruno@clisp.org>
24779
24780         sqrt: Make gl_FUNC_SQRT requirable.
24781         * m4/sqrt.m4: New file.
24782         * modules/sqrt (Files): Add it.
24783         (configure.ac): Invoke gl_FUNC_SQRT.
24784
24785 2010-01-18  Bruno Haible  <bruno@clisp.org>
24786
24787         New modules for common <math.h> functions.
24788         * m4/mathfunc.m4: New file.
24789         * modules/acos: New file.
24790         * modules/asin: New file.
24791         * modules/atan: New file.
24792         * modules/atan2: New file.
24793         * modules/cbrt: New file.
24794         * modules/copysign: New file.
24795         * modules/cos: New file.
24796         * modules/cosh: New file.
24797         * modules/erf: New file.
24798         * modules/erfc: New file.
24799         * modules/exp: New file.
24800         * modules/fabs: New file.
24801         * modules/fmod: New file.
24802         * modules/hypot: New file.
24803         * modules/j0: New file.
24804         * modules/j1: New file.
24805         * modules/jn: New file.
24806         * modules/ldexp: New file.
24807         * modules/lgamma: New file.
24808         * modules/log: New file.
24809         * modules/log10: New file.
24810         * modules/log1p: New file.
24811         * modules/logb: New file.
24812         * modules/modf: New file.
24813         * modules/nextafter: New file.
24814         * modules/pow: New file.
24815         * modules/remainder: New file.
24816         * modules/rint: New file.
24817         * modules/sin: New file.
24818         * modules/sinh: New file.
24819         * modules/sqrt: New file.
24820         * modules/tan: New file.
24821         * modules/tanh: New file.
24822         * modules/y0: New file.
24823         * modules/y1: New file.
24824         * modules/yn: New file.
24825         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24826         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24827         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24828         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24829         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24830         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24831         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24832         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24833         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24834         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24835         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24836         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24837         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24838         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24839         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24840         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24841         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24842         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24843         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24844         * doc/posix-functions/log.texi: Mention the 'log' module.
24845         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24846         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24847         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24848         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24849         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24850         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24851         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24852         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24853         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24854         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24855         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24856         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24857         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24858         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24859         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24860         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24861
24862 2010-01-18  Jim Meyering  <meyering@redhat.com>
24863
24864         ignore-value: relax license to LGPLv2+
24865         * modules/ignore-value (License): Relax to LGPLv2+.
24866
24867         getdate: don't leak when TZ contains two or more '"'s
24868         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24869         double quote in TZ after the first one.
24870
24871         readtokens: do not leak internal token_lengths buffer
24872         * lib/readtokens.c (readtokens): Free the local, lengths,
24873         when the supplied "token_lengths" parameter is NULL.
24874
24875 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24876
24877         Fix a couple of missing LIBTHREAD link failures on AIX.
24878         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24879         $(LIBTHREAD).
24880         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24881
24882         Link test-poll against INET_PTON_LIB.
24883         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24884         for inet_pton on Solaris 10.
24885
24886 2010-01-17  Bruno Haible  <bruno@clisp.org>
24887
24888         unistdio/*-sprintf: Fix typo in module description.
24889         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24890         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24891         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24892         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24893         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24894         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24895         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24897
24898 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24899
24900         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24901         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24902         variables in shell case patterns, for AIX and HP-UX ksh.
24903
24904         Split large sed scripts, for HP-UX sed.
24905         * modules/stdio: Split sed scripts around 50 sed commands,
24906         to avoid HP-UX limit of 99 commands, in the near future.
24907         * modules/string: Likewise.
24908         * modules/unistd: Likewise.
24909
24910         gnulib-tool: avoid writing in the current directory.
24911         * gnulib-tool (func_emit_lib_Makefile_am)
24912         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24913         not in the current directory, so concurrent gnulib-tool
24914         instances do not interfere.
24915
24916 2010-01-16  Jim Meyering  <meyering@redhat.com>
24917
24918         doc: update users.txt
24919         * users.txt: Add grep.
24920         (diffutils, gzip): Update URLs.
24921
24922 2010-01-12  Bruno Haible  <bruno@clisp.org>
24923
24924         posix_spawn: Avoid test failure on Cygwin.
24925         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24926         characters.
24927         Reported by Simon Josefsson.
24928
24929 2010-01-12  Bruno Haible  <bruno@clisp.org>
24930
24931         * tests/test-cond.c (main): When skipping the test, show the reason.
24932
24933 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24934
24935         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24936
24937 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24938
24939         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24940         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24941
24942 2010-01-12  Eric Blake  <ebb9@byu.net>
24943
24944         build: guarantee AS_VAR_IF
24945         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24946         (gl_AS_VAR_IF): Move...
24947         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24948         Reported by Simon Josefsson.
24949
24950 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24951
24952         * lib/stdio.in.h: Fix typo.
24953
24954 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24955
24956         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24957         libgpg-error.
24958
24959 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24960
24961         * tests/test-xalloc-die.sh: Use $EXEEXT.
24962
24963 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24964             Bruno Haible  <bruno@clisp.org>
24965
24966         getlogin, getlogin_r: Avoid test failure.
24967         * tests/test-getlogin.c: Include <stdio.h>.
24968         (main): Skip the test when the function fails because stdin is not a
24969         tty.
24970         * tests/test-getlogin_r.c: Include <stdio.h>.
24971         (main): Skip the test when the function fails because stdin is not a
24972         tty.
24973
24974 2010-01-11  Eric Blake  <ebb9@byu.net>
24975
24976         tests: avoid more large file warnings
24977         * tests/test-fflush.c: Avoid warning about ftell use.
24978         * tests/test-fseek.c: Avoid warning about fseek use.
24979
24980 2010-01-10  Bruno Haible  <bruno@clisp.org>
24981
24982         nproc: Work better on Linux when /proc and /sys are not mounted.
24983         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24984         as lower bound when, on glibc/Linux systems,
24985         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24986         Suggested by Pádraig Brady <P@draigbrady.com>.
24987         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24988
24989         nproc: Refactor.
24990         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24991         extracted from num_processors.
24992         (num_processors): Call it.
24993
24994 2010-01-11  Jim Meyering  <meyering@redhat.com>
24995
24996         utimecmp: avoid new warning from upcoming gcc-4.5.0
24997         * lib/utimecmp.c (BILLION): Define using #define rather than an
24998         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24999
25000 2010-01-11  Eric Blake  <ebb9@byu.net>
25001
25002         math: add portability warnings for classification macros
25003         * modules/math (Depends-on): Add warn-on-use.
25004         (Makefile.am): Provide new substitutions.
25005         * m4/math_h.m4 (gl_MATH_H): Require inline.
25006         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25007         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25008         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25009         implement warnings.
25010
25011         unistd: warn on use of environ without module
25012         * modules/unistd (Depends-on): Add warn-on-use.
25013         (Makefile.am): Provide new substitutions.
25014         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25015         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25016
25017         stdio: warn on suspicious uses
25018         * modules/stdio (Depends-on): Add warn-on-use.
25019         (Makefile.am): Provide new substitutions.
25020         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25021         fseeko.
25022         * lib/stdio.in.h (gets): Always warn on use.
25023         (fseek, ftell): Adjust when warnings are issued, and honor
25024         _GL_NO_LARGE_FILES as a way to silence the warning.
25025         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25026         any warning about large file offsets.
25027         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25028         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25029         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25030         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25031         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25032         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25033         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25034         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25035
25036         warn-on-use: new module
25037         * modules/warn-on-use: New file.
25038         * build-aux/warn-on-use.h: Likewise.
25039         * m4/warn-on-use.m4: Likewise.
25040         * MODULES.html.sh (Support for building): Mention it.
25041
25042 2010-01-10  Bruno Haible  <bruno@clisp.org>
25043
25044         Tests for module 'unistr/u32-strdup'.
25045         * modules/unistr/u32-strdup-tests: New file.
25046         * tests/unistr/test-u32-strdup.c: New file.
25047
25048         Tests for module 'unistr/u16-strdup'.
25049         * modules/unistr/u16-strdup-tests: New file.
25050         * tests/unistr/test-u16-strdup.c: New file.
25051
25052         Tests for module 'unistr/u8-strdup'.
25053         * modules/unistr/u8-strdup-tests: New file.
25054         * tests/unistr/test-u8-strdup.c: New file.
25055         * tests/unistr/test-strdup.h: New file.
25056
25057         Tests for module 'unistr/u32-strncmp'.
25058         * modules/unistr/u32-strncmp-tests: New file.
25059         * tests/unistr/test-u32-strncmp.c: New file.
25060
25061         Tests for module 'unistr/u16-strncmp'.
25062         * modules/unistr/u16-strncmp-tests: New file.
25063         * tests/unistr/test-u16-strncmp.c: New file.
25064
25065         Tests for module 'unistr/u8-strncmp'.
25066         * modules/unistr/u8-strncmp-tests: New file.
25067         * tests/unistr/test-u8-strncmp.c: New file.
25068         * tests/unistr/test-strncmp.h: New file.
25069
25070         Tests for module 'unistr/u32-strcoll'.
25071         * modules/unistr/u32-strcoll-tests: New file.
25072         * tests/unistr/test-u32-strcoll.c: New file.
25073
25074         Tests for module 'unistr/u16-strcoll'.
25075         * modules/unistr/u16-strcoll-tests: New file.
25076         * tests/unistr/test-u16-strcoll.c: New file.
25077
25078         Tests for module 'unistr/u8-strcoll'.
25079         * modules/unistr/u8-strcoll-tests: New file.
25080         * tests/unistr/test-u8-strcoll.c: New file.
25081
25082         Tests for module 'unistr/u32-strcmp'.
25083         * modules/unistr/u32-strcmp-tests: New file.
25084         * tests/unistr/test-u32-strcmp.c: New file.
25085         * tests/unistr/test-u32-strcmp.h: New file.
25086
25087         Tests for module 'unistr/u16-strcmp'.
25088         * modules/unistr/u16-strcmp-tests: New file.
25089         * tests/unistr/test-u16-strcmp.c: New file.
25090         * tests/unistr/test-u16-strcmp.h: New file.
25091
25092         Tests for module 'unistr/u8-strcmp'.
25093         * modules/unistr/u8-strcmp-tests: New file.
25094         * tests/unistr/test-u8-strcmp.c: New file.
25095         * tests/unistr/test-u8-strcmp.h: New file.
25096         * tests/unistr/test-strcmp.h: New file.
25097
25098         Tests for module 'unistr/u32-strncat'.
25099         * modules/unistr/u32-strncat-tests: New file.
25100         * tests/unistr/test-u32-strncat.c: New file.
25101
25102         Tests for module 'unistr/u16-strncat'.
25103         * modules/unistr/u16-strncat-tests: New file.
25104         * tests/unistr/test-u16-strncat.c: New file.
25105
25106         Tests for module 'unistr/u8-strncat'.
25107         * modules/unistr/u8-strncat-tests: New file.
25108         * tests/unistr/test-u8-strncat.c: New file.
25109         * tests/unistr/test-strncat.h: New file.
25110
25111         Tests for module 'unistr/u32-strcat'.
25112         * modules/unistr/u32-strcat-tests: New file.
25113         * tests/unistr/test-u32-strcat.c: New file.
25114
25115         Tests for module 'unistr/u16-strcat'.
25116         * modules/unistr/u16-strcat-tests: New file.
25117         * tests/unistr/test-u16-strcat.c: New file.
25118
25119         Tests for module 'unistr/u8-strcat'.
25120         * modules/unistr/u8-strcat-tests: New file.
25121         * tests/unistr/test-u8-strcat.c: New file.
25122         * tests/unistr/test-strcat.h: New file.
25123
25124         Tests for module 'unistr/u32-stpncpy'.
25125         * modules/unistr/u32-stpncpy-tests: New file.
25126         * tests/unistr/test-u32-stpncpy.c: New file.
25127
25128         Tests for module 'unistr/u16-stpncpy'.
25129         * modules/unistr/u16-stpncpy-tests: New file.
25130         * tests/unistr/test-u16-stpncpy.c: New file.
25131
25132         Tests for module 'unistr/u8-stpncpy'.
25133         * modules/unistr/u8-stpncpy-tests: New file.
25134         * tests/unistr/test-u8-stpncpy.c: New file.
25135         * tests/unistr/test-stpncpy.h: New file.
25136
25137         Tests for module 'unistr/u32-strncpy'.
25138         * modules/unistr/u32-strncpy-tests: New file.
25139         * tests/unistr/test-u32-strncpy.c: New file.
25140
25141         Tests for module 'unistr/u16-strncpy'.
25142         * modules/unistr/u16-strncpy-tests: New file.
25143         * tests/unistr/test-u16-strncpy.c: New file.
25144
25145         Tests for module 'unistr/u8-strncpy'.
25146         * modules/unistr/u8-strncpy-tests: New file.
25147         * tests/unistr/test-u8-strncpy.c: New file.
25148         * tests/unistr/test-strncpy.h: New file.
25149
25150         Tests for module 'unistr/u32-stpcpy'.
25151         * modules/unistr/u32-stpcpy-tests: New file.
25152         * tests/unistr/test-u32-stpcpy.c: New file.
25153
25154         Tests for module 'unistr/u16-stpcpy'.
25155         * modules/unistr/u16-stpcpy-tests: New file.
25156         * tests/unistr/test-u16-stpcpy.c: New file.
25157
25158         Tests for module 'unistr/u8-stpcpy'.
25159         * modules/unistr/u8-stpcpy-tests: New file.
25160         * tests/unistr/test-u8-stpcpy.c: New file.
25161         * tests/unistr/test-stpcpy.h: New file.
25162
25163         Tests for module 'unistr/u32-strcpy'.
25164         * modules/unistr/u32-strcpy-tests: New file.
25165         * tests/unistr/test-u32-strcpy.c: New file.
25166
25167         Tests for module 'unistr/u16-strcpy'.
25168         * modules/unistr/u16-strcpy-tests: New file.
25169         * tests/unistr/test-u16-strcpy.c: New file.
25170
25171         Tests for module 'unistr/u8-strcpy'.
25172         * modules/unistr/u8-strcpy-tests: New file.
25173         * tests/unistr/test-u8-strcpy.c: New file.
25174         * tests/unistr/test-strcpy.h: New file.
25175
25176         Tests for module 'unistr/u32-strnlen'.
25177         * modules/unistr/u32-strnlen-tests: New file.
25178         * tests/unistr/test-u32-strnlen.c: New file.
25179
25180         Tests for module 'unistr/u16-strnlen'.
25181         * modules/unistr/u16-strnlen-tests: New file.
25182         * tests/unistr/test-u16-strnlen.c: New file.
25183
25184         Tests for module 'unistr/u8-strnlen'.
25185         * modules/unistr/u8-strnlen-tests: New file.
25186         * tests/unistr/test-u8-strnlen.c: New file.
25187         * tests/unistr/test-strnlen.h: New file.
25188
25189         Tests for module 'unistr/u32-strlen'.
25190         * modules/unistr/u32-strlen-tests: New file.
25191         * tests/unistr/test-u32-strlen.c: New file.
25192
25193         Tests for module 'unistr/u16-strlen'.
25194         * modules/unistr/u16-strlen-tests: New file.
25195         * tests/unistr/test-u16-strlen.c: New file.
25196
25197         Tests for module 'unistr/u8-strlen'.
25198         * modules/unistr/u8-strlen-tests: New file.
25199         * tests/unistr/test-u8-strlen.c: New file.
25200
25201         Tests for module 'unistr/u32-prev'.
25202         * modules/unistr/u32-prev-tests: New file.
25203         * tests/unistr/test-u32-prev.c: New file.
25204
25205         Tests for module 'unistr/u16-prev'.
25206         * modules/unistr/u16-prev-tests: New file.
25207         * tests/unistr/test-u16-prev.c: New file.
25208
25209         Tests for module 'unistr/u8-prev'.
25210         * modules/unistr/u8-prev-tests: New file.
25211         * tests/unistr/test-u8-prev.c: New file.
25212
25213         Tests for module 'unistr/u32-next'.
25214         * modules/unistr/u32-next-tests: New file.
25215         * tests/unistr/test-u32-next.c: New file.
25216
25217         Tests for module 'unistr/u16-next'.
25218         * modules/unistr/u16-next-tests: New file.
25219         * tests/unistr/test-u16-next.c: New file.
25220
25221         Tests for module 'unistr/u8-next'.
25222         * modules/unistr/u8-next-tests: New file.
25223         * tests/unistr/test-u8-next.c: New file.
25224
25225         Tests for module 'unistr/u32-strmbtouc'.
25226         * modules/unistr/u32-strmbtouc-tests: New file.
25227         * tests/unistr/test-u32-strmbtouc.c: New file.
25228
25229         Tests for module 'unistr/u16-strmbtouc'.
25230         * modules/unistr/u16-strmbtouc-tests: New file.
25231         * tests/unistr/test-u16-strmbtouc.c: New file.
25232
25233         Tests for module 'unistr/u8-strmbtouc'.
25234         * modules/unistr/u8-strmbtouc-tests: New file.
25235         * tests/unistr/test-u8-strmbtouc.c: New file.
25236
25237         Tests for module 'unistr/u32-strmblen'.
25238         * modules/unistr/u32-strmblen-tests: New file.
25239         * tests/unistr/test-u32-strmblen.c: New file.
25240
25241         Tests for module 'unistr/u16-strmblen'.
25242         * modules/unistr/u16-strmblen-tests: New file.
25243         * tests/unistr/test-u16-strmblen.c: New file.
25244
25245         Tests for module 'unistr/u8-strmblen'.
25246         * modules/unistr/u8-strmblen-tests: New file.
25247         * tests/unistr/test-u8-strmblen.c: New file.
25248
25249         Tests for module 'unistr/u32-cpy-alloc'.
25250         * modules/unistr/u32-cpy-alloc-tests: New file.
25251         * tests/unistr/test-u32-cpy-alloc.c: New file.
25252
25253         Tests for module 'unistr/u16-cpy-alloc'.
25254         * modules/unistr/u16-cpy-alloc-tests: New file.
25255         * tests/unistr/test-u16-cpy-alloc.c: New file.
25256
25257         Tests for module 'unistr/u8-cpy-alloc'.
25258         * modules/unistr/u8-cpy-alloc-tests: New file.
25259         * tests/unistr/test-u8-cpy-alloc.c: New file.
25260         * tests/unistr/test-cpy-alloc.h: New file.
25261
25262         Tests for module 'unistr/u32-mbsnlen'.
25263         * modules/unistr/u32-mbsnlen-tests: New file.
25264         * tests/unistr/test-u32-mbsnlen.c: New file.
25265
25266         Tests for module 'unistr/u16-mbsnlen'.
25267         * modules/unistr/u16-mbsnlen-tests: New file.
25268         * tests/unistr/test-u16-mbsnlen.c: New file.
25269
25270         Tests for module 'unistr/u8-mbsnlen'.
25271         * modules/unistr/u8-mbsnlen-tests: New file.
25272         * tests/unistr/test-u8-mbsnlen.c: New file.
25273
25274         Tests for module 'unistr/u32-chr'.
25275         * modules/unistr/u32-chr-tests: New file.
25276         * tests/unistr/test-u32-chr.c: New file.
25277
25278         Tests for module 'unistr/u16-chr'.
25279         * modules/unistr/u16-chr-tests: New file.
25280         * tests/unistr/test-u16-chr.c: New file.
25281
25282         Tests for module 'unistr/u8-chr'.
25283         * modules/unistr/u8-chr-tests: New file.
25284         * tests/unistr/test-u8-chr.c: New file.
25285         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25286
25287         Tests for module 'unistr/u32-cmp2'.
25288         * modules/unistr/u32-cmp2-tests: New file.
25289         * tests/unistr/test-u32-cmp2.c: New file.
25290
25291         Tests for module 'unistr/u16-cmp2'.
25292         * modules/unistr/u16-cmp2-tests: New file.
25293         * tests/unistr/test-u16-cmp2.c: New file.
25294
25295         Tests for module 'unistr/u8-cmp2'.
25296         * modules/unistr/u8-cmp2-tests: New file.
25297         * tests/unistr/test-u8-cmp2.c: New file.
25298         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25299
25300         Tests for module 'unistr/u32-cmp'.
25301         * modules/unistr/u32-cmp-tests: New file.
25302         * tests/unistr/test-u32-cmp.c: New file.
25303
25304         Tests for module 'unistr/u16-cmp'.
25305         * modules/unistr/u16-cmp-tests: New file.
25306         * tests/unistr/test-u16-cmp.c: New file.
25307
25308         Tests for module 'unistr/u8-cmp'.
25309         * modules/unistr/u8-cmp-tests: New file.
25310         * tests/unistr/test-u8-cmp.c: New file.
25311         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25312
25313         Tests for module 'unistr/u32-set'.
25314         * modules/unistr/u32-set-tests: New file.
25315         * tests/unistr/test-u32-set.c: New file.
25316
25317         Tests for module 'unistr/u16-set'.
25318         * modules/unistr/u16-set-tests: New file.
25319         * tests/unistr/test-u16-set.c: New file.
25320
25321         Tests for module 'unistr/u8-set'.
25322         * modules/unistr/u8-set-tests: New file.
25323         * tests/unistr/test-u8-set.c: New file.
25324         * tests/unistr/test-set.h: New file.
25325
25326         Tests for module 'unistr/u32-move'.
25327         * modules/unistr/u32-move-tests: New file.
25328         * tests/unistr/test-u32-move.c: New file.
25329
25330         Tests for module 'unistr/u16-move'.
25331         * modules/unistr/u16-move-tests: New file.
25332         * tests/unistr/test-u16-move.c: New file.
25333
25334         Tests for module 'unistr/u8-move'.
25335         * modules/unistr/u8-move-tests: New file.
25336         * tests/unistr/test-u8-move.c: New file.
25337         * tests/unistr/test-move.h: New file.
25338
25339         Tests for module 'unistr/u32-cpy'.
25340         * modules/unistr/u32-cpy-tests: New file.
25341         * tests/unistr/test-u32-cpy.c: New file.
25342
25343         Tests for module 'unistr/u16-cpy'.
25344         * modules/unistr/u16-cpy-tests: New file.
25345         * tests/unistr/test-u16-cpy.c: New file.
25346
25347         Tests for module 'unistr/u8-cpy'.
25348         * modules/unistr/u8-cpy-tests: New file.
25349         * tests/unistr/test-u8-cpy.c: New file.
25350         * tests/unistr/test-cpy.h: New file.
25351
25352 2010-01-09  Bruno Haible  <bruno@clisp.org>
25353
25354         Tests for module 'unistr/u32-uctomb'.
25355         * modules/unistr/u32-uctomb-tests: New file.
25356         * tests/unistr/test-u32-uctomb.c: New file.
25357
25358         Tests for module 'unistr/u16-uctomb'.
25359         * modules/unistr/u16-uctomb-tests: New file.
25360         * tests/unistr/test-u16-uctomb.c: New file.
25361
25362         Tests for module 'unistr/u8-uctomb'.
25363         * modules/unistr/u8-uctomb-tests: New file.
25364         * tests/unistr/test-u8-uctomb.c: New file.
25365
25366         Tests for module 'unistr/u32-mbtoucr'.
25367         * modules/unistr/u32-mbtoucr-tests: New file.
25368         * tests/unistr/test-u32-mbtoucr.c: New file.
25369
25370         Tests for module 'unistr/u16-mbtoucr'.
25371         * modules/unistr/u16-mbtoucr-tests: New file.
25372         * tests/unistr/test-u16-mbtoucr.c: New file.
25373
25374         Tests for module 'unistr/u8-mbtoucr'.
25375         * modules/unistr/u8-mbtoucr-tests: New file.
25376         * tests/unistr/test-u8-mbtoucr.c: New file.
25377
25378         Tests for module 'unistr/u32-mbtouc'.
25379         * modules/unistr/u32-mbtouc-tests: New file.
25380         * tests/unistr/test-u32-mbtouc.c: New file.
25381
25382         Tests for module 'unistr/u16-mbtouc'.
25383         * modules/unistr/u16-mbtouc-tests: New file.
25384         * tests/unistr/test-u16-mbtouc.c: New file.
25385
25386         Tests for module 'unistr/u8-mbtouc'.
25387         * modules/unistr/u8-mbtouc-tests: New file.
25388         * tests/unistr/test-u8-mbtouc.c: New file.
25389
25390         Tests for module 'unistr/u32-mbtouc-unsafe'.
25391         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25392         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25393         * tests/unistr/test-u32-mbtouc.h: New file.
25394
25395         Tests for module 'unistr/u16-mbtouc-unsafe'.
25396         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25397         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25398         * tests/unistr/test-u16-mbtouc.h: New file.
25399
25400         Tests for module 'unistr/u8-mbtouc-unsafe'.
25401         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25402         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25403         * tests/unistr/test-u8-mbtouc.h: New file.
25404
25405         Tests for module 'unistr/u32-mblen'.
25406         * modules/unistr/u32-mblen-tests: New file.
25407         * tests/unistr/test-u32-mblen.c: New file.
25408
25409         Tests for module 'unistr/u16-mblen'.
25410         * modules/unistr/u16-mblen-tests: New file.
25411         * tests/unistr/test-u16-mblen.c: New file.
25412
25413         Tests for module 'unistr/u8-mblen'.
25414         * modules/unistr/u8-mblen-tests: New file.
25415         * tests/unistr/test-u8-mblen.c: New file.
25416
25417         Tests for module 'unistr/u32-to-u16'.
25418         * modules/unistr/u32-to-u16-tests: New file.
25419         * tests/unistr/test-u32-to-u16.c: New file.
25420
25421         Tests for module 'unistr/u32-to-u8'.
25422         * modules/unistr/u32-to-u8-tests: New file.
25423         * tests/unistr/test-u32-to-u8.c: New file.
25424
25425         Tests for module 'unistr/u16-to-u32'.
25426         * modules/unistr/u16-to-u32-tests: New file.
25427         * tests/unistr/test-u16-to-u32.c: New file.
25428
25429         Tests for module 'unistr/u16-to-u8'.
25430         * modules/unistr/u16-to-u8-tests: New file.
25431         * tests/unistr/test-u16-to-u8.c: New file.
25432
25433         Tests for module 'unistr/u8-to-u32'.
25434         * modules/unistr/u8-to-u32-tests: New file.
25435         * tests/unistr/test-u8-to-u32.c: New file.
25436
25437         Tests for module 'unistr/u8-to-u16'.
25438         * modules/unistr/u8-to-u16-tests: New file.
25439         * tests/unistr/test-u8-to-u16.c: New file.
25440
25441         Tests for module 'unistr/u32-check'.
25442         * modules/unistr/u32-check-tests: New file.
25443         * tests/unistr/test-u32-check.c: New file.
25444
25445         Tests for module 'unistr/u16-check'.
25446         * modules/unistr/u16-check-tests: New file.
25447         * tests/unistr/test-u16-check.c: New file.
25448
25449         Tests for module 'unistr/u8-check'.
25450         * modules/unistr/u8-check-tests: New file.
25451         * tests/unistr/test-u8-check.c: New file.
25452
25453         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25454         (category_equals): New function.
25455         (main): Add more tests.
25456         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25457
25458         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25459
25460 2010-01-10  Bruno Haible  <bruno@clisp.org>
25461
25462         unistr/u*-strcoll: Try harder to distinguish different strings.
25463         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25464         compare s1 and s2 to see if they are different.
25465
25466 2010-01-10  Bruno Haible  <bruno@clisp.org>
25467
25468         unistr/u*-stpncpy: Fix the return value.
25469         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25470         description of the return value consistent with stpncpy in glibc.
25471         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25472         written non-NUL unit.
25473
25474 2010-01-10  Bruno Haible  <bruno@clisp.org>
25475
25476         unistr/u*-next: Add missing dependencies.
25477         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25478         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25479         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25480
25481 2010-01-10  Bruno Haible  <bruno@clisp.org>
25482
25483         unistr/u8-mbsnlen: Fix return value for incomplete character.
25484         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25485         u8_mblen.
25486         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25487         Remove unistr/u8-mblen.
25488         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25489         u16_mblen.
25490         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25491         Remove unistr/u16-mblen.
25492
25493 2010-01-10  Bruno Haible  <bruno@clisp.org>
25494
25495         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25496         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25497         Reported by Brian Gough <bjg@gnu.org> and
25498         Chris Clayton <chris2553@googlemail.com> via
25499         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25500
25501 2010-01-09  Bruno Haible  <bruno@clisp.org>
25502
25503         unistr/u16-to-u32: Reject invalid input.
25504         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25505         u16_mbtouc.
25506         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25507         Remove unistr/u16-mbtouc.
25508
25509         unistr/u16-to-u8: Reject invalid input.
25510         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25511         u16_mbtouc.
25512         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25513         Remove unistr/u16-mbtouc.
25514
25515         unistr/u8-to-u32: Reject invalid input.
25516         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25517         u8_mbtouc.
25518         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25519         Remove unistr/u8-mbtouc.
25520
25521         unistr/u8-to-u16: Reject invalid input.
25522         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25523         u8_mbtouc.
25524         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25525         Remove unistr/u8-mbtouc.
25526
25527 2010-01-09  Bruno Haible  <bruno@clisp.org>
25528
25529         Tests for module 'getlogin'.
25530         * modules/getlogin-tests: New file.
25531         * tests/test-getlogin.c: New file.
25532
25533         New module 'getlogin'.
25534         * lib/unistd.in.h (getlogin): New declaration.
25535         * lib/getlogin.c: New file.
25536         * m4/getlogin.m4: New file.
25537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25538         HAVE_GETLOGIN.
25539         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25540         HAVE_GETLOGIN.
25541         * modules/getlogin: New file.
25542         * doc/posix-functions/getlogin.texi: Mention the new module.
25543         Reported by John W. Eaton <jwe@gnu.org>.
25544
25545 2010-01-09  Bruno Haible  <bruno@clisp.org>
25546
25547         getlogin_r: Support for native Windows.
25548         * lib/getlogin_r.c: Include <windows.h>
25549         (getlogin_r): Implement for native Windows.
25550         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25551         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25552         via John W. Eaton <jwe@gnu.org>.
25553
25554 2010-01-09  Bruno Haible  <bruno@clisp.org>
25555
25556         getlogin_r: Small fixes.
25557         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25558         succeeds.
25559         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25560         before testing whether getlogin_r is declared. No need to set
25561         HAVE_DECL_GETLOGIN_R to 1.
25562         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25563
25564 2010-01-09  Bruno Haible  <bruno@clisp.org>
25565
25566         * lib/unistd.in.h (getlogin_r): Add comment.
25567
25568 2010-01-09  Bruno Haible  <bruno@clisp.org>
25569
25570         Tests for module 'getlogin_r'.
25571         * modules/getlogin_r-tests: New file.
25572         * tests/test-getlogin_r.c: New file.
25573
25574 2010-01-09  Jim Meyering  <meyering@redhat.com>
25575
25576         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25577         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25578         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25579
25580 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25581
25582         * lib/dup2.c (rpl_dup2): Improve comment.
25583
25584 2010-01-08  Eric Blake  <ebb9@byu.net>
25585
25586         maint.mk: allow packages to add makefile @@ exceptions
25587         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25588         (sc_makefile_check): Rename...
25589         (sc_makefile_at_at_check): ...to this, and use hook.
25590
25591         dup2: work around mingw bug
25592         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25593         Reported by Simon Josefsson.
25594
25595 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25596
25597         glob: Fix C++ compilation.
25598         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25599         C++.
25600
25601 2010-01-07  Bruno Haible  <bruno@clisp.org>
25602
25603         Fix indentation of wctype.in.h, broken since 2007-01-06.
25604         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25605
25606 2010-01-07  Bruno Haible  <bruno@clisp.org>
25607
25608         mbslen: Avoid collision with system function.
25609         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25610         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25611         * m4/mbslen.m4: New file.
25612         * modules/mbslen (Files): Add it.
25613         (configure.ac): Invoke gl_MBSLEN.
25614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25615         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25616         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25617         via Ian Beckwith <ianb@erislabs.net>.
25618
25619 2010-01-07  Bruno Haible  <bruno@clisp.org>
25620
25621         dirent: Document the last fix.
25622         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25623
25624 2010-01-07  Bruno Haible  <bruno@clisp.org>
25625
25626         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25627         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25628         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25629         va_list are defined.
25630         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25631         Reported by Eric Blake.
25632
25633 2010-01-07  Bruno Haible  <bruno@clisp.org>
25634
25635         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25636         * modules/xlist (Depends-on): Add 'list',
25637         * modules/xoset (Depends-on): Add 'oset'.
25638         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25639
25640 2010-01-07  Bruno Haible  <bruno@clisp.org>
25641
25642         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25643         * doc/posix-functions/strncasecmp.texi: Likewise.
25644
25645 2010-01-07  Bruno Haible  <bruno@clisp.org>
25646
25647         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25648
25649 2010-01-07  John W. Eaton  <jwe@octave.org>
25650
25651         wctype: allow C++ use
25652         * lib/wctype.in.h: Add extern "C" block for C++.
25653
25654 2010-01-06  Eric Blake  <ebb9@byu.net>
25655
25656         maint.mk: detect incorrect GFDL usage
25657         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25658
25659 2010-01-06  Jim Meyering  <meyering@redhat.com>
25660         and Eric Blake  <ebb9@byu.net>
25661
25662         maint.mk: ignore multi-line copyright in NEWS
25663         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25664
25665 2010-01-06  Eric Blake  <ebb9@byu.net>
25666
25667         select: add missing dependency
25668         * modules/select-tests (Depends-on): Move sockets dependency...
25669         * modules/select (Depends-on): ...here.
25670         Reported by Ian Beckwith.
25671
25672         doc: regenerate INSTALL
25673         * doc/INSTALL: Reflect recent autoconf update.
25674         * doc/INSTALL.ISO: Likewise.
25675         * doc/INSTALL.UTF-8: Likewise.
25676
25677         pread: fix compilation on glibc
25678         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25679         Reported by Ralf Wildenhues.
25680
25681         dirent: fix test failure
25682         * lib/dirent.in.h (includes): Guarantee ino_t.
25683         Reported by Ralf Wildenhues.
25684
25685 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25686
25687         linkat, renameat: avoid bad free
25688         * lib/at-func2.c (at_func2): Fix typo.
25689         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25690
25691 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25692
25693         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25694         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25695         to avoid failure of symlink test later.
25696
25697 2010-01-06  Eric Blake  <ebb9@byu.net>
25698
25699         stdio, unistd: guarantee ssize_t
25700         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25701         2008 are exposed when needed.
25702         * lib/stdio.in.h (includes): Likewise.
25703         Reported by Ralf Wildenhues.
25704
25705 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25706
25707         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25709         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25710
25711 2010-01-06  Jim Meyering  <meyering@redhat.com>
25712
25713         readtokens: this module *does* require xalloc.h
25714         It uses only functions that were omitted by the old syntax-check rule.
25715         * lib/readtokens.c: Include "xalloc.h" once again.
25716         * modules/readtokens (Depends-on): Add xalloc.
25717         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25718
25719 2010-01-05  Eric Blake  <ebb9@byu.net>
25720
25721         maint: support 'make announcement' from a VPATH build
25722         * top/maint.mk (announcement): Look for correct NEWS file.
25723
25724 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25725
25726         utimens (fdutimens): ignore a negative FD, per contract
25727         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25728         when we have a valid file descriptor.  Otherwise, using a brand
25729         new glibc (with just-patched futimens that now fails with EBADF)
25730         would cause this function to fail with ENOSYS.
25731         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25732         See also http://bugzilla.redhat.com/552320.
25733
25734 2010-01-05  Eric Blake  <ebb9@byu.net>
25735
25736         strcase: document what it provides
25737         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25738         gnulib module.
25739         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25740         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25741
25742 2010-01-05  Jim Meyering  <meyering@redhat.com>
25743
25744         maint: remove useless inclusions of "xalloc.h"
25745         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25746         * lib/readtokens.c: Likewise.
25747         * lib/same.c: Likewise.
25748         * modules/getloadavg (Depends-on): Remove xalloc.
25749         * modules/readtokens: Likewise.
25750         * modules/same: Likewise.
25751
25752         maint.mk: include 4 more function names in alloca.h-checking regexp
25753         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25754         regexp.  Before, we would give a false-positive (saying alloca.h
25755         is included unnecessarily) when the only uses involved omitted symbols.
25756
25757         xalloc.h: use consistent formatting
25758         * lib/xalloc.h: Move declarations to start in the first column.
25759
25760 2010-01-05  Eric Blake  <ebb9@byu.net>
25761
25762         mkdir: avoid xalloc
25763         * lib/mkdir.c (includes): Drop unused header.
25764         Reported by John W. Eaton.
25765
25766 2010-01-04  Jim Meyering  <meyering@redhat.com>
25767
25768         nl_langinfo: avoid configure-time syntax error
25769         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25770         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25771         the empty string.  Don't let that provoke a shell syntax error.
25772
25773         regcomp, regexec, fnmatch: avoid array bounds read error
25774         * lib/regcomp.c (build_equiv_class): From glibc:
25775         Use only the low 24 bits of a findidx return value as an index
25776         into the weights array.  Patch by Ulrich Drepper:
25777         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25778         * lib/regexec.c (check_node_accept_bytes): Likewise.
25779         * lib/fnmatch_loop.c (FCT): Likewise.
25780
25781         regcomp: skip collseq lookup when there are no rules
25782         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25783         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25784
25785         regcomp: recognize ill-formed { } expressions
25786         * lib/regcomp.c (parse_dup_op): From glibc:
25787         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25788
25789         regcomp: fix typo in comment
25790         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25791         s/satisfy/satisfies/.
25792
25793         regcomp: sync from glibc: remove dead store
25794         * lib/regcomp.c (duplicate_node_closure): Remove useless
25795         search_duplicated_node call and dead store.
25796
25797         regcomp: sync from glibc; always use nl_langinfo
25798         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25799         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25800         * modules/regex (Depends-on): Add nl_langinfo.
25801
25802 2010-01-04  Eric Blake  <ebb9@byu.net>
25803
25804         fdopendir: fix configure test
25805         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25806
25807 2010-01-01  Bruno Haible  <bruno@clisp.org>
25808
25809         wchar: Remove unused configure check.
25810         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25811
25812 2010-01-01  Eric Blake  <ebb9@byu.net>
25813
25814         headers: make check of system header explicit
25815         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25816         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25817         ourselves.
25818         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25819         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25820         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25821         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25822         internals.
25823         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25824         missing.
25825         Suggested by Bruno Haible.
25826
25827 2010-01-01  Jim Meyering  <meyering@redhat.com>
25828
25829         ChangeLog: tweak to eliminate unnecessary copyright line
25830         * ChangeLog: Remove a copyright line that was mistakenly updated
25831         by today's update-copyright run.  Reported by Eric Blake.
25832
25833         test-update-copyright: don't let envvar setting cause test failure
25834         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25835
25836 2010-01-01  Bruno Haible  <bruno@clisp.org>
25837
25838         localename: Avoid gcc warning.
25839         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25840         function if it is not used.
25841
25842 2010-01-01  Jim Meyering  <meyering@redhat.com>
25843
25844         update nearly all FSF copyright year lists to include 2010
25845         Use the same procedure as for 2009, outlined in
25846         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25847
25848         version-etc: set COPYRIGHT_YEAR to 2010
25849         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25850
25851 2009-12-31  Eric Blake  <ebb9@byu.net>
25852
25853         doc: correct availability of cygwin 1.5.x getopt
25854         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25855         variables.
25856         * doc/posix-functions/opterr.texi (opterr): Likewise.
25857         * doc/posix-functions/optind.texi (optind): Likewise.
25858         * doc/posix-functions/optopt.texi (optopt): Likewise.
25859         * doc/posix-functions/tzname.texi (tzname): Likewise.
25860
25861         openat: update maintainer
25862         * modules/openat (Maintainer): Add myself.
25863
25864         utimens: avoid shadowing warning
25865         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25866         buffers into one, to avoid shadowing, as well as avoiding a
25867         redundant stat.
25868         Reported by Jim Meyering.
25869
25870         test-dup2: avoid compiler warning
25871         * tests/test-dup2.c (is_inheritable): Only define if used.
25872
25873 2010-01-01  Bruno Haible  <bruno@clisp.org>
25874
25875         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25876         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25877         defined, use wctomb instead of wcrtomb.
25878
25879 2010-01-01  Bruno Haible  <bruno@clisp.org>
25880
25881         iconv: Reject native Solaris iconv.
25882         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25883         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25884
25885 2009-12-31  Bruno Haible  <bruno@clisp.org>
25886
25887         * tests/test-signal.c (main): Remove test of 'SIG'.
25888
25889 2009-12-31  Bruno Haible  <bruno@clisp.org>
25890
25891         spawn: Fix incomplete fix.
25892         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25893         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25894         warnings for GNULIB_POSIXCHECK again.
25895         Reported by Eric Blake.
25896
25897 2009-12-31  Bruno Haible  <bruno@clisp.org>
25898
25899         Avoid namespace pollution on glibc systems.
25900         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25901         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25902         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25903         glibc systems.
25904
25905 2009-12-31  Bruno Haible  <bruno@clisp.org>
25906
25907         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25908         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25909         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25910         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25911         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25912         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25913         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25914
25915 2009-12-31  Bruno Haible  <bruno@clisp.org>
25916
25917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25918         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25919         afterwards.
25920
25921 2009-12-31  Bruno Haible  <bruno@clisp.org>
25922
25923         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25924         SYS_UTSNAME_H.
25925
25926 2009-12-31  Bruno Haible  <bruno@clisp.org>
25927
25928         spawn: Fix misapplied patch.
25929         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25930         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25931         warnings for GNULIB_POSIXCHECK.
25932
25933 2009-12-31  Bruno Haible  <bruno@clisp.org>
25934
25935         times: Update after sys_times changed.
25936         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25937         * modules/times (Files): Add it.
25938         (configure.ac): Invoke gl_FUNC_TIMES.
25939
25940 2009-12-31  Bruno Haible  <bruno@clisp.org>
25941
25942         Use AC_C_INLINE where necessary.
25943         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25944         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25946         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25947         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25948         * m4/mbiter.m4 (gl_MBITER): Likewise.
25949         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25950         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25951         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25952         * modules/u64 (configure.ac): Likewise.
25953
25954 2009-12-31  Bruno Haible  <bruno@clisp.org>
25955
25956         Use AC_C_INLINE instead of module 'inline' where possible.
25957         * modules/inline (Description): Clarify purpose.
25958         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25959         * modules/count-one-bits (Depends-on): Remove inline.
25960         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25961         * modules/openat (Depends-on): Remove inline.
25962         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25963         instead of depending on module 'inline'.
25964         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25965         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25966         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25967         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25968         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25969         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25970         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25971         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25972         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25973         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25974         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25975         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25976         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25977         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25978         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25979         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25980         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25981         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25982         Likewise.
25983         * modules/unictype/property-ascii-hex-digit (Depends-on,
25984         configure.ac): Likewise.
25985         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25986         configure.ac): Likewise.
25987         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25988         configure.ac): Likewise.
25989         * modules/unictype/property-bidi-block-separator (Depends-on,
25990         configure.ac): Likewise.
25991         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25992         configure.ac): Likewise.
25993         * modules/unictype/property-bidi-common-separator (Depends-on,
25994         configure.ac): Likewise.
25995         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25996         Likewise.
25997         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25998         configure.ac): Likewise.
25999         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26000         configure.ac): Likewise.
26001         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26002         configure.ac): Likewise.
26003         * modules/unictype/property-bidi-european-digit (Depends-on,
26004         configure.ac): Likewise.
26005         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26006         configure.ac): Likewise.
26007         * modules/unictype/property-bidi-left-to-right (Depends-on,
26008         configure.ac): Likewise.
26009         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26010         configure.ac): Likewise.
26011         * modules/unictype/property-bidi-other-neutral (Depends-on,
26012         configure.ac): Likewise.
26013         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26014         Likewise.
26015         * modules/unictype/property-bidi-segment-separator (Depends-on,
26016         configure.ac): Likewise.
26017         * modules/unictype/property-bidi-whitespace (Depends-on,
26018         configure.ac): Likewise.
26019         * modules/unictype/property-combining (Depends-on, configure.ac):
26020         Likewise.
26021         * modules/unictype/property-composite (Depends-on, configure.ac):
26022         Likewise.
26023         * modules/unictype/property-currency-symbol (Depends-on,
26024         configure.ac): Likewise.
26025         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26026         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26027         Likewise.
26028         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26029         configure.ac): Likewise.
26030         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26031         Likewise.
26032         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26033         Likewise.
26034         * modules/unictype/property-extender (Depends-on, configure.ac):
26035         Likewise.
26036         * modules/unictype/property-format-control (Depends-on, configure.ac):
26037         Likewise.
26038         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26039         Likewise.
26040         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26041         Likewise.
26042         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26043         Likewise.
26044         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26045         Likewise.
26046         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26047         Likewise.
26048         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26049         Likewise.
26050         * modules/unictype/property-id-start (Depends-on, configure.ac):
26051         Likewise.
26052         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26053         Likewise.
26054         * modules/unictype/property-ids-binary-operator (Depends-on,
26055         configure.ac): Likewise.
26056         * modules/unictype/property-ids-trinary-operator (Depends-on,
26057         configure.ac): Likewise.
26058         * modules/unictype/property-ignorable-control (Depends-on,
26059         configure.ac): Likewise.
26060         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26061         Likewise.
26062         * modules/unictype/property-join-control (Depends-on, configure.ac):
26063         Likewise.
26064         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26065         Likewise.
26066         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26067         Likewise.
26068         * modules/unictype/property-logical-order-exception (Depends-on,
26069         configure.ac): Likewise.
26070         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26071         Likewise.
26072         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26073         * modules/unictype/property-non-break (Depends-on, configure.ac):
26074         Likewise.
26075         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26076         Likewise.
26077         * modules/unictype/property-numeric (Depends-on, configure.ac):
26078         Likewise.
26079         * modules/unictype/property-other-alphabetic (Depends-on,
26080         configure.ac): Likewise.
26081         * modules/unictype/property-other-default-ignorable-code-point
26082         (Depends-on, configure.ac): Likewise.
26083         * modules/unictype/property-other-grapheme-extend (Depends-on,
26084         configure.ac): Likewise.
26085         * modules/unictype/property-other-id-continue (Depends-on,
26086         configure.ac): Likewise.
26087         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26088         Likewise.
26089         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26090         Likewise.
26091         * modules/unictype/property-other-math (Depends-on, configure.ac):
26092         Likewise.
26093         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26094         Likewise.
26095         * modules/unictype/property-paired-punctuation (Depends-on,
26096         configure.ac): Likewise.
26097         * modules/unictype/property-paragraph-separator (Depends-on,
26098         configure.ac): Likewise.
26099         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26100         Likewise.
26101         * modules/unictype/property-pattern-white-space (Depends-on,
26102         configure.ac): Likewise.
26103         * modules/unictype/property-private-use (Depends-on, configure.ac):
26104         Likewise.
26105         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26106         Likewise.
26107         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26108         Likewise.
26109         * modules/unictype/property-radical (Depends-on, configure.ac):
26110         Likewise.
26111         * modules/unictype/property-sentence-terminal (Depends-on,
26112         configure.ac): Likewise.
26113         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26114         Likewise.
26115         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26116         * modules/unictype/property-terminal-punctuation (Depends-on,
26117         configure.ac): Likewise.
26118         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26119         Likewise.
26120         * modules/unictype/property-unassigned-code-value (Depends-on,
26121         configure.ac): Likewise.
26122         * modules/unictype/property-unified-ideograph (Depends-on,
26123         configure.ac): Likewise.
26124         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26125         Likewise.
26126         * modules/unictype/property-variation-selector (Depends-on,
26127         configure.ac): Likewise.
26128         * modules/unictype/property-white-space (Depends-on, configure.ac):
26129         Likewise.
26130         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26131         Likewise.
26132         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26133         Likewise.
26134         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26135         Likewise.
26136         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26137         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26138         Likewise.
26139
26140 2009-12-31  Bruno Haible  <bruno@clisp.org>
26141
26142         Remove unnecessary AC_C_INLINE invocation.
26143         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26144         since 2009-08-21.
26145
26146 2009-12-31  Jim Meyering  <meyering@redhat.com>
26147
26148         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26149         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26150         With this change, we can all remove the gpg_key_ID = ... definition
26151         from our respective cfg.mk files.
26152
26153         maint.mk: create announcement template in ~/, not in /tmp
26154         * top/maint.mk (emit_upload_commands): Adjust.
26155         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26156         Remove temporary file, .ci-msg.
26157
26158 2009-12-31  Eric Blake  <ebb9@byu.net>
26159
26160         link-warning: always build headers with link warnings
26161         * modules/arpa_inet (Makefile.am): Always build replacement
26162         header.
26163         * modules/ctype (Makefile.am): Likewise.
26164         * modules/dirent (Makefile.am): Likewise.
26165         * modules/inttypes (Makefile.am): Likewise.
26166         * modules/langinfo (Makefile.am): Likewise.
26167         * modules/locale (Makefile.am): Likewise.
26168         * modules/spawn (Makefile.am): Likewise.
26169         * modules/sys_file (Makefile.am): Likewise.
26170         * modules/sys_ioctl (Makefile.am): Likewise.
26171         * modules/sys_select (Makefile.am): Likewise.
26172         * modules/sys_socket (Makefile.am): Likewise.
26173         * modules/sys_times (Makefile.am): Likewise.
26174         * modules/sys_utsname (Makefile.am): Likewise.
26175         * modules/sys_wait (Makefile.am): Likewise.
26176         * modules/wchar (Makefile.am): Likewise.
26177         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26178         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26179         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26180         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26181         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26182         Likewise.
26183         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26184         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26185         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26186         Likewise.
26187         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26188         Likewise.
26189         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26191         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26194         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26195         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26196         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26197         (gl_WCHAR_H_DEFAULTS): Likewise.
26198
26199 2009-12-31  Eric Blake  <ebb9@byu.net>
26200
26201         signal, spawn: use link warnings
26202         * lib/signal.in.h (sigset_t): Make unconditional.
26203         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26204         (sigpending, sigprocmask, sigaction): Add link warnings.
26205         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26206         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26207         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26208         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26209         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26210         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26211         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26212         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26213         (posix_spawn_file_actions_destroy)
26214         (posix_spawn_file_actions_addopen)
26215         (posix_spawn_file_actions_addclose)
26216         (posix_spawn_file_actions_adddup2): Likewise.
26217         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26218         * tests/test-signal.c (main): Enhance test.
26219
26220         spawn: improve wrapper support
26221         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26222         (gl_SPAWN_H_DEFAULTS): New defaults.
26223         * modules/spawn (Makefile.am): Substitute them.
26224         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26225         Only declare if missing or broken.
26226
26227         sys_times, sys_utsname: use include_next
26228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26229         header.
26230         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26231         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26232         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26233         * modules/sys_times (Depends-on): Add include_next.
26234         (Makefile.am): Substitute additional values.
26235         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26236         * lib/sys_times.in.h (includes): Include native header, if
26237         available.
26238         * lib/sys_utsname.in.h (includes): Likewise.
26239         * tests/test-sys_times.c (main): Enhance test.
26240
26241         fdutimensat: revert prior patch
26242         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26243         utimens.h.
26244         Reported by Bruno Haible.
26245
26246 2009-12-30  Eric Blake  <ebb9@byu.net>
26247
26248         sys_wait: drop link-warning dependency
26249         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26250         link-warning efforts.
26251         * lib/sys_wait.in.h: Likewise.
26252
26253         fdutimensat: remove bogus dependency
26254         * modules/fdutimensat (Depends-on): Drop inline.
26255
26256         unistd: fix typo
26257         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26258
26259 2009-12-30  Bruno Haible  <bruno@clisp.org>
26260
26261         Fix compilation error with Solaris cc.
26262         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26263         * lib/unicase/u16-is-invariant.c: Likewise.
26264         * lib/unicase/u32-is-invariant.c: Likewise.
26265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26266
26267 2009-12-30  Bruno Haible  <bruno@clisp.org>
26268
26269         Fix test crash.
26270         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26271         locales.
26272         Reported by Simon Josefsson <simon@josefsson.org>.
26273
26274 2009-12-30  Bruno Haible  <bruno@clisp.org>
26275
26276         Fix compilation error on most platforms.
26277         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26278         Reported by Simon Josefsson <simon@josefsson.org>
26279         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26280
26281 2009-12-30  Eric Blake  <ebb9@byu.net>
26282
26283         futimens, utimensat: work around ntfs-3g bug
26284         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26285         a ctime bug is present, and expand workaround to cover ntfs-3g.
26286         * lib/utimens.c (fdutimens, lutimens): Likewise.
26287         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26288         (validate_timespec): Adjust return value.
26289         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26290         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26291         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26292
26293 2009-12-29  Eric Blake  <ebb9@byu.net>
26294
26295         link-warning: make usage consistent
26296         * modules/ctype (Depends-on): Add link-warning.
26297         (Makefile.am): Update rules accordingly.
26298         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26299         * modules/locale (Depends-on, Makefile.am): Likewise.
26300         * modules/sys_file (Makefile.am): Likewise.
26301         * modules/getopt-posix (Makefile.am): Delete unused link warning
26302         efforts.
26303         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26304         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26305         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26306         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26307
26308         stdio: remove unused variables
26309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26310         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26311         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26312
26313         tests: test more substitute headers
26314         * modules/ctype-tests: New file.
26315         * modules/dirent-tests: Likewise.
26316         * modules/spawn-tests: Likewise.
26317         * modules/sys_file-tests: Likewise.
26318         * modules/sys_ioctl-tests: Likewise.
26319         * modules/sys_wait-tests: Likewise.
26320         * tests/test-ctype.c: Likewise.
26321         * tests/test-dirent.c: Likewise.
26322         * tests/test-spawn.c: Likewise.
26323         * tests/test-sys_file.c: Likewise.
26324         * tests/test-sys_ioctl.c: Likewise.
26325         * tests/test-sys_wait.c: Likewise.
26326         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26327         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26328         whether or not flock is in use.
26329
26330         tests: remove License section from module
26331         * modules/arpa_inet-tests: Remove unneeded section.
26332         * modules/byteswap-tests: Likewise.
26333         * modules/ceilf-tests: Likewise.
26334         * modules/ceill-tests: Likewise.
26335         * modules/crypto/des-tests: Likewise.
26336         * modules/crypto/gc-arcfour-tests: Likewise.
26337         * modules/crypto/gc-arctwo-tests: Likewise.
26338         * modules/crypto/gc-des-tests: Likewise.
26339         * modules/crypto/gc-hmac-md5-tests: Likewise.
26340         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26341         * modules/crypto/gc-md2-tests: Likewise.
26342         * modules/crypto/gc-md4-tests: Likewise.
26343         * modules/crypto/gc-md5-tests: Likewise.
26344         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26345         * modules/crypto/gc-rijndael-tests: Likewise.
26346         * modules/crypto/gc-sha1-tests: Likewise.
26347         * modules/crypto/gc-tests: Likewise.
26348         * modules/crypto/md2-tests: Likewise.
26349         * modules/crypto/md4-tests: Likewise.
26350         * modules/fcntl-h-tests: Likewise.
26351         * modules/floorf-tests: Likewise.
26352         * modules/floorl-tests: Likewise.
26353         * modules/frexp-nolibm-tests: Likewise.
26354         * modules/frexp-tests: Likewise.
26355         * modules/frexpl-nolibm-tests: Likewise.
26356         * modules/frexpl-tests: Likewise.
26357         * modules/getaddrinfo-tests: Likewise.
26358         * modules/inttypes-tests: Likewise.
26359         * modules/isfinite-tests: Likewise.
26360         * modules/isinf-tests: Likewise.
26361         * modules/ldexpl-tests: Likewise.
26362         * modules/locale-tests: Likewise.
26363         * modules/math-tests: Likewise.
26364         * modules/netdb-tests: Likewise.
26365         * modules/netinet_in-tests: Likewise.
26366         * modules/printf-frexp-tests: Likewise.
26367         * modules/printf-frexpl-tests: Likewise.
26368         * modules/priv-set-tests: Likewise.
26369         * modules/random_r-tests: Likewise.
26370         * modules/round-tests: Likewise.
26371         * modules/roundf-tests: Likewise.
26372         * modules/roundl-tests: Likewise.
26373         * modules/search-tests: Likewise.
26374         * modules/select-tests: Likewise.
26375         * modules/signal-tests: Likewise.
26376         * modules/stdbool-tests: Likewise.
26377         * modules/stddef-tests: Likewise.
26378         * modules/stdint-tests: Likewise.
26379         * modules/stdio-tests: Likewise.
26380         * modules/stdlib-tests: Likewise.
26381         * modules/string-tests: Likewise.
26382         * modules/strings-tests: Likewise.
26383         * modules/sys_select-tests: Likewise.
26384         * modules/sys_socket-tests: Likewise.
26385         * modules/sys_stat-tests: Likewise.
26386         * modules/sys_time-tests: Likewise.
26387         * modules/sys_utsname-tests: Likewise.
26388         * modules/sysexits-tests: Likewise.
26389         * modules/time-tests: Likewise.
26390         * modules/trunc-tests: Likewise.
26391         * modules/truncf-tests: Likewise.
26392         * modules/truncl-tests: Likewise.
26393         * modules/tsearch-tests: Likewise.
26394         * modules/unistd-tests: Likewise.
26395         * modules/wchar-tests: Likewise.
26396         * modules/wctype-tests: Likewise.
26397
26398         tests: fix license on several tests
26399         * tests/test-des.c: Update to GPLv3+.
26400         * tests/test-flock.c: Likewise.
26401         * tests/test-fsync.c: Likewise.
26402         * tests/test-futimens.h: Likewise.
26403         * tests/test-gc-arcfour.c: Likewise.
26404         * tests/test-gc-arctwo.c: Likewise.
26405         * tests/test-gc-des.c: Likewise.
26406         * tests/test-gc-hmac-md5.c: Likewise.
26407         * tests/test-gc-hmac-sha1.c: Likewise.
26408         * tests/test-gc-md2.c: Likewise.
26409         * tests/test-gc-md4.c: Likewise.
26410         * tests/test-gc-md5.c: Likewise.
26411         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26412         * tests/test-gc-rijndael.c: Likewise.
26413         * tests/test-gc-sha1.c: Likewise.
26414         * tests/test-gc.c: Likewise.
26415         * tests/test-getcwd.c: Likewise.
26416         * tests/test-link.c: Likewise.
26417         * tests/test-link.h: Likewise.
26418         * tests/test-lutimens.h: Likewise.
26419         * tests/test-md2.c: Likewise.
26420         * tests/test-md4.c: Likewise.
26421         * tests/test-mkdir.h: Likewise.
26422         * tests/test-rename.c: Likewise.
26423         * tests/test-rename.h: Likewise.
26424         * tests/test-safe-alloc.c: Likewise.
26425         * tests/test-utimens-common.h: Likewise.
26426         * tests/test-utimens.h: Likewise.
26427
26428         maint: sync license texts
26429         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26430         * doc/gpl-3.0.texi: Revert copyright year update.
26431         * doc/lgpl-3.0.texi: Likewise.
26432
26433 2009-12-29  Jim Meyering  <meyering@redhat.com>
26434
26435         update nearly all FSF copyright year lists to include 2009
26436         The files named by the following are exempted:
26437             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26438               test -f "$dst" && { echo "$dst"; continue; }
26439               test -d "$dst" || continue
26440               echo "$dst"/$(basename "$src")
26441             done > exempt
26442             git ls-files tests/unictype >> exempt
26443         In the remaining files, convert to all-interval notation if
26444         - there is already at least one year interval like 2000-2003
26445         - the file is maintained by me
26446         - the file is in lib/uni*/, where that style already prevails
26447         Otherwise, use update-copyright's default.
26448
26449 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26450         and Eric Blake  <ebb9@byu.net>
26451
26452         tests: don't require debug system() to pass
26453         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26454         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26455         * tests/test-unlink.h (test_unlink_func): Likewise.
26456         * tests/test-fstatat.c (main): ...into callers.
26457         * tests/test-lstat.c (main): Likewise.
26458         * tests/test-rmdir.c (main): Likewise.
26459         * tests/test-unlink.c (main): Likewise.
26460         * tests/test-unlinkat.c (main): Likewise.
26461         * tests/test-areadlink-with-size.c (main): Don't require a
26462         debug-only system call to pass, aiding cross-testing to mingw.
26463         * tests/test-areadlink.c (main): Likewise.
26464         * tests/test-areadlinkat-with-size.c (main): Likewise.
26465         * tests/test-areadlinkat.c (main): Likewise.
26466         * tests/test-canonicalize-lgpl.c (main): Likewise.
26467         * tests/test-canonicalize.c (main): Likewise.
26468         * tests/test-chown.c (main): Likewise.
26469         * tests/test-fchownat.c (main): Likewise.
26470         * tests/test-lchown.c (main): Likewise.
26471         * tests/test-fdutimensat.c (main): Likewise.
26472         * tests/test-futimens.c (main): Likewise.
26473         * tests/test-link.c (main): Likewise.
26474         * tests/test-linkat.c (main): Likewise.
26475         * tests/test-mkdir.c (main): Likewise.
26476         * tests/test-mkdirat.c (main): Likewise.
26477         * tests/test-mkfifo.c (main): Likewise.
26478         * tests/test-mkfifoat.c (main): Likewise.
26479         * tests/test-mknod.c (main): Likewise.
26480         * tests/test-readlink.c (main): Likewise.
26481         * tests/test-remove.c (main): Likewise.
26482         * tests/test-rename.c (main): Likewise.
26483         * tests/test-renameat.c (main): Likewise.
26484         * tests/test-symlink.c (main): Likewise.
26485         * tests/test-symlinkat.c (main): Likewise.
26486         * tests/test-utimens.c (main): Likewise.
26487         * tests/test-utimensat.c (main): Likewise.
26488
26489 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26490
26491         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26492         on $(UNUSED_PARAMETER_H) to avoid build failure.
26493
26494 2009-12-28  Jim Meyering  <meyering@redhat.com>
26495
26496         update-copyright: you may specify a max. line length other than 72
26497         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26498
26499         maint: use consistent FSF copyright line syntax
26500         * lib/posixtm.c: Add missing comma in FSF copyright line.
26501         * lib/posixtm.h: Likewise.
26502         * lib/getugroups.c: Add missing ", Inc.".
26503
26504         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26505         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26506         FSF copyright line.  Remove trailing blanks.
26507
26508 2009-12-28  Eric Blake  <ebb9@byu.net>
26509
26510         test-dup2: reduce dependencies
26511         * modules/cloexec (Configure.ac): Set witness.
26512         * modules/dup2-tests (Depends-on): Drop cloexec.
26513         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26514         not present.
26515         Suggested by Bruno Haible.
26516
26517 2009-12-26  Bruno Haible  <bruno@clisp.org>
26518
26519         Remove an unneeded dependency.
26520         * modules/fseterr (Depends-on): Remove dup2.
26521
26522 2009-12-26  Eric Blake  <ebb9@byu.net>
26523
26524         tests: use macros.h in more places
26525         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26526         (ASSERT_STREAM): Provide default of stderr.
26527         * tests/test-dirent-safer.c: Include macros.h, using alternate
26528         stream for assertions.
26529         * tests/test-dup-safer.c: Likewise.
26530         * tests/test-freopen-safer.c: Likewise.
26531         * tests/test-getopt.c: Likewise.
26532         * tests/test-openat-safer.c: Likewise.
26533         * tests/test-pipe.c: Likewise.
26534         * tests/test-popen-safer.c: Likewise.
26535         * modules/dirent-safer-tests (Files): Include macros.h.
26536         * modules/unistd-safer-tests (Files): Likewise.
26537         * modules/freopen-safer-tests (Files): Likewise.
26538         * modules/getopt-posix-tests (Files): Likewise.
26539         * modules/openat-safer-tests (Files): Likewise.
26540         * modules/pipe-tests (Files): Likewise.
26541
26542 2009-12-26  Bruno Haible  <bruno@clisp.org>
26543
26544         javacomp: Portability fix.
26545         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26546         that it also works on Solaris.
26547
26548 2009-12-26  Bruno Haible  <bruno@clisp.org>
26549
26550         localename: Fix storage allocation of gl_locale_name_thread's result.
26551         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26552         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26553         all platforms that have 'uselocale'.
26554         (gl_locale_name_thread_unsafe): New function, extracted from
26555         gl_locale_name_thread.
26556         (gl_locale_name_thread): Call struniq on all platforms that have
26557         'uselocale'.
26558         * tests/test-localename.c (test_locale_name_thread): Check that the
26559         resulting strings are permanently allocated.
26560         * modules/localename-tests (Depends-on): Add strdup.
26561
26562 2009-12-26  Bruno Haible  <bruno@clisp.org>
26563
26564         * tests/test-localename.c (categories): Fill in the strings.
26565
26566 2009-12-26  Jim Meyering  <meyering@redhat.com>
26567
26568         isdir: complete the removal of m4/isdir.m4
26569         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26570
26571         isdir: clean up, since at least grep still uses it
26572         * lib/isdir.c: Include "isdir.h".
26573         (S_ISDIR): Remove now-unneeded definition.
26574         * modules/isdir (Files): Add lib/isdir.h.
26575         * lib/isdir.h: New file, with declaration.
26576         * m4/isdir.m4: Remove file -- unneeded.
26577
26578 2009-12-25  Bruno Haible  <bruno@clisp.org>
26579
26580         selinux-h: Make generated .h files standalone.
26581         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26582         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26583         * lib/se-selinux.in.h: Likewise.
26584         * modules/selinux-h (Depends-on): Add unused-parameter.
26585         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26586         selinux/selinux.h and selinux/context.h.
26587         Suggested by Eric Blake.
26588
26589 2009-12-25  Bruno Haible  <bruno@clisp.org>
26590
26591         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26592         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26593         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26594         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26595         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26596
26597 2009-12-24  Bruno Haible  <bruno@clisp.org>
26598
26599         openat: Fix warning.
26600         * lib/openat-proc.c: Include <unistd.h>.
26601
26602 2009-12-24  Bruno Haible  <bruno@clisp.org>
26603
26604         New module 'unused-parameter'.
26605         * build-aux/unused-parameter.h: New file, extracted from earlier
26606         gnulib-common.m4.
26607         * modules/unused-parameter: New file.
26608         * lib/unistr.h: Include unused-parameter.h.
26609         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26610         _GL_UNUSED.
26611         * modules/unistr/base (Depends-on): Add unused-parameter.
26612
26613 2009-12-24  Bruno Haible  <bruno@clisp.org>
26614
26615         Add missing dependencies to 'extensions' module.
26616         * m4/extensions.m4: Add comment.
26617         * modules/accept4 (Depends-on): Add extensions.
26618         * modules/dup3 (Depends-on): Likewise.
26619         * modules/fcntl (Depends-on): Likewise.
26620         * modules/futimens (Depends-on): Likewise.
26621         * modules/mknod (Depends-on): Likewise.
26622         * modules/pipe2 (Depends-on): Likewise.
26623         * modules/stat-time (Depends-on): Likewise.
26624         * modules/strcasestr-simple (Depends-on): Likewise.
26625         * modules/strsignal (Depends-on): Likewise.
26626         * modules/utimensat (Depends-on): Likewise.
26627         * modules/localcharset (Depends-on): Likewise. Needed because of
26628         gl_FCNTL_O_FLAGS.
26629         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26630         AC_TYPE_MBSTATE_T.
26631         * modules/wcsnrtombs (Depends-on): Likewise.
26632         * modules/wcsrtombs (Depends-on): Likewise.
26633
26634 2009-12-24  Bruno Haible  <bruno@clisp.org>
26635
26636         binary-io: Avoid gcc warning due to SET_BINARY.
26637         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26638         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26639
26640 2009-12-24  Bruno Haible  <bruno@clisp.org>
26641
26642         Avoid future namespace pollution on glibc systems.
26643         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26644         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26645         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26646         glibc systems.
26647
26648 2009-12-24  Bruno Haible  <bruno@clisp.org>
26649
26650         Refactor common macros used in tests.
26651         * tests/macros.h: New file.
26652         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26653         and/or <stdlib.h>, if appropriate.
26654         (ASSERT, SIZEOF): Remove macros.
26655         * tests/test-areadlink-with-size.c: Likewise.
26656         * tests/test-areadlinkat.c: Likewise.
26657         * tests/test-areadlinkat-with-size.c: Likewise.
26658         * tests/test-argmatch.c: Likewise.
26659         * tests/test-argv-iter.c: Likewise.
26660         * tests/test-array-mergesort.c: Likewise.
26661         * tests/test-array_list.c: Likewise.
26662         * tests/test-array_oset.c: Likewise.
26663         * tests/test-avltree_list.c: Likewise.
26664         * tests/test-avltree_oset.c: Likewise.
26665         * tests/test-avltreehash_list.c: Likewise.
26666         * tests/test-base64.c: Likewise.
26667         * tests/test-binary-io.c: Likewise.
26668         * tests/test-bitrotate.c: Likewise.
26669         * tests/test-btowc.c: Likewise.
26670         * tests/test-byteswap.c: Likewise.
26671         * tests/test-c-ctype.c: Likewise.
26672         * tests/test-c-stack.c: Likewise.
26673         * tests/test-c-strcasecmp.c: Likewise.
26674         * tests/test-c-strcasestr.c: Likewise.
26675         * tests/test-c-strncasecmp.c: Likewise.
26676         * tests/test-c-strstr.c: Likewise.
26677         * tests/test-canonicalize-lgpl.c: Likewise.
26678         * tests/test-canonicalize.c: Likewise.
26679         * tests/test-carray_list.c: Likewise.
26680         * tests/test-ceilf1.c: Likewise.
26681         * tests/test-ceilf2.c: Likewise.
26682         * tests/test-ceill.c: Likewise.
26683         * tests/test-chown.c: Likewise.
26684         * tests/test-cloexec.c: Likewise.
26685         * tests/test-copy-acl.c: Likewise.
26686         * tests/test-copy-file.c: Likewise.
26687         * tests/test-count-one-bits.c: Likewise.
26688         * tests/test-dprintf-posix.c: Likewise.
26689         * tests/test-dup2.c: Likewise.
26690         * tests/test-dup3.c: Likewise.
26691         * tests/test-duplocale.c: Likewise.
26692         * tests/test-fbufmode.c: Likewise.
26693         * tests/test-fchdir.c: Likewise.
26694         * tests/test-fchownat.c: Likewise.
26695         * tests/test-fcntl-safer.c: Likewise.
26696         * tests/test-fcntl.c: Likewise.
26697         * tests/test-fdopendir.c: Likewise.
26698         * tests/test-fdutimensat.c: Likewise.
26699         * tests/test-fflush2.c: Likewise.
26700         * tests/test-file-has-acl.c: Likewise.
26701         * tests/test-filevercmp.c: Likewise.
26702         * tests/test-flock.c: Likewise.
26703         * tests/test-floorf1.c: Likewise.
26704         * tests/test-floorf2.c: Likewise.
26705         * tests/test-floorl.c: Likewise.
26706         * tests/test-fnmatch.c: Likewise.
26707         * tests/test-fopen.h: Likewise.
26708         * tests/test-fpending.c: Likewise.
26709         * tests/test-fprintf-posix.c: Likewise.
26710         * tests/test-fpurge.c: Likewise.
26711         * tests/test-freadable.c: Likewise.
26712         * tests/test-freadahead.c: Likewise.
26713         * tests/test-freading.c: Likewise.
26714         * tests/test-freadptr.c: Likewise.
26715         * tests/test-freadptr2.c: Likewise.
26716         * tests/test-freadseek.c: Likewise.
26717         * tests/test-freopen.c: Likewise.
26718         * tests/test-frexp.c: Likewise.
26719         * tests/test-frexpl.c: Likewise.
26720         * tests/test-fseek.c: Likewise.
26721         * tests/test-fseeko.c: Likewise.
26722         * tests/test-fstatat.c: Likewise.
26723         * tests/test-fstrcmp.c: Likewise.
26724         * tests/test-fsync.c: Likewise.
26725         * tests/test-ftell.c: Likewise.
26726         * tests/test-ftello.c: Likewise.
26727         * tests/test-func.c: Likewise.
26728         * tests/test-futimens.c: Likewise.
26729         * tests/test-fwritable.c: Likewise.
26730         * tests/test-fwriting.c: Likewise.
26731         * tests/test-getcwd.c: Likewise.
26732         * tests/test-getdate.c: Likewise.
26733         * tests/test-getdelim.c: Likewise.
26734         * tests/test-getdtablesize.c: Likewise.
26735         * tests/test-getgroups.c: Likewise.
26736         * tests/test-getline.c: Likewise.
26737         * tests/test-getndelim2.c: Likewise.
26738         * tests/test-glob.c: Likewise.
26739         * tests/test-hash.c: Likewise.
26740         * tests/test-i-ring.c: Likewise.
26741         * tests/test-iconv-utf.c: Likewise.
26742         * tests/test-iconv.c: Likewise.
26743         * tests/test-idpriv-drop.c: Likewise.
26744         * tests/test-idpriv-droptemp.c: Likewise.
26745         * tests/test-inet_ntop.c: Likewise.
26746         * tests/test-inet_pton.c: Likewise.
26747         * tests/test-isblank.c: Likewise.
26748         * tests/test-isfinite.c: Likewise.
26749         * tests/test-isinf.c: Likewise.
26750         * tests/test-isnan.c: Likewise.
26751         * tests/test-isnand.h: Likewise.
26752         * tests/test-isnanf.h: Likewise.
26753         * tests/test-isnanl.h: Likewise.
26754         * tests/test-lchown.c: Likewise.
26755         * tests/test-ldexpl.c: Likewise.
26756         * tests/test-link.c: Likewise.
26757         * tests/test-linkat.c: Likewise.
26758         * tests/test-linked_list.c: Likewise.
26759         * tests/test-linkedhash_list.c: Likewise.
26760         * tests/test-localename.c: Likewise.
26761         * tests/test-lseek.c: Likewise.
26762         * tests/test-lstat.c: Likewise.
26763         * tests/test-mbmemcasecmp.c: Likewise.
26764         * tests/test-mbmemcasecoll.c: Likewise.
26765         * tests/test-mbrtowc.c: Likewise.
26766         * tests/test-mbscasecmp.c: Likewise.
26767         * tests/test-mbscasestr1.c: Likewise.
26768         * tests/test-mbscasestr2.c: Likewise.
26769         * tests/test-mbscasestr3.c: Likewise.
26770         * tests/test-mbscasestr4.c: Likewise.
26771         * tests/test-mbschr.c: Likewise.
26772         * tests/test-mbscspn.c: Likewise.
26773         * tests/test-mbsinit.c: Likewise.
26774         * tests/test-mbsncasecmp.c: Likewise.
26775         * tests/test-mbsnrtowcs.c: Likewise.
26776         * tests/test-mbspbrk.c: Likewise.
26777         * tests/test-mbspcasecmp.c: Likewise.
26778         * tests/test-mbsrchr.c: Likewise.
26779         * tests/test-mbsrtowcs.c: Likewise.
26780         * tests/test-mbsspn.c: Likewise.
26781         * tests/test-mbsstr1.c: Likewise.
26782         * tests/test-mbsstr2.c: Likewise.
26783         * tests/test-mbsstr3.c: Likewise.
26784         * tests/test-memchr.c: Likewise.
26785         * tests/test-memchr2.c: Likewise.
26786         * tests/test-memcmp.c: Likewise.
26787         * tests/test-memmem.c: Likewise.
26788         * tests/test-memrchr.c: Likewise.
26789         * tests/test-mkdir.c: Likewise.
26790         * tests/test-mkdirat.c: Likewise.
26791         * tests/test-mkfifo.c: Likewise.
26792         * tests/test-mkfifoat.c: Likewise.
26793         * tests/test-mknod.c: Likewise.
26794         * tests/test-nanosleep.c: Likewise.
26795         * tests/test-nl_langinfo.c: Likewise.
26796         * tests/test-obstack-printf.c: Likewise.
26797         * tests/test-open.c: Likewise.
26798         * tests/test-openat.c: Likewise.
26799         * tests/test-pipe-filter-gi1.c: Likewise.
26800         * tests/test-pipe-filter-gi2-main.c: Likewise.
26801         * tests/test-pipe-filter-ii1.c: Likewise.
26802         * tests/test-pipe-filter-ii2-main.c: Likewise.
26803         * tests/test-pipe2.c: Likewise.
26804         * tests/test-popen.h: Likewise.
26805         * tests/test-posixtm.c: Likewise.
26806         * tests/test-pread.c: Likewise.
26807         * tests/test-printf-frexp.c: Likewise.
26808         * tests/test-printf-frexpl.c: Likewise.
26809         * tests/test-printf-posix.c: Likewise.
26810         * tests/test-priv-set.c: Likewise.
26811         * tests/test-quotearg.c: Likewise.
26812         * tests/test-random_r.c: Likewise.
26813         * tests/test-rawmemchr.c: Likewise.
26814         * tests/test-rbtree_list.c: Likewise.
26815         * tests/test-rbtree_oset.c: Likewise.
26816         * tests/test-rbtreehash_list.c: Likewise.
26817         * tests/test-readlink.c: Likewise.
26818         * tests/test-remove.c: Likewise.
26819         * tests/test-rename.c: Likewise.
26820         * tests/test-renameat.c: Likewise.
26821         * tests/test-rmdir.c: Likewise.
26822         * tests/test-round1.c: Likewise.
26823         * tests/test-roundf1.c: Likewise.
26824         * tests/test-roundl.c: Likewise.
26825         * tests/test-safe-alloc.c: Likewise.
26826         * tests/test-sameacls.c: Likewise.
26827         * tests/test-set-mode-acl.c: Likewise.
26828         * tests/test-setenv.c: Likewise.
26829         * tests/test-sigaction.c: Likewise.
26830         * tests/test-signbit.c: Likewise.
26831         * tests/test-sleep.c: Likewise.
26832         * tests/test-snprintf-posix.c: Likewise.
26833         * tests/test-snprintf.c: Likewise.
26834         * tests/test-sprintf-posix.c: Likewise.
26835         * tests/test-stat-time.c: Likewise.
26836         * tests/test-stat.c: Likewise.
26837         * tests/test-strcasestr.c: Likewise.
26838         * tests/test-strchrnul.c: Likewise.
26839         * tests/test-strerror.c: Likewise.
26840         * tests/test-striconv.c: Likewise.
26841         * tests/test-striconveh.c: Likewise.
26842         * tests/test-striconveha.c: Likewise.
26843         * tests/test-strsignal.c: Likewise.
26844         * tests/test-strstr.c: Likewise.
26845         * tests/test-strtod.c: Likewise.
26846         * tests/test-strverscmp.c: Likewise.
26847         * tests/test-symlink.c: Likewise.
26848         * tests/test-symlinkat.c: Likewise.
26849         * tests/test-trunc1.c: Likewise.
26850         * tests/test-trunc2.c: Likewise.
26851         * tests/test-truncf1.c: Likewise.
26852         * tests/test-truncf2.c: Likewise.
26853         * tests/test-truncl.c: Likewise.
26854         * tests/test-uname.c: Likewise.
26855         * tests/test-unlink.c: Likewise.
26856         * tests/test-unlinkat.c: Likewise.
26857         * tests/test-unsetenv.c: Likewise.
26858         * tests/test-usleep.c: Likewise.
26859         * tests/test-utimens.c: Likewise.
26860         * tests/test-utimensat.c: Likewise.
26861         * tests/test-vasnprintf-posix.c: Likewise.
26862         * tests/test-vasnprintf-posix2.c: Likewise.
26863         * tests/test-vasnprintf.c: Likewise.
26864         * tests/test-vasprintf-posix.c: Likewise.
26865         * tests/test-vasprintf.c: Likewise.
26866         * tests/test-vdprintf-posix.c: Likewise.
26867         * tests/test-vfprintf-posix.c: Likewise.
26868         * tests/test-vprintf-posix.c: Likewise.
26869         * tests/test-vsnprintf-posix.c: Likewise.
26870         * tests/test-vsnprintf.c: Likewise.
26871         * tests/test-vsprintf-posix.c: Likewise.
26872         * tests/test-wcrtomb.c: Likewise.
26873         * tests/test-wcsnrtombs.c: Likewise.
26874         * tests/test-wcsrtombs.c: Likewise.
26875         * tests/test-wctype.c: Likewise.
26876         * tests/test-wcwidth.c: Likewise.
26877         * tests/test-xfprintf-posix.c: Likewise.
26878         * tests/test-xmemdup0.c: Likewise.
26879         * tests/test-xprintf-posix.c: Likewise.
26880         * tests/test-xvasprintf.c: Likewise.
26881         * tests/unicase/test-locale-language.c: Likewise.
26882         * tests/unicase/test-mapping-part1.h: Likewise.
26883         * tests/unicase/test-predicate-part1.h: Likewise.
26884         * tests/unicase/test-u8-casecmp.c: Likewise.
26885         * tests/unicase/test-u8-casecoll.c: Likewise.
26886         * tests/unicase/test-u8-casefold.c: Likewise.
26887         * tests/unicase/test-u8-is-cased.c: Likewise.
26888         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26889         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26890         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26891         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26892         * tests/unicase/test-u8-tolower.c: Likewise.
26893         * tests/unicase/test-u8-totitle.c: Likewise.
26894         * tests/unicase/test-u8-toupper.c: Likewise.
26895         * tests/unicase/test-u16-casecmp.c: Likewise.
26896         * tests/unicase/test-u16-casecoll.c: Likewise.
26897         * tests/unicase/test-u16-casefold.c: Likewise.
26898         * tests/unicase/test-u16-is-cased.c: Likewise.
26899         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26900         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26901         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26902         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26903         * tests/unicase/test-u16-tolower.c: Likewise.
26904         * tests/unicase/test-u16-totitle.c: Likewise.
26905         * tests/unicase/test-u16-toupper.c: Likewise.
26906         * tests/unicase/test-u32-casecmp.c: Likewise.
26907         * tests/unicase/test-u32-casecoll.c: Likewise.
26908         * tests/unicase/test-u32-casefold.c: Likewise.
26909         * tests/unicase/test-u32-is-cased.c: Likewise.
26910         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26911         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26912         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26913         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26914         * tests/unicase/test-u32-tolower.c: Likewise.
26915         * tests/unicase/test-u32-totitle.c: Likewise.
26916         * tests/unicase/test-u32-toupper.c: Likewise.
26917         * tests/unicase/test-ulc-casecmp.c: Likewise.
26918         * tests/unicase/test-ulc-casecoll.c: Likewise.
26919         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26920         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26921         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26922         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26923         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26924         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26925         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26926         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26927         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26928         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26929         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26930         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26931         * tests/unictype/test-bidi_byname.c: Likewise.
26932         * tests/unictype/test-bidi_name.c: Likewise.
26933         * tests/unictype/test-bidi_of.c: Likewise.
26934         * tests/unictype/test-bidi_test.c: Likewise.
26935         * tests/unictype/test-block_list.c: Likewise.
26936         * tests/unictype/test-block_of.c: Likewise.
26937         * tests/unictype/test-block_test.c: Likewise.
26938         * tests/unictype/test-categ_and.c: Likewise.
26939         * tests/unictype/test-categ_and_not.c: Likewise.
26940         * tests/unictype/test-categ_byname.c: Likewise.
26941         * tests/unictype/test-categ_name.c: Likewise.
26942         * tests/unictype/test-categ_none.c: Likewise.
26943         * tests/unictype/test-categ_of.c: Likewise.
26944         * tests/unictype/test-categ_or.c: Likewise.
26945         * tests/unictype/test-categ_test_withtable.c: Likewise.
26946         * tests/unictype/test-combining.c: Likewise.
26947         * tests/unictype/test-decdigit.c: Likewise.
26948         * tests/unictype/test-digit.c: Likewise.
26949         * tests/unictype/test-mirror.c: Likewise.
26950         * tests/unictype/test-numeric.c: Likewise.
26951         * tests/unictype/test-pr_byname.c: Likewise.
26952         * tests/unictype/test-pr_test.c: Likewise.
26953         * tests/unictype/test-predicate-part1.h: Likewise.
26954         * tests/unictype/test-scripts.c: Likewise.
26955         * tests/unictype/test-sy_c_ident.c: Likewise.
26956         * tests/unictype/test-sy_java_ident.c: Likewise.
26957         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26958         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26959         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26960         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26961         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26962         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26963         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26964         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26965         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26966         * tests/uninorm/test-compat-decomposition.c: Likewise.
26967         * tests/uninorm/test-composition.c: Likewise.
26968         * tests/uninorm/test-decomposing-form.c: Likewise.
26969         * tests/uninorm/test-decomposition.c: Likewise.
26970         * tests/uninorm/test-u8-nfc.c: Likewise.
26971         * tests/uninorm/test-u8-nfd.c: Likewise.
26972         * tests/uninorm/test-u8-nfkc.c: Likewise.
26973         * tests/uninorm/test-u8-nfkd.c: Likewise.
26974         * tests/uninorm/test-u8-normcmp.c: Likewise.
26975         * tests/uninorm/test-u8-normcoll.c: Likewise.
26976         * tests/uninorm/test-u16-nfc.c: Likewise.
26977         * tests/uninorm/test-u16-nfd.c: Likewise.
26978         * tests/uninorm/test-u16-nfkc.c: Likewise.
26979         * tests/uninorm/test-u16-nfkd.c: Likewise.
26980         * tests/uninorm/test-u16-normcmp.c: Likewise.
26981         * tests/uninorm/test-u16-normcoll.c: Likewise.
26982         * tests/uninorm/test-u32-nfc.c: Likewise.
26983         * tests/uninorm/test-u32-nfd.c: Likewise.
26984         * tests/uninorm/test-u32-nfkc.c: Likewise.
26985         * tests/uninorm/test-u32-nfkd.c: Likewise.
26986         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26987         * tests/uninorm/test-u32-normcmp.c: Likewise.
26988         * tests/uninorm/test-u32-normcoll.c: Likewise.
26989         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26990         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26991         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26992         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26993         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26994         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26995         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26996         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26997         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26998         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26999         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27000         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27001         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27002         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27003         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27004         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27005         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27006         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27007         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27008         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27009         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27010         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27011         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27012         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27013         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27014         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27015         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27016         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27017         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27018         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27019         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27020         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27021         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27022         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27023         * tests/uniwidth/test-u8-width.c: Likewise.
27024         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27025         * tests/uniwidth/test-u16-width.c: Likewise.
27026         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27027         * tests/uniwidth/test-u32-width.c: Likewise.
27028         * tests/uniwidth/test-uc_width.c: Likewise.
27029         * tests/uniwidth/test-uc_width2.c: Likewise.
27030         * modules/acl-tests (Files): Add tests/macros.h.
27031         * modules/areadlink-tests (Files): Likewise.
27032         * modules/areadlink-with-size-tests (Files): Likewise.
27033         * modules/areadlinkat-tests (Files): Likewise.
27034         * modules/areadlinkat-with-size-tests (Files): Likewise.
27035         * modules/argmatch-tests (Files): Likewise.
27036         * modules/argv-iter-tests (Files): Likewise.
27037         * modules/array-list-tests (Files): Likewise.
27038         * modules/array-mergesort-tests (Files): Likewise.
27039         * modules/array-oset-tests (Files): Likewise.
27040         * modules/avltree-list-tests (Files): Likewise.
27041         * modules/avltree-oset-tests (Files): Likewise.
27042         * modules/avltreehash-list-tests (Files): Likewise.
27043         * modules/base64-tests (Files): Likewise.
27044         * modules/binary-io-tests (Files): Likewise.
27045         * modules/bitrotate-tests (Files): Likewise.
27046         * modules/btowc-tests (Files): Likewise.
27047         * modules/byteswap-tests (Files): Likewise.
27048         * modules/c-ctype-tests (Files): Likewise.
27049         * modules/c-stack-tests (Files): Likewise.
27050         * modules/c-strcase-tests (Files): Likewise.
27051         * modules/c-strcasestr-tests (Files): Likewise.
27052         * modules/c-strstr-tests (Files): Likewise.
27053         * modules/canonicalize-lgpl-tests (Files): Likewise.
27054         * modules/canonicalize-tests (Files): Likewise.
27055         * modules/carray-list-tests (Files): Likewise.
27056         * modules/ceilf-tests (Files): Likewise.
27057         * modules/ceill-tests (Files): Likewise.
27058         * modules/chown-tests (Files): Likewise.
27059         * modules/cloexec-tests (Files): Likewise.
27060         * modules/copy-file-tests (Files): Likewise.
27061         * modules/count-one-bits-tests (Files): Likewise.
27062         * modules/dprintf-posix-tests (Files): Likewise.
27063         * modules/dup2-tests (Files): Likewise.
27064         * modules/dup3-tests (Files): Likewise.
27065         * modules/duplocale-tests (Files): Likewise.
27066         * modules/fbufmode-tests (Files): Likewise.
27067         * modules/fchdir-tests (Files): Likewise.
27068         * modules/fcntl-safer-tests (Files): Likewise.
27069         * modules/fcntl-tests (Files): Likewise.
27070         * modules/fdopendir-tests (Files): Likewise.
27071         * modules/fdutimensat-tests (Files): Likewise.
27072         * modules/fflush-tests (Files): Likewise.
27073         * modules/filevercmp-tests (Files): Likewise.
27074         * modules/flock-tests (Files): Likewise.
27075         * modules/floorf-tests (Files): Likewise.
27076         * modules/floorl-tests (Files): Likewise.
27077         * modules/fnmatch-tests (Files): Likewise.
27078         * modules/fopen-safer-tests (Files): Likewise.
27079         * modules/fopen-tests (Files): Likewise.
27080         * modules/fpending-tests (Files): Likewise.
27081         * modules/fprintf-posix-tests (Files): Likewise.
27082         * modules/fpurge-tests (Files): Likewise.
27083         * modules/freadable-tests (Files): Likewise.
27084         * modules/freadahead-tests (Files): Likewise.
27085         * modules/freading-tests (Files): Likewise.
27086         * modules/freadptr-tests (Files): Likewise.
27087         * modules/freadseek-tests (Files): Likewise.
27088         * modules/freopen-tests (Files): Likewise.
27089         * modules/frexp-nolibm-tests (Files): Likewise.
27090         * modules/frexp-tests (Files): Likewise.
27091         * modules/frexpl-nolibm-tests (Files): Likewise.
27092         * modules/frexpl-tests (Files): Likewise.
27093         * modules/fseek-tests (Files): Likewise.
27094         * modules/fseeko-tests (Files): Likewise.
27095         * modules/fstrcmp-tests (Files): Likewise.
27096         * modules/fsync-tests (Files): Likewise.
27097         * modules/ftell-tests (Files): Likewise.
27098         * modules/ftello-tests (Files): Likewise.
27099         * modules/func-tests (Files): Likewise.
27100         * modules/futimens-tests (Files): Likewise.
27101         * modules/fwritable-tests (Files): Likewise.
27102         * modules/fwriting-tests (Files): Likewise.
27103         * modules/getcwd-tests (Files): Likewise.
27104         * modules/getdate-tests (Files): Likewise.
27105         * modules/getdelim-tests (Files): Likewise.
27106         * modules/getdtablesize-tests (Files): Likewise.
27107         * modules/getgroups-tests (Files): Likewise.
27108         * modules/getline-tests (Files): Likewise.
27109         * modules/getndelim2-tests (Files): Likewise.
27110         * modules/glob-tests (Files): Likewise.
27111         * modules/hash-tests (Files): Likewise.
27112         * modules/i-ring-tests (Files): Likewise.
27113         * modules/iconv-tests (Files): Likewise.
27114         * modules/iconv_open-utf-tests (Files): Likewise.
27115         * modules/idpriv-drop-tests (Files): Likewise.
27116         * modules/idpriv-droptemp-tests (Files): Likewise.
27117         * modules/inet_ntop-tests (Files): Likewise.
27118         * modules/inet_pton-tests (Files): Likewise.
27119         * modules/isblank-tests (Files): Likewise.
27120         * modules/isfinite-tests (Files): Likewise.
27121         * modules/isinf-tests (Files): Likewise.
27122         * modules/isnan-tests (Files): Likewise.
27123         * modules/isnand-nolibm-tests (Files): Likewise.
27124         * modules/isnand-tests (Files): Likewise.
27125         * modules/isnanf-nolibm-tests (Files): Likewise.
27126         * modules/isnanf-tests (Files): Likewise.
27127         * modules/isnanl-nolibm-tests (Files): Likewise.
27128         * modules/isnanl-tests (Files): Likewise.
27129         * modules/lchown-tests (Files): Likewise.
27130         * modules/ldexpl-tests (Files): Likewise.
27131         * modules/link-tests (Files): Likewise.
27132         * modules/linkat-tests (Files): Likewise.
27133         * modules/linked-list-tests (Files): Likewise.
27134         * modules/linkedhash-list-tests (Files): Likewise.
27135         * modules/localename-tests (Files): Likewise.
27136         * modules/lseek-tests (Files): Likewise.
27137         * modules/lstat-tests (Files): Likewise.
27138         * modules/mbmemcasecmp-tests (Files): Likewise.
27139         * modules/mbmemcasecoll-tests (Files): Likewise.
27140         * modules/mbrtowc-tests (Files): Likewise.
27141         * modules/mbscasecmp-tests (Files): Likewise.
27142         * modules/mbscasestr-tests (Files): Likewise.
27143         * modules/mbschr-tests (Files): Likewise.
27144         * modules/mbscspn-tests (Files): Likewise.
27145         * modules/mbsinit-tests (Files): Likewise.
27146         * modules/mbsncasecmp-tests (Files): Likewise.
27147         * modules/mbsnrtowcs-tests (Files): Likewise.
27148         * modules/mbspbrk-tests (Files): Likewise.
27149         * modules/mbspcasecmp-tests (Files): Likewise.
27150         * modules/mbsrchr-tests (Files): Likewise.
27151         * modules/mbsrtowcs-tests (Files): Likewise.
27152         * modules/mbsspn-tests (Files): Likewise.
27153         * modules/mbsstr-tests (Files): Likewise.
27154         * modules/memchr-tests (Files): Likewise.
27155         * modules/memchr2-tests (Files): Likewise.
27156         * modules/memcmp-tests (Files): Likewise.
27157         * modules/memmem-tests (Files): Likewise.
27158         * modules/memrchr-tests (Files): Likewise.
27159         * modules/mkdir-tests (Files): Likewise.
27160         * modules/mkfifo-tests (Files): Likewise.
27161         * modules/mkfifoat-tests (Files): Likewise.
27162         * modules/mknod-tests (Files): Likewise.
27163         * modules/nanosleep-tests (Files): Likewise.
27164         * modules/nl_langinfo-tests (Files): Likewise.
27165         * modules/obstack-printf-tests (Files): Likewise.
27166         * modules/open-tests (Files): Likewise.
27167         * modules/openat-tests (Files): Likewise.
27168         * modules/pipe-filter-gi-tests (Files): Likewise.
27169         * modules/pipe-filter-ii-tests (Files): Likewise.
27170         * modules/pipe2-tests (Files): Likewise.
27171         * modules/popen-safer-tests (Files): Likewise.
27172         * modules/popen-tests (Files): Likewise.
27173         * modules/posixtm-tests (Files): Likewise.
27174         * modules/pread-tests (Files): Likewise.
27175         * modules/printf-frexp-tests (Files): Likewise.
27176         * modules/printf-frexpl-tests (Files): Likewise.
27177         * modules/printf-posix-tests (Files): Likewise.
27178         * modules/priv-set-tests (Files): Likewise.
27179         * modules/quotearg-tests (Files): Likewise.
27180         * modules/random_r-tests (Files): Likewise.
27181         * modules/rawmemchr-tests (Files): Likewise.
27182         * modules/rbtree-list-tests (Files): Likewise.
27183         * modules/rbtree-oset-tests (Files): Likewise.
27184         * modules/rbtreehash-list-tests (Files): Likewise.
27185         * modules/readlink-tests (Files): Likewise.
27186         * modules/remove-tests (Files): Likewise.
27187         * modules/rename-tests (Files): Likewise.
27188         * modules/renameat-tests (Files): Likewise.
27189         * modules/rmdir-tests (Files): Likewise.
27190         * modules/round-tests (Files): Likewise.
27191         * modules/roundf-tests (Files): Likewise.
27192         * modules/roundl-tests (Files): Likewise.
27193         * modules/safe-alloc-tests (Files): Likewise.
27194         * modules/setenv-tests (Files): Likewise.
27195         * modules/sigaction-tests (Files): Likewise.
27196         * modules/signbit-tests (Files): Likewise.
27197         * modules/sleep-tests (Files): Likewise.
27198         * modules/snprintf-posix-tests (Files): Likewise.
27199         * modules/snprintf-tests (Files): Likewise.
27200         * modules/sprintf-posix-tests (Files): Likewise.
27201         * modules/stat-tests (Files): Likewise.
27202         * modules/stat-time-tests (Files): Likewise.
27203         * modules/strcasestr-tests (Files): Likewise.
27204         * modules/strchrnul-tests (Files): Likewise.
27205         * modules/strerror-tests (Files): Likewise.
27206         * modules/striconv-tests (Files): Likewise.
27207         * modules/striconveh-tests (Files): Likewise.
27208         * modules/striconveha-tests (Files): Likewise.
27209         * modules/strsignal-tests (Files): Likewise.
27210         * modules/strstr-tests (Files): Likewise.
27211         * modules/strtod-tests (Files): Likewise.
27212         * modules/strverscmp-tests (Files): Likewise.
27213         * modules/symlink-tests (Files): Likewise.
27214         * modules/symlinkat-tests (Files): Likewise.
27215         * modules/trunc-tests (Files): Likewise.
27216         * modules/truncf-tests (Files): Likewise.
27217         * modules/truncl-tests (Files): Likewise.
27218         * modules/uname-tests (Files): Likewise.
27219         * modules/unicase/cased-tests (Files): Likewise.
27220         * modules/unicase/ignorable-tests (Files): Likewise.
27221         * modules/unicase/locale-language-tests (Files): Likewise.
27222         * modules/unicase/tolower-tests (Files): Likewise.
27223         * modules/unicase/totitle-tests (Files): Likewise.
27224         * modules/unicase/toupper-tests (Files): Likewise.
27225         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27226         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27227         * modules/unicase/u8-casefold-tests (Files): Likewise.
27228         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27229         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27230         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27231         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27232         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27233         * modules/unicase/u8-tolower-tests (Files): Likewise.
27234         * modules/unicase/u8-totitle-tests (Files): Likewise.
27235         * modules/unicase/u8-toupper-tests (Files): Likewise.
27236         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27237         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27238         * modules/unicase/u16-casefold-tests (Files): Likewise.
27239         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27240         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27241         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27242         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27243         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27244         * modules/unicase/u16-tolower-tests (Files): Likewise.
27245         * modules/unicase/u16-totitle-tests (Files): Likewise.
27246         * modules/unicase/u16-toupper-tests (Files): Likewise.
27247         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27248         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27249         * modules/unicase/u32-casefold-tests (Files): Likewise.
27250         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27251         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27252         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27253         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27254         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27255         * modules/unicase/u32-tolower-tests (Files): Likewise.
27256         * modules/unicase/u32-totitle-tests (Files): Likewise.
27257         * modules/unicase/u32-toupper-tests (Files): Likewise.
27258         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27259         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27260         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27261         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27262         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27263         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27264         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27265         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27266         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27267         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27268         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27269         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27270         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27271         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27272         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27273         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27274         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27275         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27276         * modules/unictype/block-list-tests (Files): Likewise.
27277         * modules/unictype/block-of-tests (Files): Likewise.
27278         * modules/unictype/block-test-tests (Files): Likewise.
27279         * modules/unictype/category-C-tests (Files): Likewise.
27280         * modules/unictype/category-Cc-tests (Files): Likewise.
27281         * modules/unictype/category-Cf-tests (Files): Likewise.
27282         * modules/unictype/category-Cn-tests (Files): Likewise.
27283         * modules/unictype/category-Co-tests (Files): Likewise.
27284         * modules/unictype/category-Cs-tests (Files): Likewise.
27285         * modules/unictype/category-L-tests (Files): Likewise.
27286         * modules/unictype/category-Ll-tests (Files): Likewise.
27287         * modules/unictype/category-Lm-tests (Files): Likewise.
27288         * modules/unictype/category-Lo-tests (Files): Likewise.
27289         * modules/unictype/category-Lt-tests (Files): Likewise.
27290         * modules/unictype/category-Lu-tests (Files): Likewise.
27291         * modules/unictype/category-M-tests (Files): Likewise.
27292         * modules/unictype/category-Mc-tests (Files): Likewise.
27293         * modules/unictype/category-Me-tests (Files): Likewise.
27294         * modules/unictype/category-Mn-tests (Files): Likewise.
27295         * modules/unictype/category-N-tests (Files): Likewise.
27296         * modules/unictype/category-Nd-tests (Files): Likewise.
27297         * modules/unictype/category-Nl-tests (Files): Likewise.
27298         * modules/unictype/category-No-tests (Files): Likewise.
27299         * modules/unictype/category-P-tests (Files): Likewise.
27300         * modules/unictype/category-Pc-tests (Files): Likewise.
27301         * modules/unictype/category-Pd-tests (Files): Likewise.
27302         * modules/unictype/category-Pe-tests (Files): Likewise.
27303         * modules/unictype/category-Pf-tests (Files): Likewise.
27304         * modules/unictype/category-Pi-tests (Files): Likewise.
27305         * modules/unictype/category-Po-tests (Files): Likewise.
27306         * modules/unictype/category-Ps-tests (Files): Likewise.
27307         * modules/unictype/category-S-tests (Files): Likewise.
27308         * modules/unictype/category-Sc-tests (Files): Likewise.
27309         * modules/unictype/category-Sk-tests (Files): Likewise.
27310         * modules/unictype/category-Sm-tests (Files): Likewise.
27311         * modules/unictype/category-So-tests (Files): Likewise.
27312         * modules/unictype/category-Z-tests (Files): Likewise.
27313         * modules/unictype/category-Zl-tests (Files): Likewise.
27314         * modules/unictype/category-Zp-tests (Files): Likewise.
27315         * modules/unictype/category-Zs-tests (Files): Likewise.
27316         * modules/unictype/category-and-not-tests (Files): Likewise.
27317         * modules/unictype/category-and-tests (Files): Likewise.
27318         * modules/unictype/category-byname-tests (Files): Likewise.
27319         * modules/unictype/category-name-tests (Files): Likewise.
27320         * modules/unictype/category-none-tests (Files): Likewise.
27321         * modules/unictype/category-of-tests (Files): Likewise.
27322         * modules/unictype/category-or-tests (Files): Likewise.
27323         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27324         * modules/unictype/combining-class-tests (Files): Likewise.
27325         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27326         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27327         * modules/unictype/ctype-blank-tests (Files): Likewise.
27328         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27329         * modules/unictype/ctype-digit-tests (Files): Likewise.
27330         * modules/unictype/ctype-graph-tests (Files): Likewise.
27331         * modules/unictype/ctype-lower-tests (Files): Likewise.
27332         * modules/unictype/ctype-print-tests (Files): Likewise.
27333         * modules/unictype/ctype-punct-tests (Files): Likewise.
27334         * modules/unictype/ctype-space-tests (Files): Likewise.
27335         * modules/unictype/ctype-upper-tests (Files): Likewise.
27336         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27337         * modules/unictype/decimal-digit-tests (Files): Likewise.
27338         * modules/unictype/digit-tests (Files): Likewise.
27339         * modules/unictype/mirror-tests (Files): Likewise.
27340         * modules/unictype/numeric-tests (Files): Likewise.
27341         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27342         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27343         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27344         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27345         Likewise.
27346         * modules/unictype/property-bidi-block-separator-tests (Files):
27347         Likewise.
27348         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27349         Likewise.
27350         * modules/unictype/property-bidi-common-separator-tests (Files):
27351         Likewise.
27352         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27353         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27354         Likewise.
27355         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27356         Likewise.
27357         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27358         Likewise.
27359         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27360         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27361         Likewise.
27362         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27363         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27364         Likewise.
27365         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27366         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27367         * modules/unictype/property-bidi-segment-separator-tests (Files):
27368         Likewise.
27369         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27370         * modules/unictype/property-byname-tests (Files): Likewise.
27371         * modules/unictype/property-combining-tests (Files): Likewise.
27372         * modules/unictype/property-composite-tests (Files): Likewise.
27373         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27374         * modules/unictype/property-dash-tests (Files): Likewise.
27375         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27376         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27377         Likewise.
27378         * modules/unictype/property-deprecated-tests (Files): Likewise.
27379         * modules/unictype/property-diacritic-tests (Files): Likewise.
27380         * modules/unictype/property-extender-tests (Files): Likewise.
27381         * modules/unictype/property-format-control-tests (Files): Likewise.
27382         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27383         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27384         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27385         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27386         * modules/unictype/property-hyphen-tests (Files): Likewise.
27387         * modules/unictype/property-id-continue-tests (Files): Likewise.
27388         * modules/unictype/property-id-start-tests (Files): Likewise.
27389         * modules/unictype/property-ideographic-tests (Files): Likewise.
27390         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27391         * modules/unictype/property-ids-trinary-operator-tests (Files):
27392         Likewise.
27393         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27394         * modules/unictype/property-iso-control-tests (Files): Likewise.
27395         * modules/unictype/property-join-control-tests (Files): Likewise.
27396         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27397         * modules/unictype/property-line-separator-tests (Files): Likewise.
27398         * modules/unictype/property-logical-order-exception-tests (Files):
27399         Likewise.
27400         * modules/unictype/property-lowercase-tests (Files): Likewise.
27401         * modules/unictype/property-math-tests (Files): Likewise.
27402         * modules/unictype/property-non-break-tests (Files): Likewise.
27403         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27404         * modules/unictype/property-numeric-tests (Files): Likewise.
27405         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27406         * modules/unictype/property-other-default-ignorable-code-point-tests
27407         (Files): Likewise.
27408         * modules/unictype/property-other-grapheme-extend-tests (Files):
27409         Likewise.
27410         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27411         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27412         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27413         * modules/unictype/property-other-math-tests (Files): Likewise.
27414         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27415         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27416         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27417         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27418         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27419         * modules/unictype/property-private-use-tests (Files): Likewise.
27420         * modules/unictype/property-punctuation-tests (Files): Likewise.
27421         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27422         * modules/unictype/property-radical-tests (Files): Likewise.
27423         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27424         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27425         * modules/unictype/property-space-tests (Files): Likewise.
27426         * modules/unictype/property-terminal-punctuation-tests (Files):
27427         Likewise.
27428         * modules/unictype/property-test-tests (Files): Likewise.
27429         * modules/unictype/property-titlecase-tests (Files): Likewise.
27430         * modules/unictype/property-unassigned-code-value-tests (Files):
27431         Likewise.
27432         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27433         * modules/unictype/property-uppercase-tests (Files): Likewise.
27434         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27435         * modules/unictype/property-white-space-tests (Files): Likewise.
27436         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27437         * modules/unictype/property-xid-start-tests (Files): Likewise.
27438         * modules/unictype/property-zero-width-tests (Files): Likewise.
27439         * modules/unictype/scripts-tests (Files): Likewise.
27440         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27441         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27442         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27443         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27444         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27445         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27446         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27447         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27448         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27449         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27450         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27451         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27452         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27453         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27454         * modules/uninorm/composition-tests (Files): Likewise.
27455         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27456         * modules/uninorm/decomposition-tests (Files): Likewise.
27457         * modules/uninorm/filter-tests (Files): Likewise.
27458         * modules/uninorm/nfc-tests (Files): Likewise.
27459         * modules/uninorm/nfd-tests (Files): Likewise.
27460         * modules/uninorm/nfkc-tests (Files): Likewise.
27461         * modules/uninorm/nfkd-tests (Files): Likewise.
27462         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27463         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27464         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27465         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27466         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27467         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27468         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27469         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27470         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27471         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27472         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27473         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27474         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27475         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27476         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27477         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27478         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27479         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27480         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27481         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27482         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27483         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27484         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27485         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27486         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27487         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27488         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27489         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27490         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27491         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27492         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27493         * modules/uniwidth/u8-width-tests (Files): Likewise.
27494         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27495         * modules/uniwidth/u16-width-tests (Files): Likewise.
27496         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27497         * modules/uniwidth/u32-width-tests (Files): Likewise.
27498         * modules/uniwidth/width-tests (Files): Likewise.
27499         * modules/unlink-tests (Files): Likewise.
27500         * modules/unsetenv-tests (Files): Likewise.
27501         * modules/usleep-tests (Files): Likewise.
27502         * modules/utimens-tests (Files): Likewise.
27503         * modules/utimensat-tests (Files): Likewise.
27504         * modules/vasnprintf-posix-tests (Files): Likewise.
27505         * modules/vasnprintf-tests (Files): Likewise.
27506         * modules/vasprintf-posix-tests (Files): Likewise.
27507         * modules/vasprintf-tests (Files): Likewise.
27508         * modules/vdprintf-posix-tests (Files): Likewise.
27509         * modules/vfprintf-posix-tests (Files): Likewise.
27510         * modules/vprintf-posix-tests (Files): Likewise.
27511         * modules/vsnprintf-posix-tests (Files): Likewise.
27512         * modules/vsnprintf-tests (Files): Likewise.
27513         * modules/vsprintf-posix-tests (Files): Likewise.
27514         * modules/wcrtomb-tests (Files): Likewise.
27515         * modules/wcsnrtombs-tests (Files): Likewise.
27516         * modules/wcsrtombs-tests (Files): Likewise.
27517         * modules/wctype-tests (Files): Likewise.
27518         * modules/wcwidth-tests (Files): Likewise.
27519         * modules/xmemdup0-tests (Files): Likewise.
27520         * modules/xprintf-posix-tests (Files): Likewise.
27521         * modules/xvasprintf-tests (Files): Likewise.
27522
27523 2009-12-24  Eric Blake  <ebb9@byu.net>
27524
27525         test-nanosleep: fix typo
27526         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27527         patch.
27528         Reported by Bruno Haible.
27529
27530 2009-12-24  Bruno Haible  <bruno@clisp.org>
27531
27532         Reduce namespace pollution on glibc systems.
27533         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27534         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27535         systems.
27536         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27537         <getopt.h> on glibc systems.
27538         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27539         systems.
27540         * lib/fcntl.c: Include <unistd.h> here instead.
27541
27542 2009-12-24  Bruno Haible  <bruno@clisp.org>
27543
27544         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27545
27546 2009-12-24  Eric Blake  <ebb9@byu.net>
27547
27548         tests: add signature checks
27549         * tests/signature.h (SIGNATURE_CHECK): New file.
27550         * modules/atexit-tests (Files): Use it.
27551         * modules/btowc-tests (Files): Likewise.
27552         * modules/canonicalize-lgpl-tests (Files): Likewise.
27553         * modules/ceilf-tests (Files): Likewise.
27554         * modules/ceill-tests (Files): Likewise.
27555         * modules/chown-tests (Files): Likewise.
27556         * modules/dprintf-posix-tests (Files): Likewise.
27557         * modules/dup2-tests (Files): Likewise.
27558         * modules/dup3-tests (Files): Likewise.
27559         * modules/duplocale-tests (Files): Likewise.
27560         * modules/fchdir-tests (Files): Likewise.
27561         * modules/fcntl-tests (Files): Likewise.
27562         * modules/fdopendir-tests (Files): Likewise.
27563         * modules/fflush-tests (Files): Likewise.
27564         * modules/flock-tests (Files): Likewise.
27565         * modules/floorf-tests (Files): Likewise.
27566         * modules/floorl-tests (Files): Likewise.
27567         * modules/fnmatch-tests (Files): Likewise.
27568         * modules/fopen-tests (Files): Likewise.
27569         * modules/fprintf-posix-tests (Files): Likewise.
27570         * modules/freopen-tests (Files): Likewise.
27571         * modules/frexp-nolibm-tests (Files): Likewise.
27572         * modules/frexp-tests (Files): Likewise.
27573         * modules/frexpl-nolibm-tests (Files): Likewise.
27574         * modules/frexpl-tests (Files): Likewise.
27575         * modules/fseek-tests (Files): Likewise.
27576         * modules/fseeko-tests (Files): Likewise.
27577         * modules/fsync-tests (Files): Likewise.
27578         * modules/ftell-tests (Files): Likewise.
27579         * modules/ftello-tests (Files): Likewise.
27580         * modules/futimens-tests (Files): Likewise.
27581         * modules/getaddrinfo-tests (Files): Likewise.
27582         * modules/getcwd-tests (Files): Likewise.
27583         * modules/getdelim-tests (Files): Likewise.
27584         * modules/getdtablesize-tests (Files): Likewise.
27585         * modules/getgroups-tests (Files): Likewise.
27586         * modules/gethostname-tests (Files): Likewise.
27587         * modules/getline-tests (Files): Likewise.
27588         * modules/getopt-posix-tests (Files): Likewise.
27589         * modules/gettimeofday-tests (Files): Likewise.
27590         * modules/glob-tests (Files): Likewise.
27591         * modules/iconv-tests (Files): Likewise.
27592         * modules/inet_ntop-tests (Files): Likewise.
27593         * modules/inet_pton-tests (Files): Likewise.
27594         * modules/isblank-tests (Files): Likewise.
27595         * modules/lchown-tests (Files): Likewise.
27596         * modules/ldexpl-tests (Files): Likewise.
27597         * modules/link-tests (Files): Likewise.
27598         * modules/linkat-tests (Files): Likewise.
27599         * modules/lseek-tests (Files): Likewise.
27600         * modules/lstat-tests (Files): Likewise.
27601         * modules/mbrtowc-tests (Files): Likewise.
27602         * modules/mbsinit-tests (Files): Likewise.
27603         * modules/mbsnrtowcs-tests (Files): Likewise.
27604         * modules/mbsrtowcs-tests (Files): Likewise.
27605         * modules/memchr-tests (Files): Likewise.
27606         * modules/memcmp-tests (Files): Likewise.
27607         * modules/memmem-tests (Files): Likewise.
27608         * modules/memrchr-tests (Files): Likewise.
27609         * modules/mkdir-tests (Files): Likewise.
27610         * modules/mkfifo-tests (Files): Likewise.
27611         * modules/mkfifoat-tests (Files): Likewise.
27612         * modules/mknod-tests (Files): Likewise.
27613         * modules/nanosleep-tests (Files): Likewise.
27614         * modules/nl_langinfo-tests (Files): Likewise.
27615         * modules/obstack-printf-tests (Files): Likewise.
27616         * modules/open-tests (Files): Likewise.
27617         * modules/openat-tests (Files): Likewise.
27618         * modules/perror-tests (Files): Likewise.
27619         * modules/pipe2-tests (Files): Likewise.
27620         * modules/poll-tests (Files): Likewise.
27621         * modules/popen-tests (Files): Likewise.
27622         * modules/posix_spawn-tests (Files): Likewise.
27623         * modules/posix_spawnp-tests (Files): Likewise.
27624         * modules/pread-tests (Files): Likewise.
27625         * modules/printf-posix-tests (Files): Likewise.
27626         * modules/pty-tests (Files): Likewise.
27627         * modules/random_r-tests (Files): Likewise.
27628         * modules/rawmemchr-tests (Files): Likewise.
27629         * modules/readlink-tests (Files): Likewise.
27630         * modules/remove-tests (Files): Likewise.
27631         * modules/rename-tests (Files): Likewise.
27632         * modules/renameat-tests (Files): Likewise.
27633         * modules/rmdir-tests (Files): Likewise.
27634         * modules/round-tests (Files): Likewise.
27635         * modules/roundf-tests (Files): Likewise.
27636         * modules/roundl-tests (Files): Likewise.
27637         * modules/select-tests (Files): Likewise.
27638         * modules/setenv-tests (Files): Likewise.
27639         * modules/sigaction-tests (Files): Likewise.
27640         * modules/sleep-tests (Files): Likewise.
27641         * modules/snprintf-posix-tests (Files): Likewise.
27642         * modules/snprintf-tests (Files): Likewise.
27643         * modules/sprintf-posix-tests (Files): Likewise.
27644         * modules/stat-tests (Files): Likewise.
27645         * modules/strcasestr-tests (Files): Likewise.
27646         * modules/strchrnul-tests (Files): Likewise.
27647         * modules/strerror-tests (Files): Likewise.
27648         * modules/strsignal-tests (Files): Likewise.
27649         * modules/strstr-tests (Files): Likewise.
27650         * modules/strtod-tests (Files): Likewise.
27651         * modules/strverscmp-tests (Files): Likewise.
27652         * modules/symlink-tests (Files): Likewise.
27653         * modules/symlinkat-tests (Files): Likewise.
27654         * modules/times-tests (Files): Likewise.
27655         * modules/trunc-tests (Files): Likewise.
27656         * modules/truncf-tests (Files): Likewise.
27657         * modules/truncl-tests (Files): Likewise.
27658         * modules/tsearch-tests (Files): Likewise.
27659         * modules/uname-tests (Files): Likewise.
27660         * modules/unlink-tests (Files): Likewise.
27661         * modules/unsetenv-tests (Files): Likewise.
27662         * modules/usleep-tests (Files): Likewise.
27663         * modules/utimensat-tests (Files): Likewise.
27664         * modules/vasprintf-tests (Files): Likewise.
27665         * modules/vdprintf-posix-tests (Files): Likewise.
27666         * modules/vfprintf-posix-tests (Files): Likewise.
27667         * modules/vprintf-posix-tests (Files): Likewise.
27668         * modules/vsnprintf-posix-tests (Files): Likewise.
27669         * modules/vsnprintf-tests (Files): Likewise.
27670         * modules/vsprintf-posix-tests (Files): Likewise.
27671         * modules/wcrtomb-tests (Files): Likewise.
27672         * modules/wcsnrtombs-tests (Files): Likewise.
27673         * modules/wcsrtombs-tests (Files): Likewise.
27674         * modules/wcwidth-tests (Files): Likewise.
27675         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27676         * tests/test-isinf.c (isinf): Likewise.
27677         * tests/test-isnan.c (isnan): Likewise.
27678         * tests/test-signbit.c (signbit): Likewise.
27679         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27680         declaration, either as macro or with correct signature.
27681         (select): Ensure function under test is declared with correct
27682         signature in correct header.
27683         * tests/test-atexit.c (atexit): Likewise.
27684         * tests/test-btowc.c (btowc): Likewise.
27685         * tests/test-canonicalize-lgpl.c (realpath)
27686         (canonicalize_file_name): Likewise.
27687         * tests/test-ceilf1.c (ceilf): Likewise.
27688         * tests/test-ceill.c (ceill): Likewise.
27689         * tests/test-chown.c (chown): Likewise.
27690         * tests/test-dprintf-posix.c (dprintf): Likewise.
27691         * tests/test-dup2.c (dup2): Likewise.
27692         * tests/test-dup3.c (dup3): Likewise.
27693         * tests/test-duplocale.c (duplocale): Likewise.
27694         * tests/test-fchdir.c (fchdir): Likewise.
27695         * tests/test-fchownat.c (fchownat): Likewise.
27696         * tests/test-fcntl.c (fcntl): Likewise.
27697         * tests/test-fdopendir.c (fdopendir): Likewise.
27698         * tests/test-fflush.c (fflush): Likewise.
27699         * tests/test-flock.c (flock): Likewise.
27700         * tests/test-floorf1.c (floorf): Likewise.
27701         * tests/test-floorl.c (floorl): Likewise.
27702         * tests/test-fnmatch.c (fnmatch): Likewise.
27703         * tests/test-fopen.c (fopen): Likewise.
27704         * tests/test-fprintf-posix.c (fprintf): Likewise.
27705         * tests/test-freopen.c (freopen): Likewise.
27706         * tests/test-frexp.c (frexp): Likewise.
27707         * tests/test-frexpl.c (frexpl): Likewise.
27708         * tests/test-fseek.c (fseek): Likewise.
27709         * tests/test-fseeko.c (fseeko): Likewise.
27710         * tests/test-fstatat.c (fstatat): Likewise.
27711         * tests/test-fsync.c (fsync): Likewise.
27712         * tests/test-ftell.c (ftell): Likewise.
27713         * tests/test-ftello.c (ftello): Likewise.
27714         * tests/test-futimens.c (futimens): Likewise.
27715         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27716         (gai_strerror): Likewise.
27717         * tests/test-getcwd.c (getcwd): Likewise.
27718         * tests/test-getdelim.c (getdelim): Likewise.
27719         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27720         * tests/test-getgroups.c (getgroups): Likewise.
27721         * tests/test-gethostname.c (gethostname): Likewise.
27722         * tests/test-getline.c (getline): Likewise.
27723         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27724         Likewise.
27725         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27726         * tests/test-glob.c (glob, globfree): Likewise.
27727         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27728         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27729         * tests/test-inet_pton.c (inet_pton): Likewise.
27730         * tests/test-isblank.c (isblank): Likewise.
27731         * tests/test-lchown.c (lchown): Likewise.
27732         * tests/test-ldexpl.c (ldexpl): Likewise.
27733         * tests/test-link.c (link): Likewise.
27734         * tests/test-linkat.c (linkat): Likewise.
27735         * tests/test-lseek.c (lseek): Likewise.
27736         * tests/test-lstat.c (lstat): Likewise.
27737         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27738         * tests/test-mbsinit.c (mbsinit): Likewise.
27739         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27740         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27741         * tests/test-memchr.c (memchr): Likewise.
27742         * tests/test-memcmp.c (memcmp): Likewise.
27743         * tests/test-memmem.c (memmem): Likewise.
27744         * tests/test-memrchr.c (memrchr): Likewise.
27745         * tests/test-mkdir.c (mkdir): Likewise.
27746         * tests/test-mkdirat.c (mkdirat): Likewise.
27747         * tests/test-mkfifo.c (mkfifo): Likewise.
27748         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27749         * tests/test-mknod.c (mknod): Likewise.
27750         * tests/test-nanosleep.c (nanosleep): Likewise.
27751         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27752         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27753         Likewise.
27754         * tests/test-open.c (open): Likewise.
27755         * tests/test-openat.c (openat): Likewise.
27756         * tests/test-perror.c (perror): Likewise.
27757         * tests/test-pipe2.c (pipe2): Likewise.
27758         * tests/test-poll.c (poll): Likewise.
27759         * tests/test-popen.c (popen, pclose): Likewise.
27760         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27761         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27762         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27763         (posix_spawn_file_actions_destroy)
27764         (posix_spawn_file_actions_addclose)
27765         (posix_spawn_file_actions_addopen)
27766         (posix_spawn_file_actions_adddup2): Likewise.
27767         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27768         * tests/test-pread.c (pread): Likewise.
27769         * tests/test-printf-posix.c (printf): Likewise.
27770         * tests/test-pty.c (openpty, forkpty): Likewise.
27771         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27772         (random_r): Likewise.
27773         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27774         * tests/test-readlink.c (readlink): Likewise.
27775         * tests/test-remove.c (remove): Likewise.
27776         * tests/test-rename.c (rename): Likewise.
27777         * tests/test-renameat.c (renameat): Likewise.
27778         * tests/test-rmdir.c (rmdir): Likewise.
27779         * tests/test-round1.c (round): Likewise.
27780         * tests/test-roundf1.c (roundf): Likewise.
27781         * tests/test-roundl.c (roundl): Likewise.
27782         * tests/test-setenv.c (setenv): Likewise.
27783         * tests/test-sigaction.c (sigaction): Likewise.
27784         * tests/test-sleep.c (sleep): Likewise.
27785         * tests/test-snprintf.c (snprintf): Likewise.
27786         * tests/test-sprintf-posix.c (sprintf): Likewise.
27787         * tests/test-stat.c (stat): Likewise.
27788         * tests/test-stpncpy.c (stpncpy): Likewise.
27789         * tests/test-strcasestr.c (strcasestr): Likewise.
27790         * tests/test-strchrnul.c (strchrnul): Likewise.
27791         * tests/test-strerror.c (strerror): Likewise.
27792         * tests/test-strsignal.c (strsignal): Likewise.
27793         * tests/test-strstr.c (strstr): Likewise.
27794         * tests/test-strtod.c (strtod): Likewise.
27795         * tests/test-strverscmp.c (strverscmp): Likewise.
27796         * tests/test-symlink.c (symlink): Likewise.
27797         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27798         * tests/test-times.c (times): Likewise.
27799         * tests/test-trunc1.c (trunc): Likewise.
27800         * tests/test-truncf1.c (truncf): Likewise.
27801         * tests/test-truncl.c (truncl): Likewise.
27802         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27803         Likewise.
27804         * tests/test-uname.c (uname): Likewise.
27805         * tests/test-unlink.c (unlink): Likewise.
27806         * tests/test-unlinkat.c (unlinkat): Likewise.
27807         * tests/test-unsetenv.c (unsetenv): Likewise.
27808         * tests/test-usleep.c (usleep): Likewise.
27809         * tests/test-utimensat.c (utimensat): Likewise.
27810         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27811         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27812         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27813         * tests/test-vprintf-posix.c (vprintf): Likewise.
27814         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27815         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27816         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27817         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27818         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27819         * tests/test-wcwidth.c (wcwidth): Likewise.
27820
27821         build: pull in conditional headers during GNULIB_POSIXCHECK
27822         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27823         definitions from any conditionally-included headers.
27824         * lib/stdlib.in.h (includes): Likewise.
27825         * lib/unistd.in.h (includes): Likewise.
27826
27827 2009-12-24  Bruno Haible  <bruno@clisp.org>
27828
27829         * tests/test-argv-iter.c: Include header file being tested immediately
27830         after config.h.
27831         * tests/test-base64.c: Likewise.
27832         * tests/test-flock.c: Likewise.
27833         * tests/test-fsync.c: Likewise.
27834         * tests/test-getdate.c: Likewise.
27835         * tests/test-getndelim2.c: Likewise.
27836         * tests/test-isfinite.c: Likewise.
27837         * tests/test-isinf.c: Likewise.
27838         * tests/test-strerror.c: Likewise.
27839         * tests/test-strsignal.c: Likewise.
27840
27841 2009-12-23  Eric Blake  <ebb9@byu.net>
27842
27843         unistd: work around cygwin bug
27844         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27845         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27846         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27847
27848 2009-12-23  Bruno Haible  <bruno@clisp.org>
27849
27850         localename: More tests.
27851         * tests/test-localename.c (SIZEOF): New macro.
27852         (categories): New variable.
27853         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27854         test_locale_name_default): Add test w.r.t. thread locale.
27855         (test_locale_name_thread): New function.
27856         (main): Invoke it.
27857
27858         localename: Make aware of thread locale.
27859         * lib/localename.h (gl_locale_name_thread): New declaration.
27860         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27861         behaviour with respect to thread locale.
27862         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27863         <langinfo.h>, glthread/lock.h.
27864         (SIZE_BITS): New macro.
27865         (string_hash): New function.
27866         (struct hash_node): New type.
27867         (HASH_TABLE_SIZE): New macro.
27868         (struniq_hash_table, struniq_lock): New variables.
27869         (struniq): New function.
27870         (gl_locale_name_thread): New function.
27871         (gl_locale_name): Invoke it.
27872         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27873         * modules/localename (Depends-on): Add lock.
27874         Reported by Mike Gran <spk121@yahoo.com>.
27875
27876 2009-12-23  Eric Blake  <ebb9@byu.net>
27877
27878         va-args: new module
27879         * modules/va-args: New file.
27880         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27881         * MODULES.html.sh (Core language properties): Mention it.
27882
27883         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27884         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27885         named alias for __attribute__((__unused__)).
27886         * lib/chown.c: Update client.
27887         * lib/fchmodat.c: Likewise.
27888         * lib/fts.c: Likewise.
27889         * lib/getdate.y: Likewise.
27890         * lib/getgroups.c: Likewise.
27891         * lib/getopt.c: Likewise.
27892         * lib/getugroups.c: Likewise.
27893         * lib/mkdir.c: Likewise.
27894         * lib/mkfifo.c: Likewise.
27895         * lib/mkfifoat.c: Likewise.
27896         * lib/mknod.c: Likewise.
27897         * lib/mknodat.c: Likewise.
27898         * lib/readlink.c: Likewise.
27899         * lib/se-context.in.h: Likewise.
27900         * lib/se-selinux.in.h: Likewise.
27901         * lib/sockets.c: Likewise.
27902         * lib/symlink.c: Likewise.
27903         * lib/symlinkat.c: Likewise.
27904         * lib/unicodeio.c: Likewise.
27905         * lib/unistr.h: Likewise.
27906         * tests/test-areadlink.c: Likewise.
27907         * tests/test-areadlinkat.c: Likewise.
27908         * tests/test-filenamecat.c: Likewise.
27909         * tests/test-fseeko.c: Likewise.
27910         * tests/test-ftello.c: Likewise.
27911         * tests/test-getdate.c: Likewise.
27912         * tests/test-getgroups.c: Likewise.
27913         * tests/test-gethostname.c: Likewise.
27914         * tests/test-quotearg.c: Likewise.
27915         * tests/test-version-etc.c: Likewise.
27916         * tests/test-xalloc-die.c: Likewise.
27917         * tests/test-xfprintf-posix.c: Likewise.
27918         * tests/test-xprintf-posix.c: Likewise.
27919         * tests/test-xvasprintf.c: Likewise.
27920
27921         tests: avoid compiler warnings
27922         * tests/test-fcntl.c (main): Delete unused parameters.
27923         * tests/test-freopen-safer.c (main): Likewise.
27924         * tests/test-xalloc-die.c (main): Mark unused parameters.
27925         * tests/test-fseeko.c (main): Likewise.
27926         * tests/test-ftello.c (main): Likewise.
27927         * tests/test-nanosleep.c (main): Avoid declaration warning.
27928         * tests/test-sleep.c (main): Likewise.
27929         * tests/test-unsetenv.c (main): Silence warning about string
27930         literal.
27931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27932
27933 2009-12-23  Bruno Haible  <bruno@clisp.org>
27934
27935         * tests/test-localename.c (test_locale_name): New function, extracted
27936         from main. Also test mixed situations.
27937         (test_locale_name_posix, test_locale_name_environ,
27938         test_locale_name_default): New functions.
27939         (main): Invoke them all.
27940         * modules/localename-tests (configure.ac): Test for newlocale.
27941
27942 2009-12-23  Bruno Haible  <bruno@clisp.org>
27943
27944         unistd: Ensure getcwd gets declared before being overridden.
27945         * lib/unistd.in.h: Conditionally include <io.h>.
27946
27947 2009-12-22  Bruno Haible  <bruno@clisp.org>
27948
27949         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27950         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27951         (gl_WCHAR_H): Invoke it.
27952         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27953         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27954         Reported by Karl Berry <karl@freefriends.org>.
27955
27956 2009-12-22  Eric Blake  <ebb9@byu.net>
27957
27958         math, unistd: avoid redundant includes
27959         * lib/math.in.h (isnan): No need to re-include <math.h>.
27960         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27961
27962         getsubopt: work around cygwin bug
27963         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27964         avoid conflicting with system getsubopt.
27965         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27966         bug.
27967
27968         getopt: synchronize from glibc
27969         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27970         parameter order.  Adjust all callers.
27971         (_getopt_internal_r, main): Adjust quoting in error messages.
27972         Drop considerations for outdated POSIX 1003.2 error message.
27973         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27974         callers.
27975         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27976
27977         test-getopt: test stderr behavior
27978         * modules/getopt-posix-tests (Depends-on): Add dup2.
27979         * tests/test-getopt.c (ASSERT): Avoid stderr.
27980         (main): Move stderr to a temporary file.
27981         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27982         Instead, add parameter to inform caller if output occurred.
27983         (test_getopt): Adjust all existing tests to expect silence, and
27984         add new tests of leading ":".
27985         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27986         glibc shortcomings with leading "-:" or "+:" in optstring.
27987         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27988         Likewise.
27989         * doc/posix-functions/getopt.texi (getopt): Likewise.
27990
27991         test-getopt: enhance test
27992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27993         supports optind=0.
27994         * tests/test-getopt.c (OPTIND_MIN): Move...
27995         * tests/test-getopt.h (OPTIND_MIN): ...here.
27996         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27997         Require that optind=0 works, since modern BSD supports it in
27998         addition to optreset, and since coreutils expects it.
27999         (test_getopt_long_only): New test.
28000         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28001         glibc shortcomings with 'W;', and enforcement of optind=0.
28002         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28003         Likewise.
28004
28005 2009-12-21  Bruno Haible  <bruno@clisp.org>
28006
28007         localename: Improvements for MacOS X and Cygwin.
28008         * lib/localename.h (gl_locale_name_environ): New declaration.
28009         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28010         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28011         (gl_locale_name_posix): Invoke it.
28012         (gl_locale_name_default): Add comments. Use Windows native API also on
28013         Cygwin.
28014
28015 2009-12-21  Bruno Haible  <bruno@clisp.org>
28016
28017         Update list of Win32 locale ids.
28018         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28019         (LANG_SAMI): Renamed from LANG_SAAMI.
28020         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28021         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28022         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28023         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28024         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28025         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28026         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28027         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28028         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28029         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28030         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28031         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28032         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28033         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28034         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28035         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28036         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28037         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28038         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28039         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28040         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28041         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28042         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28043         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28044         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28045         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28046         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28047         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28048         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28049         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28050         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28051         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28052         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28053         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28054         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28055         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28056         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28057         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28058         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28059         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28060         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28061         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28062         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28063         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28064         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28065         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28066         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28067         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28068         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28069         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28070         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28071         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28072         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28073         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28074         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28075         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28076         Add more languages and countries for Sami, Sorbian. Add more countries
28077         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28078         for Pashto. Change country for Syriac, Tswana.
28079
28080 2009-12-21  Eric Blake  <ebb9@byu.net>
28081
28082         test-utimens: avoid spurious failure
28083         * tests/test-chown.h (nap): Factor...
28084         * tests/nap.h: ...into new file.
28085         * tests/test-lchown.h (nap): Avoid duplication.
28086         * tests/test-utimens-common.h (nap): Use shared implementation,
28087         necessary on file systems with 1-second resolution.
28088         * modules/chown-tests (Files): Include new file.
28089         * modules/fdutimensat-tests (Files): Likewise.
28090         * modules/futimens-tests (Files): Likewise.
28091         * modules/lchown-tests (Files): Likewise.
28092         * modules/openat-tests (Files): Likewise.
28093         * modules/utimens-tests (Files): Likewise.
28094         * modules/utimensat-tests (Files): Likewise.
28095
28096 2009-12-19  Eric Blake  <ebb9@byu.net>
28097
28098         futimens, utimensat: work around Linux bug
28099         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28100         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28101         * lib/utimensat.c (rpl_utimensat): Work around it.
28102         * lib/futimens.c (rpl_futimens): Adjust comment.
28103
28104         utimens: work around Linux ctime bug
28105         * lib/utimens.c (detect_ctime_bug): New helper function.
28106         (update_timespec): Differentiate between workaround needed for
28107         this bug vs. what is needed for systems that lack utimensat.
28108         (fdutimens, lutimens): Work around bug.
28109
28110         utimens: check for ctime update
28111         * tests/test-utimens-common.h (check_ctime): Define.
28112         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28113         * tests/test-futimens.h (test_futimens): Likewise.
28114         * tests/test-lutimens.h (test_lutimens): Likewise.
28115         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28116         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28117
28118 2009-12-19  Bruno Haible  <bruno@clisp.org>
28119
28120         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28121         * tests/test-dprintf-posix2.sh: New file.
28122         * tests/test-dprintf-posix2.c: New file.
28123         * modules/dprintf-posix-tests (Files): Add them.
28124         (configure.ac): Check for getrlimit and setrlimit.
28125         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28126
28127 2009-12-19  Bruno Haible  <bruno@clisp.org>
28128
28129         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28130         * tests/test-fprintf-posix3.sh: New file.
28131         * tests/test-fprintf-posix3.c: New file.
28132         * modules/fprintf-posix-tests (Files): Add them.
28133         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28134
28135 2009-12-19  Eric Blake  <ebb9@byu.net>
28136
28137         dirfd: fix prototype
28138         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28139         * lib/dirfd.c (dirfd): Likewise.
28140
28141         canonicalize: reduce memory usage
28142         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28143         allocation to size.
28144         Reported by Solar Designer <solar@openwall.com>.
28145
28146 2009-12-19  Bruno Haible  <bruno@clisp.org>
28147
28148         New module attribute 'Applicability'.
28149         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28150         * gnulib-tool: New option --extract-applicability.
28151         (func_usage): Document it.
28152         (sed_extract_prog): Recognize it.
28153         (func_get_applicability): New function.
28154         (func_import): Generalize handling of 'link-warning' module.
28155         * modules/link-warning (Applicability): New section.
28156         * modules/arg-nonnull (Applicability): New section.
28157         Repoted by Simon Josefsson <simon@josefsson.org>.
28158
28159 2009-12-19  Bruno Haible  <bruno@clisp.org>
28160
28161         fflush: tweak
28162         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28163         * lib/fseeko.c (rpl_fseeko): Likewise.
28164
28165 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28166
28167         * lib/gl_list.h: Fix typo in comment.
28168
28169 2009-12-16  Eric Blake  <ebb9@byu.net>
28170
28171         fcntl: use to simplify other modules
28172         * modules/cloexec (Depends-on): Add fcntl.
28173         * modules/fchdir (Depends-on): Likewise.
28174         * modules/fd-safer-flag (Depends-on): Likewise.
28175         * modules/unistd-safer (Depends-on): Likewise.
28176         * modules/dup3 (configure.ac): Set module indicator.
28177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28178         missing.
28179         * lib/fchdir.c (_gl_register_dup): Fix comment.
28180         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28181         * lib/dup-safer.c (dup_safer): Likewise.
28182         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28183         * lib/dup3.c (dup3): Likewise.
28184         * tests/test-fchdir.c (main): Enhance test.
28185         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28186
28187         fcntl: port portions of fcntl to mingw
28188         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28189         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28190         replacement for mingw.
28191         * modules/fcntl (Description): Update.
28192         (Depends-on): Add dup2.
28193         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28194         * modules/fcntl-h (Makefile.am): Substitute it.
28195         * lib/fcntl.in.h (fcntl): Update declaration.
28196         (F_DUPFD, F_GETFD): New macros, when needed.
28197         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28198         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28199         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28200         we now guarantee.
28201
28202         fcntl: work around cygwin bug in F_DUPFD
28203         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28204         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28205         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28206         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28207         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28208
28209         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28210         * modules/fcntl (Files): List new files.
28211         (configure.ac): Run a test.
28212         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28213         * lib/fcntl.c (rpl_fcntl): Likewise.
28214         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28215         (gl_FCNTL_H): Always replace fcntl.h.
28216         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28217         * lib/fcntl.in.h (fcntl): Declare replacement.
28218         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28219         needed, plus a witness.
28220         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28221         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28222         * tests/test-fcntl.c: New file.
28223         * modules/fcntl-tests: Likewise.
28224
28225         binary-io: avoid potential compilation warning
28226         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28227         directives.
28228
28229         fflush: avoid compilation error on NetBSD
28230         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28231         between off_t and fpos_t, since the latter is sometimes a struct.
28232         * lib/fseeko.c (rpl_fseeko): Likewise.
28233         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28234
28235 2009-12-15  Eric Blake  <ebb9@byu.net>
28236
28237         fcntl-h, stdio, sys_ioctl: fix declarations
28238         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28239         function must not take arguments.
28240         * lib/sys_ioctl.in.h (ioctl): Likewise.
28241         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28242         (open): Add a link warning.
28243
28244 2009-12-15  Jim Meyering  <meyering@redhat.com>
28245
28246         areadlink, areadlink-with-size: relax license to LGPLv2+
28247         * modules/areadlink (License): Relax to LGPLv2+.
28248         * modules/areadlink-with-size (License): Likewise.
28249
28250 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28251             Bruno Haible  <bruno@clisp.org>
28252
28253         *printf: Fix memory leak.
28254         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28255         * lib/vfprintf.c (vfprintf): Likewise.
28256         * lib/dprintf.c (dprintf): Likewise.
28257         * lib/vdprintf.c (vdprintf): Likewise.
28258
28259 2009-12-14  Eric Blake  <ebb9@byu.net>
28260
28261         accept4: adjust module dependencies
28262         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28263
28264         utimens: one more try at avoiding compiler warning
28265         * lib/utimens.c (lutimens): Lower scope of result.
28266
28267 2009-12-13  Bruno Haible  <bruno@clisp.org>
28268
28269         Move the malloc checking from module 'list' to new module 'xlist'.
28270         * modules/xlist: New file.
28271         * lib/gl_xlist.h: New file.
28272         * lib/gl_xlist.c: New file.
28273         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28274         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28275         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28276         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28277         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28278         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28279         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28280         gl_sortedlist_nx_add): New declarations.
28281         (struct gl_list_implementation): Rename and change methods accordingly.
28282         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28283         (gl_list_nx_create): Renamed from gl_list_create.
28284         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28285         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28286         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28287         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28288         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28289         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28290         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28291         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28292         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28293         gl_list_create_empty.
28294         (gl_list_nx_create): Renamed from gl_list_create.
28295         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28296         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28297         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28298         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28299         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28300         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28301         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28302         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28303         * lib/gl_array_list.c: Don't include xalloc.h.
28304         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28305         NULL upon out-of-memory.
28306         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28307         out-of-memory.
28308         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28309         Change return type to 'int'.
28310         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28311         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28312         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28313         upon out-of-memory.
28314         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28315         upon out-of-memory.
28316         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28317         upon out-of-memory.
28318         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28319         upon out-of-memory.
28320         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28321         out-of-memory.
28322         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28323         Update.
28324         (gl_array_list_implementation): Update.
28325         * lib/gl_carray_list.c: Don't include xalloc.h.
28326         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28327         Return NULL upon out-of-memory.
28328         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28329         out-of-memory.
28330         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28331         Change return type to 'int'.
28332         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28333         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28334         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28335         upon out-of-memory.
28336         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28337         upon out-of-memory.
28338         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28339         out-of-memory.
28340         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28341         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28342         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28343         Update.
28344         (gl_carray_list_implementation): Update.
28345         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28346         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28347         gl_linked_create_empty. Return NULL upon out-of-memory.
28348         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28349         out-of-memory.
28350         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28351         Change return type to 'int'. Return -1 upon out-of-memory.
28352         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28353         out-of-memory.
28354         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28355         upon out-of-memory.
28356         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28357         upon out-of-memory.
28358         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28359         NULL upon out-of-memory.
28360         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28361         upon out-of-memory.
28362         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28363         out-of-memory.
28364         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28365         Update.
28366         * lib/gl_linked_list.c: Don't include xalloc.h.
28367         (gl_linked_list_implementation): Update.
28368         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28369         (add_to_bucket): Change return type to 'int'.
28370         (gl_linkedhash_list_implementation): Update.
28371         * lib/gl_anytree_list1.h (free_subtree): New function.
28372         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28373         gl_tree_create_empty. Return NULL upon out-of-memory.
28374         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28375         Change return type to 'int'. Return -1 upon out-of-memory.
28376         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28377         out-of-memory.
28378         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28379         (gl_tree_remove_node): New function, moved here from
28380         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28381         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28382         Update.
28383         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28384         malloc, not xmalloc. Return NULL upon out-of-memory.
28385         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28386         out-of-memory.
28387         (gl_tree_remove_node_from_tree): New function, extracted from
28388         gl_tree_remove_node.
28389         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28390         upon out-of-memory.
28391         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28392         out-of-memory.
28393         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28394         upon out-of-memory.
28395         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28396         upon out-of-memory.
28397         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28398         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28399         not xmalloc. Return NULL upon out-of-memory.
28400         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28401         out-of-memory.
28402         (gl_tree_remove_node_from_tree): New function, extracted from
28403         gl_tree_remove_node.
28404         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28405         upon out-of-memory.
28406         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28407         out-of-memory.
28408         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28409         upon out-of-memory.
28410         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28411         upon out-of-memory.
28412         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28413         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28414         gl_anytree_list1.h before gl_anyavltree_list2.h.
28415         (gl_avltree_list_implementation): Update.
28416         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28417         gl_anytree_list1.h before gl_anyavltree_list2.h.
28418         (gl_rbtree_list_implementation): Update.
28419         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28420         Change return type to 'int'. Return -1 upon out-of-memory. Use
28421         __builtin_expect.
28422         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28423         (gl_avltreehash_list_implementation): Update.
28424         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28425         (gl_rbtreehash_list_implementation): Update.
28426         * modules/array-list (Depends-on): Remove xalloc.
28427         * modules/carray-list (Depends-on): Likewise.
28428         * modules/linked-list (Depends-on): Likewise.
28429         * modules/linkedhash-list (Depends-on): Likewise.
28430         * modules/avltree-list (Depends-on): Likewise.
28431         * modules/rbtree-list (Depends-on): Likewise.
28432         * modules/avltreehash-list (Depends-on): Likewise.
28433         * modules/rbtreehash-list (Depends-on): Likewise.
28434
28435         * modules/xsublist: New file.
28436         * lib/gl_xsublist.h: New file.
28437         * lib/gl_xsublist.c: New file.
28438         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28439         (gl_sublist_nx_create): New declaration.
28440         * lib/gl_sublist.c: Don't include xalloc.h.
28441         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28442         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28443         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28444         Change return type to 'int'. Return -1 upon out-of-memory.
28445         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28446         upon out-of-memory.
28447         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28448         NULL upon out-of-memory.
28449         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28450         upon out-of-memory.
28451         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28452         NULL upon out-of-memory.
28453         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28454         NULL upon out-of-memory.
28455         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28456         upon out-of-memory.
28457         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28458         (gl_sublist_list_implementation): Update.
28459         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28460         upon out-of-memory.
28461         * modules/sublist (Depends-on): Remove xalloc.
28462
28463         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28464         * tests/test-carray_list.c: Likewise.
28465         * tests/test-linked_list.c: Likewise.
28466         * tests/test-linkedhash_list.c: Likewise.
28467         * tests/test-avltree_list.c: Likewise.
28468         * tests/test-rbtree_list.c: Likewise.
28469         * tests/test-avltreehash_list.c: Likewise.
28470         * tests/test-rbtreehash_list.c: Likewise.
28471         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28472         * modules/carray-list-tests (Makefile.am): Likewise.
28473         * modules/linked-list-tests (Makefile.am): Likewise.
28474         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28475         * modules/avltree-list-tests (Makefile.am): Likewise.
28476         * modules/rbtree-list-tests (Makefile.am): Likewise.
28477         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28478         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28479
28480         * NEWS: Mention the changes.
28481
28482         * lib/clean-temp.c: Include gl_xlist.h.
28483         * modules/clean-temp (Depends-on): Add xlist.
28484
28485         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28486         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28487
28488         * tests/test-array_oset.c: Include gl_xlist.h.
28489         * modules/array-oset-tests (Depends-on): Add xlist.
28490
28491         Reported by José E. Marchesi <jemarch@gnu.org>.
28492
28493 2009-12-13  Bruno Haible  <bruno@clisp.org>
28494
28495         Move the malloc checking from module 'oset' to new module 'xoset'.
28496         * modules/xoset: New file.
28497         * lib/gl_xoset.h: New file.
28498         * lib/gl_xoset.c: New file.
28499         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28500         declarations.
28501         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28502         (struct gl_oset_implementation): Rename and change methods accordingly.
28503         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28504         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28505         'int'. Mark as __warn_unused_result__.
28506         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28507         gl_oset_create_empty.
28508         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28509         'int'.
28510         * lib/gl_array_oset.c: Don't include xalloc.h.
28511         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28512         malloc, not xmalloc.
28513         (grow): Change return type to 'int'. Don't call xalloc_die.
28514         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28515         to 'int'.
28516         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28517         'int'.
28518         (gl_array_oset_implementation): Update.
28519         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28520         gl_tree_create_empty.
28521         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28522         'int'.
28523         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28524         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28525         xmalloc.
28526         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28527         not xmalloc.
28528         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28529         xmalloc.
28530         (gl_avltree_oset_implementation): Update.
28531         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28532         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28533         xmalloc.
28534         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28535         not xmalloc.
28536         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28537         xmalloc.
28538         (gl_rbtree_oset_implementation): Update.
28539         * modules/array-oset (Depends-on): Remove xalloc.
28540         * modules/avltree-oset (Depends-on): Likewise.
28541         * modules/rbtree-oset (Depends-on): Likewise.
28542         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28543         * tests/test-avltree_oset.c: Likewise.
28544         * tests/test-rbtree_oset.c: Likewise.
28545         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28546         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28547         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28548         * NEWS: Mention the change.
28549
28550 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28551
28552         maint.mk: allow a project to override release-prep commands
28553         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28554         commands into a new rule.
28555         (release-prep): New rule.
28556         (release-prep-hook): New overridable variable.
28557
28558 2009-12-13  Bruno Haible  <bruno@clisp.org>
28559
28560         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28561
28562 2009-12-13  Jim Meyering  <meyering@redhat.com>
28563
28564         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28565         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28566
28567 2009-12-12  Bruno Haible  <bruno@clisp.org>
28568
28569         duplocale: Tweak.
28570         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28571
28572 2009-12-12  Karl Berry  <karl@gnu.org>
28573
28574         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28575
28576 2009-12-12  Bruno Haible  <bruno@clisp.org>
28577
28578         * m4/po.m4: Undo incorrect untabification.
28579
28580 2009-12-12  Bruno Haible  <bruno@clisp.org>
28581
28582         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28583         * modules/c-strtod (Depends-on): Add locale.
28584         * modules/c-strtold (Depends-on): Likewise.
28585
28586 2009-12-12  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28589
28590 2009-12-11  Eric Blake  <ebb9@byu.net>
28591
28592         setenv: relax requirement in light of POSIX ruling
28593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28594         not NULL.
28595         * tests/test-setenv.c (main): Relax test.
28596         * tests/test-unsetenv.c (main): Likewise.
28597         * doc/posix-functions/setenv.texi (setenv): Document this.
28598         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28599
28600 2009-12-11  Bruno Haible  <bruno@clisp.org>
28601
28602         New module 'fd-safer-flag'.
28603         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28604         * lib/dup-safer.c (dup_safer_flag): Remove function.
28605         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28606         * lib/fd-safer.c (fd_safer_flag): Remove function.
28607         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28608         * modules/cloexec (configure.ac): Drop indicator macro.
28609         * modules/fd-safer-flag: New file.
28610         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28611         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28612         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28613
28614 2009-12-11  Bruno Haible  <bruno@clisp.org>
28615
28616         Tests for module 'nl_langinfo'.
28617         * modules/nl_langinfo-tests: New file.
28618         * tests/test-nl_langinfo.sh: New file.
28619         * tests/test-nl_langinfo.c: New file.
28620
28621         New module 'nl_langinfo'.
28622         * lib/nl_langinfo.c: New file.
28623         * m4/nl_langinfo.m4: New file.
28624         * modules/nl_langinfo: New file.
28625         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28626
28627 2009-12-11  Bruno Haible  <bruno@clisp.org>
28628
28629         Tests for module 'langinfo'.
28630         * modules/langinfo-tests: New file.
28631         * tests/test-langinfo.c: New file.
28632
28633         New module 'langinfo'.
28634         * lib/langinfo.in.h: New file.
28635         * m4/langinfo_h.m4: New file.
28636         * modules/langinfo: New file.
28637         * doc/posix-headers/langinfo.texi: Mention the new module.
28638
28639 2009-12-11  Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/config.charset: Untabify.
28642
28643 2009-12-11  Bruno Haible  <bruno@clisp.org>
28644
28645         * modules/unistd-safer (configure.ac): Drop indicator macro.
28646
28647 2009-12-11  Bruno Haible  <bruno@clisp.org>
28648
28649         Move pipe2-safer code to its own file.
28650         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28651         * lib/pipe-safer.c (pipe2_safer): Remove function.
28652         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28653         (Makefile.am): Add it to lib_SOURCES.
28654
28655 2009-12-10  Bruno Haible  <bruno@clisp.org>
28656
28657         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28658
28659 2009-12-10  Bruno Haible  <bruno@clisp.org>
28660
28661         Declare which arguments expect non-NULL values, for GCC and clang.
28662         * build-aux/arg-nonnull.h: New file.
28663         * modules/arg-nonnull: New file.
28664         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28665         (inet_ntop, inet_pton): Use it.
28666         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28667         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28668         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28669         (open, openat): Use it.
28670         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28671         (fnmatch): Use it.
28672         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28673         (getopt, getopt_long, getopt_long_only): Use it.
28674         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28675         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28676         Use it.
28677         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28678         (iconv_open): Use it.
28679         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28680         (strtoimax, strtoumax): Use it.
28681         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28682         (duplocale): Use it.
28683         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28684         (frexp, frexpl): Use it.
28685         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28686         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28687         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28688         (tsearch, tfind, tdelete, twalk): Use it.
28689         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28690         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28691         sigpending): Use it.
28692         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28693         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28694         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28695         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28696         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28697         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28698         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28699         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28700         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28701         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28702         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28703         Use it.
28704         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28705         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28706         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28707         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28708         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28709         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28710         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28711         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28712         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28713         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28714         strtoull, unsetenv): Use it.
28715         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28716         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28717         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28718         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28719         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28720         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28721         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28722         (strcasecmp, strncasecmp): Use it.
28723         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28724         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28725         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28726         rpl_setsockopt): Use it.
28727         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28728         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28729         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28730         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28731         (gettimeofday): Use it.
28732         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28733         (times): Use it.
28734         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28735         (uname): Use it.
28736         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28737         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28738         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28739         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28740         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28741         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28742         unlinkat, write): Use it.
28743         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28744         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28745         * lib/argv-iter.h: Include arg-nonnull.h.
28746         (_ATTRIBUTE_NONNULL_): Remove macro.
28747         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28748         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28749         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28750         optimization.
28751         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28752         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28753         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28754         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28755         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28756         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28757         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28758         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28759         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28760         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28761         * modules/dirent (Depends-on): Add arg-nonnull.
28762         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28763         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28764         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28765         * modules/fnmatch (Depends-on): Add arg-nonnull.
28766         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28767         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28768         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28769         * modules/glob (Depends-on): Add arg-nonnull.
28770         (Makefile.am): Insert arg-nonnull.h into glob.h.
28771         * modules/iconv_open (Depends-on): Add arg-nonnull.
28772         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28773         * modules/inttypes (Depends-on): Add arg-nonnull.
28774         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28775         * modules/locale (Depends-on): Add arg-nonnull.
28776         (Makefile.am): Insert arg-nonnull.h into locale.h.
28777         * modules/math (Depends-on): Add arg-nonnull.
28778         (Makefile.am): Insert arg-nonnull.h into math.h.
28779         * modules/netdb (Depends-on): Add arg-nonnull.
28780         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28781         * modules/search (Depends-on): Add arg-nonnull.
28782         (Makefile.am): Insert arg-nonnull.h into search.h.
28783         * modules/signal (Depends-on): Add arg-nonnull.
28784         (Makefile.am): Insert arg-nonnull.h into signal.h.
28785         * modules/spawn (Depends-on): Add arg-nonnull.
28786         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28787         * modules/stdio (Depends-on): Add arg-nonnull.
28788         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28789         * modules/stdlib (Depends-on): Add arg-nonnull.
28790         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28791         * modules/string (Depends-on): Add arg-nonnull.
28792         (Makefile.am): Insert arg-nonnull.h into string.h.
28793         * modules/strings (Depends-on): Add arg-nonnull.
28794         (Makefile.am): Insert arg-nonnull.h into strings.h.
28795         * modules/sys_socket (Depends-on): Add arg-nonnull.
28796         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28797         * modules/sys_stat (Depends-on): Add arg-nonnull.
28798         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28799         * modules/sys_time (Depends-on): Add arg-nonnull.
28800         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28801         * modules/sys_times (Depends-on): Add arg-nonnull.
28802         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28803         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28804         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28805         * modules/time (Depends-on): Add arg-nonnull.
28806         (Makefile.am): Insert arg-nonnull.h into time.h.
28807         * modules/unistd (Depends-on): Add arg-nonnull.
28808         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28809         * modules/wchar (Depends-on): Add arg-nonnull.
28810         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28811         * modules/argv-iter (Depends-on): Add arg-nonnull.
28812         * tests/test-canonicalize.c (null_ptr): New function.
28813         (main): Use it.
28814         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28815         (main): Use it.
28816         * tests/test-memmem.c (null_ptr): New function.
28817         (main): Use it.
28818         Reported by Jim Meyering.
28819
28820 2009-12-10  Bruno Haible  <bruno@clisp.org>
28821
28822         Use spaces for indentation, not tabs.
28823         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28824         * m4/*.m4: Untabify.
28825         * build-aux/*.h: Untabify.
28826         * tests/**/*.[hc]: Untabify.
28827         * README: New section "Indent with spaces, not TABs", based on
28828         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28829         * NEWS: Mention the change.
28830
28831 2009-12-10  Bruno Haible  <bruno@clisp.org>
28832
28833         pty test: Fix link error.
28834         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28835         test_pty_LDADD.
28836
28837 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28838
28839         * modules/pty: New file.
28840         * modules/pty-tests: New file.
28841         * m4/pty.m4: New file.
28842         * tests/test-pty.c: New file.
28843         * doc/glibc-headers/pty.texi: Modified.
28844         * doc/glibc-functions/forkpty.texi: Modified.
28845         * doc/glibc-functions/openpty.texi: Modified.
28846
28847 2009-12-10  Bruno Haible  <bruno@clisp.org>
28848
28849         Avoid syntax error in C++ mode.
28850         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28851
28852 2009-12-10  Bruno Haible  <bruno@clisp.org>
28853
28854         Use sed with option -e.
28855         * gnulib-tool (func_version, func_emit_copyright_notice,
28856         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28857         option -e to sed.
28858         * modules/link-warning (Makefile.am): Likewise.
28859
28860 2009-12-10  Jim Meyering  <meyering@redhat.com>
28861
28862         mgetgroups: do not write bytes beyond end of malloc'd buffer
28863         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28864         username, we call getgroups with a one-element-shorter buffer,
28865         but still told it the length was original, max_n_groups.
28866
28867 2009-12-09  Eric Blake  <ebb9@byu.net>
28868
28869         cloexec: relax license
28870         * modules/cloexec (Maintainer): Add myself.
28871         (License): Use LGPL, not GPL.
28872
28873         link-warning: optimize generation
28874         * modules/link-warning (Makefile.am): Reduce process usage.
28875
28876 2009-12-09  Bruno Haible  <bruno@clisp.org>
28877
28878         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28879         workaround was added on 2009-11-17.
28880
28881 2009-12-09  Jim Meyering  <meyering@redhat.com>
28882             Bruno Haible  <bruno@clisp.org>
28883
28884         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28885         * modules/link-warning (Makefile.am): Make the comment-removing sed
28886         command more robust in the face of bootstrap-prepended comment lines.
28887
28888 2009-12-09  Bruno Haible  <bruno@clisp.org>
28889
28890         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28891         most one group.
28892
28893 2009-12-09  Simon Josefsson <simon@josefsson.org>
28894             Bruno Haible  <bruno@clisp.org>
28895
28896         * build-aux/link-warning.h: Add copyright notice.
28897         * modules/link-warning (Makefile.am): Generate link-warning.h from
28898         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28899         * NEWS: Mention change in link-warning module.
28900         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28901         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28902         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28903         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28904         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28905         * modules/math (Makefile.am): Add dependency to math.h.
28906         * modules/search (Makefile.am): Add dependency to search.h.
28907         * modules/signal (Makefile.am): Add dependency to signal.h.
28908         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28909         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28910         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28911         * modules/string (Makefile.am): Add dependency to string.h.
28912         * modules/strings (Makefile.am): Add dependency to strings.h.
28913         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28914         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28915         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28916         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28917         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28918         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28919         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28920         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28921         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28922
28923 2009-12-09  Bruno Haible  <bruno@clisp.org>
28924
28925         fchdir: Optimize away rpl_fstat when possible.
28926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28927         REPLACE_OPEN_DIRECTORY.
28928         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28929
28930 2009-12-09  Bruno Haible  <bruno@clisp.org>
28931
28932         * lib/fchdir.c: Update comment.
28933
28934 2009-12-09  Bruno Haible  <bruno@clisp.org>
28935
28936         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28937
28938 2009-12-08  Eric Blake  <ebb9@byu.net>
28939
28940         fchdir: avoid memory leak on re-registration.
28941         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28942
28943 2009-12-08  Jim Meyering  <meyering@redhat.com>
28944
28945         init.sh: avoid Solaris 10 /bin/sh portability problem
28946         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28947         sourced script:
28948           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28949           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28950           bar
28951         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28952         and two tests used that idiom.
28953         * tests/init.sh: Update suggested usage comments.
28954         (path_prepend_): New function, to be used in place
28955         of the --src-path=DIR option.
28956         (setup_): Move PATH-prepending code into path_prepend_.
28957         * tests/test-pread.sh: Adapt to new usage.
28958         * tests/test-xalloc-die.sh: Likewise.
28959
28960 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28961
28962         * doc/gnulib.texi (Glibc pty.h): Add.
28963         * doc/glibc-functions/forkpty.texi: Add.
28964         * doc/glibc-functions/openpty.texi: Add.
28965         Suggested by Bruno Haible.
28966
28967 2009-12-08  Eric Blake  <ebb9@byu.net>
28968
28969         fchdir: fix logic bugs
28970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28971         * tests/test-fchdir.c (main): Enhance test.
28972         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28973         is in use.
28974
28975         dup2: fix logic bugs
28976         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28977         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28978         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28979         exists.
28980         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28981
28982 2009-12-07  Eric Blake  <ebb9@byu.net>
28983
28984         unlink: fix m4 detection
28985         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28986
28987         unistd-safer: add unit test
28988         * modules/unistd-safer-tests: New file.
28989         * tests/test-dup-safer.c: Likewise.
28990         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28991         * tests/test-dup2.c (setmode): Likewise.
28992         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28993
28994         cloexec: preserve text vs. binary across dup_cloexec
28995         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28996         mode.
28997         * modules/dup2-tests (Depends-on): Add binary-io.
28998         * modules/cloexec-tests (Depends-on): Likewise.
28999         * tests/test-dup2.c (setmode, is_mode): New helpers.
29000         (main): Add tests that translation mode is preserved.
29001         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29002         Reported by Bruno Haible.
29003
29004         mgetgroups: reduce duplicate listings
29005         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29006         resulting array.
29007         * tests/test-chown.h (test_chown): Simplify client.
29008         * tests/test-lchown.h (test_lchown): Likewise.
29009
29010 2009-12-06  Bruno Haible  <bruno@clisp.org>
29011
29012         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29013         value.
29014
29015 2009-12-06  Bruno Haible  <bruno@clisp.org>
29016
29017         * lib/progname.c: Include stdio.h, stdlib.h.
29018         (set_program_name): Reject a NULL argument.
29019
29020 2009-12-05  Eric Blake  <ebb9@byu.net>
29021
29022         pipe2-safer: new module
29023         * modules/pipe2-safer: New file.
29024         * lib/unistd-safer.h (pipe2_safer): New prototype.
29025         * lib/unistd--.h (pipe2): New wrapper.
29026         * lib/pipe-safer.c (pipe2_safer): New function.
29027         * modules/pipe (Depends-on): Add pipe2-safer.
29028         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29029
29030         stdlib-safer: preserve cloexec flag for mkostemp[s]
29031         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29032         fd_safer_flag.
29033
29034         unistd-safer: allow preservation of cloexec status via flag
29035         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29036         prototypes.
29037         * lib/dup-safer.c (dup_safer_flag): New function.
29038         * lib/fd-safer.c (fd_safer_flag): Likewise.
29039         * modules/cloexec (configure.ac): Set witness.
29040
29041         test-dup2: enhance test
29042         * modules/dup2-tests (Depends-on): Add cloexec.
29043         * tests/test-dup2.c (main): Enhance test.
29044
29045         cloexec: add dup_cloexec
29046         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29047         header and comments.
29048         * lib/cloexec.c (set_cloexec_flag): Add comments.
29049         (dup_cloexec): New function, with mingw implementation borrowed
29050         from...
29051         * lib/w32spawn.h (dup_noinherit): ...here.
29052         * modules/execute (Depends-on): Add cloexec.
29053         * modules/pipe (Depends-on): Likewise.
29054         * modules/cloexec (Depends-on): Add dup2.
29055         * modules/cloexec-tests (Files): New file.
29056         * tests/test-cloexec.c: Likewise.
29057
29058         test-xalloc-die: fix test for mingw
29059         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29060         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29061         directory and .exe suffix off argv[0] output.
29062
29063         test-fseeko: fix test for mingw
29064         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29065         than undefining fseek, so test will pass on mingw.
29066
29067 2009-12-05  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/progname.h (set_program_name): Clarify specification.
29070         * lib/progname.c (set_program_name): Likewise.
29071         Reported by Jim Meyering.
29072
29073 2009-12-05  Jim Meyering  <meyering@redhat.com>
29074
29075         maint.mk: backslash-escape parens in default regexp
29076         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29077         backslash-escape the literal parentheses.
29078
29079         maint.mk: news-date-check: use grep -E
29080         * top/maint.mk (today): Define a Make variable, not a...
29081         (news-date-check): ...shell variable.
29082         (news-date-regexp): Use the Make variable.
29083         Use grep's -E option.  Change the failing diagnostic to mention
29084         the variable, $(news-date-regexp).
29085
29086 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29087
29088         maintainer-makefile: allow customization of NEWS entry format
29089         * top/maint.mk (news-date-regexp): New overridable variable.
29090         (news-date-check): Use it.
29091
29092 2009-12-04  Eric Blake  <ebb9@byu.net>
29093
29094         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29095         * lib/mgetgroups.h (xgetgroups): New prototype.
29096         * lib/mgetgroups.c (xgetgroups): New wrapper.
29097         (mgetgroups): Handle ENOSYS.
29098         * modules/mgetgroups (Depends-on): Add realloc.
29099         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29100
29101         mgetgroups: avoid argument promotion issues with -1
29102         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29103         for invalid gid_t.
29104         * tests/test-chown.h (getegid, test_chown): Likewise.
29105         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29106
29107 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29108
29109         exclude: Fix header file problems.
29110         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29111
29112 2009-12-01  Jim Meyering  <meyering@redhat.com>
29113
29114         fts: fts_open: do not let an empty string cause immediate failure
29115         This is required in support of GNU rm, for which the command
29116         "rm A '' B" must process and remove both A and B, in spite of
29117         the empty string argument.
29118         * lib/fts.c (fts_open): Do not let the presence of an empty string
29119         cause fts_open to fail immediately.  Most fts-using tools must be
29120         able to process all arguments, in order, and can be expected to
29121         diagnose such arguments themselves.
29122
29123 2009-11-30  Eric Blake  <ebb9@byu.net>
29124
29125         utimens: fix compilation error
29126         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29127         Declare variable at right scope.
29128
29129 2009-11-29  Jim Meyering  <meyering@redhat.com>
29130
29131         bootstrap: handle perl-5.11's changed --version output
29132         * build-aux/bootstrap (get_version): Handle perl separately,
29133         since perl-5.11's --version output is different.
29134
29135 2009-11-28  Jim Meyering  <meyering@redhat.com>
29136
29137         userspec: depend on the inttostr module, too
29138         * modules/userspec (Depends-on): Add inttostr.
29139
29140         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29141         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29142         number of MAXUID when it evaluates to (uid_t) -1.
29143         Likewise for group ID.  Reported by Matt McCutchen in
29144         <http://savannah.gnu.org/bugs/?28113>
29145
29146         userspec: reformat to use spaces, not TABs
29147         * lib/userspec.c: Expand TABs to spaces.
29148         Add Emacs' "indent-tabs-mode: nil" hint.
29149
29150 2009-11-27  Eric Blake  <ebb9@byu.net>
29151
29152         getopt-gnu: flush out another BSD bug
29153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29154         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29155         flush out BSD bug.
29156         * tests/test-getopt.h (test_getopt): End lists with NULL.
29157         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29158         (test_getopt_long_posix): Enhance test.
29159         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29160         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29161         getopt-gnu.
29162         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29163         Likewise.
29164
29165 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29166
29167         * modules/idpriv-droptemp-tests (Notice): Fix text.
29168
29169 2009-11-27  Jim Meyering  <meyering@redhat.com>
29170
29171         test-xalloc-die: avoid spurious failure due to libtool argv difference
29172         In a libtool-enabled project, this test would fail due to a difference
29173         in the emitted program name, e.g.,
29174         -test-xalloc-die: memory exhausted
29175         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29176         Use program to avoid that.
29177         * modules/xalloc-die-tests (Depends-on): Add progname.
29178         * tests/test-xalloc-die.c: Include progname.h".
29179         (program_name): Remove decl.
29180         (main): Call set_program_name.
29181         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29182
29183 2009-11-26  Richard Jones  <rjones@redhat.com>
29184
29185         w32sock: leave win32 error in place.
29186         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29187
29188 2009-11-26  Eric Blake  <ebb9@byu.net>
29189
29190         init.sh: suggest to use skip_ and fail_ functions in comments
29191         * tests/init.sh: Add a sentence.
29192
29193 2009-11-25  Bruno Haible  <bruno@clisp.org>
29194
29195         init.sh: add documentation in comments
29196         * tests/init.sh: Add some developer and user documentation.
29197
29198 2009-11-26  Jim Meyering  <meyering@redhat.com>
29199
29200         init.sh: accommodate even those who specify bogus srcdir manually
29201         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29202         configure-time tests to be sanitized, so that there is no need to
29203         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29204         (with no double quotes) suffices.  However, since tests may be
29205         invoked manually, and since you may explicitly set srcdir to the
29206         name of a directory containing spaces, do quote its uses here.
29207         * tests/test-pread.sh: Likewise.
29208         Suggested by Bruno Haible.
29209
29210         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29211         * tests/test-pread.sh: Write no data into the pipe, because
29212         test-pread actually reads none.  This avoids a diagnostic,
29213         "bash: echo: write error: Broken pipe", that arises in the unusual
29214         event something is ignoring SIGPIPE, and might be interpreted
29215         as some sort of failure.  Reported by Bruno Haible.
29216
29217 2009-11-25  Jim Meyering  <meyering@redhat.com>
29218
29219         test-pread: cover failure with ESPIPE and EINVAL
29220         * tests/test-pread.c (main): Test for failure, too.
29221         * tests/test-pread.sh: Invoke with stdin on a pipe.
29222         Suggested by Eric Blake.
29223
29224         pread: improvement and fix
29225         * modules/pread (Depends-on): Depend on lseek, for portability to
29226         e.g., mingw.  Suggested by Eric Blake.
29227         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29228
29229         unistd.in.h: correct declaration of pread
29230         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29231         Reported by Richard W.M. Jones.
29232
29233         test-pread.sh: distribute the test script
29234         * modules/pread-tests (Files): Include test-pread.sh.
29235
29236         test-pread.sh: clean up
29237         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29238         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29239         That is unnecessary, since it's always ".".
29240         Suggestion from Eric Blake.
29241
29242         test-pread.sh: make executable
29243         * tests/test-pread.sh: Set executable bit.
29244         Reported by Eric Blake.
29245
29246         correct typo in test-pread.sh
29247         * tests/test-pread.sh: Add #! line.
29248
29249         test pread
29250         * tests/test-pread.c: New file.
29251         * tests/test-pread.sh: Likewise.
29252         * modules/pread-tests: Likewise.
29253
29254         pread: new module
29255         * modules/pread: New file.
29256         * lib/unistd.in.h (pread): Define/declare.
29257         * lib/pread.c (pread): New file.
29258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29259         * modules/unistd (Makefile.am): Substitute witnesses.
29260         * doc/posix-functions/pread.texi (pread): Update.
29261         * MODULES.html.sh: Add pread.
29262
29263 2009-11-25  Jim Meyering  <meyering@redhat.com>
29264
29265         tests/init.sh: new file to be used via most *.sh tests
29266         * tests/init.sh: New file.
29267
29268 2009-11-25  Eric Blake  <ebb9@byu.net>
29269
29270         utimens: work around older Linux failure with symlinks
29271         * lib/utimens.c (lutimensat_works_really): New variable.
29272         (fdutimens, lutimens): Use it to manage kernels that support
29273         nanosecond times on files, but not on symlinks.
29274         Reported by OndÅ™ej Vašík.
29275
29276         utimes: fix configure grammar
29277         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29278
29279 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29280
29281         regex: Fix fastmap for multibyte character ranges.
29282         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29283         characters when a multibyte character range is included.
29284
29285 2009-11-22  Andy Wingo  <wingo@pobox.com>
29286
29287         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29288         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29289
29290 2009-11-24  Bruno Haible  <bruno@clisp.org>
29291
29292         doc: Most *_l functions exist in MacOS X 10.5.
29293         * doc/posix-functions/duplocale.texi: Update platforms list.
29294         * doc/posix-functions/freelocale.texi: Likewise.
29295         * doc/posix-functions/newlocale.texi: Likewise.
29296         * doc/posix-functions/uselocale.texi: Likewise.
29297         * doc/posix-functions/isalnum_l.texi: Likewise.
29298         * doc/posix-functions/isalpha_l.texi: Likewise.
29299         * doc/posix-functions/isblank_l.texi: Likewise.
29300         * doc/posix-functions/iscntrl_l.texi: Likewise.
29301         * doc/posix-functions/isdigit_l.texi: Likewise.
29302         * doc/posix-functions/isgraph_l.texi: Likewise.
29303         * doc/posix-functions/islower_l.texi: Likewise.
29304         * doc/posix-functions/isprint_l.texi: Likewise.
29305         * doc/posix-functions/ispunct_l.texi: Likewise.
29306         * doc/posix-functions/isspace_l.texi: Likewise.
29307         * doc/posix-functions/isupper_l.texi: Likewise.
29308         * doc/posix-functions/iswalnum_l.texi: Likewise.
29309         * doc/posix-functions/iswalpha_l.texi: Likewise.
29310         * doc/posix-functions/iswblank_l.texi: Likewise.
29311         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29312         * doc/posix-functions/iswctype_l.texi: Likewise.
29313         * doc/posix-functions/iswdigit_l.texi: Likewise.
29314         * doc/posix-functions/iswgraph_l.texi: Likewise.
29315         * doc/posix-functions/iswlower_l.texi: Likewise.
29316         * doc/posix-functions/iswprint_l.texi: Likewise.
29317         * doc/posix-functions/iswpunct_l.texi: Likewise.
29318         * doc/posix-functions/iswspace_l.texi: Likewise.
29319         * doc/posix-functions/iswupper_l.texi: Likewise.
29320         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29321         * doc/posix-functions/isxdigit_l.texi: Likewise.
29322         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29323         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29324         * doc/posix-functions/strcoll_l.texi: Likewise.
29325         * doc/posix-functions/strfmon_l.texi: Likewise.
29326         * doc/posix-functions/strftime_l.texi: Likewise.
29327         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29328         * doc/posix-functions/strxfrm_l.texi: Likewise.
29329         * doc/posix-functions/tolower_l.texi: Likewise.
29330         * doc/posix-functions/toupper_l.texi: Likewise.
29331         * doc/posix-functions/towctrans_l.texi: Likewise.
29332         * doc/posix-functions/towlower_l.texi: Likewise.
29333         * doc/posix-functions/towupper_l.texi: Likewise.
29334         * doc/posix-functions/wcscoll_l.texi: Likewise.
29335         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29336         * doc/posix-functions/wctrans_l.texi: Likewise.
29337         * doc/posix-functions/wctype_l.texi: Likewise.
29338         * doc/glibc-functions/strptime_l.texi: Likewise.
29339         * doc/glibc-functions/strtod_l.texi: Likewise.
29340         * doc/glibc-functions/strtof_l.texi: Likewise.
29341         * doc/glibc-functions/strtol_l.texi: Likewise.
29342         * doc/glibc-functions/strtold_l.texi: Likewise.
29343         * doc/glibc-functions/strtoll_l.texi: Likewise.
29344         * doc/glibc-functions/strtoul_l.texi: Likewise.
29345         * doc/glibc-functions/strtoull_l.texi: Likewise.
29346         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29347         * doc/glibc-functions/wcstod_l.texi: Likewise.
29348         * doc/glibc-functions/wcstof_l.texi: Likewise.
29349         * doc/glibc-functions/wcstol_l.texi: Likewise.
29350         * doc/glibc-functions/wcstold_l.texi: Likewise.
29351         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29352         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29353         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29354
29355 2009-11-24  Bruno Haible  <bruno@clisp.org>
29356
29357         duplocale: Fix logic bug.
29358         * lib/duplocale.c: Don't include <langinfo.h>.
29359         (_NL_LOCALE_NAME): Remove macro.
29360         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29361         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29362
29363 2009-11-23  Jim Meyering  <meyering@redhat.com>
29364
29365         test-update-copyright: don't hard-code /usr/bin/perl
29366         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29367         perl to print the current year.  Gilles Espinasse reported that
29368         the replaced use of perl was hard-coded as /usr/bin/perl.
29369
29370 2009-11-23  Bruno Haible  <bruno@clisp.org>
29371
29372         duplocale: Add support for glibc 2.3.x.
29373         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29374
29375 2009-11-22  Bruno Haible  <bruno@clisp.org>
29376
29377         vasnprintf: Tiny optimization.
29378         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29379         MacOS X.
29380
29381 2009-11-22  Bruno Haible  <bruno@clisp.org>
29382
29383         Tests for module 'duplocale'.
29384         * modules/duplocale-tests: New file.
29385         * tests/test-duplocale.c: New file.
29386
29387         New module 'duplocale'.
29388         * m4/duplocale.m4: New file.
29389         * lib/locale.in.h (duplocale): New declaration.
29390         * lib/duplocale.c: New file.
29391         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29392         gl_LOCALE_H_DEFAULTS): New macros.
29393         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29394         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29395         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29396         REPLACE_DUPLOCALE.
29397         * modules/duplocale: New file.
29398         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29399
29400 2009-11-22  Bruno Haible  <bruno@clisp.org>
29401
29402         * modules/locale-tests (configure.ac): Test for newlocale function.
29403         * tests/test-locale.c: When the system has extended locale functions,
29404         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29405
29406         locale: Make locale_t available when possible.
29407         * lib/locale.in.h: Include <xlocale.h> when it exists.
29408         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29409         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29410         * modules/locale (Depends-on): Add extensions.
29411         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29412         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29413
29414 2009-11-22  Bruno Haible  <bruno@clisp.org>
29415
29416         Add comments.
29417         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29418         invocation.
29419         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29420         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29421         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29422
29423 2009-11-22  Bruno Haible  <bruno@clisp.org>
29424
29425         error: account for the possibility of freopen (stdout).
29426         * lib/error.c: Include <unistd.h>.
29427         (flush_stdout): New function, extracted from error and error_at_line.
29428         Determine stdout's fd dynamically.
29429         (error, error_at_line): Invoke flush_stdout.
29430         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29431         * modules/error (Depends-on): Add unistd.
29432
29433 2009-11-22  Bruno Haible  <bruno@clisp.org>
29434
29435         diffseq: Add comment.
29436         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29437
29438 2009-11-22  Jim Meyering  <meyering@redhat.com>
29439
29440         c-stack: avoid defining an unused static function
29441         * lib/c-stack.c (find_stack_direction): Do not define this function
29442         when it will not be used.
29443
29444         diffseq: avoid spurious gcc warnings
29445         * lib/diffseq.h (IF_LINT2): Define.
29446         (compareseq): Use it to initialize two members of "part".
29447         This avoids two used-uninitialized warnings.
29448
29449 2009-11-21  Jim Meyering  <meyering@redhat.com>
29450
29451         c-stack: avoid "ignoring return value of `write'" warning
29452         * lib/c-stack.c: Include "ignore-value.h".
29453         (die): Explicitly ignore each write return value.
29454         * modules/c-stack (Depends-on): Add ignore-value.
29455
29456 2009-11-21  Bruno Haible  <bruno@clisp.org>
29457
29458         diffseq: reduce scope of variable 'best'.
29459         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29460         variable, earlier used for two different purposes.
29461
29462 2009-11-21  Jim Meyering  <meyering@redhat.com>
29463
29464         diffseq: remove useless assignment to "best"
29465         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29466         assignment.  At that point "best" is already guaranteed to be zero.
29467
29468 2009-11-20  Eric Blake  <ebb9@byu.net>
29469
29470         build: mention ftp redirector in release announcements
29471         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29472         values that used to come from cfg.mk; mention FTP redirect URL.
29473         * build-aux/announce-gen: Mention the mirror list.
29474         Suggested by Karl Berry.
29475
29476         nanosleep: improve port to mingw
29477         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29479         LIB_NANOSLEEP, but only when needed.
29480         * modules/select (Link): Document LIBSOCKET.
29481         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29482         enough.
29483
29484         nanosleep: work around cygwin bug
29485         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29486         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29487         bug.
29488         (getnow): Delete, not needed.
29489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29490         LIB_CLOCK_GETTIME.
29491         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29492         clock-time, gettime.
29493         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29494         bug.
29495         * modules/nanosleep-tests: New test.
29496         * tests/test-nanosleep.c: New file.
29497
29498         sleep: work around cygwin bug
29499         * lib/sleep.c (rpl_sleep): Work around the bug.
29500         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29501         (gl_PREREQ_SLEEP): Delete unused macro.
29502         * modules/sleep (Depends-on): Add verify.
29503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29504         * modules/unistd (Makefile.am): Substitute witness.
29505         * lib/unistd.in.h (sleep): Update prototype.
29506         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29507         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29508         * modules/sleep-tests (Depends-on): Check for alarm.
29509
29510 2009-11-20  Jim Meyering  <meyering@redhat.com>
29511
29512         maint.mk: improve sc_prohibit_magic_number_exit
29513         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29514         so it does not match uses like System.exit(1).
29515         Add comments showing how to correct all offenders.
29516
29517 2009-11-19  Eric Blake  <ebb9@byu.net>
29518
29519         xalloc-die-tests: add missing library
29520         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29521
29522         test-xvasprintf: silence compiler warnings
29523         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29524         empty string from gcc.
29525
29526 2009-11-19  Jim Meyering  <meyering@redhat.com>
29527
29528         xfreopen: new module, from coreutils
29529         * modules/xfreopen: New module.
29530         * lib/xfreopen.c: New file.
29531         * lib/xfreopen.h: New file.
29532         * MODULES.html.sh (File stream based Input/Output"): Add it.
29533
29534 2009-11-19  Eric Blake  <ebb9@byu.net>
29535
29536         manywarnings: depend on warnings
29537         * modules/manywarnings (Depends-on): Add warnings.
29538
29539         build: avoid compiler warnings
29540         * lib/select.c (rpl_select): Delete unused variable.
29541         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29542
29543 2009-11-18  Eric Blake  <ebb9@byu.net>
29544
29545         tests: avoid false negative with --with-packager
29546         * tests/test-version-etc.sh: Discard packager information.
29547         * tests/test-argp-version-etc-1.sh: Likewise.
29548         Reported by Mike Frysinger.
29549
29550         utimens: fix regression on Solaris
29551         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29552         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29553         can only change fd timestamps via futimesat.  Instead, use an
29554         additional witness macro to avoid BSD bug.
29555         Reported by Jim Meyering.
29556
29557 2009-11-17  Eric Blake  <ebb9@byu.net>
29558
29559         usleep: use it to simplify tests
29560         * modules/stat-time-tests (Depends-on): Add usleep.
29561         (configure.ac): Drop usleep check.
29562         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29563         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29564         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29565         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29566         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29567         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29568         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29569         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29570         Likewise.
29571         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29572         * tests/test-lchown.h (nap): Likewise.
29573         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29574         * tests/test-stat-time.c (nap): Likewise.
29575         * tests/test-utimens-common.h (nap): Update comments.
29576
29577         usleep: new module
29578         * modules/usleep: New file.
29579         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29580         * lib/usleep.c (usleep): Likewise.
29581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29582         * modules/unistd (Makefile.am): Substitute witnesses.
29583         * lib/unistd.in.h (usleep): Add declaration.
29584         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29585         * MODULES.html.sh (Date and time): Likewise.
29586         * modules/usleep-tests (Depends-on): New test.
29587         * tests/test-usleep.c: New file.
29588
29589         chown: work around OpenBSD bug
29590         * lib/chown.c (rpl_chown): Work around the bug.
29591         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29592         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29593         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29594         * modules/chown (Depends-on): Add stdbool.
29595         * modules/lchown (Depends-on): Likewise.
29596         * doc/posix-functions/chown.texi (chown): Document the bug.
29597         * doc/posix-functions/lchown.texi (lchown): Likewise.
29598         * tests/test-lchown.h (test_chown): Relax test.
29599
29600         mkstemp: avoid conflict with C++ keyword template
29601         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29602         * lib/mkostemp.c (mkostemp): Likewise.
29603         * lib/mkostemps.c (mkostemps): Likewise.
29604         * lib/mkstemp.c (mkstemp): Likewise.
29605         * lib/mkstemps.c (mkstemps): Likewise.
29606
29607         xalloc-die-tests: optimize
29608         * tests/test-xalloc-die.sh: Reduce number of processes.
29609
29610 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29611
29612         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29613         patch from ludo@gnu.org (Ludovic Courtès).
29614
29615 2009-11-17  Jim Meyering  <meyering@redhat.com>
29616
29617         version-etc: use proper license string
29618         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29619         * modules/version-etc-fsf: Likewise.
29620
29621 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29622
29623         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29624         printed to stdout.  Deal with EOL differences.
29625
29626 2009-11-17  Eric Blake  <ebb9@byu.net>
29627
29628         unsetenv: work around Solaris bug
29629         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29630         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29631         Reported by Jim Meyering.
29632
29633         vasnprintf: avoid compiler warnings
29634         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29635         variables.
29636         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29637
29638 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29639
29640         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29641         settings since xalloc-die is no longer the self test,
29642         xalloc-die.sh is.
29643
29644 2009-11-17  Jim Meyering  <meyering@redhat.com>
29645
29646         test-xalloc-die.sh: make the code agree with the commit log
29647         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29648         at the end, just in case you happen to have a test-xalloc-die
29649         program in some other PATH directory.
29650
29651         test-xalloc-die.sh: fix a portability bug
29652         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29653         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29654         Otherwise, argv[0] (as often seen in diagnostics) would be too
29655         system-dependent, sometimes with, and sometimes without the leading "./".
29656
29657         version-etc-fsf: relax license to LGPLv3+
29658         * modules/version-etc-fsf (License): Relax license.
29659
29660 2009-11-16  Eric Blake  <ebb9@byu.net>
29661
29662         xalloc-die-tests: avoid printing null pointer
29663         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29664         shell script.
29665         * tests/test-xalloc-die.c (program_name): Declare.
29666         * tests/test-xalloc-die.sh (tmpfiles): New file.
29667
29668         setenv, unsetenv: work around various bugs
29669         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29670         (setenv) [HAVE_SETENV]: Work around bugs.
29671         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29673         for bugs.
29674         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29675         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29677         * modules/stdlib (Makefile.am): Update substitutions.
29678         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29679         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29680         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29681         * modules/setenv-tests: New test.
29682         * modules/unsetenv-tests: Likewise.
29683         * tests/test-setenv.c: New file.
29684         * tests/test-unsetenv.c: Likewise.
29685
29686 2009-11-16  Jim Meyering  <meyering@redhat.com>
29687
29688         version-etc: relax license to LGPLv3+
29689         * modules/version-etc (License): Relax license.
29690
29691         better AC_REQUIRE expanded-before-required-warning avoidance
29692         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29693         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29694         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29695         which is no longer needed.
29696
29697 2009-11-16  Eric Blake  <ebb9@byu.net>
29698
29699         test-freading: clean up temporary file
29700         * tests/test-freading.c (main): Remove file on success, and use
29701         ASSERT more liberally.
29702         Reported by Jim Meyering.
29703
29704 2009-11-16  Jim Meyering  <meyering@redhat.com>
29705
29706         avoid new AC_REQUIRE expanded-before-required warnings
29707         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29708         merely using it.
29709         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29710         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29711
29712 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29713
29714         * tests/test-xalloc-die.c: New file.
29715         * modules/xalloc-die-tests: New file.
29716         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29717         XFAIL_TESTS so it can be appended by modules.
29718
29719 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29720
29721         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29722         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29723
29724 2009-11-14  Eric Blake  <ebb9@byu.net>
29725
29726         fnmatch: avoid compiler warning
29727         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29728         to silence compiler warning about mismatch signedness in ?:.
29729         Reported by Robert Millan.
29730
29731         intprops: add double-inclusion guard
29732         * lib/intprops.h: Allow idempotent includes.
29733         Suggested by Bruce Korb.
29734
29735         openat: detect Solaris fchownat bug
29736         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29737         penalizing glibc chownat when only lchownat is broken.
29738         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29739         trailing slash bugs.
29740         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29741         * modules/openat-tests (Files): Include more files.
29742         (Depends-on): Add mgetgroups, sleep, stat-time.
29743         (configure.ac): Add additional checks.
29744         (Makefile.am): Build new test.
29745         * tests/test-fchownat.c: New file.
29746
29747         lchown: detect Solaris and FreeBSD bug
29748         * lib/lchown.c (rpl_lchown): Work around bug.
29749         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29751         * modules/unistd (Makefile.am): Populate it.
29752         * lib/unistd.in.h (lchown): Update declaration.
29753         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29754         * modules/lchown-tests: New file.
29755         * tests/test-lchown.h (test_lchown): Likewise.
29756         * tests/test-lchown.c (main): Likewise.
29757
29758         chown: detect Solaris and FreeBSD bug
29759         * lib/chown.c (rpl_chown): Work around bug.
29760         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29761         (gl_PREREQ_CHOWN): Delete.
29762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29763         * modules/unistd (Makefile.am): Populate it.
29764         * lib/unistd.in.h (chown): Update declaration.
29765         * lib/lchown.c (chown): Update client.
29766         * modules/lchown (Depends-on): Add lstat.
29767         * doc/posix-functions/chown.texi (chown): Document the bug.
29768         * doc/posix-functions/getgroups.texi (getgroups): Document
29769         getgroups pitfall.
29770         * modules/chown-tests: New file.
29771         * tests/test-chown.h (test_chown): Likewise.
29772         * tests/test-chown.c (main): Likewise.
29773
29774 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29775
29776         gnulib-tool: correctly detect absence of m4 directories
29777         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29778
29779 2009-11-14  Jim Meyering  <meyering@redhat.com>
29780
29781         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29782         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29783
29784 2009-11-14  John W. Eaton  <jwe@gnu.org>
29785
29786         strftime.h: wrap funtion declaration in extern "C" block
29787         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29788
29789 2009-11-13  Eric Blake  <ebb9@byu.net>
29790
29791         getgroups: avoid compiler warning
29792         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29793
29794         getgroups: work around FreeBSD bug
29795         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29796         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29797         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29798         * tests/test-getgroups.c (main): Fix buffer overrun.
29799
29800         getgroups: avoid compilation failure
29801         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29802         * modules/getgroups (Depends-on): Add stdint.
29803
29804 2009-11-13  Jim Meyering  <meyering@redhat.com>
29805
29806         test-getgroups: avoid compilation failure
29807         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29808
29809 2009-11-13  Eric Blake  <ebb9@byu.net>
29810
29811         mgetgroups: new module, taken from coreutils
29812         * modules/mgetgroups: New file.
29813         * lib/mgetgroups.h: Likewise.
29814         * lib/mgetgroups.c (mgetgroups): Likewise.
29815         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29816         * MODULES.html.sh (Users and groups): Mention it.
29817
29818         getgroups: don't expose GETGROUPS_T to user
29819         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29820         an element at a time if GETGROUPS_T is wrong size.
29821         * lib/getugroups.h (getugroups): Change signature.
29822         * lib/unistd.in.h (getgroups): Likewise.
29823         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29824         signature needs fixing.
29825         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29826         AC_TYPE_GETGROUPS.
29827         * modules/group-member (Depends-on): Add getgroups.
29828         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29829         (group_member): Rely on getgroups replacement.
29830         * lib/getugroups.c (getugroups): Use gid_t.
29831         * tests/test-getgroups.c (main): Likewise.
29832         * NEWS: Mention the signature change.
29833         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29834         problem with signature.
29835         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29836         GETGROUPS_T is still useful for setgroups.
29837
29838         getgroups, getugroups: provide stubs for mingw
29839         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29840         * lib/getugroups.c (getugroups): Likewise.
29841         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29842         function.  Modernize replacement scheme.
29843         (gl_PREREQ_GETGROUPS): Delete.
29844         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29845         * modules/getgroups (configure.ac): Declare witness.
29846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29847         * modules/unistd (Depends-on): Substitute witness.
29848         * lib/unistd.in.h (getgroups): Declare replacement.
29849
29850         getgroups: avoid calling exit
29851         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29852         drop xalloc.
29853         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29854         dependencies.
29855         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29856         exiting, in the rare case of malloc failure.
29857
29858         getgroups: fix logic error
29859         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29860         has more than 20 groups.
29861         * modules/getgroups-tests: New test.
29862         * tests/test-getgroups.c: New file.
29863
29864 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29865
29866         * tests/test-base64.c: Improve.
29867
29868 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29869
29870         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29871         Blake <ebb9@byu.net>.
29872
29873 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29874
29875         * tests/test-xvasprintf.c: Add %s%s related checks.
29876
29877 2009-11-12  Eric Blake  <ebb9@byu.net>
29878
29879         version-etc: match standards.texi style
29880         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29881         and use <> only for URLs.
29882
29883 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29884
29885         fts: do not fail on a submount during traversal
29886         * lib/fts.c (fts_build): Read the stat info again after opening
29887         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29888         Original report at http://bugzilla.redhat.com/501848.
29889
29890 2009-11-12  Jim Meyering  <meyering@redhat.com>
29891
29892         bootstrap: sync from coreutils
29893         * build-aux/bootstrap (bootstrap_epilogue): New function.
29894         Use git_modules_config in one more place.  This make bootstrap's
29895         --gnulib-srcdir option more useful for testing.
29896
29897         bootstrap: generalize autoheader check
29898         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29899         AC_CONFIG_HEADERS.
29900
29901 2009-11-11  Eric Blake  <ebb9@byu.net>
29902
29903         mkfifoat: use new modules for Solaris and BSD bugs
29904         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29905         * lib/mkfifoat.c (mknodat): Split...
29906         * lib/mknodat.c (mknodat): ...into new file.
29907         * modules/mkfifoat (Files): Ship new file.
29908         (Depends-on): Add mkfifo, mknod.
29909         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29910         (Depends-on): Add symlink.
29911         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29912         redundant with test_mkfifo.h.
29913         (do_mkfifoat, do_mknodat): New helpers.
29914
29915         mknod: new module
29916         * modules/mknod: New file.
29917         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29918         * lib/mknod.c (mknod): Likewise.
29919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29920         defaults.
29921         * modules/sys_stat (Makefile.am): Substitute them.
29922         * lib/sys_stat.in.h (mknod): Declare replacement.
29923         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29924         Document it.
29925         * doc/posix-functions/mknod.texi (mknod): Likewise.
29926         * modules/mknod-tests: New test.
29927         * tests/test-mknod.c: Likewise.
29928
29929         mkfifo: new module
29930         * modules/mkfifo: New file.
29931         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29932         * lib/mkfifo.c (mkfifo): Likewise.
29933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29934         defaults.
29935         * modules/sys_stat (Makefile.am): Substitute them.
29936         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29937         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29938         Document it.
29939         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29940         * modules/mkfifo-tests: New test.
29941         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29942         from test-mkfifoat.c.
29943         * tests/test-mkfifo.c: New file.
29944
29945         readlink: detect FreeBSD bug
29946         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29947         slash on symlink.
29948         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29949         * tests/test-readlink.h (test_readlink): Enhance test.
29950
29951         symlink: detect FreeBSD bug
29952         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29953         slash on symlink.
29954         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29955         * tests/test-symlink.h (test_symlink): Enhance test.
29956
29957 2009-11-10  Eric Blake  <ebb9@byu.net>
29958
29959         link: detect FreeBSD bug
29960         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29961         symlink.
29962         * doc/posix-functions/link.texi (link): Document the bug.
29963         * tests/test-link.h (test_link): Enhance test.
29964         * tests/test-linkat.c (main): Update caller.
29965
29966         unlink, remove: detect FreeBSD bug
29967         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29968         slash on symlink.
29969         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29970         * doc/posix-functions/remove.texi (remove): Likewise.
29971         * tests/test-unlink.h (test_unlink): Enhance test.
29972         * tests/test-remove.c (main): Likewise.
29973
29974 2009-11-09  Eric Blake  <ebb9@byu.net>
29975
29976         rename: detect FreeBSD bug
29977         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29978         slash on symlink.
29979         * modules/renameat-tests (Depends-on): Add filenamecat.
29980         * tests/test-rename.h (test_rename): Allow one more errno.
29981         * tests/test-renameat.c (main): Likewise.
29982         * doc/posix-functions/rename.texi (rename): Document the bug.
29983
29984         open: detect FreeBSD bug
29985         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29986         symlink.
29987         * doc/posix-functions/open.texi (open): Document the bug.
29988         * doc/posix-functions/utimes.texi (utimes): Likewise.
29989         * tests/test-open.h (test_open): Add parameters, and test symlink
29990         handling.
29991         * tests/test-open.c (main): Adjust caller.
29992         * tests/test-fcntl-safer.c (main): Likewise.
29993         * modules/open-tests (Depends-on): Add stdbool, symlink.
29994         * modules/fcntl-safer-tests (Depends-on): Likewise.
29995         * tests/test-openat.c (main): Add test-open tests.
29996
29997         stat: detect FreeBSD bug
29998         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29999         symlink.
30000         * doc/posix-functions/stat.texi (stat): Document the bug.
30001         * tests/test-stat.h (test_stat_func): Add argument.
30002         * tests/test-stat.c (main): Adjust caller.
30003         * tests/test-fstatat.c (main): Likewise.
30004         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30005         Reported by Jim Meyering.
30006
30007 2009-11-09  James Youngman  <jay@gnu.org>
30008
30009         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30010         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30011
30012 2009-11-08  Jim Meyering  <meyering@redhat.com>
30013
30014         utimens: remove invalid futimesat call
30015         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30016         It used the file descriptor of the target file as the DIR_FD
30017         parameter and NULL as the file name.  That caused failure with
30018         errno == EFAULT on FreeBSD-8.0-rc2
30019
30020 2009-11-07  Eric Blake  <ebb9@byu.net>
30021
30022         fflush, freadseek: use fseeko, not fseek
30023         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30024         (clear_ungetc_buffer): Avoid potential problems on large files.
30025         * lib/freadseek.c (freadseek): Likewise.
30026         * modules/freadseek (Depends-on): Add fseeko.
30027         * modules/fseek (configure.ac): Set a witness.
30028         * tests/test-fflush.c (main): Use fseeko.
30029         * tests/test-fpurge.c (fseek): Disable link warning.
30030         * tests/test-freadable.c (fseek): Likewise.
30031         * tests/test-freading.c (fseek): Likewise.
30032         * tests/test-fseeko.c (fseek): Likewise.
30033         * tests/test-ftell.c (fseek): Likewise.
30034         * tests/test-ftello.c (fseek): Likewise.
30035         * tests/test-fwritable.c (fseek): Likewise.
30036         * tests/test-fwriting.c (fseek): Likewise.
30037
30038 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30039
30040         * modules/memchr (Depends-on): Drop getpagesize dependency.
30041
30042 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30043
30044         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30045         Reported by Ludovic Courtès.
30046         * build-aux/pmccabe2html: Improve example usage.
30047         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30048
30049 2009-11-06  Jim Meyering  <meyering@redhat.com>
30050
30051         do-release-commit-and-tag: New module.
30052         Automate the release-commit and tag process.
30053         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30054         * modules/do-release-commit-and-tag: New file.
30055         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30056
30057 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30058
30059         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30060         because test-select.c uses inet_pton.
30061
30062 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30063
30064         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30065         GETADDRINFO_LIB.  Bump serial number.
30066         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30067         Suggested by Eric Blake <ebb9@byu.net>.
30068
30069 2009-11-05  Eric Blake  <ebb9@byu.net>
30070
30071         strtod: detect darwin bug
30072         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30073         Reported by Leo Davis.
30074
30075         freopen-safer: new module
30076         * modules/freopen-safer: New module.
30077         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30078         * lib/freopen-safer.c (freopen_safer): New file.
30079         * lib/stdio-safer.h (freopen_safer): New declaration.
30080         * lib/stdio--.h (freopen): New override.
30081         * MODULES.html.sh (File stream based Input/Output): Mention it.
30082         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30083         freopen-safer module.
30084         * doc/posix-functions/stderr.texi (stderr): Likewise.
30085         * doc/posix-functions/stdin.texi (stdin): Likewise.
30086         * doc/posix-functions/stdout.texi (stdout): Likewise.
30087         * modules/freopen-safer-tests: New test.
30088         * tests/test-reopen-safer.c: New file.
30089
30090 2009-11-05  Jim Meyering  <meyering@redhat.com>
30091
30092         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30093         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30094
30095 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30096
30097         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30098
30099 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30100
30101         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30102
30103 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30104
30105         Fix link error.
30106         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30107         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30108
30109 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30110
30111         * tests/test-func.c: Also test value of __func__.
30112
30113 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30114
30115         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30116         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30117
30118 2009-11-05  Bruno Haible  <bruno@clisp.org>
30119
30120         Fix link error.
30121         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30122         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30123         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30124
30125 2009-11-05  Bruno Haible  <bruno@clisp.org>
30126
30127         Tests for module 'inet_pton'.
30128         * modules/inet_pton-tests: New file.
30129         * tests/test-inet_pton.c: New file.
30130
30131 2009-11-05  Bruno Haible  <bruno@clisp.org>
30132
30133         Tests for module 'inet_ntop'.
30134         * modules/inet_ntop-tests: New file.
30135         * tests/test-inet_ntop.c: New file.
30136
30137 2009-11-04  Eric Blake  <ebb9@byu.net>
30138
30139         stdlib-safer: wrap all mkstemp variants
30140         * modules/mkostemp (configure.ac): Set witness.
30141         * modules/mkostemps (configure.ac): Likewise.
30142         * modules/mkstemps (configure.ac): Likewise.
30143         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30144         (mkstemps_safer): Wrap more functions.
30145         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30146         wrapping.
30147         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30148         (mkstemps_safer): Implement the wrappers.
30149
30150         mkstemps, mkostemps: new modules
30151         * modules/mkostemps: New module.
30152         * modules/mkstemps: Likewise.
30153         * lib/mkostemps.c (mkostemps): New file.
30154         * lib/mkstemps.c (mkstemps): Likewise.
30155         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30156         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30158         * modules/stdlib (Makefile.am): Substitute them.
30159         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30160         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30161         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30162         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30163         * MODULES.html.sh (File system functions): Mention them.
30164
30165         tempname: resync from glibc
30166         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30167         same values for __GT_FILE as glibc.  Abort even when assertions
30168         are disabled.
30169         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30170         match its value otherwise.  Allow idempotent inclusion.
30171         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30172         * lib/mkostemp.c (mkostemp): Likewise.
30173         * lib/mkstemp.c (mkstemp): Likewise.
30174         * lib/tmpfile.c (tmpfile): Likewise.
30175         * NEWS: Document this.
30176
30177         utimens: fix use of futimens on older Linux
30178         * lib/utimens.c (fdutimens): Use updated, rather than original,
30179         timespec to avoid bug in older Linux kernel.
30180         Reported by Simon Josefsson.
30181
30182 2009-11-04  Bruno Haible  <bruno@clisp.org>
30183
30184         Make num_processors more flexible and consistent.
30185         * lib/nproc.h (enum nproc_query): New type.
30186         (num_processors): Add a 'query' argument.
30187         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30188         (num_processors): Add a 'query' argument. Test the value of the
30189         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30190         mingw, count the number of CPUs available for the current process.
30191         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30192         Check for sched_getaffinity and sched_getaffinity_np.
30193         * modules/nproc (Depends-on): Add c-ctype, extensions.
30194         * NEWS: Mention the change.
30195
30196 2009-11-03  Bruno Haible  <bruno@clisp.org>
30197
30198         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30199
30200 2009-11-03  Jim Meyering  <meyering@redhat.com>
30201
30202         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30203         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30204         if it is defined.
30205
30206 2009-11-02  Eric Blake  <ebb9@byu.net>
30207
30208         mktime, timegm: share common declaration
30209         * lib/mktime-internal.h: New file.
30210         * lib/mktime.c: Use it rather than open-coding a declaration.
30211         * lib/timegm.c: Likewise.
30212         * modules/mktime (Files): Ship it.
30213         * modules/timegm (Files): Likewise.
30214         Suggested by Bruno Haible.
30215
30216         test-update-copyright: update test to match script changes
30217         * tests/test-update-copyright.sh: Avoid hard-coding perl
30218         location.  Don't update *.bak created by earlier runs.
30219
30220 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30221             Simon Josefsson  <simon@josefsson.org>
30222             Bruno Haible  <bruno@clisp.org>
30223
30224         Fix link error on Solaris 8.
30225         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30226         also in libnsl. Define also INET_PTON_LIB.
30227         * modules/inet_pton (Link): New section.
30228
30229 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30230             Bruno Haible  <bruno@clisp.org>
30231
30232         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30233         * modules/inet_ntop (Link): New section.
30234         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30235
30236 2009-11-02  Eric Blake  <ebb9@byu.net>
30237
30238         maint: avoid compiler warnings in m4 macros
30239         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30241
30242 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30243
30244         * m4/pmccabe2html.m4: Remove file.
30245         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30246         function.  Change maintainer.
30247         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30248         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30249         Courtès).
30250
30251 2009-10-31  Eric Blake  <ebb9@byu.net>
30252
30253         fseeko: fix m4 regression
30254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30255         regression from 2009-10-27.
30256         Reported by Ralf Wildenhues.
30257
30258 2009-10-31  Jim Meyering  <meyering@redhat.com>
30259
30260         inttostr: aesthetics and improved (compile-time) safety
30261         Define inttype_is_signed rather than inttype_is_unsigned,
30262         since the sole use is via "#if inttype_is_signed".
30263         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30264         inttype_is_unsigned.
30265         * lib/offtostr.c (inttype_is_signed): Likewise.
30266         * lib/uinttostr.c (inttype_is_signed): Likewise.
30267         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30268         * lib/inttostr.c (inttostr): Use verify to cross-check the
30269         inttype_is_signed value and the signedness of the actual type.
30270         * modules/inttostr (Depends-on): Add verify.
30271
30272 2009-10-30  Eric Blake  <ebb9@byu.net>
30273
30274         build: avoid compiler warnings
30275         * lib/fchmodat.c (lchmod): Mark unused variables.
30276         * lib/getopt.c (_getopt_initialize): Likewise.
30277         * lib/mktime.c (__mktime_internal): Provide prototype.
30278         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30279         older gcc that do not understand #pragma GCC diagnostic.
30280         * lib/uinttostr.c (inttype_is_unsigned): Define.
30281         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30282
30283 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30284
30285         stat: fix compilation on AIX
30286         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30287         only see struct stat64.
30288
30289 2009-10-30  Eric Blake  <ebb9@byu.net>
30290
30291         exclude: make more robust
30292         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30293         rather than masking a coding bug.
30294         Suggested by Bruno Haible.
30295
30296 2009-10-30  Jim Meyering  <meyering@redhat.com>
30297
30298         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30299         Rather than putting #!/usr/bin/perl on the first line,
30300         start with a variant of what's recommended by "man perlrun" that
30301         invokes the first "perl" program from your shell's search path.
30302         * build-aux/gitlog-to-changelog: Replace #!... as above.
30303         Add a "Local Variables" perl mode setting.
30304         Prompted by a patch from Ludovic Courtès.
30305         Improved by Eric Blake.
30306         * build-aux/useless-if-before-free: Likewise.
30307         * build-aux/announce-gen: Likewise.
30308         * build-aux/update-copyright: Likewise.
30309
30310 2009-10-29  Eric Blake  <ebb9@byu.net>
30311
30312         filenamecat-lgpl: adjust clients
30313         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30314         filenamecat.
30315         * modules/renameat (Depends-on): Likewise.
30316
30317         filenamecat: split into filenamecat-lgpl
30318         * modules/filenamecat-lgpl: New module.
30319         * modules/filenamecat (Files): Move library-safe files into
30320         filenamecat-lgpl.
30321         (Depends-on): Add filenamecat-lgpl.
30322         (configure.ac): Declare witness.
30323         * lib/filenamecat.h (file_name_concat): Only declare when using
30324         GPL module.
30325         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30326         Move...
30327         * lib/filenamecat-lgpl.c: ...into new file.
30328         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30329         (gl_FILE_NAME_CONCAT): Use it.
30330         * MODULES.html.sh (File system functions): Mention new module.
30331
30332         argp: avoid memory leak
30333         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30334         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30335         base_name, since the latter malloc()s and can call exit().
30336         Leak introduced 2006-07-03.
30337
30338         dirname-lgpl: adjust clients that don't need full dirname
30339         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30340         * modules/filenamecat (Depends-on): Likewise.
30341         * modules/linkat (Depends-on): Likewise.
30342         * modules/mkancesdirs (Depends-on): Likewise.
30343         * modules/mkdir (Depends-on): Likewise.
30344         * modules/openat (Depends-on): Likewise.
30345         * modules/savewd (Depends-on): Likewise.
30346         * modules/rename (Depends-on): Likewise.
30347         (License): Relax license.
30348         * modules/mkdir-tests (Depends-on): Drop progname.
30349         (Makefile.am): Delete unneeded LDADD.
30350         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30351
30352         dirname: split into dirname-lgpl
30353         * modules/dirname-lgpl: New module.
30354         * modules/dirname (Files): Move library-safe files into
30355         dirname-lgpl.
30356         (Depends-on): Add dirname-lgpl.
30357         (configure.ac): Declare witness.
30358         * modules/double-slash-root (License): Relax license.
30359         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30360         module.
30361         * lib/dirname.c (dir_len, mdir_name): Move...
30362         * lib/dirname-lgpl.c: ...into new file.
30363         * lib/basename.c (last_component, base_len): Move...
30364         * lib/basename-lgpl.c: ...into new file.
30365         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30366         (gl_DIRNAME): Use it.
30367         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30368         Mention new module.
30369         * modules/dirname-tests (Depends-on): Add progname.
30370         * tests/test-dirname.c (program_name): Delete.
30371
30372         mkdir: make safe for libraries
30373         * modules/mkdir (Depends-on): Drop xalloc.
30374         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30375         exit.
30376
30377         tests: avoid some compiler warnings
30378         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30379         literals.
30380         * tests/test-memchr.c (main): Avoid type mismatch.
30381         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30382         * tests/test-base64.c (main): Likewise.
30383         * tests/test-getdelim.c (main): Likewise.
30384         * tests/test-gethostname.c (main): Likewise.
30385         * tests/test-getline.c (main): Likewise.
30386         * tests/test-netinet_in.c (main): Likewise.
30387         * tests/test-select.c (open_server_socket, main): Likewise.
30388         * tests/test-select-stdin.c (main): Likewise.
30389         * tests/test-sockets.c (main): Likewise.
30390         * tests/test-strsignal.c (main): Likewise.
30391         * tests/test-sys_select.c (main): Likewise.
30392         * tests/test-sys_socket.c (main): Likewise.
30393         * tests/test-u64.c (main): Likewise.
30394         * tests/test-xfprintf-posix.c (main): Likewise.
30395         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30396
30397         sockets: avoid compiler warning
30398         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30399
30400         maint: detect usage(1) and other suspicious exits
30401         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30402
30403 2009-10-29  Jim Meyering  <meyering@redhat.com>
30404
30405         timespec: long-to-int truncation could make timespec_cmp malfunction
30406         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30407         a multiple of 2^32 nanoseconds as no difference.
30408
30409 2009-10-28  Jim Meyering  <meyering@redhat.com>
30410
30411         fprintftime: wrap macro code argument in "do {...} while(0)"
30412         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30413         cpy macro must be a statement that can be followed by a semicolon.
30414         Now that the else clause contains a comment and is hence longer
30415         than one line, I require curly braces.  That in turn requires
30416         that we wrap this code block in the standard do...while(0).
30417
30418         fprintftime: remove stray semicolon from previous change
30419         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30420
30421         fprintftime: avoid a warning about ignored fwrite return value
30422         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30423         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30424         that is unsafe.
30425         * modules/fprintftime (Depends-on): Add ignore-value.
30426
30427         exclude: avoid an unwarranted warning
30428         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30429
30430 2009-10-27  Eric Blake  <ebb9@byu.net>
30431
30432         fseek: avoid compilation failure when fflush is replaced
30433         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30434         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30435         module is in use.
30436         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30437         module is not in use; since REPLACE_FSEEK worked otherwise.
30438         (GNULIB_FTELLO): Likewise for ftell.
30439         Reported by Ian Beckwith and others.
30440
30441 2009-10-27  Bruno Haible  <bruno@clisp.org>
30442
30443         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30444         Reported by Jim Meyering.
30445
30446 2009-10-27  Jim Meyering  <jim@meyering.net>
30447             Bruno Haible  <bruno@clisp.org>
30448
30449         Avoid warning despite dropping the return value of fwrite.
30450         * lib/unicodeio.c: Include ignore-value.h.
30451         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30452         * modules/unicodeio (Depends-on): Add ignore-value.
30453
30454 2009-10-26  Eric Blake  <ebb9@byu.net>
30455
30456         areadlinkat: fix fallback path
30457         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30458         pointer and zero.
30459
30460 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30461
30462         Use a better IO block size for modern systems
30463         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30464         * lib/md2.c: Likewise.
30465         * lib/md4.c: Likewise.
30466         * lib/md5.c: Likewise.
30467         * lib/sha1.c: Likewise.
30468         * lib/sha256.c: Likewise.
30469         * lib/sha512.c: Likewise.
30470
30471 2009-10-22  Eric Blake  <ebb9@byu.net>
30472
30473         tests: avoid several compiler warnings
30474         * tests/test-getcwd.c (main): Avoid buffer underflow.
30475         * tests/test-getdate.c (main): String literals are not safe with
30476         putenv, so use setenv.  Declare unused argument.
30477         * modules/getdate-tests (Depends-on): Add setenv.
30478         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30479         problems with string literals in char *.
30480         * tests/test-hash.c (main): Avoid shadowing declaration.
30481         (insert_new): Treat string literals as char const *.
30482         * tests/test-getopt.h (test_getopt): Likewise.
30483         (getopt_loop): Alter types to minimize casting elsewhere.
30484         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30485         (test_getopt_long_posix): Likewise.
30486         (do_getopt_long): Add wrapper to minimize casting.
30487         * tests/test-atexit.c (clear_temp_file): Use void.
30488         * tests/test-areadlink-with-size.c (main): Declare unused
30489         arguments.
30490         * tests/test-areadlink.c (main): Likewise.
30491         * tests/test-areadlinkat-with-size.c (main): Likewise.
30492         * tests/test-areadlinkat.c (main): Likewise.
30493         * tests/test-canonicalize-lgpl.c (main): Likewise.
30494         * tests/test-canonicalize.c (main): Likewise.
30495         * tests/test-dirent-safer.c (main): Likewise.
30496         * tests/test-dirname.c (main): Likewise.
30497         * tests/test-dup2.c (main): Likewise.
30498         * tests/test-fchdir.c (main): Likewise.
30499         * tests/test-fcntl-h.c (main): Likewise.
30500         * tests/test-fcntl-safer.c (main): Likewise.
30501         * tests/test-fdopendir.c (main): Likewise.
30502         * tests/test-fdutimensat.c (main): Likewise.
30503         * tests/test-fflush.c (main): Likewise.
30504         * tests/test-filenamecat.c (main): Likewise.
30505         * tests/test-filevercmp.c (main): Likewise.
30506         * tests/test-fopen-safer.c (main): Likewise.
30507         * tests/test-fopen.c (main): Likewise.
30508         * tests/test-fpending.c (main): Likewise.
30509         * tests/test-fpurge.c (main): Likewise.
30510         * tests/test-freading.c (main): Likewise.
30511         * tests/test-fstatat.c (main): Likewise.
30512         * tests/test-fsync.c (main): Likewise.
30513         * tests/test-futimens.c (main): Likewise.
30514         * tests/test-getndelim2.c (main): Likewise.
30515         * tests/test-gettimeofday.c (main): Likewise.
30516         * tests/test-getopt.c (main): Likewise.
30517         * tests/test-i-ring.c (main): Likewise.
30518         * tests/test-inttypes.c (main): Likewise.
30519         * tests/test-link.c (main): Likewise.
30520         * tests/test-lstat.c (main): Likewise.
30521         * tests/test-math.c (main): Likewise.
30522         * tests/test-md5.c (main): Likewise.
30523         * tests/test-memchr2.c (main): Likewise.
30524         * tests/test-memrchr.c (main): Likewise.
30525         * tests/test-mkdir.c (main): Likewise.
30526         * tests/test-mkdirat.c (main): Likewise.
30527         * tests/test-mkfifoat.c (main): Likewise.
30528         * tests/test-open.c (main): Likewise.
30529         * tests/test-openat-safer.c (main): Likewise.
30530         * tests/test-openat.c (main): Likewise.
30531         * tests/test-quotearg.c (main): Likewise.
30532         * tests/test-rawmemchr.c (main): Likewise.
30533         * tests/test-readlink.c (main): Likewise.
30534         * tests/test-remove.c (main): Likewise.
30535         * tests/test-rename.c (main): Likewise.
30536         * tests/test-renameat.c (main): Likewise.
30537         * tests/test-rmdir.c (main): Likewise.
30538         * tests/test-sha1.c (main): Likewise.
30539         * tests/test-signal.c (main): Likewise.
30540         * tests/test-sigaction.c (main): Likewise.
30541         * tests/test-stat.c (main): Likewise.
30542         * tests/test-stat-time.c (main): Likewise.
30543         * tests/test-stddef.c (main): Likewise.
30544         * tests/test-stdint.c (main): Likewise.
30545         * tests/test-stdio.c (main): Likewise.
30546         * tests/test-stdlib.c (main): Likewise.
30547         * tests/test-strchrnul.c (main): Likewise.
30548         * tests/test-strerror.c (main): Likewise.
30549         * tests/test-string.c (main): Likewise.
30550         * tests/test-strtod.c (main): Likewise.
30551         * tests/test-strverscmp.c (main): Likewise.
30552         * tests/test-symlink.c (main): Likewise.
30553         * tests/test-symlinkat.c (main): Likewise.
30554         * tests/test-sys_stat.c (main): Likewise.
30555         * tests/test-sys_time.c (main): Likewise.
30556         * tests/test-time.c (main): Likewise.
30557         * tests/test-unistd.c (main): Likewise.
30558         * tests/test-unlink.c (main): Likewise.
30559         * tests/test-unlinkat.c (main): Likewise.
30560         * tests/test-utimens.c (main): Likewise.
30561         * tests/test-utimensat.c (main): Likewise.
30562         * tests/test-version-etc.c (main): Likewise.
30563         * tests/test-wchar.c (main): Likewise.
30564         * tests/test-wctype.c (main): Likewise.
30565         * tests/test-xprintf-posix.c (main): Likewise.
30566         * tests/test-posixtm.c (main): Likewise.
30567         (STREQ): Delete unused macro.
30568         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30569         shadowed variables.
30570         * tests/test-memchr.c (main): Likewise.
30571
30572 2009-10-21  Eric Blake  <ebb9@byu.net>
30573
30574         areadlinkat: avoid failure on older glibc
30575         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30576         rather than mis-comparing 0 against FUNC_RESULT of char*.
30577
30578 2009-10-21  Bruno Haible  <bruno@clisp.org>
30579
30580         * modules/stpncpy (License): Relicense under LGPLv2+.
30581         Reported by David Lutterkort <lutter@redhat.com>.
30582
30583 2009-10-20  Eric Blake  <ebb9@byu.net>
30584
30585         utimensat: work around Solaris 9 bug
30586         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30587         has trailing slash bugs.
30588         * tests/test-lutimens.h (test_lutimens): Enhance test.
30589         * tests/test-utimens.h (test_utimens): Likewise.
30590         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30591         * doc/posix-functions/utimes.texi (utimes): Likewise.
30592         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30593         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30594         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30595         * doc/posix-functions/futimens.texi (futimens): Likewise.
30596
30597         fdutimensat: new module
30598         * modules/fdutimensat: New file.
30599         * lib/fdutimensat.c (fdutimensat): Likewise.
30600         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30601         * MODULES.html.sh (File system functions): Mention module.
30602         * modules/fdutimensat-tests: New test.
30603         * tests/test-fdutimensat.c: Likewise.
30604
30605         doc: regenerate INSTALL
30606         * doc/INSTALL: Reflect recent autoconf update.
30607         * doc/INSTALL.ISO: Likewise.
30608         * doc/INSTALL.UTF-8: Likewise.
30609
30610 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30611
30612         acl: warn if ACL support is not detected
30613         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30614
30615 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30616
30617         * lib/nproc.h: Add extern "C" block for C++.
30618
30619 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30620             Bruno Haible  <bruno@clisp.org>
30621
30622         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30623         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30624         * doc/posix-functions/isalpha.texi: Likewise.
30625         * doc/posix-functions/isblank.texi: Likewise.
30626         * doc/posix-functions/iscntrl.texi: Likewise.
30627         * doc/posix-functions/isdigit.texi: Likewise.
30628         * doc/posix-functions/isgraph.texi: Likewise.
30629         * doc/posix-functions/islower.texi: Likewise.
30630         * doc/posix-functions/isprint.texi: Likewise.
30631         * doc/posix-functions/ispunct.texi: Likewise.
30632         * doc/posix-functions/isspace.texi: Likewise.
30633         * doc/posix-functions/isupper.texi: Likewise.
30634         * doc/posix-functions/isxdigit.texi: Likewise.
30635
30636 2009-10-18  Bruno Haible  <bruno@clisp.org>
30637
30638         Tests for module 'isblank'.
30639         * modules/isblank-tests: New file.
30640         * tests/test-isblank.c: New file.
30641
30642         New module 'isblank'.
30643         * lib/isblank.c: New file.
30644         * m4/isblank.m4: New file.
30645         * modules/isblank: New file.
30646         * doc/posix-functions/isblank.texi: Mention the new module.
30647
30648 2009-10-18  Bruno Haible  <bruno@clisp.org>
30649
30650         New module 'ctype'.
30651         * lib/ctype.in.h: New file.
30652         * m4/ctype.m4: New file.
30653         * modules/ctype: New file.
30654         * doc/posix-headers/ctype.texi: Mention the new module.
30655
30656 2009-10-18  Jim Meyering  <meyering@redhat.com>
30657
30658         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30659         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30660         right after its initialization, rather than farther down.
30661         Keeping these in close proximity makes it easier to ensure
30662         that each such variable is initialized.  E.g.,
30663
30664             LIB_CLOCK_GETTIME=
30665             AC_SUBST([LIB_CLOCK_GETTIME])
30666
30667         This change also increments these serial numbers.
30668         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30669         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30671
30672 2009-10-18  Bruno Haible  <bruno@clisp.org>
30673
30674         Don't let environment variables perturb build.
30675         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30676         (gl_PREREQ_GETHRXTIME): ... not here.
30677
30678 2009-10-18  Bruno Haible  <bruno@clisp.org>
30679
30680         Avoid symlink attack in localcharset module.
30681         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30682         (O_NOFOLLOW): Define fallback.
30683         (get_charset_aliases): Don't open the file if it is a symbolic link.
30684         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30685         gl_FCNTL_H.
30686         (gl_FCNTL_H): Require it.
30687         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30688         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30689         Reported by Fergal Glynn <fglynn@veracode.com>.
30690
30691 2009-10-18  Bruno Haible  <bruno@clisp.org>
30692
30693         Implement nproc for mingw.
30694         * lib/nproc.c: Include <windows.h>
30695         (num_processors): On native Windows platforms, try GetSystemInfo.
30696
30697 2009-10-18  Bruno Haible  <bruno@clisp.org>
30698
30699         Implement nproc for IRIX.
30700         * lib/nproc.c: Include <sys/sysmp.h>.
30701         (num_processors): On IRIX systems, try sysmp.
30702         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30703
30704 2009-10-18  Bruno Haible  <bruno@clisp.org>
30705
30706         Implement nproc for HP-UX.
30707         * lib/nproc.c: Include <sys/pstat.h>
30708         (num_processors): On HP-UX systems, try pstat_getdynamic.
30709         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30710         pstat_getdynamic.
30711
30712 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30713             Bruno Haible  <bruno@clisp.org>
30714
30715         Implement nproc for NetBSD, OpenBSD.
30716         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30717         (ARRAY_SIZE): New macro.
30718         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30719         * m4/nproc.m4: New file.
30720         * modules/nproc (Files): Add m4/nproc.m4.
30721         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30722         (Makefile.am): Instead, augment lib_SOURCES.
30723
30724 2009-10-18  Bruno Haible  <bruno@clisp.org>
30725
30726         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30727         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30728         sys/param.h.
30729
30730 2009-10-16  Eric Blake  <ebb9@byu.net>
30731
30732         utimensat: new module
30733         * modules/utimensat: New file.
30734         * lib/utimensat.c (utimensat): Likewise.
30735         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30736         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30737         so we can work around Linux bugs.
30738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30739         * modules/sys_stat (Makefile.am): Substitute them.
30740         * lib/sys_stat.in.h (utimensat): Declare it.
30741         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30742         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30743         * modules/utimensat-tests: New test.
30744         * tests/test-utimensat.c: Likewise.
30745
30746         utimens: let lutimens work on non-symlinks
30747         * lib/utimens.c (lutimens): Fall back to utimens rather than
30748         failing with ENOSYS, when file is not a symlink.
30749         (utimens): Reduce redirection.
30750         * tests/test-lutimens.h (test_lutimens): Update test to cover
30751         non-symlinks.
30752         * tests/test-utimens.h (test_utimens): Update test to cover
30753         symlinks.
30754         * tests/test-utimens.c (main): Update caller.
30755
30756         utimens: cache whether utimensat syscall works
30757         * lib/utimens.c (utimensat_works_really): New cache variable.
30758         (fdutimens, lutimens): Use it to avoid failing syscall.
30759
30760         test-stat-time, test-utimens: improve portability
30761         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30762         ext4 on alpha, and for cygwin.
30763         * tests/test-utimens-common.h: New file.
30764         (nap): Factor delays into single function.
30765         * tests/test-lutimens.h (test_lutimens): Use new header.
30766         * tests/test-futimens.h (test_futimens): Likewise.
30767         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30768         timestamps to occur from same machine, as was done previously for
30769         test_utimens.
30770         * modules/utimens-tests (Files): Ship new file.
30771         * modules/futimens-tests (Files): Likewise.
30772         Reported in part by Jim Meyering.
30773
30774         sys_stat: sort replacement declarations
30775         * lib/sys_stat.in.h: Sort declarations.
30776         * lib/futimens.c (futimens): Fix typo.
30777
30778 2009-10-15  Jim Meyering  <meyering@redhat.com>
30779
30780         don't let environment settings perturb build
30781         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30782         could cause a configure-time and/or build-time malfunction.
30783         Typically, a configure-time function-in-library test is performed
30784         via code like this:
30785
30786           LIB_VAR=
30787           AC_SUBST([LIB_VAR])
30788           prefix_saved_LIBS=$LIBS
30789             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30790                        [test "$ac_cv_search_FUNC" = "none required" ||
30791                         LIB_VAR=$ac_cv_search_FUNC])
30792           LIBS=$prefix_saved_LIBS
30793
30794         However, in each of the files affected by this change, the LIB_VAR=
30795         initialization was omitted.  Thus, when set in the environment, its
30796         value would propagate into generated Makefiles when FUNC is not found
30797         in LIB_NAME.
30798         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30799         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30801
30802 2009-10-14  Eric Blake  <ebb9@byu.net>
30803
30804         fchdir: avoid infinite recursion in mingw
30805         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30806         recursing.
30807
30808         test-stat-time: port to mingw
30809         * tests/test-stat-time.c (force_unlink): Return a value.
30810         (test_ctime) [W32]: Fix compilation error.
30811         (nap): Don't call usleep with too large an argument.  Use
30812         force_unlink.
30813         * doc/pastposix-functions/usleep.texi (usleep): Document the
30814         portability issue.
30815
30816 2009-10-13  Jim Meyering  <meyering@redhat.com>
30817
30818         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30819         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30820         * modules/pipe-filter-ii: Likewise.
30821         * modules/sys_socket-tests: Likewise.
30822         * modules/tsearch-tests: Likewise.
30823         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30824         (check): Depend on it.
30825
30826 2009-10-12  Eric Blake  <ebb9@byu.net>
30827
30828         utimens-tests: port to NFS file systems
30829         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30830         comparisons to avoid spurious failures from timestamp drift
30831         between NFS machines.
30832
30833 2009-10-12  Eric Blake  <ebb9@byu.net>
30834
30835         stat-time-tests: minor cleanups
30836         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30837         * tests/test-stat-time.c (nap): Separate assignment from call.
30838         Suggested by Paolo Bonzini and Bruno Haible.
30839
30840         sys_stat: guarantee struct timespec
30841         * lib/sys_stat.in.h (includes): Always include <time.h>
30842         * modules/sys_stat (Depends-on): Add time.
30843         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30844         mode_t permission values.
30845         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30846         get at subsecond timestamps.
30847
30848 2009-10-10  Eric Blake  <ebb9@byu.net>
30849
30850         futimens: new module
30851         * modules/futimens: New file.
30852         * lib/futimens.c (futimens): Likewise.
30853         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30854         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30855         we can work around Linux bugs.
30856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30857         * modules/sys_stat (Makefile.am): Substitute them.
30858         * lib/sys_stat.in.h (futimens): Declare it.
30859         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30860         * doc/posix-functions/futimens.texi (futimens): Likewise.
30861         * modules/futimens-tests: New test.
30862         * tests/test-futimens.c: Likewise.
30863
30864         utimens: introduce fdutimens
30865         * lib/utimens.h (fdutimens): New prototype.
30866         * lib/utimens.c (gl_futimens): Move guts...
30867         (fdutimens): ...to new interface.
30868         * tests/test-utimens.c (do_fdutimens): Use it.
30869
30870         utimens: add UTIME_NOW and UTIME_OMIT support
30871         * lib/utimens.c (validate_timespec, update_timespec): New helper
30872         functions.
30873         (gl_futimens, lutimens): Use them.
30874         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30875         stdbool, sys_stat.
30876         (Link): Mention resulting library dependency.
30877         * modules/utimecmp (Link): Likewise.
30878         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30879         (Makefile.am): Pick up library dependency.
30880         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30881         definition.
30882         * tests/test-sys_stat.c: Test the definitions.
30883         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30884         * NEWS: Document library dependency.
30885
30886         utimecmp: support symlink timestamps
30887         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30888         hashing when possible.  Use pathconf when available.
30889         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30890         * modules/utimecmp (Depends-on): Add lstat.
30891
30892         utimens: add lutimens interface
30893         * lib/utimens.c (lutimens): New function.
30894         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30895         * lib/utimens.h (lutimens): Declare new interface.
30896         * tests/test-utimens.c (main): Enhance test.
30897         * tests/test-lutimens.h (test_lutimens): New file.
30898         * modules/utimens-tests (Files): Distribute it.
30899         (Depends-on): Add symlink.
30900         (configure.ac): Check for usleep.
30901
30902         utimens: validate futimens usage
30903         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30904         fewer syscalls on failure later on.  Avoid compiler warning on
30905         mingw.
30906         * modules/utimens (Depends-on): Add dup2.
30907
30908         utimens: add test
30909         * modules/utimens-tests: New test.
30910         * tests/test-utimens.h: New file.
30911         * tests/test-futimens.h: Likewise.
30912         * tests/test-utimens.c: Likewise.
30913
30914         doc: mention timestamp portability issues
30915         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30916         instead.
30917         * doc/posix-functions/utime.texi (utime): Likewise.
30918         * doc/posix-functions/utimes.texi (utimes): Likewise.
30919         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30920         instead.
30921         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30922         module.
30923         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30924         Mention weakness with symlink timestamps.
30925         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30926         to utimensat/futimens instead.
30927         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30928
30929         test-dup2: enhance test
30930         * tests/test-dup2.c (main): Also check AT_FDCWD.
30931
30932         test-stat-time: avoid more spurious failures
30933         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30934         xfs; and avoid race if the two timestamps cross quantization edge.
30935
30936         relocatable: prefer 'file system' over 'filesystem'
30937         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30938         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30939         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30940         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30941         * lib/relocatable.c (compute_curr_prefix): Likewise.
30942
30943 2009-10-10  Jim Meyering  <meyering@redhat.com>
30944
30945         stat-time-tests: check for the usleep function
30946         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30947
30948 2009-10-10  Bruno Haible  <bruno@clisp.org>
30949
30950         * modules/xnanosleep: Put the Link section after the Include section.
30951
30952 2009-10-09  Eric Blake  <ebb9@byu.net>
30953
30954         dup2: work around FreeBSD 6.1 bug
30955         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30956         * doc/posix-functions/dup2.texi (dup2): Document it.
30957         Reported by Nelson H. F. Beebe and Jim Meyering.
30958
30959         test-stat-time: port to buggy NFS clients
30960         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30961         (test_ctime): Also skip test if mtime and ctime are skewed.
30962
30963         maint: prefer 'file system' over 'filesystem'
30964         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30965         * doc/posix-functions/lstat.texi (lstat): Likewise.
30966         * lib/file-has-acl.c (file_has_acl): Likewise.
30967         * lib/fwriteerror.c [TEST]: Likewise.
30968         * tests/test-areadlink.h (test_areadlink): Likewise.
30969         * tests/test-areadlinkat-with-size.c (main): Likewise.
30970         * tests/test-areadlinkat.c (main): Likewise.
30971         * tests/test-canonicalize-lgpl.c (main): Likewise.
30972         * tests/test-canonicalize.c (main): Likewise.
30973         * tests/test-fstatat.c (main): Likewise.
30974         * tests/test-linkat.c (main): Likewise.
30975         * tests/test-lstat.h (test_lstat_func): Likewise.
30976         * tests/test-mkdir.h (test_mkdir): Likewise.
30977         * tests/test-readlink.h (test_readlink): Likewise.
30978         * tests/test-remove.c (main): Likewise.
30979         * tests/test-rename.h (test_rename): Likewise.
30980         * tests/test-renameat.c (main): Likewise.
30981         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30982         * tests/test-symlink.h (test_symlink): Likewise.
30983         * tests/test-symlinkat.c (main): Likewise.
30984         * tests/test-unlink.h (test_unlink_func): Likewise.
30985         * tests/test-unlinkat.c (main): Likewise.
30986
30987         maint: make realtime library usage explicit
30988         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30989         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30990         * modules/settime (Link): Likewise.
30991         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30992
30993         test-stat-time: speed up execution
30994         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30995         warning on mingw.
30996         (nap): New helper function.
30997         (prepare_test): Use it to reduce sleep time.
30998         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30999         execution.
31000         * modules/stat-time-tests (configure.ac): Check for usleep.
31001
31002 2009-10-09  Jim Meyering  <meyering@redhat.com>
31003
31004         selinux-h: always use getfilecon wrappers
31005         * lib/getfilecon.c: New file.
31006         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31007         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31008         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31009         (fgetfilecon): Provide a stub.
31010         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31011         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31012         file unconditionally.
31013         When <selinux/selinux.h> is found, arrange to use wrappers.
31014         * modules/selinux-h (Files): Add getfilecon.c.
31015         (Makefile.am): Substitute include-next-related bits
31016         into the now-always-generated selinux/selinux.h file.
31017         * doc/glibc-functions/lgetfilecon.texi: New file.
31018         * doc/glibc-functions/fgetfilecon.texi: New file.
31019         * doc/glibc-functions/getfilecon.texi: New file.
31020         * doc/glibc-functions/getfilecon-desc.texi: New file.
31021         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31022         which to pull in the new files.
31023         * MODULES.html.sh (Misc): Add selinux-h.
31024
31025 2009-10-08  Jim Meyering  <meyering@redhat.com>
31026
31027         unistd: fix comment typo
31028         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31029
31030 2009-10-08  Eric Blake  <ebb9@byu.net>
31031
31032         areadlink: use SIZE_MAX consistently
31033         * modules/areadlink (Depends-on): Add stdint.
31034         * modules/areadlink-with-size (Depends-on): Likewise.
31035         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31036         gives NULL; drop sys/types, since unistd gives size_t; and add
31037         stdint for SIZE_MAX.
31038         (SIZE_MAX): Rely on headers.
31039         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31040         and add stdint.
31041         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31042         (SIZE_MAX): Likewise.
31043         (INITIAL_BUF_SIZE): Turn into enum.
31044         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31045
31046 2009-10-08  Jim Meyering  <meyering@redhat.com>
31047
31048         areadlinkat: avoid compilation failure
31049         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31050         Fix typo in comment.
31051
31052 2009-10-07  Eric Blake  <ebb9@byu.net>
31053
31054         areadlinkat-with-size: new module
31055         * modules/areadlinkat-with-size: New module.
31056         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31057         * lib/areadlink.h (areadlinkat): Declare it.
31058         * MODULES.html.sh (File system functions): Mention it.
31059         * modules/areadlinkat-with-size-tests: New test.
31060         * tests/test-areadlinkat-with-size.c: New file.
31061
31062         xreadlinkat: new module
31063         * modules/xreadlinkat: New module.
31064         * lib/xreadlinkat.c (xreadlinkat): New file.
31065         * lib/xreadlink.h (xreadlinkat): Declare it.
31066         * MODULES.html.sh (File system functions): Mention it.
31067
31068         areadlinkat: new module
31069         * lib/at-func.c (FUNC_FAIL): New define.
31070         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31071         * modules/areadlinkat: New module.
31072         * lib/linkat.c (areadlinkat): Move...
31073         * lib/areadlinkat.c (areadlinkat): ...to new file.
31074         * lib/areadlink.h (areadlinkat): Declare it.
31075         * modules/linkat (Depends-on): Add areadlinkat.
31076         * MODULES.html.sh (File system functions): Mention it.
31077         * modules/areadlinkat-tests: New test.
31078         * tests/test-areadlinkat.c: New file.
31079
31080         areadlink, areadlink-with-size: add tests
31081         * modules/areadlink-tests: New test.
31082         * modules/areadlink-with-size-tests: Likewise.
31083         * tests/test-areadlink.h: New file.
31084         * tests/test-areadlink.c: Likewise.
31085         * tests/test-areadlink-with-size.c: Likewise.
31086
31087         maint: minor cleanups
31088         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31089         _UNUSED_PARAMETER_ instead.
31090         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31091         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31092         * modules/linkat-tests (Files): Distribute test-link.h.
31093
31094         openat, utimens: whitespace cleanup
31095         * lib/openat.c: Prefer space throughout, rather than mix of 8
31096         spaces vs. tabs.
31097         * lib/at-func.c: Likewise.
31098         * lib/utimens.c: Likewise.
31099
31100         openat: avoid using wrong fd
31101         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31102         working directory chooses same fd.
31103         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31104
31105         mkdir, mkdirat: fix cygwin 1.5.x bug
31106         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31107         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31108         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31109         bug.
31110         (gl_PREREQ_MKDIR): Delete unused macro.
31111         * modules/mkdir (Files): Track file rename.
31112         (configure.ac): Update macro name.
31113         * modules/openat (Depends-on): Add mkdir.
31114         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31115
31116         mkdir, mkdirat: add tests
31117         * modules/mkdir-tests: New test.
31118         * tests/test-mkdir.h: New file.
31119         * tests/test-mkdir.c: Likewise.
31120         * tests/test-mkdirat.c: Likewise.
31121         * modules/openat-tests (Files): Add new files.
31122         (Makefile.am): Run new test.
31123
31124 2009-10-06  Eric Blake  <ebb9@byu.net>
31125
31126         doc: tweak *at function documentation
31127         * doc/posix-functions/faccessat.texi (faccessat): Mention
31128         known issue with replacement.
31129         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31130         * doc/posix-functions/linkat.texi (linkat): Likewise.
31131         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31132         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31133         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31134         * doc/posix-functions/renameat.texi (renameat): Likewise.
31135         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31136
31137         openat: fix GNU/Hurd bug in unlinkat
31138         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31139         broken.
31140         * doc/posix-functions/unlink.texi (unlink): Document this.
31141         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31142
31143         fdopendir: fix GNU/Hurd bug
31144         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31145         allowing non-directory fds.
31146         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31147         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31148         * modules/dirent (Makefile.am): Substitute it.
31149         * lib/dirent.in.h (fdopendir): Declare replacement.
31150         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31151         * tests/test-fdopendir.c (main): Test something other than
31152         /dev/null, since on Hurd that behaves like a directory.
31153
31154         test-symlink: port to GNU/Hurd
31155         * tests/test-symlink.h (test_symlink): Relax expected errno.
31156
31157         doc: tweak more cygwin information
31158         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31159         now compatible with glibc.
31160         * doc/posix-functions/getopt.texi (getopt): Likewise.
31161
31162         getopt-gnu: add another test
31163         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31164         guarantee behavior relied on by m4.
31165         * tests/test-getopt.c (main): Use it.
31166         * modules/getopt-posix-tests (Depends-on): Add setenv.
31167         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31168
31169         getopt: fix compilation on darwin
31170         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31171         include.
31172         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31173         Reported by Ludovic Courtès.
31174
31175 2009-10-06  Bruno Haible  <bruno@clisp.org>
31176
31177         * modules/size_max (Description): Discourage its use.
31178         Reported by Simon Josefsson.
31179
31180 2009-10-06  Jim Meyering  <meyering@redhat.com>
31181
31182         linkat: avoid compilation failure
31183         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31184
31185 2009-10-05  Eric Blake  <ebb9@byu.net>
31186
31187         linkat: support Linux 2.6.17
31188         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31189         linkat on Linux, but allow cache variable override.
31190         * lib/linkat.c (rpl_linkat): Define override.
31191         * modules/linkat (Depends-on): Add symlinkat.
31192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31193         * modules/unistd (Makefile.am): Substitute it.
31194         * lib/unistd.in.h (linkat): Declare replacement.
31195         Reported by Pádraig Brady.
31196
31197         quotearg: port test to systems with C.UTF-8 locale
31198         * tests/test-quotearg.c (struct result_strings): Add another
31199         member, differentiating between C.ASCII and C.UTF-8 handling.
31200         (compare_strings): Add parameter.
31201         (main): Adjust all callers.
31202
31203         getopt: avoid clash with FreeBSD _getopt_internal
31204         * lib/getopt.in.h (_getopt_internal): Override the name.
31205         * lib/getopt_int.h (includes): Pick up any overrides.
31206         Reported by Reuben Thomas.
31207
31208         hash: allow C89 compilation
31209         * lib/hash.c (check_tuning): Move declaration before statement.
31210         Reported by Reuben Thomas.
31211
31212 2009-10-05  Karl Berry  <karl@gnu.org>
31213
31214         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31215
31216 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31217             Bruno Haible  <bruno@clisp.org>
31218
31219         * lib/uname.c (uname): Use a table-driven algorithm to compute
31220         Windows NT versions.
31221
31222 2009-10-04  Bruno Haible  <bruno@clisp.org>
31223
31224         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31225         program_invocation_short_name.
31226         * modules/progname (configure.ac): Test for presence of
31227         program_invocation_short_name.
31228         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31229
31230 2009-10-04  Bruno Haible  <bruno@clisp.org>
31231
31232         * lib/progname.c (set_program_name): Fix comment.
31233         Reported by Jim Meyering.
31234
31235 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31236             Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/uname.c: Include <string.h>.
31239         (uname): Do only one call to GetVersionEx in the common case.
31240
31241 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31242             Bruno Haible  <bruno@clisp.org>
31243
31244         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31245         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31246         (uname): Add support for Windows CE and various non-x86 CPU types.
31247
31248 2009-10-03  Bruno Haible  <bruno@clisp.org>
31249
31250         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31251         invocation to tests/configure.ac.
31252         Reported by Ian Beckwith <ianb@erislabs.net>.
31253
31254 2009-10-02  Eric Blake  <ebb9@byu.net>
31255
31256         fchdir: avoid compiler warning
31257         * lib/fchdir.c (canonicalize_file_name)
31258         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31259
31260         test-open: support mingw errno values
31261         * tests/test-open.h (test_open): Relax test.
31262         * tests/test-fopen.h (test_fopen): Likewise.
31263         * tests/test-openat-safer.c (main): Likewise.
31264
31265         open: fix opening directory on mingw
31266         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31267
31268         test-open: on GNU/Hurd, /dev/null is a directory
31269         * tests/test-fopen.h (main): Rename...
31270         (test_fopen): ...to this.  Use a guaranteed non-directory when
31271         confirming open behavior on trailing slash.
31272         * tests/test-openat-safer.c (main): Likewise.
31273         * tests/test-open.h (main): Likewise....
31274         (test_open): ...to this.
31275         * tests/test-fopen.c (main): Adjust caller.
31276         * tests/test-fopen-safer.c (main): Likewise.
31277         * tests/test-open.c (main): Likewise.
31278         * tests/test-fcntl-safer.c (main): Likewise.
31279         Reported by Samuel Thibault.
31280
31281         rename, fchdir: don't ignore chdir failure
31282         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31283         * lib/rename.c (rpl_rename) [W32]: Likewise.
31284         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31285         an empty destination directory if source cannot be renamed,
31286         although there is still possibility for failure.
31287         * doc/posix-functions/rename.texi (rename): Document the race.
31288         Reported by Jim Meyering.
31289
31290         maint: cleanup whitespace in recent commits
31291         * lib/rename.c (rpl_rename): Remove tabs.
31292         * tests/test-link.h (test_link): Likewise.
31293         * lib/fchdir.c (get_name): Likewise.
31294         Reported by Jim Meyering.
31295
31296 2009-10-02  Ben Pfaff  <blp@gnu.org>
31297
31298         relocatable-prog-wrapper: Add missing dependency on
31299         double-slash-root.
31300         * modules/relocatable-prog-wrapper: Add dependency.
31301         Reported by Ian Beckwith <ianb@erislabs.net>.
31302
31303 2009-10-02  Eric Blake  <ebb9@byu.net>
31304
31305         renameat: fix Solaris bugs
31306         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31307         needed fixing.
31308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31309         * modules/stdio (Makefile.am): Substitute it.
31310         * lib/stdio.in.h (renameat): Declare replacement.
31311         * lib/renameat.c (rpl_renameat): Implement fix.
31312
31313         renameat: new module
31314         * modules/renameat: New file.
31315         * lib/renameat.c (renameat): Likewise.
31316         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31318         * modules/stdio (Makefile.am): Substitute them.
31319         * lib/stdio.in.h (renameat): Declare it.
31320         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31321         * doc/posix-functions/renameat.texi (renameat): Likewise.
31322         * modules/renameat-tests: New test.
31323         * tests/test-renameat.c: Likewise.
31324
31325         rename: fix mingw bugs
31326         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31327         directory overwrite bugs.
31328
31329         rename: fix another cygwin 1.5 bug
31330         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31331         checks.
31332         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31333         unnecessary cygwin workarounds.  Also work around bug with moving
31334         full directory onto an empty one.
31335         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31336
31337         rename-dest-slash: merge into rename module
31338         * modules/rename-dest-slash (Status): Mark obsolete.
31339         (Depends-on): Add rename.
31340         (Files): Let rename do it all.
31341         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31342         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31343         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31344         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31345         * lib/rename.c (rpl_rename): Update comments.
31346
31347         rename: fix cygwin 1.5.x bugs
31348         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31349         * lib/rename.c (rpl_rename): Work around them.
31350         * modules/rename (Depends-on): Add same-inode.
31351
31352         rename: fix Solaris 10 bug
31353         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31354         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31355         was the only bug.
31356
31357         rename: fix Solaris 9 bug
31358         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31359         on non-directory.  Avoid calling exit.
31360         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31361         strdup.
31362         * modules/rename-tests (Depends-on): Drop lstat.
31363         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31364         (gl_PREREQ_RENAME): Delete unused macro.
31365
31366         rename-dest-slash: fix NetBSD bug
31367         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31368         links.
31369         * modules/rename-dest-slash (Depends-on): Add same-inode.
31370
31371         rename-tests: new test, exposes several platform bugs
31372         * modules/rename-tests: New file.
31373         * tests/test-rename.h: Likewise.
31374         * tests/test-rename.c: Likewise.
31375         * doc/posix-functions/rename.texi (rename): Improve documentation,
31376         including bugs that will eventually be fixed in gnulib.
31377
31378 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31379
31380         * lib/uname.c: Include <stdlib.h>
31381         (uname): Assume version info is available.
31382
31383 2009-10-02  Jim Meyering  <meyering@redhat.com>
31384
31385         gnu-web-doc-update: correct --help output
31386         * build-aux/gnu-web-doc-update: Make --help output relevant.
31387
31388         gnu-web-doc-update: add standard options
31389         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31390
31391         gnu-web-doc-update: New module.
31392         Use this script to automatically update the on-line web documentation
31393         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31394         * modules/gnu-web-doc-update: New file, from coreutils.
31395         * build-aux/gnu-web-doc-update: New script.
31396
31397 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31398
31399         link: LoadLibrary is not needed.
31400         * lib/link.c: Use GetModuleHandle.
31401
31402 2009-10-01  Eric Blake  <ebb9@byu.net>
31403
31404         getopt: bump serial number
31405         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31406         change.
31407
31408         tests: tighten link, rmdir, and remove tests
31409         * tests/test-link.h (includes): No need to use <config.h> here.
31410         Clean up if directory hard link was created, otherwise test for
31411         trailing '.'.
31412         * tests/test-linkat.c (main): Simplify.
31413         * tests/test-remove.c (main): Enhance test for trailing '.'.
31414         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31415
31416 2009-10-01  Jim Meyering  <meyering@redhat.com>
31417
31418         maint.mk: requiring "make major" was annoying, for a "minor" release.
31419         What is intended is "stable", to contrast with alpha and beta,
31420         so require "make stable", not "make major".
31421         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31422         (get_tool_versions): Likewise.
31423         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31424
31425 2009-09-30  Ben Pfaff  <blp@gnu.org>
31426
31427         Fix broken build of replacement for Windows tmpfile().
31428         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31429         flags argument added along with the 'mkostemp' module.
31430
31431 2009-09-28  Bruno Haible  <bruno@clisp.org>
31432
31433         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31434         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31435         to 'remove_elt'.
31436         (gl_list_remove): Update.
31437         * lib/gl_list.c (gl_list_remove): Update.
31438         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31439         to 'remove_elt'.
31440         (gl_oset_remove): Update.
31441         * lib/gl_list.c (gl_oset_remove): Update.
31442         Reported by Eric Blake.
31443
31444 2009-09-28  Eric Blake  <ebb9@byu.net>
31445
31446         doc: mention yet more cygwin 1.7 status
31447         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31448         cygwin.
31449         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31450         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31451
31452         argp: fix test failure
31453         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31454         that are not upper-case.  Pass correct range to tolower.
31455
31456 2009-09-27  Jim Meyering  <meyering@redhat.com>
31457
31458         test-yesno: work around sparc-dash here-document infelicity
31459         Without this change, the literal \177 byte in a here document
31460         would make dash 0.5.5.1-3 access uninitialized memory.
31461         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31462         Instead, use a marker, "@", and filter through tr to create the desired
31463         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31464
31465 2009-09-27  Bruno Haible  <bruno@clisp.org>
31466
31467         Disable untested support for new flavours of ACLs on AIX.
31468         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31469         progress.
31470         * lib/set-mode-acl.c (qset_acl): Likewise.
31471
31472 2008-12-07  Bruno Haible  <bruno@clisp.org>
31473
31474         Add support for new flavours of ACLs on AIX. (Untested.)
31475         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31476         (file_has_acl): Add support for newer AIX.
31477         * lib/set-mode-acl.c (qset_acl): Likewise.
31478         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31479         Rainer Tammer <tammer@tammer.net>.
31480
31481 2009-09-26  Eric Blake  <ebb9@byu.net>
31482
31483         argp: fix compilation of getopt
31484         * lib/getopt.in.h (includes): Use different guard than glibc.
31485         Reported by Sergey Poznyakoff.
31486
31487         doc: mention more cygwin 1.7 status
31488         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31489         bug.
31490         * doc/posix-functions/execl.texi (execl): Likewise.
31491         * doc/posix-functions/execle.texi (execle): Likewise.
31492         * doc/posix-functions/execlp.texi (execlp): Likewise.
31493         * doc/posix-functions/execv.texi (execv): Likewise.
31494         * doc/posix-functions/execve.texi (execve): Likewise.
31495         * doc/posix-functions/execvp.texi (execvp): Likewise.
31496         * doc/glibc-functions/canonicalize_file_name.texi
31497         (canonicalize_file_name): Cygwin 1.7 now provides this.
31498         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31499         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31500         on AT_SYMLINK_NOFOLLOW.
31501
31502 2009-09-24  Eric Blake  <ebb9@byu.net>
31503
31504         test-linkat: make test more robust
31505         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31506
31507         getopt: fix inclusion guards for cygwin
31508         * modules/getopt-posix (Depends-on): Add include-next.
31509         (Makefile.am): Substitute more items in replacement header.
31510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31511         <getopt.h>.
31512         * lib/getopt.in.h (includes): Use split inclusion guard, and
31513         prefer <getopt.h> over include <unistd.h> when one is present.
31514         (option): Also override name of 'struct option'.
31515
31516         same-inode: revert prior change; it is not yet ready
31517         * NEWS: Undo mention of this change.
31518         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31519         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31520         * lib/cycle-check.c (cycle_check): Likewise.
31521         * lib/same.c (same_name): Likewise.
31522         * lib/at-func2.c (at_func2): Likewise.
31523
31524 2009-09-23  Eric Blake  <ebb9@byu.net>
31525
31526         linkat: new module
31527         * modules/linkat: New file.
31528         * lib/at-func2.c (at_func2): Likewise.
31529         * lib/linkat.c (linkat): Likewise.
31530         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31531         * lib/openat-priv.h (at_func2): Add declaration.
31532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31533         * modules/unistd (Makefile.am): Substitute them.
31534         * lib/unistd.in.h (linkat): Declare it.
31535         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31536         * doc/posix-functions/linkat.texi (linkat): Likewise.
31537         * doc/posix-functions/link.texi (link): Tweak wording.
31538         * tests/test-link.c (main): Move guts...
31539         * tests/test-link.h (test_link): ...into new file.
31540         * modules/linkat-tests: New test.
31541         * tests/test-linkat.c: Likewise.
31542         * modules/link-tests (Files): Ship new file.
31543         (Depends-on): Add stdbool.
31544
31545         dirname: add library-safe mdir_name
31546         * lib/dirname.h (mdir_name): New prototype.
31547         * lib/dirname.c (dir_name): Move guts...
31548         (mdir_name): ...to new function that avoids xalloc_die.
31549
31550         fchdir: another mingw fix
31551         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31552         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31553         on mingw (where it has not yet been ported), and make it optional
31554         elsewhere.
31555         (_gl_register_fd): Use it.
31556
31557         same-inode: make SAME_INODE tri-state, to port to mingw
31558         * NEWS: Mention this change.
31559         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31560         st_ino always being 0.
31561         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31562         * lib/cycle-check.c (cycle_check): Likewise.
31563         * lib/same.c (same_name): Likewise.
31564
31565         lstat: avoid mingw compilation error
31566         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31567         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31568         lstat ourselves.
31569         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31570         was adequate.
31571         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31572         the checks for lstat.
31573         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31574
31575         link: fix test failure on Solaris 9
31576         * lib/link.c (rpl_link): Don't assume link will catch bogus
31577         trailing slash on source.
31578
31579         test-symlinkat: enhance test
31580         * tests/test-readlink.c (main): Move guts...
31581         * tests/test-readlink.h (test_readlink): ...into new file.
31582         * tests/test-symlink.c (main): Move guts...
31583         * tests/test-symlink.h (test_symlink): ...into new file.
31584         * tests/test-symlinkat.c (main): Use new files for further
31585         coverage.
31586         (do_symlink, do_readlink): New helper functions.
31587         * modules/symlink-tests (Files): Ship new file.
31588         (Depends-on): Add stdbool.
31589         * modules/readlink-tests (Files): Ship new file.
31590         (Depends-on): Add stdbool.
31591         * modules/symlinkat-tests (Files): Use new files.
31592
31593 2009-09-23  Eric Blake  <ebb9@byu.net>
31594
31595         readlink: document portability issue with symlink length
31596         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31597         systems have bogus st_size on symlinks, and mention the
31598         areadlink-with-size module.
31599         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31600         * doc/posix-functions/readlink.texi (readlink): Mention the
31601         areadlink module, and ERANGE failure.
31602         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31603         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31604
31605         readlink: fix Solaris 9 bug with trailing slash
31606         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31607         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31608         * doc/posix-functions/readlink.texi (readlink): Document this.
31609         * modules/readlink-tests: New test.
31610         * tests/test-readlink.c: Likewise.
31611
31612         readlink: fix cygwin 1.5.x bug with return type
31613         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31614         * lib/unistd.in.h (readlink): Use ssize_t.
31615         * lib/readlink.c (readlink): Likewise.
31616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31617         * modules/unistd (Makefile.am): Substitute it.
31618         * lib/unistd.in.h (readlink): Declare replacement.
31619         * doc/posix-functions/readlink.texi (readlink): Document this.
31620
31621         symlink: use throughout gnulib
31622         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31623         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31624         symlink is not used.
31625         * modules/symlinkat (Depends-on): Add symlink.
31626         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31627         * modules/canonicalize-tests (Depends-on): Likewise.
31628         * modules/lstat-tests (Depends-on): Likewise.
31629         * modules/openat-tests (Depends-on): Likewise.
31630         * modules/remove-tests (Depends-on): Likewise.
31631         * modules/rmdir-tests (Depends-on): Likewise.
31632         * modules/unlink-tests (Depends-on): Likewise.
31633         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31634         * tests/test-canonicalize.c (symlink): Likewise.
31635         * tests/test-fstatat.c (symlink): Likewise.
31636         * tests/test-lstat.c (symlink): Likewise.
31637         * tests/test-remove.c (symlink): Likewise.
31638         * tests/test-rmdir.c (symlink): Likewise.
31639         * tests/test-unlink.c (symlink): Likewise.
31640         * tests/test-unlinkat.c (symlink): Likewise.
31641
31642         symlink: new module, for Solaris 9 bug
31643         * modules/symlink: New file.
31644         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31645         * lib/symlink.c: Likewise.
31646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31647         * modules/unistd (Makefile.am): Substitute them.
31648         * lib/unistd.in.h (symlink): Declare replacement.
31649         * MODULES.html.sh (File system functions): Mention it.
31650         * doc/posix-functions/symlink.texi (symlink): Likewise.
31651         * modules/symlink-tests: New test.
31652         * tests/test-symlink.c: Likewise.
31653
31654 2009-09-23  Bruno Haible  <bruno@clisp.org>
31655
31656         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31657         when needed.
31658         Test case: gnulib-tool --import --with-tests atexit inttypes.
31659         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31660
31661 2009-09-23  Bruno Haible  <bruno@clisp.org>
31662
31663         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31664         subcommand, not in a subshell.
31665
31666 2009-09-22  Eric Blake  <ebb9@byu.net>
31667
31668         unistd: sort replacement declarations
31669         * lib/unistd.in.h: Sort declarations.
31670
31671         open, openat: minor optimization
31672         * lib/open.c (open): If open succeeded, len is non-zero.
31673         * lib/openat.c (rpl_openat): Likewise.
31674
31675         link-follow: ensure correct result
31676         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31677         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31678         distinguish between possible failures.
31679
31680 2009-09-21  Eric Blake  <ebb9@byu.net>
31681
31682         fts: avoid compiler warning
31683         * lib/fts.c (dirent_inode_sort_may_be_useful)
31684         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31685
31686 2009-09-19  Bruno Haible  <bruno@clisp.org>
31687
31688         * lib/progreloc.c (canonicalize_file_name): New declaration.
31689
31690 2009-09-19  Eric Blake  <ebb9@byu.net>
31691
31692         link: fix quoting
31693         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31694
31695         openat: fix openat bugs on Solaris 9
31696         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31697         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31698         * modules/openat (Depends-on): Add open.
31699         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31700         * modules/fcntl-h (Makefile.am): Substitute it.
31701         * lib/fcntl.in.h (openat): Declare replacement.
31702         * doc/posix-functions/openat.texi (openat): Document this.
31703
31704         openat: move fstatat and unlinkat into correct files
31705         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31706         compiled.
31707         * lib/openat.c (fstatat, unlinkat): Move...
31708         * lib/fstatat.c (fstatat): ...into correct files.
31709         * lib/unlinkat.c (unlinkat): Likewise.
31710
31711         openat: fix unlinkat bugs on Solaris 9
31712         * lib/unlinkat.c (unlinkat): New file.
31713         * modules/openat (Depends-on): Add unlink.
31714         (Files): Distribute it.
31715         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31716         trailing slash behavior is broken.
31717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31718         * modules/unistd (Makefile.am): Substitute it.
31719         * lib/unistd.in.h (unlinkat): Declare replacement.
31720         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31721
31722         openat: fix fstatat bugs on Solaris 9
31723         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31724         stat.
31725         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31726
31727         test-unlinkat: enhance test, to expose Solaris 9 bug
31728         * tests/test-unlink.c (main): Factor guts...
31729         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31730         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31731         * tests/test-rmdir.c (main): Adjust caller.
31732         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31733         (unlinker): New helper function.
31734         (rmdirat): Enhance check.
31735         * modules/rmdir-tests (Depends-on): Add stdbool.
31736         * modules/unlink-tests (Depends-on): Likewise.
31737         (Files): Add test-unlink.h.
31738         * modules/openat-tests (Files): Likewise.
31739         (Depends-on): Add unlinkdir.
31740
31741         test-fstatat: new test, to expose Solaris 9 bugs
31742         * tests/test-stat.c (main): Factor guts...
31743         * tests/test-stat.h (test_stat_func): ...into new file.
31744         * tests/test-lstat.c (main): Factor guts...
31745         * tests/test-lstat.h (test_lstat_func): ...into new file.
31746         * tests/test-fstatat.c: New file.
31747         * modules/stat-tests (Files): Add test-stat.h.
31748         * modules/lstat-tests (Files): Add test-lstat.h.
31749         (Depends-on): Add stdbool.
31750         * modules/openat-tests (Depends-on): Add pathmax.
31751         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31752         (Makefile.am): Run new test.
31753
31754         remove: new module, for mingw and Solaris 9 bugs
31755         * modules/remove: New file.
31756         * lib/remove.c: Likewise.
31757         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31759         * modules/stdio (Makefile.am): Use them.
31760         * lib/stdio.in.h (remove): Declare replacement.
31761         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31762         * doc/posix-functions/remove.texi (remove): Likewise.
31763         * modules/remove-tests: New test.
31764         * tests/test-remove.c: Likewise.
31765
31766         unlink: new module, for Solaris 9 bug
31767         * modules/unlink: New file.
31768         * lib/unlink.c: Likewise.
31769         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31771         * modules/unistd (Makefile.am): Use them.
31772         * lib/unistd.in.h (stat): Declare replacement.
31773         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31774         * doc/posix-functions/unlink.texi (unlink): Likewise.
31775         * modules/unlink-tests: New test.
31776         * tests/test-unlink.c: Likewise.
31777
31778         lstat: fix Solaris 9 bug
31779         * lib/lstat.c (lstat): Also check for trailing slash on
31780         non-symlink, non-directories.  Use stat module to simplify logic.
31781         * doc/posix-functions/lstat.texi (lstat): Document it.
31782         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31783         (configure.ac): Check for symlink.
31784         * tests/test-lstat.c (main): Add more tests.
31785
31786         stat: add as dependency to other modules
31787         * modules/chown (Depends-on): Add stat.
31788         * modules/euidaccess (Depends-on): Likewise.
31789         * modules/fchdir (Depends-on): Likewise.
31790         * modules/isdir (Depends-on): Likewise.
31791         * modules/link (Depends-on): Likewise.
31792         * modules/lstat (Depends-on): Likewise.
31793         * modules/mkdir-p (Depends-on): Likewise.
31794         * modules/modechange (Depends-on): Likewise.
31795         * modules/open (Depends-on): Likewise.
31796         * modules/readlink (Depends-on): Likewise.
31797         * modules/same (Depends-on): Likewise.
31798
31799         stat: fix Solaris 9 bug
31800         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31801         slash.
31802         * lib/stat.c (rpl_stat): Work around it.
31803         * doc/posix-functions/stat.texi (stat): Update documentation.
31804
31805         stat: new module, for mingw bug
31806         * modules/stat: New file.
31807         * lib/stat.c: Likewise.
31808         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31809         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31810         * modules/sys_stat (Makefile.am): Use them.
31811         * lib/sys_stat.in.h (stat): Declare replacement.
31812         * lib/openat.c (fstatat): Deal with lstat and stat being function
31813         macros.
31814         * modules/openat (Depends-on): Add inline.
31815         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31816         * doc/posix-functions/stat.texi (stat): Likewise.
31817         * modules/stat-tests: New test.
31818         * tests/test-stat.c: Likewise.
31819
31820 2009-09-19  Jim Meyering  <meyering@redhat.com>
31821
31822         syntax-check: detect unnecessary inclusion of canonicalize.h
31823         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31824
31825 2009-09-19  Eric Blake  <ebb9@byu.net>
31826
31827         canonicalize-lgpl: adjust clients to use correct header
31828         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31829         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31830         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31831         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31832         * lib/progreloc.c (includes): Likewise.
31833
31834 2009-09-19  Jim Meyering  <meyering@redhat.com>
31835
31836         test-posixtm.c: correct a comment
31837         * tests/test-posixtm.c: Correct first-line comment.
31838         Spotted by Eric Blake.
31839
31840 2009-09-16  Jim Meyering  <meyering@redhat.com>
31841
31842         posixtm-tests: make T const-correct; add a test case
31843         * tests/test-posixtm.c (T): Declare const.
31844         Add a test for -(2^31+1).
31845         Remove useless can-succeed-only-in-2002 test.
31846
31847         posixtm-tests: adjust the sole failing test
31848         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31849         expected output matches what mktime now produces.  Cross-checked via
31850         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31851
31852         posixtm: move #ifdef'd tests into a new module
31853         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31854         * tests/test-posixtm.c: ... this new file.
31855         * modules/posixtm-tests: New module.
31856
31857 2009-09-19  Eric Blake  <ebb9@byu.net>
31858
31859         openat: simplify use of at-func.c
31860         * lib/at-func.c (includes): Include prerequisites here, to
31861         simplify requirements on client files.
31862         * lib/openat-priv.h: Add double-inclusion guard.
31863         * lib/faccessat.c (includes): Simplify.
31864         * lib/fchmodat.c (includes): Likewise.
31865         * lib/fchownat.c (includes): Likewise.
31866         * lib/mkdirat.c (includes): Likewise.
31867         * lib/mkfifoat.c (includes): Likewise.
31868         * lib/symlinkat.c (includes): Likewise.
31869
31870         openat: allow return of fd 0
31871         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31872         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31873         unistd-safer.
31874         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31875         <fcntl.h>; this module does not leak fds.
31876         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31877         must be allowed to return 0, leaving openat_safer to add the
31878         safety.
31879         (openat_permissive): Avoid writing to just-opened fd 2 if
31880         restoring the current directory fails.
31881         * lib/openat-die.c (openat_restore_fail): Add comment.
31882         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31883         (save_cwd): Guarantee safe fd, but without use of open_safer.
31884         * tests/test-openat.c: New test.
31885         * modules/openat-tests (Files, Makefile.am): Distribute and build
31886         new file.
31887
31888         relocatable-prog-wrapper: fix build
31889         * modules/relocatable-prog-wrapper (Files): Update name of
31890         canonicalize m4 file, broken on 2009-09-17.
31891         Reported by emad hajjar <aleppos@hotmail.com>.
31892
31893 2009-09-19  Bruno Haible  <bruno@clisp.org>
31894
31895         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31896         * lib/safe-alloc.c: Likewise.
31897         Reported by Ian Beckwith <ianb@erislabs.net>.
31898
31899 2009-09-18  Bruno Haible  <bruno@clisp.org>
31900
31901         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31902         Reported by <erobles@sensacd.com.mx>.
31903
31904 2009-09-17  Eric Blake  <ebb9@byu.net>
31905
31906         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31907         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31908         slashes when checking if last component is missing.
31909         * tests/test-canonicalize.c (main): Test this.
31910
31911         canonicalize, canonicalize-lgpl: honor // if distinct from /
31912         * modules/canonicalize (Files): Add double-slash-root.m4.
31913         * modules/canonicalize-lgpl (Files): Likewise.
31914         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31915         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31916         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31917         fallback definition.
31918         (canonicalize_filename_mode): Use it to protect //.
31919         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31920         (__realpath): Likewise.
31921         * tests/test-canonicalize.c (main): Test this.
31922         * tests/test-canonicalize-lgpl.c (main): Likewise.
31923         * modules/canonicalize-tests (Depends-on): Add same-inode.
31924         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31925
31926         canonicalize-lgpl: fix glibc bug with trailing slash
31927         * m4/canonicalize-lgpl.m4: Move contents...
31928         * m4/canonicalize.m4: ...here.
31929         (gl_CANONICALIZE_LGPL): Factor realpath check...
31930         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31931         glibc 2.3.5 bug, fixed 2005-04-27.
31932         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31933         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31934         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31935         * modules/canonicalize-lgpl (Files): Manage file rename.
31936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31937         * modules/stdlib (Makefile.am): Substitute witness.
31938         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31939         is needed.
31940         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31941         replacement is required.
31942         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31943         * doc/glibc-functions/canonicalize_file_name.texi
31944         (canonicalize_file_name): Document this.
31945         * doc/posix-functions/realpath.texi (realpath): Likewise.
31946
31947         canonicalize-lgpl: reject non-directory with trailing slash
31948         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31949         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31950         catches failures in glibc 2.3.5.
31951         * tests/test-canonicalize.c (main): Likewise.
31952
31953         canonicalize-lgpl: use native realpath if it works
31954         * lib/canonicalize-lgpl.c (realpath): Guard with
31955         FUNC_REALPATH_WORKS.
31956         * lib/stdlib.in.h (realpath): Make declaration optional based on
31957         HAVE_REALPATH.
31958         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31959         native realpath works.
31960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31961         * modules/stdlib (Makefile.am): Substitute witness.
31962
31963         canonicalize, canonicalize-lgpl: use <stdlib.h>
31964         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31965         (Include): Mention <stdlib.h>.
31966         (configure.ac): Mention functions we provide.
31967         * modules/canonicalize (configure.ac): Likewise.
31968         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31969         realpath if canonicalize_file_name is missing.
31970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31971         * modules/stdlib (Makefile.am): Substitute witnesses.
31972         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31973         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31974         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31975         * NEWS: Document this.
31976         * doc/glibc-functions/canonicalize_file_name.texi
31977         (canonicalize_file_name): Likewise.
31978         * doc/posix-functions/realpath.texi (realpath): Likewise.
31979         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31980
31981         test-canonicalize: consolidate into single C program
31982         * tests/test-canonicalize.sh: Delete; move setup into...
31983         * tests/test-canonicalize.c (main): ...the program, making it
31984         easier to run in debugger.  Add some tests.
31985         * modules/canonicalize-tests (Files): Remove unused file.
31986         (Depends-on): Add progname.
31987         (configure.ac, Makefile.am): Simplify.
31988
31989         test-canonicalize-lgpl: consolidate into single C program
31990         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31991         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31992         easier to run in debugger.  Add some tests.
31993         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31994         (configure.ac, Makefile.am): Simplify.
31995
31996         canonicalize: avoid resolvepath
31997         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31998         unnecessary checks.
31999         * lib/canonicalize.c (includes): Simplify.
32000         (canonicalize_file_name): Drop resolvepath implementation.
32001         * modules/canonicalize (Depends-on): Drop filenamecat.
32002
32003         canonicalize: don't lose errno
32004         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32005         over calls to free.
32006
32007         canonicalize: simplify errno handling
32008         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32009         assignment.
32010
32011         canonicalize, canonicalize-lgpl: update module dependencies
32012         * modules/canonicalize (Depends-on): Add extensions, lstat,
32013         pathmax, stdlib.
32014         (Files): Drop pathmax.h.
32015         (configure.ac): Adjust macro name.
32016         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32017         lstat, stdlib, sys_stat.
32018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32019         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32020         extensions.
32021         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32022         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32023         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32024         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32025         declaration, if available.
32026         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32027         we can rely on the readlink module.
32028         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32029         (includes): Use <unistd.h> unconditionally.
32030
32031 2009-09-17  Eric Blake  <ebb9@byu.net>
32032
32033         maint: make Include sections of modules consistent
32034         * modules/alloca: Use only header name; no need to list #include.
32035         * modules/alloca-opt: Likewise.
32036         * modules/arpa_inet: Likewise.
32037         * modules/canon-host: Likewise.
32038         * modules/configmake: Likewise.
32039         * modules/dirent: Likewise.
32040         * modules/eealloc: Likewise.
32041         * modules/environ: Likewise.
32042         * modules/fchdir: Likewise.
32043         * modules/fcntl: Likewise.
32044         * modules/fcntl-h: Likewise.
32045         * modules/gethrxtime: Likewise.
32046         * modules/gettime: Likewise.
32047         * modules/ignore-value: Likewise.
32048         * modules/inet_ntop: Likewise.
32049         * modules/inet_pton: Likewise.
32050         * modules/inttypes: Likewise.
32051         * modules/isnand-nolibm: Likewise.
32052         * modules/isnanf-nolibm: Likewise.
32053         * modules/mbchar: Likewise.
32054         * modules/mbfile: Likewise.
32055         * modules/mbiter: Likewise.
32056         * modules/mbuiter: Likewise.
32057         * modules/netdb: Likewise.
32058         * modules/netinet_in: Likewise.
32059         * modules/nproc: Likewise.
32060         * modules/pagealign_alloc: Likewise.
32061         * modules/poll: Likewise.
32062         * modules/printf-frexp: Likewise.
32063         * modules/pthread: Likewise.
32064         * modules/putenv: Likewise.
32065         * modules/random_r: Likewise.
32066         * modules/relocatable-prog: Likewise.
32067         * modules/search: Likewise.
32068         * modules/select: Likewise.
32069         * modules/selinux-h: Likewise.
32070         * modules/settime: Likewise.
32071         * modules/signal: Likewise.
32072         * modules/size_max: Likewise.
32073         * modules/socklen: Likewise.
32074         * modules/ssize_t: Likewise.
32075         * modules/stdarg: Likewise.
32076         * modules/stdbool: Likewise.
32077         * modules/stddef: Likewise.
32078         * modules/stdint: Likewise.
32079         * modules/stdio: Likewise.
32080         * modules/stdlib: Likewise.
32081         * modules/string: Likewise.
32082         * modules/strings: Likewise.
32083         * modules/sys_file: Likewise.
32084         * modules/sys_ioctl: Likewise.
32085         * modules/sys_select: Likewise.
32086         * modules/sys_socket: Likewise.
32087         * modules/sys_stat: Likewise.
32088         * modules/sys_time: Likewise.
32089         * modules/sys_times: Likewise.
32090         * modules/sys_utsname: Likewise.
32091         * modules/sys_wait: Likewise.
32092         * modules/sysexits: Likewise.
32093         * modules/time: Likewise.
32094         * modules/times: Likewise.
32095         * modules/tmpfile: Likewise.
32096         * modules/trim: Likewise.
32097         * modules/unistd: Likewise.
32098         * modules/wchar: Likewise.
32099         * modules/wctype: Likewise.
32100
32101 2009-09-17  Bruno Haible  <bruno@clisp.org>
32102
32103         Make getdate.y compile on QNX and NetBSD 5 / i386.
32104         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32105         TIME_T_FITS_IN_LONG_INT.
32106         * lib/getdate.y (long_time_t): New type.
32107         (relative_time): Change type of 'seconds' field to long_time_t.
32108         (get_date): Update types of local variables. Check against overflow
32109         during conversion from long_time_t to time_t.
32110         Reported by Matt Kraai <kraai@ftbfs.org>
32111         and Hasso Tepper <hasso@netbsd.org>.
32112
32113 2009-09-17  Bruno Haible  <bruno@clisp.org>
32114
32115         * modules/COPYING: Update copyright years.
32116         * modules/README: Likeiwse.
32117         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32118         Reported by Ian Beckwith <ianb@erislabs.net>.
32119
32120 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32121
32122         * users.txt: Update references for gnuit package.
32123
32124 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32125
32126         * m4/getdelim.m4: Fix typo in copyright line.
32127
32128 2009-09-17  Bruno Haible  <bruno@clisp.org>
32129
32130         * lib/atoll.c: Use the standard header with GPL copyright.
32131         * lib/argz.in.h: Likewise.
32132         * lib/glob.c: Likewise.
32133         * lib/glob-libc.h: Likewise.
32134         * lib/random_r.c: Likewise.
32135         * lib/siglist.h: Likewise.
32136         * lib/strsignal.c: Likewise.
32137         Reported by Ian Beckwith <ianb@erislabs.net>.
32138
32139 2009-09-17  Eric Blake  <ebb9@byu.net>
32140
32141         rmdir: ensure correct dependency order
32142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32143
32144 2009-09-17  Bruno Haible  <bruno@clisp.org>
32145
32146         Disable assertion that fails on NetBSD 5 / i386.
32147         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32148         Reported by Sam Steingold <sds@gnu.org>
32149         and Hasso Tepper <hasso@netbsd.org>.
32150
32151 2009-09-16  Eric Blake  <ebb9@byu.net>
32152
32153         unlinkdir: port to mingw
32154         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32155         on which no one can unlink a directory.
32156
32157         stdlib: sort witness names
32158         * modules/stdlib (Makefile.am): Sort replacements.
32159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32160         * lib/stdlib.in.h: Likewise.
32161
32162         parse-duration-tests: avoid link failure
32163         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32164         LIBINTL.
32165         Reported by Tom G. Christensen.
32166
32167         openat-tests: ensure unlinkat behaves like rmdir
32168         * tests/test-rmdir.c (main): Factor guts...
32169         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32170         * modules/rmdir-tests (Files): Ship new file.
32171         * modules/openat-tests: New test.
32172         * tests/test-unlinkat.c: Likewise.
32173
32174         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32175         * modules/rmdir-errno (Status, Notice): Now obsolete.
32176
32177         rmdir: work around cygwin 1.5.x and mingw bugs
32178         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32179         * lib/rmdir.c (rmdir): Work around it.
32180         * modules/rmdir (Status, Notice): No longer obsolete.
32181         (Files): Add dos.m4.
32182         (Depends-on): Add unistd.
32183         (configure.ac): Set witnesses.
32184         (License): Relax to LGPLv2+.
32185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32186         * modules/unistd (Makefile.am): Substitute witnesses.
32187         * lib/unistd.in.h (rmdir): Declare replacement.
32188         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32189         * modules/rmdir-tests: New tests.
32190         * tests/test-rmdir.c: Likewise.
32191
32192 2009-09-15  Eric Blake  <ebb9@byu.net>
32193
32194         fchdir: improve use of replacement functions
32195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32196         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32197         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32198         REPLACE_CLOSEDIR.
32199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32200         * modules/sys_stat (Makefile.am): Substitute correct witness.
32201         * modules/dirent (Makefile.am): Likewise.
32202         * modules/unistd (Makefile.am): Likewise.
32203         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32204         * lib/unistd.in.h (dup): Likewise.
32205         * lib/sys_stat.in.h (fstat): Likewise.
32206
32207         maint: ignore gnulib-tool temp files
32208         * .gitignore: Ignore files created during gnulib-tool --test.
32209
32210 2009-09-13  Jim Meyering  <meyering@redhat.com>
32211
32212         posixtm: don't reject a time that specify "60" as the number of seconds
32213         * lib/posixtm.c (posixtime): The code to reject invalid dates
32214         would also reject a time specified with the .60 suffix.
32215         But POSIX allows that, in order to accommodate leap seconds.
32216         So don't reject it.
32217         (main): Adjust tests accordingly.
32218         * modules/posixtm (Depends-on): Add stpcpy.
32219
32220 2009-09-11  Jim Meyering  <meyering@redhat.com>
32221
32222         announce-gen: include [$release_type] in emitted Subject:
32223         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32224         e.g., [stable] in the emitted Subject: line.
32225
32226 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32227
32228         Remove obsolete macros from several modules.
32229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32230         obsolete Autoconf macros with their modern counterparts.
32231         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32232         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32234         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32235         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32236         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32238         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32239         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32240         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32241         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32243         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32244         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32245         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32246         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32247         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32248         * m4/time_r.m4 (gl_TIME_R): Likewise.
32249         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32250         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32251         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32252
32253         Fix copyright header in build-aux scripts.
32254         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32255         recommendation.
32256         * build-aux/ncftpput-ftp: Likewise.
32257         * build-aux/update-copyright: Likewise.
32258
32259 2009-09-09  Eric Blake  <ebb9@byu.net>
32260
32261         test-link: allow Linux choice of errno
32262         * tests/test-link.c (main): Relax test for alternate error.
32263
32264         strndup: fix improper m4 caching
32265         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32266         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32267         (gl_PREREQ_STRNDUP): Delete.
32268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32269         * modules/string (Makefile.am): Substitute it.
32270         * lib/string.in.h (strndup): Modernize prototype.
32271
32272         getcwd: port to mingw
32273         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32274         different from the POSIX assumptions made throughout the getcwd
32275         module; fortunately, the mingw getcwd does not need replacement.
32276         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32277         * modules/getcwd-tests: New test.
32278         * tests/test-getcwd.c: Likewise.
32279
32280         link: fix platform bugs
32281         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32282         * lib/link.c (link): Work around them.  Fix related mingw bug.
32283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32284         * modules/unistd (Makefile.am): Substitute it.
32285         * lib/unistd.in.h (link): Declare replacement.
32286         * doc/posix-functions/link.texi (link): Document this.
32287         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32288
32289         test-link: consolidate into single C program, test more cases
32290         * tests/test-link.sh: Delete.
32291         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32292         at least Cygwin and Solaris.
32293         * modules/link-tests (Files): Remove unused file.
32294         (Depends-on): Add errno, sys_stat.
32295         (Makefile.am): Simplify.
32296
32297 2009-09-08  Bruno Haible  <bruno@clisp.org>
32298
32299         Work around towlower, towupper bug on mingw.
32300         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32301         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32302         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32303         * doc/posix-functions/towupper.texi: Likewise.
32304         Reported by Eric Blake.
32305
32306 2009-09-08  Jim Meyering  <meyering@redhat.com>
32307
32308         build: don't try to run autoheader if we don't use it
32309         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32310         is not used in configure.ac.
32311
32312 2009-09-08  Eric Blake  <ebb9@byu.net>
32313
32314         euidaccess: fix compilation error
32315         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32316
32317         rawmemchr: relax license
32318         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32319         okay.
32320         Reported by Jim Meyering.
32321
32322         mkfifoat: new module
32323         * modules/mkfifoat: New file.
32324         * lib/mkfifoat.c: Likewise.
32325         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32327         * modules/sys_stat (Makefile.am): Use them.
32328         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32329         * MODULES.html.sh (File system functions): Mention module.
32330         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32331         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32332         * modules/mkfifoat-tests: New test.
32333         * tests/test-mkfifoat.c: Likewise.
32334
32335         strchrnul: relax license
32336         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32337         okay.
32338         Reported by Jim Meyering.
32339
32340 2009-09-08  Eric Blake  <ebb9@byu.net>
32341
32342         fstatat: fix compilation on Solaris
32343         * lib/fstatat.c (includes): Add fcntl.h.
32344         Reported by Pádraig Brady.
32345
32346 2009-09-07  Eric Blake  <ebb9@byu.net>
32347
32348         rename: modernize replacement
32349         * modules/rename (Depends-on): Add stdio.
32350         (configure.ac): Declare witness.
32351         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32352         stdio take care of replacement.
32353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32354         * modules/stdio (Makefile.am): Substitute them.
32355         * lib/stdio.in.h (rename): Declare replacement.
32356         * lib/rename.c (includes): Allow cross-compilation to non-windows
32357         machines.
32358         * doc/posix-functions/rename.texi (rename): Improve
32359         documentation.
32360
32361         stdio: sort witness names
32362         * modules/stdio (Makefile.am): Sort replacements.
32363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32364         * lib/stdio.in.h: Likewise.
32365
32366         getcwd: minor cleanups
32367         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32368         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32369
32370         openat: provide more convenience names
32371         * modules/faccessat (configure.ac): Add C witness.
32372         * lib/unistd.in.h (readlinkat): Fix typo.
32373         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32374         convenience wrappers.
32375         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32376         wrappers in syntax checks.
32377
32378 2009-09-06  Eric Blake  <ebb9@byu.net>
32379
32380         doc: fix comments in recent patches
32381         * lib/faccessat.c: Mention correct function.
32382         * lib/fchmodat.c: Likewise.
32383         * lib/fchownat.c: Likewise.
32384         * lib/symlinkat.c: Likewise.
32385         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32386         constants.
32387
32388         faccessat, symlinkat: continue cleanup of previous patch
32389         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32390         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32391         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32393         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32394         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32395         set.
32396
32397 2009-09-06  Bruno Haible  <bruno@clisp.org>
32398
32399         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32400         (fstatat): Declare if GNULIB_FSTATAT is set.
32401         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32402         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32403         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32404         * modules/fcntl-h (Files): Remove m4/openat.m4.
32405         * modules/sys_stat (Files): Remove m4/openat.m4.
32406         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32407         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32408         * modules/unistd (Files): Remove m4/openat.m4.
32409         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32410         GNULIB_OPENAT.
32411         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32412         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32413         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32414         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32415         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32416         gl_OPENAT_DEFAULTS.
32417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32418         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32419         Don't require gl_OPENAT_DEFAULTS.
32420         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32421         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32422         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32423         (gl_OPENAT_DEFAULTS): Remove macro.
32424
32425 2009-09-06  Bruno Haible  <bruno@clisp.org>
32426
32427         * modules/openat (configure.ac): Remove unneeded witness.
32428
32429 2009-09-06  Bruno Haible  <bruno@clisp.org>
32430
32431         Set errno to ENOSYS when a function is entirely unsupported.
32432         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32433         EOPNOTSUPP.
32434         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32435         * modules/chown (Depends-on): Remove errno.
32436
32437 2009-09-06  Bruno Haible  <bruno@clisp.org>
32438
32439         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32440
32441 2009-09-06  Bruno Haible  <bruno@clisp.org>
32442
32443         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32444
32445 2009-09-06  Ben Pfaff  <blp@gnu.org>
32446             Bruno Haible  <bruno@clisp.org>
32447
32448         Work around a glibc bug in strtok_r.
32449         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32450         Undefine if UNDEFINE_STRTOK_R is set.
32451         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32453         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32455         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32456         UNDEFINE_STRTOK_R.
32457         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32458
32459 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32460
32461         exclude: minor fix
32462         * lib/exclude.c: Include wctype.h
32463
32464 2009-09-06  Akim Demaille  <demaille@gostai.com>
32465
32466         bootstrap: improve error message
32467         * build-aux/bootstrap (find_tool): Upon failure, report the list
32468         of candidates.
32469         Honor the initial value of the envvar.
32470
32471 2009-09-05  Eric Blake  <ebb9@byu.net>
32472
32473         symlinkat: new module
32474         * modules/symlinkat: New file.
32475         * lib/symlinkat.c: Likewise.
32476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32478         * modules/unistd (Makefile.am): Use them.
32479         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32480         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32481         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32482         * MODULES.html.sh (File system functions): Mention module.
32483         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32484         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32485         * modules/symlinkat-tests: New test.
32486         * tests/test-symlinkat.c: Likewise.
32487
32488         test-openat-safer: add more checks
32489         * tests/test-openat-safer.c (main): Check more code paths.
32490
32491 2009-09-05  Jim Meyering  <meyering@redhat.com>
32492
32493         syntax-check: detect unnecessary inclusion of openat.h
32494         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32495
32496 2009-09-05  Bruno Haible  <bruno@clisp.org>
32497
32498         Support towlower, towupper.
32499         * doc/posix-functions/towlower.texi: Mention module wctype.
32500         * doc/posix-functions/towupper.texi: Likewise.
32501         * lib/wctype.in.h (towlower, towupper): New functions.
32502         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32503         (ASSERT): New macro.
32504         (e): New variable.
32505         (main): Test also towlower, towupper. Test WEOF argument.
32506         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32507
32508 2009-09-05  Bruno Haible  <bruno@clisp.org>
32509
32510         Fix conversion behaviour when the input is invalid.
32511         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32512         mark occurring in first pass of indirect conversion.
32513         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32514         input.
32515         Found by clang's static analyzer.
32516
32517 2009-09-05  Bruno Haible  <bruno@clisp.org>
32518
32519         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32520         where direct conversion is possible.
32521
32522 2009-09-04  Eric Blake  <ebb9@byu.net>
32523
32524         openat: fail with ENOENT on empty name
32525         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32526         buffer.
32527
32528         link-follow: fix logic bug in prior patch
32529         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32530         reversed sense of yes and no in prior patch.  Avoid confusing
32531         compilation failure with desired semantics.
32532
32533         link-follow: accomodate mingw and cross-compilation
32534         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32535         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32536         cross-compilation results to -1, to make linkat easier to
32537         implement when cross-compiling.  Trivially support mingw.
32538         * modules/link-follow (configure.ac): Call new name.
32539         * NEWS: Mention this.
32540
32541 2009-09-03  Eric Blake  <ebb9@byu.net>
32542
32543         faccessat: compile replacement
32544         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32545         needed.
32546
32547         fts: fix compilation error
32548         * lib/fts.c (includes): Re-add "openat.h", for
32549         openat_needs_fchdir.
32550
32551         faccessat: new module
32552         * modules/faccessat: New file.
32553         * lib/faccessat.c: Likewise.
32554         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32556         * modules/unistd (Makefile.am): Use it.
32557         * lib/unistd.in.h (faccessat): Declare it.
32558         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32559         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32560         * MODULES.html.sh (File system functions): Mention it.
32561         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32562         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32563
32564         euidaccess: prefer POSIX over non-standard implementation
32565         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32566         * lib/euidaccess.c (euidaccess): Use it if available.
32567
32568         openat: make template easier to use
32569         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32570         AT_FUNC_F2 to be undefined.
32571         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32572         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32573         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32574         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32575         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32576         Likewise.
32577         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32578         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32579         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32580         Likewise.
32581
32582         openat: declare in POSIX headers
32583         * NEWS: Mention this.
32584         * modules/openat (configure.ac): Declare witnesses.
32585         (Depends-on): Add fcntl-h, sys_stat, unistd.
32586         (Include): Mention correct headers.
32587         * modules/fcntl-h (Depends-on): Add link-warning.
32588         (Files): Add openat.m4.
32589         (Makefile.am): Substitute witnesses.
32590         * modules/sys_stat (Files, Makefile.am): Likewise.
32591         * modules/unistd (Files, Makefile.am): Likewise.
32592         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32593         (gl_OPENAT_DEFAULTS): New macro.
32594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32597         (SYS_STAT_H): Remove unused variable.
32598         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32599         * lib/fcntl--.h (includes): Remove unneeded header.
32600         * lib/openat-safer.c (includes): Likewise.
32601         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32602         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32603         appropriate headers.
32604         (__OPENAT_PREFIX): Delete.
32605         * lib/fcntl.in.h (openat): Provide declaration.
32606         (AT_FDCWD): Fix Solaris bug.
32607         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32608         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32609         * lib/fchmodat.c (includes):  Adjust to find declaration.
32610         * lib/fchownat.c (includes): Likewise.
32611         * lib/mkdirat.c (includes): Likewise.
32612         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32613         still visible.
32614
32615 2009-09-02  Eric Blake  <ebb9@byu.net>
32616
32617         errno: use consistently
32618         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32619         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32620         * lib/canonicalize.c (ELOOP): Likewise.
32621         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32622         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32623         * lib/lchown.c (EOPNOTSUPP): Likewise.
32624         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32625         * lib/savewd.c (ESTALE): Likewise.
32626         * lib/settime.c (ENOSYS): Likewise.
32627         * lib/utimens.c (ENOSYS): Likewise.
32628         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32629         * lib/chdir-safer.c (ELOOP): Likewise.
32630         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32631         * modules/c-stack (Depends-on): Add errno.
32632         * modules/canonicalize (Depends-on): Likewise.
32633         * modules/chdir-safer (Depends-on): Likewise.
32634         * modules/fdopendir (Depends-on): Likewise.
32635         * modules/inet_ntop (Depends-on): Likewise.
32636         * modules/inet_pton (Depends-on): Likewise.
32637         * modules/lchown (Depends-on): Likewise.
32638         * modules/openat (Depends-on): Likewise.
32639         * modules/savewd (Depends-on): Likewise.
32640         * modules/settime (Depends-on): Likewise.
32641         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32642
32643         fts: avoid leaking fds
32644         * modules/fts (Depends-on): Add cloexec.
32645         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32646         flag.
32647
32648         fts: make directory fds more robust
32649         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32650         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32651
32652         backupfile, chdir-long, fts, savedir: make safer
32653         * lib/backupfile.c (includes): Use "dirent--.h", since
32654         numbered_backup can write to stderr during readdir.
32655         * lib/savedir.c (includes): Likewise.
32656         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32657         emulation can write to stderr on failure.
32658         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32659         * lib/getcwd.c: Document why opendir_safer is unused.
32660         * lib/glob.c: Likewise.
32661         * lib/scandir.c: Likewise.
32662         * lib/openat-proc.c: Likewise, for open_safer.
32663         * modules/backupfile (Depends-on): Add dirent-safer.
32664         * modules/savedir (Depends-on): Likewise.
32665         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32666         * modules/chdir-long (Depends-on): Add openat-safer.
32667
32668         openat-safer: new module
32669         * modules/openat-safer: New file.
32670         * lib/openat-safer.c: Likewise.
32671         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32672         * lib/fcntl-safer.h (openat_safer): Declare.
32673         * lib/fcntl--.h (openat): Override.
32674         * MODULES.html.sh (File descriptor based I/O): Mention it.
32675         * lib/openat.h: Add double-inclusion guards.
32676         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32677         "fcntl--.h", so we can implement openat.
32678         * modules/openat-safer-tests: New test.
32679         * tests/test-openat-safer.c: New file.
32680
32681         dirent-safer: new module
32682         * modules/dirent-safer: New file.
32683         * lib/dirent--.h: Likewise.
32684         * lib/dirent-safer.h: Likewise.
32685         * lib/opendir-safer.c: Likewise.
32686         * m4/dirent-safer.m4: Likewise.
32687         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32688         * modules/dirent-safer-tests: New test.
32689         * tests/test-dirent-safer.c: New file.
32690         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32691
32692         fdopendir: optimize on mingw
32693         * lib/unistd.in.h (_gl_directory_name): New prototype.
32694         * lib/fchdir.c (_gl_directory_name): Implement it.
32695         (fchdir): Use it to simplify implementation.
32696         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32697         fchdir, when available, to avoid calling [f]chdir().
32698
32699         fdopendir: split into its own module
32700         * lib/openat.c (fdopendir): Move...
32701         * lib/fdopendir.c: ...into new file.
32702         * modules/fdopendir: New module.
32703         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32704         * modules/openat (Depends-on): Add fdopendir.
32705         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32706         fdopendir here.
32707         * modules/savedir (Depends-on): Only need fdopendir, not full
32708         openat.
32709         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32710         * lib/openat.h (fdopendir): Drop prototype.
32711         * lib/dirent.in.h (fdopendir): Provide prototype.
32712         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32713         * modules/dirent (Makefile.am): Substitute them.
32714         * MODULES.html.sh (File system functions): Mention it.
32715         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32716         * modules/fdopendir-tests: New file.
32717         * tests/test-fdopendir.c: Likewise.
32718
32719         fchdir: use more consistent macro convention
32720         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32721         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32722         REPLACE_FCHDIR, rather than relying on config.h macros.
32723         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32724         inside a single make-time REPLACE_FCHDIR block, rather than using
32725         the config.h FCHDIR_REPLACEMENT.
32726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32727         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32728         Manage fstat replacement.
32729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32730         REPLACE_FCHDIR.
32731         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32732         (Makefile.am): Substitute REPLACE_FCHDIR.
32733         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32734         FCHDIR_REPLACEMENT.
32735         * lib/dup-safer.c (dup_safer): Likewise.
32736         * lib/dup2.c (rpl_dup2): Likewise.
32737         * lib/dup3.c (rpl_dup3): Likewise.
32738         * lib/open.c (rpl_open): Likewise.
32739
32740         fchdir: simplify error handling, and support dup3
32741         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32742         stdbool, malloc-posix, realloc-posix.
32743         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32744         (ensure_dirs_slot): Return false on allocation failure.
32745         (rpl_dup2): Delete.
32746         (_gl_register_dup): New function.
32747         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32748         (_gl_register_fd): Close fd on allocation failure.
32749         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32750         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32751         prototype.
32752         (rpl_dup2_fchdir): Delete prototype.
32753         * lib/open.c (open): Update caller.
32754         * lib/dup2.c (dup2): Track fchdir metadata.
32755         * lib/dup3.c (dup3): Likewise.
32756         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32758
32759 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32760
32761         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32762         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32763         don't pass arguments to AC_OUTPUT.
32764
32765 2009-09-02  Bruno Haible  <bruno@clisp.org>
32766
32767         * modules/mkdtemp (License): Relicense under LGPLv2+.
32768         Reported by Paolo Bonzini.
32769
32770 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32771
32772         Replace uses of obsolete autoconf macros in Jim's modules.
32773         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32774         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32775         can evoke a warning from autoconf when run with -Wobsolete
32776         enabled.  They were declared obsolete for good reasons (see
32777         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32778         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32779         should not continue using the deprecated macros.
32780         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32781         obsolete Autoconf macros with modern counterparts.
32782         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32783         * m4/dos.m4 (gl_AC_DOS): Likewise.
32784         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32785         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32786         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32787         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32788         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32789         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32790         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32791         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32792         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32793         Likewise.
32794         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32797         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32798         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32799         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32800
32801 2009-09-01  Eric Blake  <ebb9@byu.net>
32802
32803         fchdir: fix off-by-one bug in previous patch
32804         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32805         (_gl_unregister_fd): Delete useless if.
32806
32807 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32808
32809         maint.mk: sort the list of syntax-check rules
32810         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32811         easier to get a sense of progress when the rules are run sequentially
32812         and take a long time.
32813
32814 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32815
32816         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32817         * modules/netinet_in: Likewise.
32818         * modules/sys_file: Likewise.
32819         * modules/sys_ioctl: Likewise.
32820         * modules/sys_select: Likewise.
32821         * modules/sys_socket: Likewise.
32822         * modules/sys_stat: Likewise.
32823         * modules/sys_time: Likewise.
32824         * modules/sys_times: Likewise.
32825         * modules/sys_utsname: Likewise.
32826         * modules/sys_wait: Likewise.
32827
32828 2009-09-01  Jim Meyering  <meyering@redhat.com>
32829
32830         fts: help ensure that return values are not ignored
32831         * lib/fts_.h (__GNUC_PREREQ): Define.
32832         (__attribute_warn_unused_result__): Define.
32833         (fts_children, fts_close, fts_open, fts_read): Declare with
32834         __attribute_warn_unused_result__.
32835
32836         fts: fts_close now fails also when closing a dir file descriptor fails
32837         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32838         and propagate to caller, along with errno.
32839
32840         announce-gen: correct formatting in --help output
32841         * build-aux/announce-gen (usage): Move the one-line description in
32842         --help output "up", to where it belongs, just after Usage:.
32843
32844 2009-08-31  Eric Blake  <ebb9@byu.net>
32845
32846         fchdir: port to mingw
32847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32848         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32849         opened, then use a substitute.
32850         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32851         replacement.
32852         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32853         (_gl_register_fd): No need to check stat if open already filters
32854         all directories.
32855         (fchdir): Fix error condition to match POSIX.
32856         * modules/fchdir (Depends-on): Add sys_stat.
32857         * doc/posix-functions/open.texi (open): Document the limitation.
32858         * modules/fchdir-tests: New file.
32859         * tests/test-fchdir.c: Likewise.
32860
32861         canonicalize: allow cross-testing from cygwin to mingw
32862         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32863         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32864         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32865         Likewise.
32866         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32867         target does not support symlinks.
32868         * tests/test-canonicalize-lgpl.sh: Likewise.
32869
32870         chown: avoid compilation warning on mingw
32871         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32872         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32873         mingw.
32874         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32875         * modules/chown (Depends-on): Add errno.
32876
32877 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32878
32879         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32880         command.
32881
32882 2009-08-31  Jim Meyering  <meyering@redhat.com>
32883
32884         canonicalize: remove useless initialization
32885         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32886         initialization of local, "end".
32887
32888 2009-08-30  Bruno Haible  <bruno@clisp.org>
32889
32890         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32891         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32892         ENOSYS.
32893
32894 2009-08-30  Bruno Haible  <bruno@clisp.org>
32895
32896         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32897         /usr/xpg4/bin/tr when it exists.
32898         * tests/test-pipe-filter-gi1.sh: Likewise.
32899
32900 2009-08-30  Bruno Haible  <bruno@clisp.org>
32901
32902         Work around deficient /usr/bin/id program on Solaris.
32903         * tests/test-file-has-acl.sh (ID): New variable.
32904         * tests/test-set-mode-acl.sh (ID): Likewise.
32905         * tests/test-copy-acl.sh (ID): Likewise.
32906         * tests/test-copy-file.sh (ID): Likewise.
32907
32908 2009-08-30  Bruno Haible  <bruno@clisp.org>
32909
32910         New module 'xstriconveh'.
32911         * lib/xstriconveh.h: New file.
32912         * lib/xstriconveh.c: New file.
32913         * modules/xstriconveh: New file.
32914
32915 2009-08-30  Bruno Haible  <bruno@clisp.org>
32916
32917         Make it easier to use mem_cd_iconveh.
32918         * lib/striconveh.h (iconveh_t): New type.
32919         (iconveh_open, iconveh_close): New declarations.
32920         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32921         with a single 'const iconveh_t *' argument.
32922         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32923         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32924         with a single 'const iconveh_t *' argument.
32925         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32926         * tests/test-striconveh.c (main): Update.
32927         * NEWS: Mention the change.
32928
32929 2009-08-30  Bruno Haible  <bruno@clisp.org>
32930
32931         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32932         problem.
32933
32934 2009-08-30  Bruno Haible  <bruno@clisp.org>
32935
32936         Work around iconv_open problem on Solaris.
32937         * lib/iconv_open-solaris.gperf: New file.
32938         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32939         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32940         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32941         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32942         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32943         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32944
32945 2009-08-29  Jim Meyering  <meyering@redhat.com>
32946
32947         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32948         * top/maint.mk (cvs-check): Remove target; it was just an alias
32949         to the better-named vc-diff-check.
32950         (maintainer-distcheck): Remove rule.  It was used only from
32951         the (alpha/beta/major) target, and all of its commands but one
32952         were coreutils-specific.
32953         (vc-dist): Remove rule.
32954         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32955         Run vc-diff-check, not vc-dist.
32956         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32957
32958 2009-08-27  Bruno Haible  <bruno@clisp.org>
32959
32960         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32961         of 0.
32962
32963 2009-08-27  Bruno Haible  <bruno@clisp.org>
32964
32965         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32966         compilers.
32967         * doc/func.texi: Document the SunPRO C bug.
32968
32969 2009-08-27  Bruno Haible  <bruno@clisp.org>
32970
32971         Fix link error on Solaris.
32972         * tests/test-parse-duration.c (xstrdup): Remove function.
32973
32974 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32975
32976         ignore-value: handle pointer types, too
32977         * lib/ignore-value.h (__attribute__): Remove definition.
32978         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32979         of a more concise and more-often effective "(void) i" statement.
32980         (ignore_ptr): New function to suppress warnings from functions that
32981         return pointers, and to make it explicit that one function doesn't
32982         handle all cases.
32983
32984 2009-08-25  Bruno Haible  <bruno@clisp.org>
32985
32986         dup2: work around a Linux bug.
32987         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32988         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32989         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32990         Reported by Simon Josefsson.
32991
32992 2009-08-25  Jim Meyering  <meyering@redhat.com>
32993
32994         libguestfs uses gnulib
32995         * users.txt: Add libguestfs.
32996
32997 2009-08-24  Eric Blake  <ebb9@byu.net>
32998
32999         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33000         * lib/pipe2.c (includes): Add binary-io.h.
33001         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33002
33003 2009-08-24  Bruno Haible  <bruno@clisp.org>
33004
33005         Tolerate declared but missing accept4 syscall.
33006         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33007         available.
33008         * lib/sys_socket.in.h (accept4): If the function is already present,
33009         override it.
33010         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33011         * modules/accept4 (Makefile.am): Compile accept4.c always.
33012         Reported by Paolo Bonzini and Eric Blake.
33013
33014 2009-08-23  Bruno Haible  <bruno@clisp.org>
33015
33016         New module 'accept4'.
33017         * lib/sys_socket.in.h (accept4): New declaration.
33018         * lib/accept4.c: New file.
33019         * m4/accept4.m4: New file.
33020         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33021         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33022         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33023         HAVE_ACCEPT4.
33024         * modules/accept4: New file.
33025         * doc/glibc-functions/accept4.texi: Mention the new module.
33026
33027 2009-08-24  Jim Meyering  <meyering@redhat.com>
33028
33029         progname: also set global program_invocation_name, when possible
33030         Before this change, a libtool-enabled program that calls glibc's
33031         error function would report the program name as
33032         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33033         * modules/progname (configure.ac): Check for a declaration of
33034         program_invocation_name.
33035         * lib/progname.c:  Include <errno.h>.
33036         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33037         Set program_invocation_name.
33038
33039 2009-08-23  Bruno Haible  <bruno@clisp.org>
33040
33041         * lib/dup3.c: Include <string.h>.
33042
33043 2009-08-23  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33046         * lib/pipe2.c (pipe2): Likewise.
33047         Suggested by Eric Blake.
33048
33049 2009-08-23  Bruno Haible  <bruno@clisp.org>
33050
33051         Tolerate declared but missing dup3 syscall.
33052         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33053         * lib/unistd.in.h (dup3): If the function is already present,
33054         override it.
33055         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33056         * modules/dup3 (Makefile.am): Compile dup3.c always.
33057         Reported by Paolo Bonzini.
33058
33059 2009-08-23  Bruno Haible  <bruno@clisp.org>
33060
33061         Tolerate declared but missing pipe2 syscall.
33062         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33063         available.
33064         * lib/unistd.in.h (pipe2): If the function is already present,
33065         override it.
33066         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33067         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33068         Reported by Paolo Bonzini.
33069
33070 2009-08-23  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/pipe2.c (pipe2): Move #ifs inside function.
33073
33074 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33075
33076         quotearg: document limitations of quote_these_too
33077         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33078         those limitations are created.
33079         * lib/quotearg.h (set_char_quoting): Document that digits and
33080         letters that are special after backslash are not permitted.
33081         (quotearg_char): Cross-reference set_char_quoting documentation.
33082
33083 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33084
33085         quotearg: implement custom_quoting_style
33086         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33087         right_quote fields.
33088         (set_custom_quoting): New public function.
33089         (quotearg_buffer_restyled): Add left_quote and right_quote
33090         arguments, handle them very much like locale quoting, and update
33091         all uses.
33092         (quotearg_n_custom): New public function.
33093         (quotearg_n_custom_mem): New public function.
33094         (quotearg_custom): New public function.
33095         (quotearg_custom_mem): New public function.
33096         * lib/quotearg.h: Prototype and document new public functions.
33097         (enum quoting_style): For escape_quoting_style and
33098         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33099         ignored even though they're otherwise like c_quoting_style.
33100         Add custom_quoting_style member and document with comparison to
33101         clocale_quoting_style.
33102         * tests/test-quotearg.c (custom_quotes): New array.
33103         (custom_results): New array.
33104         (main): Extend to test custom quoting.
33105
33106 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33107
33108         quotearg: fix right quote escaping when it's in quote_these_too
33109         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33110         quote, be sure to prepend only one backslash.
33111         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33112         (main): Test it.
33113
33114 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33115
33116         quotearg-tests: test escaping of embedded locale quotes
33117         * tests/test-quotearg.c (struct result_strings): Add member for
33118         new input.
33119         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33120         (inputs): Add new input.
33121         (results_g): Add expected results.
33122         (flag_results): Likewise.
33123         (locale_results): Likewise.
33124         (compare_strings): Check those.
33125
33126 2009-08-23  Bruno Haible  <bruno@clisp.org>
33127
33128         Tests for module 'dup3'.
33129         * modules/dup3-tests: New file.
33130         * tests/test-dup3.c: New file.
33131
33132         New module 'dup3'.
33133         * lib/unistd.in.h (dup3): New declaration.
33134         * lib/dup3.c: New file.
33135         * m4/dup3.m4: New file.
33136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33137         HAVE_DUP3.
33138         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33139         * modules/dup3: New file.
33140         * doc/glibc-functions/dup3.texi: Mention the new module.
33141
33142 2009-08-23  Bruno Haible  <bruno@clisp.org>
33143
33144         Tweak the dup2 test.
33145         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33146         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33147         the test file is still empty. Fix argument order of lseek.
33148
33149 2009-08-23  Bruno Haible  <bruno@clisp.org>
33150
33151         Avoid test link errors when the modules getopt-gnu, gettext are used.
33152         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33154
33155 2009-08-23  Bruno Haible  <bruno@clisp.org>
33156
33157         Fix getdtablesize() on mingw.
33158         * lib/getdtablesize.c (getdtablesize): Implement differently.
33159         * lib/unistd.in.h (getdtablesize): Improve comment.
33160
33161 2009-08-23  Bruno Haible  <bruno@clisp.org>
33162
33163         New module 'mkostemp'.
33164         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33165         * lib/stdlib.in.h (mksotemp): New declaration.
33166         * lib/mkostemp.c: New file, from glibc with modifications.
33167         * lib/tempname.h (GT_FILE): Remove outdated comment.
33168         (gen_tempname): Add flags argument.
33169         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33170         (__GT_FILE): Map to 1.
33171         (small_open, large_open): Remove macros.
33172         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33173         * lib/mkstemp.c (mkstemp): Update.
33174         * lib/mkdtemp.c (mkdtemp): Likewise.
33175         * m4/mkostemp.m4: New file.
33176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33177         HAVE_MKOSTEMP.
33178         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33179         HAVE_MKOSTEMP.
33180         * modules/mkostemp: New file, based on modules/mkstemp.
33181         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33182         * NEWS: Mention the change.
33183
33184 2009-08-23  Bruno Haible  <bruno@clisp.org>
33185
33186         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33187         Reported by Eric Blake.
33188
33189 2009-08-23  Bruno Haible  <bruno@clisp.org>
33190
33191         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33192         Reported by Eric Blake.
33193
33194 2009-08-23  Bruno Haible  <bruno@clisp.org>
33195
33196         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33197         * modules/pipe2 (Depends-on): Likewise.
33198
33199 2009-08-23  Eric Blake  <ebb9@byu.net>
33200
33201         fcntl-h: add O_TTY_INIT support
33202         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33203         * tests/test-fcntl-h.c (o): Test it.
33204         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33205
33206         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33207         * modules/fcntl: Move <fcntl.h> header replacement...
33208         * modules/fcntl-h: ...to new name, so as not to collide with
33209         like-named function.
33210         * tests/test-fcntl.c: Rename...
33211         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33212         * modules/fcntl-tests: Rename...
33213         * modules/fcntl-h-tests: ...to this.  Update test file name.
33214         * modules/chdir-long (Depends-on): Update clients.
33215         * modules/chdir-safer (Depends-on): Likewise.
33216         * modules/fcntl-safer (Depends-on): Likewise.
33217         * modules/fts (Depends-on): Likewise.
33218         * modules/mkancesdirs (Depends-on): Likewise.
33219         * modules/mkdir-p (Depends-on): Likewise.
33220         * modules/open (Depends-on): Likewise.
33221         * modules/savewd (Depends-on): Likewise.
33222         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33223         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33224
33225 2009-08-22  Bruno Haible  <bruno@clisp.org>
33226
33227         * modules/binary-io (License): Relicense under LGPL.
33228         * modules/pipe2 (License): Likewise.
33229
33230 2009-08-22  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33233         return value.
33234         * lib/pipe-filter-gi.c (filter_init): Likewise.
33235         Reported by Eric Blake.
33236
33237 2009-08-22  Bruno Haible  <bruno@clisp.org>
33238
33239         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33240         * modules/pipe (Depends-on): Add pipe2.
33241
33242 2009-08-22  Bruno Haible  <bruno@clisp.org>
33243
33244         Tests for module 'pipe2'.
33245         * modules/pipe2-tests: New file.
33246         * tests/test-pipe2.c: New file.
33247
33248         New module 'pipe2'.
33249         * lib/unistd.in.h (pipe2): New declaration.
33250         * lib/pipe2.c: New file.
33251         * m4/pipe2.m4: New file.
33252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33253         HAVE_PIPE2.
33254         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33255         * modules/pipe2: New file.
33256         * doc/glibc-functions/pipe2.texi: Mention the new module.
33257
33258 2009-08-22  Bruno Haible  <bruno@clisp.org>
33259
33260         Reference some new glibc functions.
33261         * doc/glibc-functions/accept4.texi: New file.
33262         * doc/glibc-functions/dup3.texi: New file.
33263         * doc/glibc-functions/mkostemp.texi: New file.
33264         * doc/glibc-functions/pipe2.texi: New file.
33265         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33266         (Glibc sys/socket.h): Refer to accept4.
33267         (Glibc unistd.h): Refer to dup3, pipe2.
33268         Reported by Eric Blake.
33269
33270 2009-08-22  Jim Meyering  <meyering@redhat.com>
33271             Bruno Haible  <bruno@clisp.org>
33272
33273         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33274         This makes it so packages using automake-1.11's silent-rules option
33275         can print e.g., a single "GEN    configmake.h" line, rather than
33276         the 30+ statements that perform the job.  If you want to see the
33277         actual commands, you can still run "make V=1".
33278         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33279         so that make output is abbreviated when those variables are defined
33280         appropriately.
33281         * modules/argz: Likewise.
33282         * modules/arpa_inet: Likewise.
33283         * modules/byteswap: Likewise.
33284         * modules/configmake: Likewise.
33285         * modules/dirent: Likewise.
33286         * modules/errno: Likewise.
33287         * modules/fcntl: Likewise.
33288         * modules/float: Likewise.
33289         * modules/fnmatch: Likewise.
33290         * modules/getopt-posix: Likewise.
33291         * modules/glob: Likewise.
33292         * modules/iconv_open: Likewise.
33293         * modules/inttypes: Likewise.
33294         * modules/localcharset: Likewise.
33295         * modules/locale: Likewise.
33296         * modules/math: Likewise.
33297         * modules/netdb: Likewise.
33298         * modules/netinet_in: Likewise.
33299         * modules/poll: Likewise.
33300         * modules/posix_spawnp-tests: Likewise.
33301         * modules/sched: Likewise.
33302         * modules/search: Likewise.
33303         * modules/selinux-h: Likewise.
33304         * modules/signal: Likewise.
33305         * modules/spawn: Likewise.
33306         * modules/stdarg: Likewise.
33307         * modules/stdbool: Likewise.
33308         * modules/stddef: Likewise.
33309         * modules/stdint: Likewise.
33310         * modules/stdio: Likewise.
33311         * modules/stdlib: Likewise.
33312         * modules/string: Likewise.
33313         * modules/strings: Likewise.
33314         * modules/sys_file: Likewise.
33315         * modules/sys_ioctl: Likewise.
33316         * modules/sys_select: Likewise.
33317         * modules/sys_socket: Likewise.
33318         * modules/sys_stat: Likewise.
33319         * modules/sys_time: Likewise.
33320         * modules/sys_times: Likewise.
33321         * modules/sys_utsname: Likewise.
33322         * modules/sys_wait: Likewise.
33323         * modules/sysexits: Likewise.
33324         * modules/time: Likewise.
33325         * modules/unistd: Likewise.
33326         * modules/wchar: Likewise.
33327         * modules/wctype: Likewise.
33328
33329 2009-08-22  Jim Meyering  <meyering@redhat.com>
33330
33331         announce-gen: detect write failure
33332         * build-aux/announce-gen: Add Coda at end.
33333         Remove equivalent-but-more-verbose block at top.
33334
33335 2009-08-19  Akim Demaille  <demaille@gostai.com>
33336
33337         bootstrap: --help to stdout.
33338         * bootstrap (usage): Don't send --help to stderr.
33339         Use a here doc instead of a long string.
33340
33341 2009-08-21  Eric Blake  <ebb9@byu.net>
33342
33343         test-popen-safer: split from test-popen
33344         * tests/test-popen.c (main): Move...
33345         * tests/test-popen.h: ...into new file.
33346         * tests/test-popen-safer2.c: New file.
33347         * modules/popen-tests (Files): Add test-popen.h.
33348         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33349         Suggested by Bruno Haible.
33350
33351         test-fcntl-safer: split from test-open
33352         * tests/test-open.c (main): Move...
33353         * tests/test-open.h: ...into new file.
33354         * tests/test-fcntl-safer.c: New file.
33355         * modules/open-tests (Files): Add test-open.h.
33356         * modules/fcntl-safer-tests: New file.
33357         Suggested by Bruno Haible.
33358
33359         test-fopen-safer: split from test-fopen
33360         * tests/test-fopen.c (main): Move...
33361         * tests/test-fopen.h: ...into new file.
33362         * tests/test-fopen-safer.c: New file.
33363         * modules/fopen-tests (Files): Add test-fopen.h.
33364         * modules/fopen-safer-tests: New file.
33365         Suggested by Bruno Haible.
33366
33367 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33368
33369         popen-safer: test O_CLOEXEC at run-time.
33370         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33371
33372 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33373
33374         fcntl: move more flags to the header
33375         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33376         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33377         * lib/fcntl.in.h: Do both things here.
33378
33379 2009-08-21  Jim Meyering  <meyering@redhat.com>
33380
33381         consistently remove $@-t before redirecting to it
33382         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33383         * modules/alloca-opt: Likewise.
33384         * modules/byteswap: Likewise.
33385         * modules/fnmatch: Likewise.
33386         * modules/getopt-posix: Likewise.
33387         * modules/glob: Likewise.
33388         * modules/poll: Likewise.
33389         * modules/posix_spawnp-tests: Likewise.
33390         * modules/sys_socket: Likewise.
33391         * modules/sysexits: Likewise.
33392
33393 2009-08-21  Eric Blake  <ebb9@byu.net>
33394
33395         popen: simplify access to original popen
33396         * lib/popen.c (rpl_popen): No need to worry about popen being a
33397         macro.
33398         Reported by Bruno Haible.
33399
33400 2009-08-20  Eric Blake  <ebb9@byu.net>
33401
33402         build: avoid some compiler warnings
33403         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33404         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33405         type.
33406         (new_exclude_segment, excluded_file_pattern_p)
33407         (excluded_file_name_p): Reduce scope.
33408         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33409         old-style declaration.
33410
33411 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33412
33413         * tests/test-exclude1.sh: Handle Windows EOL.
33414         * tests/test-exclude2.sh: Likewise.
33415         * tests/test-exclude3.sh: Likewise.
33416         * tests/test-exclude4.sh: Likewise.
33417         * tests/test-exclude5.sh: Likewise.
33418         * tests/test-exclude6.sh: Likewise.
33419         * tests/test-exclude7.sh: Likewise.
33420
33421 2009-08-19  Akim Demaille  <demaille@gostai.com>
33422
33423         bootstrap: find sha1sum when named gsha1sum.
33424         * bootstrap (find_tool): New.
33425         ($SHA1SUM): New.
33426         Use it.
33427
33428 2009-08-20  Jim Meyering  <meyering@redhat.com>
33429
33430         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33431         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33432         expression that converts "." in a file name to "\." in the resulting
33433         regexp.  Start with a dummy statement, so that prior shell variable
33434         definitions are expanded portably.  Reported by Simon Josefsson.
33435
33436 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33437
33438         Fix polling for writeability of a screen buffer.
33439         * lib/poll.c: Distinguish input and screen buffers for the
33440         Win32 implementation.
33441         * lib/select.c: Likewise.
33442
33443 2009-08-19  Eric Blake  <ebb9@byu.net>
33444
33445         popen-safer: prevent popen from clobbering std descriptors
33446         * modules/popen-safer: New file.
33447         * lib/popen-safer.c: Likewise.
33448         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33449         * lib/stdio--.h (popen): Provide override.
33450         * lib/stdio-safer.h (popen_safer): Provide declaration.
33451         * tests/test-popen.c (includes): Partially test this.
33452         * modules/popen-safer-tests: New file, for more tests.
33453         * tests/test-popen-safer.c: Likewise.
33454         * MODULES.html.sh (file stream based Input/Output): Mention it.
33455
33456         tests: test some of the *-safer modules
33457         * modules/fopen-safer (Depends-on): Add fopen.
33458         * modules/fcntl-safer (Depends-on): Add fcntl.
33459         * modules/stdlib-safer (Depends-on): Add stdlib.
33460         (configure.ac): Set indicator.
33461         * modules/unistd-safer (configure.ac): Likewise.
33462         * modules/tmpfile-safer (configure.ac): Likewise.
33463         (Depends-on): Add tmpfile.
33464         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33465         active.
33466         * tests/test-fopen.c (includes): Test safer versions when they are
33467         in use.
33468         * tests/test-open.c (includes): Likewise.
33469
33470         popen: fix cygwin 1.5 bug when stdin closed
33471         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33472         * modules/popen: New file.
33473         * modules/popen-tests: Likewise.
33474         * tests/test-popen.c: Likewise.
33475         * m4/popen.m4: Likewise.
33476         * lib/popen.c: Likewise.
33477         * lib/stdio.in.h (popen): New declaration.
33478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33479         * modules/stdio (Makefile.am): Likewise.
33480         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33481
33482 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33483
33484         maint.mk: give full control over update-copyright exclusions
33485         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33486         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33487         (update-copyright): Don't force inclusion of top-level
33488         ChangeLog.  Don't force exclusion of all COPYING files, but make
33489         them the default exclusion instead.
33490
33491 2009-08-16  Bruno Haible  <bruno@clisp.org>
33492
33493         Fix test failures on Solaris 10.
33494         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33495         tests when Solaris iconv() is used.
33496         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33497         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33498         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33499         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33500         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33501
33502 2009-08-16  Bruno Haible  <bruno@clisp.org>
33503
33504         Fix test failures on Solaris 10.
33505         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33506         'tr' program and pass it as first argument.
33507         * tests/test-pipe-filter-gi1.sh: Likewise.
33508         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33509         program as first argument.
33510         * tests/test-pipe-filter-gi1.c (main): Likewise.
33511
33512 2009-08-16  Eric Blake  <ebb9@byu.net>
33513
33514         fpurge: fix previous commits
33515         * modules/fpurge (Makefile.am): Make replacement conditional,
33516         partially reverting 2007-04-29 change; missed in previous
33517         attempt.
33518         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33519         is missing.
33520
33521 2009-08-16  Bruno Haible  <bruno@clisp.org>
33522
33523         Clarify fpurge's effect on the file position.
33524         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33525         * tests/test-fpurge.c (main): Make a second pass for checking the file
33526         position.
33527
33528 2009-08-16  Bruno Haible  <bruno@clisp.org>
33529
33530         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33531         declaration of fpurge is missing.
33532         * tests/test-fpurge.c (main): Check that the file has not more contents
33533         than expected. Close the file before removing it.
33534
33535 2009-08-15  Eric Blake  <ebb9@byu.net>
33536
33537         fpurge: don't wrap working cygwin implementation
33538         * lib/fpurge.c (fpurge): Fix comment typo.
33539         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33540         1.7 to avoid replacement.
33541         * tests/test-fpurge.c (main): Enhance test.
33542
33543 2009-08-15  Eric Blake  <ebb9@byu.net>
33544         and Jim Meyering  <meyering@redhat.com>
33545
33546         test-update-copyright: skip if perl is insufficient
33547         * tests/test-update-copyright.sh: Failure to run maintainer tool
33548         should not cause testsuite failure on cygwin 1.5.
33549
33550 2009-08-14  Eric Blake  <ebb9@byu.net>
33551
33552         doc: mention more functions added in cygwin 1.7.0
33553         * doc/posix-headers/limits.texi (limits.h): Update for recent
33554         cygwin additions.
33555         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33556         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33557         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33558         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33559         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33560
33561 2009-08-14  Eric Blake  <ebb9@byu.net>
33562
33563         maint.mk: simplify update-copyright rule
33564         * top/maint.mk (update-copyright-local): Delete, and document how
33565         to do it in cfg.mk instead.
33566         (update-copyright-exclude-regexp): Delete, and document how to do
33567         it in .x-update-copyright instead.
33568         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33569         exclude ChangeLog.
33570
33571 2009-08-14  Bruno Haible  <bruno@clisp.org>
33572
33573         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33574
33575 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33576
33577         maint.mk: support update-copyright-env
33578         * top/maint.mk (update-copyright-env): Define place-holder.
33579         (update-copyright): Expand $(update-copyright-env) before
33580         invoking update-copyright.
33581
33582 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33583
33584         update-copyright: implement forced reformatting
33585         * build-aux/update-copyright: Implement and document
33586         UPDATE_COPYRIGHT_FORCE.
33587         * tests/test-update-copyright.sh: Test it.
33588
33589 2009-08-14  Eric Blake  <ebb9@byu.net>
33590         and Bruno Haible  <bruno@clisp.org>
33591
33592         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33593         * tests/test-locale.c: Revert previous patch related to NULL.
33594         * tests/test-stdio.c: Likewise.
33595         * tests/test-stdlib.c: Likewise.
33596         * tests/test-string.c: Likewise.
33597         * tests/test-unistd.c: Likewise.
33598         * modules/time-tests (Depends-on): Add verify.
33599         * modules/wchar-tests (Depends-on): Likewise.
33600         * tests/test-time.c: Test for NULL compliance.
33601         * tests/test-wchar.c: Likewise.
33602         * modules/locale (Depends-on): Add stddef.
33603         * modules/stdio (Depends-on): Likewise.
33604         * modules/stdlib (Depends-on): Likewise.
33605         * modules/string (Depends-on): Likewise.
33606         * modules/time (Depends-on): Likewise.
33607         * modules/unistd (Depends-on): Likewise.
33608         * modules/wchar (Depends-on): Likewise.
33609         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33610         * lib/stdlib.in.h (includes): Likewise.
33611         * lib/string.in.h (includes): Likewise.
33612         * lib/time.in.h (includes): Likewise.
33613         * lib/unistd.in.h (includes): Likewise.
33614         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33615         replaced.
33616         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33617         * m4/stddef_h.m4: New file.
33618         * modules/stddef: Likewise.
33619         * lib/stddef.in.h: Likewise.
33620         * modules/stddef-tests: Likewise.
33621         * tests/test-stddef.c: Likewise.
33622         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33623         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33624         * doc/posix-headers/locale.texi (locale.h): Likewise.
33625         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33626         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33627         * doc/posix-headers/string.texi (string.h): Likewise.
33628         * doc/posix-headers/time.texi (time.h): Likewise.
33629         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33630         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33631
33632 2009-08-14  Eric Blake  <ebb9@byu.net>
33633
33634         doc: improve git diff of texinfo files
33635         * .gitattributes: Add rule for *.texi files, with hint on how to
33636         use it.
33637         Copied from m4, and based on a report by Bruno Haible.
33638
33639 2009-08-14  Bruno Haible  <bruno@clisp.org>
33640
33641         Disable multithread support by default on Cygwin 1.5.x for real.
33642         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33643
33644 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33645
33646         update-copyright: much ado about intervals
33647         * build-aux/update-copyright: Implement and document
33648         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33649         of copyright year intervals.
33650         Also, document UPDATE_COPYRIGHT_YEAR.
33651         * tests/test-update-copyright.sh: Test it.
33652
33653         update-copyright: convert 2-digit to 4-digit years
33654         * build-aux/update-copyright: Implement and document.
33655         * tests/test-update-copyright.sh: Update.
33656
33657 2009-08-14  Jim Meyering  <meyering@redhat.com>
33658
33659         test-exclude: avoid coreutils "make check" failure
33660         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33661         just as in test-argmatch.c.
33662
33663 2009-08-13  Eric Blake  <ebb9@byu.net>
33664
33665         test-dup2: fix bad assumption
33666         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33667         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33668
33669         test-version-etc: fix CRLF portability issue
33670         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33671         recognize \r.
33672         * tests/test-argp-version-etc-1.sh: Likewise.
33673
33674         getopt: update client modules
33675         * modules/argp (Depends-on): Use getopt-gnu.
33676         * modules/git-merge-changelog (Depends-on): Likewise.
33677         * modules/long-options (Depends-on): Likewise.
33678         * modules/xstrtol (Depends-on): Likewise.
33679
33680 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33681
33682         * tests/test-version-etc.sh: Don't fail on different
33683         project/version.  Don't fail on CRLF differences.  Rewrite to use
33684         multiple -e instead of multiple sed forks, suggested by Eric Blake
33685         <ebb9@byu.net>.
33686         * tests/test-argp-version-etc-1.sh: Likewise.
33687
33688 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33689
33690         * tests/test-version-etc.sh: Don't fail on different
33691         project/version.
33692
33693 2009-08-12  Bruno Haible  <bruno@clisp.org>
33694
33695         Tests for modules 'getopt-posix', 'getopt-gnu'.
33696         * modules/getopt-posix-tests: New file.
33697         * tests/test-getopt.c: New file.
33698         * tests/test-getopt.h: New file.
33699         * tests/test-getopt_long.h: New file.
33700
33701         New modules 'getopt-posix', 'getopt-gnu'.
33702         * modules/getopt-gnu: New file, renamed from modules/getopt.
33703         * modules/getopt-posix: New file.
33704         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33705         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33706         (gl_GETOPT): Remove macro.
33707         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33708         Disable the test against BSD systems that declare optreset. Test
33709         against mingw bug. Test against lack of support of optional arguments
33710         on many platforms.
33711         * doc/glibc-headers/getopt.texi: Update module name and list of
33712         relevant platforms.
33713         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33714         'getopt-gnu' and more portability problems.
33715         * NEWS: Mention the changes.
33716
33717 2009-08-12  Bruno Haible  <bruno@clisp.org>
33718
33719         Ensure that optarg etc. get declared by <unistd.h>.
33720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33721         AC_USE_SYSTEM_EXTENSIONS.
33722         * modules/getopt (Depends-on): Add 'extensions'.
33723
33724 2009-08-12  Bruno Haible  <bruno@clisp.org>
33725
33726         Avoid test link errors.
33727         * modules/pipe-filter-ii-tests (Makefile.am): Define
33728         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33729         * modules/pipe-filter-gi-tests (Makefile.am): Define
33730         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33732
33733 2009-08-12  Bruno Haible  <bruno@clisp.org>
33734
33735         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33736         gl_GETOPT_SUBSTITUTE before.
33737         (gl_GETOPT): Use it.
33738         * m4/argp.m4 (gl_ARGP): Update.
33739         Reported by Sergey Poznyakoff.
33740
33741         * m4/getopt.m4: Reorder macros.
33742         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33743         (gl_GETOPT_SUBSTITUTE): Remove macro.
33744
33745 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33746
33747         Minor improvement in gitlog-to-changelog
33748
33749         * build-aux/gitlog-to-changelog: New option `--format' makes
33750         output format string configurable.
33751
33752 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33753
33754         Optimize exclude: use hash tables for non-wildcard patterns.
33755
33756         * lib/exclude.c: Include hash.h and mbuiter.h
33757         (struct exclude_pattern, exclude_segment): New data types.
33758         (struct exclude): Rewrite.
33759         (fnmatch_pattern_has_wildcards): New function.
33760         (new_exclude_segment, free_exclude_segment): New functions.
33761         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33762         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33763         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33764         * modules/exclude: Depend on hash and mbuiter.
33765
33766         * modules/exclude-tests: New file.
33767         * tests/test-exclude.c: New file.
33768         * tests/test-exclude1.sh: New file.
33769         * tests/test-exclude2.sh: New file.
33770         * tests/test-exclude3.sh: New file.
33771         * tests/test-exclude4.sh: New file.
33772         * tests/test-exclude5.sh: New file.
33773         * tests/test-exclude6.sh: New file.
33774         * tests/test-exclude7.sh: New file.
33775
33776 2009-08-12  Bruno Haible  <bruno@clisp.org>
33777
33778         Ensure that getopt() gets declared by <unistd.h>.
33779         * lib/unistd.in.h: Conditionally include getopt.h.
33780         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33781         Set GNULIB_UNISTD_H_GETOPT.
33782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33783         GNULIB_UNISTD_H_GETOPT.
33784         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33785
33786 2009-08-12  Bruno Haible  <bruno@clisp.org>
33787
33788         Clarify logic.
33789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33790         gl_replace_getopt instead of GETOPT_H.
33791
33792 2009-08-12  Bruno Haible  <bruno@clisp.org>
33793
33794         * m4/getopt.m4: Add comments.
33795
33796 2009-08-12  Bruno Haible  <bruno@clisp.org>
33797
33798         Disable multithread support by default on Cygwin 1.5.x.
33799         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33800         set gl_use_threads=no if not specified otherwise.
33801
33802 2009-08-11  Bruno Haible  <bruno@clisp.org>
33803
33804         Avoid compilation error on NetBSD 5.0.
33805         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33806         * tests/test-stdio.c: Likewise.
33807         * tests/test-stdlib.c: Likewise.
33808         * tests/test-string.c: Likewise.
33809         * tests/test-unistd.c: Likewise.
33810         Reported by Greg Troxel <gdt@ir.bbn.com>
33811         at <https://savannah.gnu.org/support/?106973>.
33812
33813 2009-08-11  Bruno Haible  <bruno@clisp.org>
33814
33815         * modules/dup2-tests (Depends-on): Remove close.
33816
33817         Undo 2009-07-19 commit.
33818         * modules/acl-tests (Depends-on): Remove close.
33819         * modules/binary-io-tests (Depends-on): Likewise.
33820         * modules/closein-tests (Depends-on): Likewise.
33821         * modules/flock-tests (Depends-on): Likewise.
33822         * modules/fsync-tests (Depends-on): Likewise.
33823         * modules/lseek-tests (Depends-on): Likewise.
33824         * modules/pipe-tests (Depends-on): Likewise.
33825         * modules/posix_spawn-tests (Depends-on): Likewise.
33826         * modules/posix_spawnp-tests (Depends-on): Likewise.
33827         * modules/stat-time-tests (Depends-on): Likewise.
33828         * modules/yesno-tests (Depends-on): Likewise.
33829
33830 2009-08-10  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33833
33834 2009-08-10  Bruno Haible  <bruno@clisp.org>
33835
33836         Fix a gcc warning.
33837         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33838
33839 2009-08-10  Bruno Haible  <bruno@clisp.org>
33840
33841         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33842         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33843         not only the first time.
33844         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33845         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33846         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33847         is 1, not only the the first time.
33848
33849 2009-08-10  Bruno Haible  <bruno@clisp.org>
33850
33851         Make it possible to use module 'gethostname' without module 'close'.
33852         * lib/unistd.in.h (close): Evoke a link error only if
33853         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33855         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33856         * modules/unistd (Makefile.am): Substitute
33857         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33858         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33859         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33860         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33861         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33862         * modules/sys_ioctl (Makefile.am): Substitute
33863         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33864         * modules/socket (configure.ac): On native Windows, set
33865         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33866         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33867         Reported by Sam Steingold <sds@gnu.org>.
33868
33869 2009-08-10  Bruno Haible  <bruno@clisp.org>
33870
33871         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33872         * modules/ioctl (configure.ac): Likewise.
33873
33874 2009-08-10  Bruno Haible  <bruno@clisp.org>
33875
33876         Avoid collision between gnulib wrapper and libintl wrapper.
33877         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33878         already defined in intl/printf.c.
33879         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33880         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33881
33882 2009-08-09  Bruno Haible  <bruno@clisp.org>
33883
33884         Make <sys/select.h> really self-contained, also on Solaris 10.
33885         * lib/sys_select.in.h: Include <string.h>.
33886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33887         Solaris 10 problem.
33888         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33889         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33890         Reported by Jim Meyering.
33891
33892 2009-08-09  Bruno Haible  <bruno@clisp.org>
33893
33894         Avoid warnings from 'aclocal' that are due to a use of macro name
33895         AM_XGETTEXT_OPTION that is not defined in automake.
33896         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33897         automake.
33898         * modules/error (configure.ac): Likewise.
33899         * modules/propername (configure.ac): Likewise.
33900         * modules/vasprintf (configure.ac): Likewise.
33901         * modules/verror (configure.ac): Likewise.
33902         * modules/xprintf (configure.ac): Likewise.
33903         * modules/xvasprintf (configure.ac): Likewise.
33904
33905 2009-08-08  Bruno Haible  <bruno@clisp.org>
33906
33907         Avoid compilation error in C++ mode.
33908         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33909         Reported by Sam Steingold <sds@gnu.org>.
33910
33911 2009-08-08  Bruno Haible  <bruno@clisp.org>
33912
33913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33914         for the various Unix platforms.
33915         * doc/posix-headers/limits.texi: Update platforms list regarding
33916         HOST_NAME_MAX.
33917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33918
33919 2009-08-07  Jim Meyering  <meyering@redhat.com>
33920
33921         selinux-at: fix typo in a comment
33922         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33923         Spotted by Paolo Bonzini.
33924
33925         selinux-at: remove redundant m4 code, add documentation
33926         * modules/selinux-at (configure.ac): Remove redundant code.
33927         LIB_SELINUX is already set via the dependent module, selinux-h.
33928         (Include): Add quotes around selinux-at.h.
33929         * lib/selinux-at.h: Add documentation.
33930         Reported by Bruno Haible in
33931         http://marc.info/?l=gnulib-bug&m=124958988300749
33932
33933 2009-08-07  Bruno Haible  <bruno@clisp.org>
33934
33935         Avoid link error on MacOS X 10.3 and 10.4.
33936         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33937         on non-ELF systems.
33938         * lib/argp-pv.c (argp_program_version): Likewise.
33939         Reported by Simon Josefsson.
33940
33941 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33942
33943         * tests/test-version-etc.sh: Use $EXEEXT.
33944
33945 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33946
33947         update-copyright: update documentation to point to maint.mk
33948         * build-aux/update-copyright: Here.
33949
33950 2009-08-06  Jim Meyering  <meyering@redhat.com>
33951
33952         maint.mk: support update-copyright-local
33953         * top/maint.mk (update-copyright-local): Define place-holder.
33954         (update-copyright): Depend on $(update-copyright-local).
33955
33956 2009-08-06  Jim Meyering  <meyering@redhat.com>
33957
33958         selinux-at: new module
33959         Initially written for coreutils, this module will soon be
33960         used by findutils, too.
33961         * MODULES.html.sh [Misc]: Add selinux-at.
33962         * lib/selinux-at.h: New file, from coreutils.
33963         * lib/selinux-at.c: Likewise.
33964         * modules/selinux-at: Likewise.
33965         (License): Change from LGPL to GPL, since it depends
33966         on the GPL'd openat module.
33967
33968         doc: update README
33969         * README: Remove references to cogito.
33970         Remove cvs-repo-updating instructions from 2007.
33971         Don't imply that CVS is better if you have limited disk space.
33972
33973 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33974
33975         update-copyright: support C-style comments
33976         * build-aux/update-copyright: Implement and document.
33977         * tests/test-update-copyright.sh: Test.
33978
33979 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33980
33981         update-copyright: support omitted "(C)"
33982         * build-aux/update-copyright: Implement and document.  Also,
33983         allow variable whitespace before "(C)".
33984         * tests/test-update-copyright.sh: Test.
33985
33986 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33987
33988         update-copyright: don't trip on non-FSF copyright statements
33989         * build-aux/update-copyright: Fix so that the first correctly
33990         formatted FSF copyright statement is recognized no matter what
33991         appears before it.  Update documentation.
33992         * tests/test-update-copyright.sh: Test that.
33993
33994 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33995
33996         update-copyright: clean up code a little
33997         * build-aux/update-copyright: Append "_re" to the name of any
33998         variable holding a regular expression.
33999         Replace "old" and "new" with "stmt" in variable names.
34000         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34001         handled correctly.
34002         Format code more consistently.
34003
34004 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34005
34006         update-copyright-tests: improve portability
34007         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34008         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34009
34010 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34011
34012         update-copyright: support @copyright{} and &copy;
34013         * build-aux/update-copyright: Implement and document.
34014         * tests/test-update-copyright.sh: Test.
34015
34016 2009-08-04  Jim Meyering  <meyering@redhat.com>
34017
34018         update-copyright-tests: correctly test EOL=\r\n handling
34019         * tests/test-update-copyright.sh: Put \r at the end of some lines
34020         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34021
34022         maint.mk: make update-copyright exclusion list more configurable
34023         * top/maint.mk (update-copyright): Default to excluding COPYING,
34024         but allow an override, in case someone does want to update that file.
34025
34026         maint.mk: don't update copyright date in COPYING
34027         * top/maint.mk (update-copyright): Exclude COPYING.
34028
34029         maint.mk: add a copyright-updating rule
34030         * top/maint.mk (update-copyright): New rule.
34031         Derived from coreutils/Makefile.am.
34032
34033         update-copyright: rename some variables
34034         * build-aux/update-copyright: Rename a few variables for clarity.
34035         Tweak syntax.  List Joel E. Denny as coauthor.
34036
34037 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34038
34039         update-copyright: fix bug for 2-digit last year and add tests
34040         * build-aux/update-copyright: Fix bug.
34041         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34042         specified.
34043         * modules/update-copyright-tests: New
34044         * tests/test-update-copyright.sh: New.
34045
34046 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34047
34048         update-copyright: handle leading tabs in line prefix
34049         * build-aux/update-copyright: Count leading tabs as 8 spaces
34050         when computing margin.  This helps with the formatting of
34051         ChangeLogs, for example.
34052         Fix documentation a little.
34053
34054 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34055
34056         update-copyright: support EOL=\r\n
34057         * build-aux/update-copyright: Implement that.
34058
34059 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34060
34061         update-copyright: automatically format copyright statements
34062         * build-aux/update-copyright: Implement that.
34063         Also, be a little more predictable and safer by always failing
34064         when the full copyright format is not perfectly recognized as an
34065         unbroken whole.  Discussed at
34066         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34067         Rewrite documentation.
34068
34069 2009-08-03  Bruno Haible  <bruno@clisp.org>
34070
34071         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34072
34073 2009-08-02  Bruno Haible  <bruno@clisp.org>
34074
34075         Tests for module 'uname'.
34076         * modules/uname-tests: New file.
34077         * tests/test-uname.c: New file.
34078
34079         New module 'uname'.
34080         * lib/uname.c: New file.
34081         * m4/uname.m4: New file.
34082         * modules/uname: New file.
34083         * doc/posix-functions/uname.texi: Mention the new module.
34084
34085 2009-08-02  Bruno Haible  <bruno@clisp.org>
34086
34087         Tests for module 'sys_utsname'.
34088         * modules/sys_utsname-tests: New file.
34089         * tests/test-sys_utsname.c: New file.
34090
34091         New module 'sys_utsname'.
34092         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34093         * m4/sys_utsname_h.m4: New file.
34094         * modules/sys_utsname: New file.
34095         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34096
34097 2009-08-02  Bruno Haible  <bruno@clisp.org>
34098
34099         Implicitly initialize the sockets library.
34100         * lib/gethostname.c: Include sockets.h.
34101         (rpl_gethostname): Invoke gl_sockets_startup.
34102         * lib/socket.c: Include sockets.h.
34103         (rpl_socket): Invoke gl_sockets_startup.
34104         * modules/gethostname (Depends-on): Add sockets.
34105         * modules/socket (Depends-on): Likewise.
34106         * tests/test-poll.c: Don't include sockets.h.
34107         (main): Don't invoke gl_sockets_startup.
34108         * tests/test-select.c: Don't include sockets.h.
34109         (main): Don't invoke gl_sockets_startup.
34110
34111 2009-08-02  Bruno Haible  <bruno@clisp.org>
34112
34113         Allow multiple calls to gl_sockets_startup.
34114         * lib/sockets.c (initialized_sockets_version): New variable.
34115         (gl_sockets_startup): Do nothing if already called for this or a higher
34116         version.
34117         (gl_sockets_cleanup): Reset initialized_sockets_version.
34118
34119 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34120
34121         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34122         different project/version.
34123
34124 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34125             Bruno Haible  <bruno@clisp.org>
34126
34127         Tests for module 'pipe-filter-gi'.
34128         * modules/pipe-filter-gi-tests: New file.
34129         * tests/test-pipe-filter-gi1.sh: New file.
34130         * tests/test-pipe-filter-gi1.c: New file.
34131         * tests/test-pipe-filter-gi2.sh: New file.
34132         * tests/test-pipe-filter-gi2-main.c: New file.
34133         * tests/test-pipe-filter-gi2-child.c: New file.
34134
34135         New module 'pipe-filter-gi'.
34136         * lib/pipe-filter-gi.c: New file.
34137         * modules/pipe-filter-gi: New file.
34138
34139 2009-08-02  Bruno Haible  <bruno@clisp.org>
34140             Paolo Bonzini  <bonzini@gnu.org>
34141
34142         Tests for module 'pipe-filter-ii'.
34143         * modules/pipe-filter-ii-tests: New file.
34144         * tests/test-pipe-filter-ii1.sh: New file.
34145         * tests/test-pipe-filter-ii1.c: New file.
34146         * tests/test-pipe-filter-ii2.sh: New file.
34147         * tests/test-pipe-filter-ii2-main.c: New file.
34148         * tests/test-pipe-filter-ii2-child.c: New file.
34149
34150         New module 'pipe-filter-ii'.
34151         * lib/pipe-filter.h: New file.
34152         * lib/pipe-filter-ii.c: New file.
34153         * lib/pipe-filter-aux.h: New file.
34154         * modules/pipe-filter-ii: New file.
34155
34156 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34157
34158         * lib/gc-libgcrypt.c: Change copyright to FSF.
34159         * lib/gc-gnulib.c: Likewise.
34160
34161 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34162
34163         * lib/gethostname.c: Include limits.h.
34164
34165 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34166             Bruno Haible  <bruno@clisp.org>
34167
34168         Ensure HOST_NAME_MAX as part of the gethostname module.
34169         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34170         define also HOST_NAME_MAX.
34171         * tests/test-gethostname.c: Include <limits.h>.
34172         (main): Check also HOST_NAME_MAX.
34173         * doc/posix-headers/limits.texi: Document the mingw problem.
34174
34175 2009-08-02  Bruno Haible  <bruno@clisp.org>
34176
34177         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34178         Add comments.
34179
34180 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34181
34182         * lib/gethostname.c: Add Windows wrapper.
34183         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34184         * modules/gethostname: Depend on sys_socket & errno, for also
34185         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34186         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34187
34188 2009-07-31  Jim Meyering  <meyering@redhat.com>
34189
34190         getloadavg: fix symbol name in comment
34191         * lib/getloadavg.c: Correct a typo I introduced when adding
34192         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34193         Matt Kraai spotted the problem.
34194
34195 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34196
34197         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34198         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34199         code also if ! defined N_NAME_POINTER.
34200         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34201         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34202         but the n_name member is a 12-byte array.
34203
34204 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34205
34206         update-copyright: generalize comment handling
34207         * build-aux/update-copyright: Handle copyright statements
34208         within more comment styles.
34209         Document usage.
34210         Report any file with an external copyright holder or parse failure.
34211
34212 2009-07-29  Jim Meyering  <meyering@redhat.com>
34213
34214         mktime: correct setting of REPLACE_MKTIME
34215         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34216
34217         update-copyright: new module
34218         * modules/update-copyright: New file.
34219         * build-aux/update-copyright: New file.
34220         * MODULES.html.sh (maint+release support): Add update-copyright.
34221
34222 2009-07-27  Bruno Haible  <bruno@clisp.org>
34223
34224         Fix compilation error when <ctime> is used and mktime is replaced.
34225         * lib/time.in.h (mktime): New declaration.
34226         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34227         REPLACE_MKTIME instead of defining mktime in config.h.
34228         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34229         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34230         Reported by Ross McFarland <rwmcfa1@neces.com>.
34231
34232 2009-07-27  Bruno Haible  <bruno@clisp.org>
34233
34234         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34235         Reported by Matt Kraai <mkraai@beckman.com>.
34236
34237 2009-07-25  Jim Meyering  <meyering@redhat.com>
34238
34239         maint.mk: avoid warnings about missing files
34240         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34241         diagnostic when .prev-version does not exist.
34242         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34243         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34244         nonexistent cfg.mk.
34245         Suggestions from Simon Josefsson.
34246
34247 2009-07-25  Bruno Haible  <bruno@clisp.org>
34248
34249         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34250         defined as macros. Needed on QNX 6.4.1.
34251         Reported by Matt Kraai <mkraai@beckman.com>.
34252
34253 2009-07-23  Jim Meyering  <meyering@redhat.com>
34254
34255         maint.mk: invoke "make dist" with a working value of XZ_OPT
34256         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34257
34258 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34259
34260         Make fseeko.c compile on QNX.
34261         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34262
34263 2009-07-22  Peter Simons  <simons@cryp.to>
34264
34265         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34266         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34267         * lib/md4.h: Likewise.
34268         * lib/md5.h: Likewise.
34269         * lib/sha1.h: Likewise.
34270         * lib/sha256.h: Likewise.
34271         * lib/sha512.h: Likewise.
34272
34273         tests-sha1: don't assign literal string to 'char *' variable
34274         * tests/test-sha1.c (main): Declare locals with "const" to match
34275         attributes of the right hand side.
34276
34277 2009-07-21  Eric Blake  <ebb9@byu.net>
34278
34279         dup2: fix more mingw problems
34280         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34281         fd to itself.
34282         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34283         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34284         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34285         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34286         care of mingw bugs.
34287
34288 2009-07-21  Jim Meyering  <meyering@redhat.com>
34289
34290         vc-list-files: avoid failure when /bin/sh is dash
34291         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34292         On some Debian based systems, /bin/sh is a symlink to dash, and running
34293         this command would omit the "/" following each 'tests' prefix:
34294           dash -x build-aux/vc-list-files -C . tests
34295         That is because bash and dash work differently:
34296           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34297           bash ok
34298           dash odd
34299
34300 2009-07-21  Eric Blake  <ebb9@byu.net>
34301
34302         dup2-tests: test previous patch
34303         * modules/dup2-tests: New file.
34304         * tests/test-dup2.c: Likewise.
34305         * tests/test-open.c (main): Avoid unspecified behavior.
34306         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34307         test.
34308
34309         dup2: work around mingw and cygwin 1.5 bug
34310         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34312         * modules/unistd (Makefile.am): Substitute it.
34313         * lib/unistd.in.h (dup2): Declare the replacement.
34314         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34315         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34316         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34317         * modules/execute (Depends-on): Add dup2.
34318         * modules/fseterr (Depends-on): Likewise.
34319         * modules/pipe (Depends-on): Likewise.
34320         * modules/posix_spawn-internal (Depends-on): Likewise.
34321
34322 2009-07-21  Bruno Haible  <bruno@clisp.org>
34323
34324         * modules/.gitattributes: New file.
34325
34326 2009-07-20  Bruno Haible  <bruno@clisp.org>
34327
34328         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34329         (main): Use it.
34330
34331 2009-07-20  Eric Blake  <ebb9@byu.net>
34332
34333         test-pipe: make a bit more robust.
34334         * tests/test-pipe.c (myerr): Allow error messages regardless of
34335         what we do to stderr.
34336         (test_pipe): Rearrange to avoid deadlock.
34337         (child_main): Try a larger read, to ensure we avoided deadlock.
34338         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34339         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34340         if misused.
34341
34342 2009-07-19  Jim Meyering  <meyering@redhat.com>
34343
34344         fts: avoid false-positive cycle-detection
34345         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34346         for each new command line argument.
34347
34348 2009-07-19  Bruno Haible  <bruno@clisp.org>
34349
34350         Fix build error on mingw with the modules sys_select and unistd.
34351         * modules/acl-tests (Depends-on): Add close.
34352         * modules/binary-io-tests (Depends-on): Likewise.
34353         * modules/closein-tests (Depends-on): Likewise.
34354         * modules/flock-tests (Depends-on): Likewise.
34355         * modules/fsync-tests (Depends-on): Likewise.
34356         * modules/lseek-tests (Depends-on): Likewise.
34357         * modules/pipe-tests (Depends-on): Likewise.
34358         * modules/posix_spawn-tests (Depends-on): Likewise.
34359         * modules/posix_spawnp-tests (Depends-on): Likewise.
34360         * modules/stat-time-tests (Depends-on): Likewise.
34361         * modules/yesno-tests (Depends-on): Likewise.
34362
34363 2009-07-19  Bruno Haible  <bruno@clisp.org>
34364
34365         Unify conditionals.
34366         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34367         macros, not at the compiler macros.
34368         * lib/pipe.c: Likewise.
34369         * lib/execute.c: Likewise.
34370         * lib/spawni.c: Likewise.
34371
34372 2009-07-19  Bruno Haible  <bruno@clisp.org>
34373
34374         Fix handling of closed stdin/stdout/stderr on mingw.
34375         * lib/w32spawn.h: Include unistd.h.
34376         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34377         file descriptor with O_NOINHERIT flag.
34378         (fd_safer_noinherit): New function, based on fd-safer.c.
34379         (dup_safer_noinherit): New function, based on dup-safer.c.
34380         (undup_safer_noinherit): New function.
34381         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34382         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34383         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34384         instead of fd_safer.
34385         * tests/test-pipe.c: Include <windows.h>.
34386         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34387         result.
34388
34389         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34390         from main.
34391         (test_pipe): Pass an extra argument for disambiguation.
34392         (main): Invoke parent_main or child_main.
34393
34394         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34395         consistently.
34396
34397 2009-07-18  Eric Blake  <ebb9@byu.net>
34398
34399         test-pipe: fix mingw build
34400         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34401
34402 2009-07-18  Bruno Haible  <bruno@clisp.org>
34403
34404         * modules/pipe-tests (Makefile.am): Fix typo.
34405
34406 2009-07-18  Eric Blake  <ebb9@byu.net>
34407
34408         error: fix mingw build
34409         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34410         Reported by Bruno Haible.
34411
34412         error: avoid undefined use of stdout
34413         * lib/error.c (error, error_at_line): Check that fd 1 is open
34414         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34415         is handling faults and the close_stdout module wants to report the
34416         detection of closed stdout as an error.
34417
34418 2009-07-17  Eric Blake  <ebb9@byu.net>
34419
34420         pipe: be robust in face of closed fds
34421         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34422         should cause child to misbehave.
34423         * modules/pipe-tests: New module.
34424         * tests/test-pipe.c: New file.
34425         * tests/test-pipe.sh: New file.
34426         Reported by Akim Demaille.
34427
34428 2009-07-14  Bruno Haible  <bruno@clisp.org>
34429
34430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34431         Reported by anonymous kc.
34432
34433 2009-07-07  Jim Meyering  <meyering@redhat.com>
34434
34435         maint.mk: don't look for translatable strings in *.m4 or *.mk
34436         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34437         when searching for translatable strings.
34438
34439 2009-07-05  Jim Meyering  <meyering@redhat.com>
34440
34441         remove superfluous parentheses in STREQ definition
34442         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34443         * lib/getugroups.c (STREQ): Likewise.
34444         * lib/fnmatch.c (STREQ): Likewise.
34445         Spotted by Bruno Haible.
34446
34447 2009-07-04  Jim Meyering  <meyering@redhat.com>
34448
34449         argv-iter: new module
34450         * MODULES.html.sh: Add argv-iter.
34451         * lib/argv-iter.c, lib/argv-iter.h: New files.
34452         * modules/argv-iter: New file.
34453         * modules/argv-iter-tests: New file.
34454         * tests/test-argv-iter.c: Test it.
34455
34456 2009-07-04  Bruno Haible  <bruno@clisp.org>
34457
34458         Fix assertion.
34459         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34460         contains more exact copies of a given entry than file2, leave the extra
34461         copies unpaired rather than aborting.
34462         Reported by Eric Blake.
34463
34464 2009-07-02  Bruno Haible  <bruno@clisp.org>
34465
34466         Speedup git-merge-changelog for git cherry-pick.
34467         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34468         (entries_mapping_get): New function, extracted from compute_mapping.
34469         (entries_mapping_reverse_get): New function.
34470         (compute_mapping): Add a 'full' argument. Return the result in a
34471         'struct entries_mapping'.
34472         (main): Update. Access the mappings through entries_mapping_get.
34473         Reported by Eric Blake.
34474
34475 2009-07-02  Bruno Haible  <bruno@clisp.org>
34476
34477         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34478         best_i.
34479
34480 2009-07-02  Bruno Haible  <bruno@clisp.org>
34481
34482         Speed up approximate search for matching ChangeLog entries.
34483         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34484         argument. Call fstrcmp_bounded instead of fstrcmp.
34485         (compute_mapping, try_split_merged_entry, main): Update callers.
34486
34487 2009-07-02  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34490
34491 2009-06-30  Bruno Haible  <bruno@clisp.org>
34492
34493         Reduce the number of uc_is_cased calls.
34494         * lib/unicase.h (casing_suffix_context_t): Add
34495         'first_char_except_ignorable' field.
34496         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34497         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34498         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34499         Update initializer.
34500         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34501         case-ignorable characters.
34502         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34503         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34504         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34505         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34506         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34507
34508 2009-06-30  Bruno Haible  <bruno@clisp.org>
34509
34510         Tests for module 'unicase/ignorable'.
34511         * modules/unicase/ignorable-tests: New file.
34512         * tests/unicase/test-ignorable.c: New file, generated by
34513         gen-uni-tables.
34514
34515         Tests for module 'unicase/cased'.
34516         * modules/unicase/cased-tests: New file.
34517         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34518         * tests/unicase/test-predicate-part1.h: New file, derived from
34519         tests/unictype/test-predicate-part1.h.
34520         * tests/unicase/test-predicate-part2.h: New file, same as
34521         tests/unictype/test-predicate-part2.h.
34522
34523         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34524         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34525         (output_casing_properties): New function.
34526         (main): Call it.
34527         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34528         * lib/unicase/cased.c: Include unictype/bitmap.h.
34529         (uc_is_cased): Define through a bitmap lookup.
34530         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34531         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34532         (uc_is_case_ignorable): Define through a bitmap lookup.
34533         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34534         lib/unictype/bitmap.h.
34535         (Depends-on): Add inline. Clean up.
34536         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34537         lib/unictype/bitmap.h.
34538         (Depends-on): Add inline. Clean up.
34539         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34540         recognition.
34541         * tests/unicase/test-u16-tolower.c (main): Likewise.
34542         * tests/unicase/test-u32-tolower.c (main): Likewise.
34543
34544 2009-06-30  Bruno Haible  <bruno@clisp.org>
34545
34546         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34547         * lib/unicase/u16-casemap.c: Likewise.
34548         * lib/unicase/u32-casemap.c: Likewise.
34549
34550 2009-06-29  Bruno Haible  <bruno@clisp.org>
34551
34552         Define u32_casefold as a wrapper around u32_ct_casefold.
34553         * lib/unicase/u32-casefold.c: Update.
34554         * modules/unicase/u32-casefold (Depends-on): Add
34555         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34556         unicase/empty-suffix-context. Clean up.
34557
34558         Define u16_casefold as a wrapper around u16_ct_casefold.
34559         * lib/unicase/u16-casefold.c: Update.
34560         * modules/unicase/u16-casefold (Depends-on): Add
34561         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34562         unicase/empty-suffix-context. Clean up.
34563
34564         Define u8_casefold as a wrapper around u8_ct_casefold.
34565         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34566         * lib/unicase/u8-casefold.c: Update.
34567         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34568         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34569
34570         Define u32_totitle as a wrapper around u32_ct_totitle.
34571         * lib/unicase/u32-totitle.c: Update.
34572         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34573         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34574
34575         Define u16_totitle as a wrapper around u16_ct_totitle.
34576         * lib/unicase/u16-totitle.c: Update.
34577         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34578         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34579
34580         Define u8_totitle as a wrapper around u8_ct_totitle.
34581         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34582         functions.
34583         (FUNC): Delegate to U_CT_TOTITLE.
34584         * lib/unicase/u8-totitle.c: Update.
34585         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34586         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34587
34588         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34589         invocation.
34590         * modules/unicase/u32-tolower (Depends-on): Add
34591         unicase/empty-prefix-context, unicase/empty-suffix-context.
34592
34593         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34594         invocation.
34595         * modules/unicase/u16-tolower (Depends-on): Add
34596         unicase/empty-prefix-context, unicase/empty-suffix-context.
34597
34598         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34599         * modules/unicase/u8-tolower (Depends-on): Add
34600         unicase/empty-prefix-context, unicase/empty-suffix-context.
34601
34602         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34603         invocation.
34604         * modules/unicase/u32-toupper (Depends-on): Add
34605         unicase/empty-prefix-context, unicase/empty-suffix-context.
34606
34607         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34608         invocation.
34609         * modules/unicase/u16-toupper (Depends-on): Add
34610         unicase/empty-prefix-context, unicase/empty-suffix-context.
34611
34612         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34613         * modules/unicase/u8-toupper (Depends-on): Add
34614         unicase/empty-prefix-context, unicase/empty-suffix-context.
34615
34616         New module 'unicase/u32-ct-casefold'.
34617         * lib/unicase/u32-ct-casefold.c: New file.
34618         * modules/unicase/u32-ct-casefold: New file.
34619
34620         New module 'unicase/u16-ct-casefold'.
34621         * lib/unicase/u16-ct-casefold.c: New file.
34622         * modules/unicase/u16-ct-casefold: New file.
34623
34624         New module 'unicase/u8-ct-casefold'.
34625         * lib/unicase/u8-ct-casefold.c: New file.
34626         * lib/unicase/u-ct-casefold.h: New file, derived from
34627         lib/unicase/u-casefold.h.
34628         * modules/unicase/u8-ct-casefold: New file.
34629
34630         New module 'unicase/u32-ct-totitle'.
34631         * lib/unicase/u32-ct-totitle.c: New file.
34632         * modules/unicase/u32-ct-totitle: New file.
34633
34634         New module 'unicase/u16-ct-totitle'.
34635         * lib/unicase/u16-ct-totitle.c: New file.
34636         * modules/unicase/u16-ct-totitle: New file.
34637
34638         New module 'unicase/u8-ct-totitle'.
34639         * lib/unicase/u8-ct-totitle.c: New file.
34640         * lib/unicase/u-ct-totitle.h: New file, derived from
34641         lib/unicase/u-totitle.h.
34642         * modules/unicase/u8-ct-totitle: New file.
34643
34644         New module 'unicase/u32-ct-tolower'.
34645         * lib/unicase/u32-ct-tolower.c: New file.
34646         * modules/unicase/u32-ct-tolower: New file.
34647
34648         New module 'unicase/u16-ct-tolower'.
34649         * lib/unicase/u16-ct-tolower.c: New file.
34650         * modules/unicase/u16-ct-tolower: New file.
34651
34652         New module 'unicase/u8-ct-tolower'.
34653         * lib/unicase/u8-ct-tolower.c: New file.
34654         * modules/unicase/u8-ct-tolower: New file.
34655
34656         New module 'unicase/u32-ct-toupper'.
34657         * lib/unicase/u32-ct-toupper.c: New file.
34658         * modules/unicase/u32-ct-toupper: New file.
34659
34660         New module 'unicase/u16-ct-toupper'.
34661         * lib/unicase/u16-ct-toupper.c: New file.
34662         * modules/unicase/u16-ct-toupper: New file.
34663
34664         New module 'unicase/u8-ct-toupper'.
34665         * lib/unicase/u8-ct-toupper.c: New file.
34666         * modules/unicase/u8-ct-toupper: New file.
34667
34668         Add context arguments to u*_casemap functions.
34669         * lib/unicase/unicasemap.h: Include unicase.h.
34670         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34671         suffix_context arguments.
34672         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34673         functions.
34674         (FUNC): Add prefix_context and suffix_context arguments. Use
34675         uc_is_cased and uc_is_case_ignorable.
34676         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34677         * lib/unicase/u16-casemap.c: Likewise.
34678         * lib/unicase/u32-casemap.c: Likewise.
34679         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34680         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34681         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34682         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34683         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34684         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34685
34686         New module 'unicase/u32-suffix-context'.
34687         * lib/unicase/u32-suffix-context.c: New file.
34688         * modules/unicase/u32-suffix-context: New file.
34689
34690         New module 'unicase/u16-suffix-context'.
34691         * lib/unicase/u16-suffix-context.c: New file.
34692         * modules/unicase/u16-suffix-context: New file.
34693
34694         New module 'unicase/u8-suffix-context'.
34695         * lib/unicase/u8-suffix-context.c: New file.
34696         * lib/unicase/u-suffix-context.h: New file.
34697         * modules/unicase/u8-suffix-context: New file.
34698
34699         New module 'unicase/empty-suffix-context'.
34700         * lib/unicase/empty-suffix-context.c: New file.
34701         * modules/unicase/empty-suffix-context: New file.
34702
34703         New module 'unicase/u32-prefix-context'.
34704         * lib/unicase/u32-prefix-context.c: New file.
34705         * modules/unicase/u32-prefix-context: New file.
34706
34707         New module 'unicase/u16-prefix-context'.
34708         * lib/unicase/u16-prefix-context.c: New file.
34709         * modules/unicase/u16-prefix-context: New file.
34710
34711         New module 'unicase/u8-prefix-context'.
34712         * lib/unicase/u8-prefix-context.c: New file.
34713         * lib/unicase/u-prefix-context.h: New file.
34714         * lib/unicase/context.h: New file.
34715         * modules/unicase/u8-prefix-context: New file.
34716
34717         New module 'unicase/empty-prefix-context'.
34718         * lib/unicase/empty-prefix-context.c: New file.
34719         * modules/unicase/empty-prefix-context: New file.
34720
34721         New module 'unicase/ignorable'.
34722         * lib/unicase/ignorable.c: New file.
34723         * modules/unicase/ignorable: New file.
34724
34725         New module 'unicase/cased'.
34726         * lib/unicase/caseprop.h: New file.
34727         * lib/unicase/cased.c: New file.
34728         * modules/unicase/cased: New file.
34729
34730         New functions for case mapping of substrings.
34731         * lib/unicase.h (casing_prefix_context_t): New type.
34732         (unicase_empty_prefix_context): New variable.
34733         (u8_casing_prefix_context, u16_casing_prefix_context,
34734         u32_casing_prefix_context, u8_casing_prefixes_context,
34735         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34736         declarations.
34737         (casing_suffix_context_t): New type.
34738         (unicase_empty_suffix_context): New variable.
34739         (u8_casing_suffix_context, u16_casing_suffix_context,
34740         u32_casing_suffix_context, u8_casing_suffixes_context,
34741         u16_casing_suffixes_context, u32_casing_suffixes_context,
34742         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34743         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34744         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34745         declarations.
34746
34747 2009-06-28  Jim Meyering  <meyering@redhat.com>
34748
34749         boostrap: indent only with spaces
34750         * build-aux/bootstrap: Indent only with spaces, never TABs.
34751
34752         bootstrap: split long lines
34753         * build-aux/bootstrap: Keep line length < 80.
34754
34755         bootstrap: sync from coreutils
34756         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34757         just as autoreconf does.  Verify a list of prerequisite
34758         package-name,version-number pairs if defined in bootstrap.conf.
34759         Refer to README-prereq, if prerequisites are not satisfied.
34760
34761 2009-06-27  Eric Blake  <ebb9@byu.net>
34762
34763         tests: add test for bogus NULL definition
34764         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34765         * tests/test-stdlib.c: Likewise.
34766         * tests/test-string.c: Likewise.
34767         * tests/test-locale.c: Likewise.
34768         * tests/test-unistd.c: Likewise.
34769         * modules/stdio-tests (Depends-on): Add verify.
34770         * modules/stdlib-tests (Depends-on): Likewise.
34771         * modules/string-tests (Depends-on): Likewise.
34772         * modules/locale-tests (Depends-on): Likewise.
34773         * modules/unistd-tests (Depends-on): Likewise.
34774
34775 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34776
34777         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34778         self-explaining comment.
34779         * m4/selinux-selinux-h: Update serial.
34780         (gl_LIBSELINUX): New macro, adding a warning for missing development
34781         packages to code extracted from...
34782         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34783         Add warning for missing development packages here, too.
34784
34785 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34786
34787         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34788
34789 2009-06-25  Eric Blake  <ebb9@byu.net>
34790
34791         version-etc: fix regression
34792         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34793         gcc.
34794         (version_etc): Use it, to catch bugs with trailing NULL.
34795         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34796         (version_etc_va): Fix logic bug.
34797         * modules/version-etc-tests: Add test.
34798         * tests/test-version-etc.c: New file.
34799         * tests/test-version-etc.sh: Likewise.
34800
34801 2009-06-25  Sam Steingold  <sds@gnu.org>
34802
34803         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34804         mbtowc declaration.
34805
34806 2009-06-25  Eric Blake  <ebb9@byu.net>
34807
34808         fpurge: migrate into <stdio.h>
34809         * lib/fpurge.h: Delete...
34810         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34811         * lib/fpurge.c (fpurge): Change declaring header.
34812         * modules/fpurge (Files): Drop deleted file.
34813         (Depends-on): Add stdio.
34814         (configure.ac): Set witness.
34815         * modules/stdio (Makefile.am): Support fpurge macros.
34816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34817         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34818         * lib/fflush.c: Update client.
34819         * tests/test-fpurge.c: Likewise.
34820         * NEWS: Mention the change.
34821
34822 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34823
34824         * lib/argp-version-etc.c (program_authors): Add const
34825         qualifier.
34826         * lib/version-etc.c: Fix typos in the comments.
34827         * modules/argp-version-etc: Depends on version-etc.
34828
34829 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34830
34831         argp-version-etc: new module.
34832
34833         * lib/argp-version-etc.c: New file.
34834         * lib/argp-version-etc.h: New file.
34835         * modules/argp-version-etc: New file.
34836         * modules/argp-version-etc-tests: New file.
34837         * tests/test-argp-version-etc.c: New test.
34838         * tests/test-argp-version-etc-1.sh: New test.
34839
34840 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34841
34842         Provide additional interfaces and documentation for version-etc
34843         module.
34844
34845         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34846         interfaces.
34847         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34848         prototypes.
34849
34850 2009-06-24  Bruno Haible  <bruno@clisp.org>
34851
34852         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34853         HAVE_LIB${NAME} macro.
34854         Reported by Sam Steingold <sds@gnu.org>.
34855
34856 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34857
34858         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34859         needed.
34860
34861 2009-06-21  Bruno Haible  <bruno@clisp.org>
34862
34863         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34864         work.
34865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34866         together with LIB${NAME}, LTLIB${NAME}.
34867         Reported by Sam Steingold <sds@gnu.org>.
34868
34869 2009-06-20  Jim Meyering  <meyering@redhat.com>
34870
34871         tests: make sc_require_test_exit_idiom more generic
34872         * top/maint.mk (Exit_witness_file): New overridable variable.
34873         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34874         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34875
34876 2009-06-19  Jim Meyering  <meyering@redhat.com>
34877
34878         hash: reverse order of src/dst parameters in an internal interface
34879         * lib/hash.c (transfer_entries): Reverse order of parameters to
34880         put DST before SRC.  Adjust callers.
34881
34882         tests: test-hash: avoid wholesale duplication
34883         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34884         Instead, use a loop and add a single conditional.
34885
34886         tests: test-hash: allow seed selection via a command line argument
34887         * tests/test-hash.c (get_seed): New function.
34888         (main): Use it.
34889
34890 2009-06-19  Eric Blake  <ebb9@byu.net>
34891
34892         hash: avoid memory leak on allocation failure
34893         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34894         failure.  Factor repeated algorithm...
34895         (transfer_entries): ...into new helper routine.
34896         (hash_delete): React to hash_rehash return value.
34897
34898         hash: reduce memory pressure in hash_rehash no-op case
34899         * lib/hash.c (next_prime): Avoid overflow.
34900         (hash_initialize): Factor bucket size computation...
34901         (compute_bucket_size): ...into new helper function.
34902         (hash_rehash): Use new function and open coding to reduce memory
34903         pressure, and avoid a memory leak in USE_OBSTACK code.
34904         Reported by Jim Meyering.
34905
34906 2009-06-18  Eric Blake  <ebb9@byu.net>
34907
34908         hash: make rotation more obvious
34909         * modules/hash (Depends-on): Add bitrotate and stdint.
34910         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34911         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34912         (SIZE_MAX): Rely on headers for definition.
34913         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34914         (raw_hasher): Use rotr_sz.
34915         Suggested by Jim Meyering.
34916
34917         hash: fix memory leak in last patch
34918         * lib/hash.c (hash_rehash): Avoid memory leak.
34919
34920         hash: avoid no-op rehashing
34921         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34922
34923         hash: provide default callback functions
34924         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34925         (hash_initialize): Use them as defaults.
34926         * tests/test-hash.c (main): Test this.
34927
34928         hash: minor optimization
34929         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34930         when possible.
34931         (hash_initialize): Document this promise.
34932         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34933         * tests/test-hash.c (hash_compare_strings): Test this.
34934
34935 2009-06-18  Bruno Haible  <bruno@clisp.org>
34936
34937         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34938         going to be replaced anyway.
34939
34940 2009-06-18  Bruno Haible  <bruno@clisp.org>
34941
34942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34943         in one place.
34944         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34945         be replaced anyway.
34946
34947 2009-06-18  Eric Blake  <ebb9@byu.net>
34948
34949         hash: check for resize before insertion
34950         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34951         threshold before insertion, so that a pathological hash_rehash
34952         that fills every bucket can still trigger another rehash.
34953
34954 2009-06-18  Jim Meyering  <meyering@redhat.com>
34955
34956         hash-tests: add a loop around the small tests
34957         * tests/test-hash.c (main): Repeat small tests with selected
34958         small initial table sizes.
34959
34960 2009-06-17  Eric Blake  <ebb9@byu.net>
34961
34962         hash: minor cleanups
34963         * lib/hash.h (hash_entry): Make opaque, by moving...
34964         * lib/hash.c (hash_entry): ...here.
34965         (hash_insert): Clarify restrictions on what can be inserted.
34966         (hash_get_next): Clarify when it is safe to remove an element
34967         during traversal.
34968         (check_tuning): Skip verification when tuning is known safe.
34969         (hash_initialize): Clarify restrictions on tuning.
34970
34971 2009-06-17  Jim Meyering  <jim@meyering.net>
34972         and Eric Blake  <ebb9@byu.net>
34973
34974         hash-tests: new module
34975         * modules/hash-tests: New file.
34976         * tests/test-hash.c: New file.
34977
34978 2009-06-17  Eric Blake  <ebb9@byu.net>
34979
34980         strstr-simple: document new module
34981         * MODULES.html.sh: Document new module.
34982
34983         strstr, strcasestr: replace on platforms with broken memchr
34984         * modules/strstr: Split into...
34985         * modules/strstr-simple: ...new module that does not care about
34986         performance, but does care about glibc bug.
34987         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34988         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34989         if platform memchr is broken, per Debian bug 521737.
34990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34991         memchr.
34992         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34993         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34994         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34995         * modules/mountlist (Depends-on): Add strstr-simple.
34996         * modules/gen-uni-tables (Depends-on): Likewise.
34997         * modules/argz (Depends-on): Add strstr.
34998
34999 2009-06-17  Bruno Haible  <bruno@clisp.org>
35000
35001         * modules/posix_spawn-internal (Depends-on): Add errno.
35002
35003 2009-06-17  Bruno Haible  <bruno@clisp.org>
35004
35005         Define missing ESTALE on Interix 3.5.
35006         * lib/errno.in.h (ESTALE): Assign a value if missing.
35007         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35008         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35009         missing.
35010         * doc/posix-headers/errno.texi: Mention the Interix bug.
35011         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35012
35013 2009-06-15  Eric Blake  <ebb9@byu.net>
35014
35015         memchr, memchr2: add valgrind exception
35016         * lib/memchr.valgrind: New file.
35017         * lib/memchr2.valgrind: New file.
35018         * modules/memchr (Files): Distribute valgrind file.
35019         * modules/memchr2 (Files): Likewise.
35020
35021         docs: memchr is no longer obsolete
35022         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35023         * lib/string.in.h (memchr): Simplify logic.
35024
35025 2009-06-14  Jim Meyering  <meyering@redhat.com>
35026
35027         link-follow: fix the "checking..." message to not mention trailing slash
35028         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35029         never considered trailing slashes.
35030
35031 2009-06-14  Bruno Haible  <bruno@clisp.org>
35032
35033         * m4/memchr.m4: Mention also the bug on IA-64.
35034         * doc/posix-functions/memchr.texi: Likewise.
35035
35036 2009-06-12  Eric Blake  <ebb9@byu.net>
35037
35038         memchr: detect broken x86_64 and alpha implementations
35039         * modules/memchr-tests (Depends-on): Move mmap detection...
35040         * modules/memchr (Depends-on): ...here.
35041         (configure.ac): Set indicator.
35042         * lib/string.in.h (memchr): Declare replacement.
35043         * modules/string (Makefile.am): Trigger replacement.
35044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35045         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35046         bugs.
35047         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35048         * modules/getpagesize (License): Relax license.
35049
35050 2009-06-11  Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/idpriv.h: Add more references.
35053
35054 2009-06-08  Bruno Haible  <bruno@clisp.org>
35055
35056         Tests for module 'idpriv-droptemp'.
35057         * modules/idpriv-droptemp-tests: New file.
35058         * tests/test-idpriv-droptemp.sh: New file.
35059         * tests/test-idpriv-droptemp.su.sh: New file.
35060         * tests/test-idpriv-droptemp.c: New file.
35061
35062         New module 'idpriv-droptemp'.
35063         * lib/idpriv-droptemp.c: New file.
35064         * modules/idpriv-droptemp: New file.
35065
35066 2009-06-08  Bruno Haible  <bruno@clisp.org>
35067
35068         Tests for module 'idpriv-drop'.
35069         * modules/idpriv-drop-tests: New file.
35070         * tests/test-idpriv-drop.sh: New file.
35071         * tests/test-idpriv-drop.su.sh: New file.
35072         * tests/test-idpriv-drop.c: New file.
35073
35074         New module 'idpriv-drop'.
35075         * lib/idpriv.h: New file.
35076         * lib-idpriv-drop.c: New file.
35077         * m4/idpriv.m4: New file.
35078         * modules/idpriv-drop: New file.
35079
35080 2009-06-08  Bruno Haible  <bruno@clisp.org>
35081
35082         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35083         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35084         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35085         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35086         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35087         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35088         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35089
35090 2009-06-08  Eric Blake  <ebb9@byu.net>
35091
35092         test-strstr: use memory fence, when possible
35093         * tests/test-strstr.c (main): Use memory fence, in order to be
35094         more likely to trigger Debian bug 521737.
35095         * modules/strstr-tests (Files): Pull in additional files.
35096
35097         memchr: no longer obsolete, for wider field testing
35098         * modules/memchr (Status, Notice): Delete, this module is no
35099         longer obsolete.
35100         * modules/vasnprintf (Depends-on): Add memchr.
35101
35102 2009-06-07  Jim Meyering  <meyering@redhat.com>
35103
35104         hash: declare some functions with the warn_unused_result attribute
35105         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35106
35107 2009-06-07  Bruno Haible  <bruno@clisp.org>
35108
35109         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35110         Reported by Eric Blake.
35111
35112 2009-06-06  Eric Blake  <ebb9@byu.net>
35113
35114         test-alignof: fix typo with long double
35115         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35116         compiler error.
35117
35118 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35119
35120         Escape non-texinfo { and }s.
35121         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35122         markup error.
35123
35124 2009-06-04  Jim Meyering  <meyering@redhat.com>
35125
35126         gitlog-to-changelog: don't infloop on an empty commit log
35127         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35128         Reported by Boris Petersen <transacid@centerim.org>.
35129
35130 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35131
35132         version-etc: extend for packagers
35133         Add three new configure options, intended for packagers:
35134           --with-packager="packager name"
35135           --with-packager-version="packager-specific version"
35136           --with-packager-bug-reports="packager bug reporting"
35137         An example with coreutils:
35138           $ ./configure \
35139             --with-packager=Gentoo \
35140             --with-packager-bug-report=http://bugs.gentoo.org/ \
35141             --with-packager-version="patchset 1.6"
35142           $ ./src/ls --version | head -n2
35143           ls (GNU coreutils) 7.1-dirty
35144           Packaged by Gentoo (patchset 1.6)
35145         Note that the bug reporting info via --help doesn't show up because
35146         coreutils uses its own custom emit_bug_reporting_address() implementation
35147         in src/system.h.  If it didn't, it'd look like:
35148           $ ./src/ls --help | tail -n4
35149           Report bugs to <bug-coreutils@gnu.org>.
35150           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35151           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35152           General help using GNU software: <http://www.gnu.org/gethelp/>.
35153         * lib/version-etc.c: Print new information, if provided.
35154         * m4/version-etc.m4: New file.
35155         * modules/version-etc (Files): Add m4/version-etc.m4.
35156         (configure.ac): Add gl_VERSION_ETC.
35157
35158 2009-05-31  Bruno Haible  <bruno@clisp.org>
35159
35160         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35161         and 'int64_t'.
35162         * modules/alignof-tests (Dependencies): Add stdint.
35163         Reported by Eric Blake.
35164
35165 2009-05-31  Bruno Haible  <bruno@clisp.org>
35166
35167         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35168         restriction due to compiler bugs.
35169         Reported by Eric Blake.
35170
35171 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35172             Bruno Haible  <bruno@clisp.org>
35173
35174         Fix test-alignof failure.
35175         * lib/alignof.h (alignof_slot): New macro.
35176         (alignof_type): New macro, with the same semantics as the previous
35177         'alignof'.
35178         (alignof): Alias to alignof_slot.
35179         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35180         check that the results are usable as constant expressions.
35181
35182 2009-05-31  Bruno Haible  <bruno@clisp.org>
35183
35184         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35185         * tests/test-memchr.c (main): Check that memchr does not read past the
35186         first occurrence of the byte.
35187         * tests/test-strstr.c (main): Update comment.
35188         Suggested by Eric Blake.
35189
35190 2009-05-30  Bruno Haible  <bruno@clisp.org>
35191
35192         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35193         detail how to use dumpbin.
35194         Reported by David Byron <dbyron@dbyron.com>.
35195
35196 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35197
35198         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35199
35200 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35201
35202         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35203
35204 2009-05-28  Bruno Haible  <bruno@clisp.org>
35205
35206         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35207         build-aux/ files.
35208
35209 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35210
35211         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35212
35213 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35214
35215         * gnulib-tool (sed_transform_main_lib_file)
35216         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35217         regexps.
35218
35219 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35220
35221         * tests/test-strstr.c: Add another self-test.
35222         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35223         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35224
35225 2009-05-23  Bruno Haible  <bruno@clisp.org>
35226
35227         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35228         change.
35229
35230 2009-05-21  Bruno Haible  <bruno@clisp.org>
35231
35232         Simplify use of mode_t varargs.
35233         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35234         uses 'mode_t' or 'int'.
35235         * lib/openat.c (openat): Likewise.
35236         * lib/open-safer.c (open_safer): Likewise.
35237         * m4/mode_t.m4: New file.
35238         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35239         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35240         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35241         * modules/open (Files): Add m4/mode_t.m4.
35242         * modules/openat (Files): Likewise.
35243         * modules/fcntl-safer (Files): Likewise.
35244         Suggested by Eric Blake.
35245
35246 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35247
35248         * doc/glibc-functions/fallocate.texi: New file.
35249         * doc/gnulib.texi: Include it.
35250
35251 2009-05-21  Eric Blake  <ebb9@byu.net>
35252             Bruno Haible  <bruno@clisp.org>
35253
35254         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35255         invocations.
35256         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35257
35258 2009-05-21  Eric Blake  <ebb9@byu.net>
35259             Bruno Haible  <bruno@clisp.org>
35260
35261         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35262         include_next. Fix of 2008-11-20 commit.
35263         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35264         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35265         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35266         NEXT_MATH_H.
35267         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35268         instead of NEXT_MATH_H.
35269
35270 2009-05-21  Bruno Haible  <bruno@clisp.org>
35271
35272         Avoid redefinition warnings for SIZE_MAX.
35273         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35274         Reported by Simon Josefsson.
35275
35276 2009-05-21  Bruno Haible  <bruno@clisp.org>
35277
35278         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35279         AC_CACHE_VAL.
35280
35281 2009-05-20  Bruno Haible  <bruno@clisp.org>
35282
35283         Make zeroptr.h work on mingw.
35284         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35285         mprotect.
35286         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35287         * modules/memchr2-tests (configure.ac): Likewise.
35288         * modules/memcmp-tests (configure.ac): Likewise.
35289         * modules/memmem-tests (configure.ac): Likewise.
35290         * modules/memrchr-tests (configure.ac): Likewise.
35291         Reported by Simon Josefsson.
35292
35293 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35294
35295         * tests/test-glob.c: Include string.h for strcmp prototype.
35296
35297 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35298
35299         * modules/getdelim (Depends-on): Add explicit stdint, although it
35300         was implicitly already pulled in via realloc-posix.
35301         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35302
35303 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35304
35305         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35306         G. Christensen" <tgc@jupiterrise.com>.
35307         * m4/sys_socket_h.m4: Check for sa_family_t.
35308         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35309         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35310         * tests/test-sys_socket.c: Check that sa_family_t works.
35311
35312 2009-05-18  Eric Blake  <ebb9@byu.net>
35313
35314         maint.mk: allow gnulib_dir in VPATH build
35315         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35316
35317 2009-05-15  Jim Meyering  <meyering@redhat.com>
35318
35319         maint.mk: Give gnulib_dir a default definition.
35320         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35321         Thus, most packages no longer need to specify this variable in cfg.mk
35322
35323 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35324
35325         rename.m4: fix typos that would make non-mingw cross-configure fail
35326         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35327
35328 2009-05-13  Eric Blake  <ebb9@byu.net>
35329
35330         mmap-anon: avoid out-of-order autoconf expansion
35331         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35332         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35333         * modules/memchr-tests (Depends-on): Add extensions.
35334         * modules/memchr2-tests (Depends-on): Add extensions.
35335         * modules/memcmp-tests (Depends-on): Add extensions.
35336         * modules/memmem-tests (Depends-on): Add extensions.
35337         * modules/memrchr-tests (Depends-on): Add extensions.
35338
35339 2009-05-13  Bruno Haible  <bruno@clisp.org>
35340
35341         Make some tests ISO C 99 compliant.
35342         * tests/zerosize-ptr.h: New file.
35343         * tests/test-memchr.c: Include zerosize-ptr.h.
35344         (main): Use a zero-size object pointer instead of NULL.
35345         * tests/test-memchr2.c: Include zerosize-ptr.h.
35346         (main): Use a zero-size object pointer instead of NULL.
35347         * tests/test-memcmp.c: Include zerosize-ptr.h.
35348         (main): Use a zero-size object pointer instead of NULL.
35349         * tests/test-memmem.c: Include zerosize-ptr.h.
35350         (main): Use a zero-size object pointer instead of NULL.
35351         * tests/test-memrchr.c: Include zerosize-ptr.h.
35352         (main): Use a zero-size object pointer instead of NULL.
35353         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35354         m4/mmap-anon.m4.
35355         (Depends-on): Add getpagesize.
35356         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35357         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35358         m4/mmap-anon.m4.
35359         (Depends-on): Add getpagesize.
35360         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35361         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35362         m4/mmap-anon.m4.
35363         (Depends-on): Add getpagesize.
35364         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35365         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35366         m4/mmap-anon.m4.
35367         (Depends-on): Add getpagesize.
35368         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35369         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35370         m4/mmap-anon.m4.
35371         (Depends-on): Add getpagesize.
35372         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35373
35374 2009-05-12  Bruno Haible  <bruno@clisp.org>
35375
35376         Tests for module 'alignof'.
35377         * modules/alignof-tests: New file.
35378         * tests/test-alignof.c: New file.
35379
35380 2009-05-12  Bruno Haible  <bruno@clisp.org>
35381
35382         Fix alignof macro.
35383         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35384         vendor compilers that are always correct.
35385
35386 2009-05-12  Bruno Haible  <bruno@clisp.org>
35387
35388         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35389         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35390         not whether its fully works.
35391
35392 2009-05-12  Bruno Haible  <bruno@clisp.org>
35393
35394         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35395
35396 2009-05-12  Jim Meyering  <meyering@redhat.com>
35397
35398         * top/maint.mk: Adjust backslash alignment.
35399
35400 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35401
35402         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35403
35404 2009-05-11  Eric Blake  <ebb9@byu.net>
35405
35406         argp: avoid undefined behavior
35407         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35408         macros.
35409
35410 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35411
35412         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35413         user.name to prevent git commit from complaining.
35414
35415 2009-05-10  Bruno Haible  <bruno@clisp.org>
35416
35417         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35418         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35419         it rewrites every file name only once.
35420         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35421
35422 2009-05-08  Bruno Haible  <bruno@clisp.org>
35423
35424         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35425         instead of 'max'.
35426
35427 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35428
35429         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35430         sockaddr_storage test.
35431
35432 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35433
35434         * modules/sys_socket (Makefile.am): Substitute
35435         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35436         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35437         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35438         * tests/test-sys_socket.c: Check sockaddr_storage.
35439
35440 2009-05-08  Bruno Haible  <bruno@clisp.org>
35441
35442         New module 'alignof'.
35443         * lib/alignof.h: New file.
35444         * modules/alignof: New file.
35445
35446 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35447             Bruno Haible  <bruno@clisp.org>
35448
35449         Fix test-file-has-acl on FreeBSD.
35450         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35451         mask is implicitly added.
35452         * tests/test-file-has-acl.c: Include <signal.h>.
35453         (main): Terminate the test after 5 seconds.
35454         * modules/acl-tests (configure.ac): Check for alarm function.
35455
35456 2009-05-04  Bruno Haible  <bruno@clisp.org>
35457
35458         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35459         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35460         * modules/errno (configure.ac): Drop AC_REQUIRE.
35461         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35462         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35463
35464 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35465
35466         * modules/glob-tests: New module.
35467         * tests/test-glob.c: Add.
35468
35469 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35470
35471         * modules/fnmatch-tests: New module.
35472         * tests/test-fnmatch.c: Add.
35473
35474 2009-05-04  Eric Blake  <ebb9@byu.net>
35475
35476         maint: make the new no-submodule-changes rule VPATH-safe
35477         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35478
35479 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35480             Bruno Haible  <bruno@clisp.org>
35481
35482         acl: Fix infinite loop on FreeBSD.
35483         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35484         of return value from acl_get_entry.
35485         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35486         Likewise.
35487
35488 2009-05-03  Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/acl-internal.h (acl_entries): Clarify return value.
35491         * lib/acl_entries.c (acl_entries): Likewise.
35492
35493 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35494
35495         Bug fix in acl module.
35496         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35497
35498 2009-05-03  Bruno Haible  <bruno@clisp.org>
35499
35500         Create gperf-generated file in the source dir, not in the build dir.
35501         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35502         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35503         * modules/unicase/locale-language (unicase/locale-languages.h):
35504         Likewise.
35505         * modules/unicase/special-casing (unicase/special-casing-table.h):
35506         Likewise.
35507         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35508         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35509         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35510         Reported by Ralf Wildenhues.
35511
35512 2009-05-03  Bruno Haible  <bruno@clisp.org>
35513
35514         * modules/fnmatch (Description, configure.ac): Taken from
35515         fnmatch-posix.
35516         * modules/fnmatch-posix: Turn into a symbolic reference to the
35517         'fnmatch' module, and deprecate.
35518         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35519
35520 2009-05-03  Bruno Haible  <bruno@clisp.org>
35521
35522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35523         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35524         Reported by Ralf Wildenhues.
35525
35526 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35527
35528         * m4/fnmatch.m4: Fix fnmatch re-define.
35529
35530 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35531
35532         priv-set: new module and tests; adapt write-any-file
35533         * lib/priv-set.c: New file.
35534         * lib/priv-set.h: New file.
35535         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35536         * lib/write-any-file.c: Simplify by using priv-set module.
35537         * m4/priv-set.m4: New file.
35538         * modules/priv-set: New file.
35539         * modules/unlinkdir: Add dependency on priv-set module.
35540         * modules/write-any-file: Likewise.
35541
35542         Tests for module 'priv-set'.
35543         * modules/priv-set-tests: New file.
35544         * tests/test-priv-set.c: New file.
35545
35546 2009-05-03  Jim Meyering  <meyering@redhat.com>
35547             Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35550         use the converted UTF-8 variant of the name instead.
35551
35552 2009-05-03  Jim Meyering  <meyering@redhat.com>
35553
35554         tests: tighten some getdate tests
35555         * tests/test-getdate.c (main): Tighten tests: require equality,
35556         not just greater than.  Set TZ envvar to UTC0.
35557
35558 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35559
35560         getdate: correctly interpret "next monday" when run on a Monday
35561         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35562         that e.g., "next tues" (when run on a tuesday) results in a date
35563         that is one week in the future, and not today's date.
35564         I.e., add a week when the wday is the same as the current one.
35565         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35566         and earlier by Martin Bernreuther and Jan Minář.
35567         * tests/test-getdate.c (main): Check that "next DAY" is always in
35568         the future and that "last DAY" is always in the past.
35569
35570 2009-05-02  Jim Meyering  <meyering@redhat.com>
35571
35572         build: ensure that a release build fails when a submodule is unclean
35573         * top/maint.mk (no-submodule-changes): New rule.
35574         (alpha beta major): Depend on it.
35575
35576 2009-05-02  Bruno Haible  <bruno@clisp.org>
35577
35578         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35579         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35580         shell variable gl_fnmatch_required to detect which variant is
35581         requested.
35582         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35583         gl_FUNC_FNMATCH_POSIX.
35584         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35585         exclude fnmatch-posix.
35586
35587 2009-05-02  Bruno Haible  <bruno@clisp.org>
35588
35589         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35590         * modules/mbsrtowcs (License): Change to LGPLv2+.
35591         * modules/strnlen1 (License): Likewise.
35592         Reported by Simon Josefsson.
35593
35594 2009-05-02  Bruno Haible  <bruno@clisp.org>
35595
35596         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35597         "cross".
35598         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35599         gnulib-tool was called with option --source-base=lib.
35600
35601 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35602
35603         Use automake *-local hooks without commands, for extensibility.
35604         * modules/localcharset (Makefile.am): Rename install-exec-local
35605         rule to install-exec-localcharset, and make it a prerequisite of
35606         install-exec-local.  Likewise, rename the uninstall-local rule to
35607         uninstall-localcharset, and make it a prerequisite of the former.
35608
35609 2009-05-01  Bruno Haible  <bruno@clisp.org>
35610
35611         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35612         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35613         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35615         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35616         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35617         m4/locale-zh.m4, m4/codeset.m4.
35618
35619         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35620         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35621         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35622         m4/locale-zh.m4.
35623
35624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35625         REPLACE_WCRTOMB if mbstate_t must be replaced.
35626         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35627         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35628
35629 2009-05-01  Bruno Haible  <bruno@clisp.org>
35630
35631         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35632         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35633         dngettext, dcngettext, textdomain, bindtextdomain,
35634         bind_textdomain_codeset): Undefine before redefining.
35635
35636 2009-04-30  Bruno Haible  <bruno@clisp.org>
35637
35638         Fix bug introduced on 2009-04-25.
35639         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35640         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35641         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35642         is defined.
35643         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35644         is defined.
35645         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35646         is defined.
35647         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35648
35649 2009-04-28  Bruno Haible  <bruno@clisp.org>
35650
35651         Comment tweaks.
35652         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35653         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35654         * lib/unicase.h (u*_casexfrm): Likewise.
35655         Reported by Paolo Bonzini.
35656
35657 2009-04-28  Bruno Haible  <bruno@clisp.org>
35658
35659         Fix a compilation error.
35660         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35661         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35662         Reported by Jim Meyering.
35663
35664 2009-04-27  Bruno Haible  <bruno@clisp.org>
35665
35666         New module 'libunistring'.
35667         * modules/libunistring: New file.
35668         * m4/libunistring.m4: New file.
35669         * MODULES.html.sh (Unicode string functions): Add it.
35670
35671 2009-04-27  Eric Blake  <ebb9@byu.net>
35672
35673         maint.mk: allow package-specific header to provide <config.h>
35674         * top/maint.mk (sc_require_config_h): New variable.
35675         (sc_require_config_h, sc_require_config_h_first): Use it.
35676
35677 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35678
35679         * top/maint.mk (sc_avoid_if_before_free): Except
35680         useless-if-before-free script.
35681
35682 2009-04-27  Eric Blake  <ebb9@byu.net>
35683
35684         maintainer-makefile: depend on all required helper scripts
35685         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35686         useless-if-before-free.
35687         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35688         version, rather than assuming gnulib checkout is available.
35689         Reported by Simen Josefsson.
35690
35691 2009-04-26  Bruno Haible  <bruno@clisp.org>
35692
35693         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35694         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35695         "../" or "..".
35696
35697 2009-04-26  Bruno Haible  <bruno@clisp.org>
35698
35699         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35700         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35701         AC_LIB_HAVE_LINKFLAGS.
35702
35703 2009-04-26  Bruno Haible  <bruno@clisp.org>
35704
35705         Simplify calling convention of u*_conv_from_encoding.
35706         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35707         u32_conv_from_encoding): Expect a resultbuf argument and return the
35708         result directly as a pointer.
35709         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35710         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35711         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35712         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35713         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35714         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35715         Update.
35716         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35717         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35718         * lib/vasnprintf.c (VASNPRINTF): Update.
35719         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35720         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35721         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35722         * NEWS: Mention the change.
35723
35724 2009-04-26  Bruno Haible  <bruno@clisp.org>
35725
35726         Simplify calling convention of u*_conv_to_encoding.
35727         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35728         u32_conv_to_encoding): Expect a resultbuf argument and return the
35729         result directly as a pointer.
35730         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35731         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35732         freeing scaled_offsets if mem_iconveha failed.
35733         * lib/unicase/u-casexfrm.h (FUNC): Update.
35734         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35735         * lib/vasnprintf.c (VASNPRINTF): Update.
35736         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35737         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35738         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35739         * NEWS: Mention the change.
35740
35741 2009-04-26  Bruno Haible  <bruno@clisp.org>
35742
35743         Avoid test failures on AIX and OSF/1.
35744         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35745         malloc(0).
35746         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35747         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35748         Likewise.
35749         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35750         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35751         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35752         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35753         * doc/posix-functions/malloc.texi: Document the portability problem
35754         related to malloc(0).
35755
35756 2009-04-26  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35759         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35760         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35761
35762 2009-04-25  Bruno Haible  <bruno@clisp.org>
35763
35764         Avoid link error when creating a namespace clean library.
35765         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35766         as macro with arguments if already defined as an alias.
35767         * lib/signbitf.c (gl_signbitf): Don't undefine.
35768         * lib/signbitd.c (gl_signbitd): Don't undefine.
35769         * lib/signbitl.c (gl_signbitl): Don't undefine.
35770
35771 2009-04-25  Jim Meyering  <meyering@redhat.com>
35772
35773         vc-list-files: fix another quoting bug
35774         * build-aux/vc-list-files: Avoid sed backslash expansion
35775         of pathological directory names.
35776
35777 2009-04-25  Eric Blake  <ebb9@byu.net>
35778
35779         vc-list-files: fix shell quoting error
35780         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35781         timestamp.
35782
35783 2009-04-25  Jim Meyering  <meyering@redhat.com>
35784
35785         vc-list-files: restore lost functionality with subdir argument
35786         * build-aux/vc-list-files: When given a non-"." sub-directory
35787         argument, substitute the $dir/ prefix back onto each resulting name.
35788         Otherwise, coreutils' root_tests check would fail.
35789
35790 2009-04-24  Eric Blake  <ebb9@byu.net>
35791
35792         vc-list-files: ignore git symlinks
35793         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35794         than ls-files, to ignore git symlinks.
35795
35796         maint.mk: import improvements from m4
35797         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35798         (move_if_change): Delete unused macro.
35799         (news-date-check, vc-diff-check): Support VPATH builds.
35800         (announcement): Likewise.  Split --bootstrap-tools list...
35801         (boostrap-tools): ...into separate list, which can be overridden
35802         in cfg.mk.
35803         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35804         requiring dependency on useless-if-before-free module.
35805         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35806         Support VPATH builds.
35807
35808 2009-04-24  Jim Meyering  <meyering@redhat.com>
35809
35810         maint.mk: remove coreutils-specific rules and variables
35811         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35812         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35813         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35814
35815         maint.mk: remove obsolete rule
35816         * top/maint.mk (rel-check): Remove rule.
35817         (WGET, WGETFLAGS): Remove now-unused variables.
35818
35819 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35820
35821         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35822         consistency.
35823
35824         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35825         '$(PATH_SEPARATOR)' instead of ':'.
35826
35827 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35828
35829         * lib/getopt1.c (main): Use 'const' for static array.
35830
35831 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35832
35833         * top/maint.mk: Sync with coreutils.
35834         * NEWS: Explain incompatibilities.
35835
35836 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35837             Bruno Haible  <bruno@clisp.org>
35838
35839         Fix cross-compilation results.
35840         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35841         statement, as third argument of AC_TRY_RUN.
35842         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35843         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35844         Likewise.
35845         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35846         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35847         Likewise.
35848         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35849         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35850         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35851
35852 2009-04-20  Bruno Haible  <bruno@clisp.org>
35853
35854         Avoid test failure on mingw.
35855         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35856
35857 2009-04-20  Bruno Haible  <bruno@clisp.org>
35858
35859         Avoid compilation error on mingw.
35860         * modules/localename-tests (Depends-on): Add locale.
35861
35862 2009-04-19  Bruno Haible  <bruno@clisp.org>
35863
35864         Support for building a shared library on Windows platforms.
35865         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35866         (main): Test the presence of UNINORM_NFC here.
35867         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35868         (main): Test the presence of UNINORM_NFD here.
35869         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35870         (main): Test the presence of UNINORM_NFKC here.
35871         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35872         (main): Test the presence of UNINORM_NFKD here.
35873
35874 2009-04-19  Bruno Haible  <bruno@clisp.org>
35875
35876         Avoid a compiler warning.
35877         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35878         Change type of variable 'sequence'.
35879
35880 2009-04-19  Bruno Haible  <bruno@clisp.org>
35881
35882         * modules/configmake (Makefile.am): When the contents of configmake.h
35883         does not change, arrange to preserve its modification time.
35884
35885 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35886
35887         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35888         gettext domain.
35889
35890 2009-04-16  Jim Meyering  <meyering@redhat.com>
35891
35892         useless-if-before-free: improve conversion code
35893         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35894         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35895
35896 2009-04-14  Bruno Haible  <bruno@clisp.org>
35897
35898         * modules/fcntl (Depends-on): Add extensions.
35899         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35900
35901 2009-04-12  Ben Pfaff  <blp@gnu.org>
35902
35903         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35904         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35905
35906 2009-03-20  Ben Pfaff  <blp@gnu.org>
35907
35908         Make rename replace existing destinations on Windows.
35909         * m4/rename.m4: Add test for Mingw.
35910         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35911         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35912         * doc/posix-functions/rename.texi: Document.
35913
35914 2009-04-10  Bruno Haible  <bruno@clisp.org>
35915
35916         New include file "iconveh.h".
35917         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35918         * lib/striconveh.h: Include it.
35919         (enum iconv_ilseq_handler): Remove definition.
35920         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35921         striconveh.h.
35922         * lib/striconveha.c: Include striconveh.h.
35923         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35924         * modules/striconveh (Files): Add lib/iconveh.h.
35925         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35926         lib/striconveh.h.
35927
35928 2009-04-10  Bruno Haible  <bruno@clisp.org>
35929
35930         * lib/uniconv.h: Update comment.
35931
35932 2009-04-10  Bruno Haible  <bruno@clisp.org>
35933
35934         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35935         always.
35936         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35937         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35938         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35939         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35940         "unistring-notinline.h", so that the function gets defined always.
35941         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35942         * lib/unistr/u8-uctomb.c: Likewise.
35943         * lib/unistr/u16-mbtouc.c: Likewise.
35944         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35945         * lib/unistr/u16-uctomb.c: Likewise.
35946         * lib/unistr/u32-mbtouc.c: Likewise.
35947         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35948         * lib/unistr/u32-uctomb.c: Likewise.
35949
35950 2009-04-10  Bruno Haible  <bruno@clisp.org>
35951
35952         Mark 'utime' obsolete.
35953         * modules/utime (Status, Notice): New sections.
35954         Suggested by Jim Meyering.
35955
35956         Fix cross-compile guess for utime test.
35957         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35958         autoconf.
35959         * doc/posix-functions/utime.texi: Give more precisions.
35960         Reported by Jan <ipif@ymail.com>.
35961
35962 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35963
35964         filevercmp: correct today's change
35965         * lib/filevercmp.c: Also handle coreutils' test inputs.
35966         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35967
35968         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35969         for reporting it.
35970         * lib/filevercmp.c: Special handle for "", "." and "..".
35971         * tests/test-filevercmp.c: Enlarge the set suite.
35972
35973 2009-04-07  Jim Meyering  <meyering@redhat.com>
35974
35975         useless-if-before-free: show how to remove braced useless free, too
35976         * build-aux/useless-if-before-free: still only in a comment, though.
35977
35978 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35979
35980         maint.mk: import changes to syntax-check macros from coreutils
35981         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35982         Use them in the relevant macros.
35983
35984 2009-04-06  Bruno Haible  <bruno@clisp.org>
35985
35986         Fix unportable use of bit-fields.
35987         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35988         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35989         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35990
35991 2009-04-06  Bruno Haible  <bruno@clisp.org>
35992
35993         Avoid test failures on AIX and OSF/1.
35994         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35995         that malloc(0) = NULL.
35996         * tests/unicase/test-u8-tolower.c (check): Likewise.
35997         * tests/unicase/test-u8-totitle.c (check): Likewise.
35998         * tests/unicase/test-u8-toupper.c (check): Likewise.
35999         * tests/unicase/test-u16-casefold.c (check): Likewise.
36000         * tests/unicase/test-u16-tolower.c (check): Likewise.
36001         * tests/unicase/test-u16-totitle.c (check): Likewise.
36002         * tests/unicase/test-u16-toupper.c (check): Likewise.
36003         * tests/unicase/test-u32-casefold.c (check): Likewise.
36004         * tests/unicase/test-u32-tolower.c (check): Likewise.
36005         * tests/unicase/test-u32-totitle.c (check): Likewise.
36006         * tests/unicase/test-u32-toupper.c (check): Likewise.
36007         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36008         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36009         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36010         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36011         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36012         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36013         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36014         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36015         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36016         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36017         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36018         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36019
36020 2009-04-05  Bruno Haible  <bruno@clisp.org>
36021
36022         Work around an autoconf limitation.
36023         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36024         comment line if it would be longer than 3 KB.
36025
36026 2009-04-05  Bruno Haible  <bruno@clisp.org>
36027
36028         Avoid test failure with libiconv-1.13.
36029         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36030         of the expected test results.
36031
36032 2009-04-05  Bruno Haible  <bruno@clisp.org>
36033
36034         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36035         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36036         that it should be installed.
36037
36038 2009-04-05  Bruno Haible  <bruno@clisp.org>
36039
36040         * gnulib-tool: New option --copy-file.
36041         (func_usage): Document it.
36042         (func_dest_tmpfilename): Moved out of func_import.
36043         (func_add_file, func_update_file): New functions, extracted from
36044         func_import.
36045         (func_import): Update.
36046
36047 2009-04-05  Karl Berry  <karl@gnu.org>
36048
36049         * README: prominently mention gnulib-tool.
36050         Rearrange sections so getting the code is near the top.
36051
36052 2009-04-05  Bruno Haible  <bruno@clisp.org>
36053
36054         * lib/unicase.h: Mention u*_cmp2.
36055         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36056         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36057         * lib/unicase/ulc-casecmp.c: Likewise.
36058         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36059         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36060         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36061         unistr/u8-cmp.
36062         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36063         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36064         unistr/u16-cmp.
36065         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36066         unistr/u32-cmp.
36067
36068         * lib/uninorm.h: Mention u*_cmp2.
36069         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36070         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36071         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36072         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36073         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36074         unistr/u8-cmp.
36075         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36076         unistr/u16-cmp.
36077         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36078         unistr/u32-cmp.
36079
36080         New module 'unistr/u32-cmp2'.
36081         * lib/unistr/u32-cmp2.c: New file.
36082         * modules/unistr/u32-cmp2: New file.
36083
36084         New module 'unistr/u16-cmp2'.
36085         * lib/unistr/u16-cmp2.c: New file.
36086         * modules/unistr/u16-cmp2: New file.
36087
36088         New module 'unistr/u8-cmp2'.
36089         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36090         * lib/unistr/u8-cmp2.c: New file.
36091         * lib/unistr/u-cmp2.h: New file.
36092         * modules/unistr/u8-cmp2: New file.
36093
36094 2009-04-05  Bruno Haible  <bruno@clisp.org>
36095
36096         * lib/unictype.h (uc_property_is_valid): New macro.
36097         * tests/unictype/test-pr_byname.c (main): Use it.
36098
36099         * lib/unistr.h: Doc fixes.
36100         * lib/uniconv.h: Doc fixes.
36101         * lib/unictype.h: Doc fixes.
36102
36103 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36104
36105         Port coreutils 7.2 to Solaris 8.
36106
36107         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36108         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36109         for Solaris 8.  This is a bit of a hack, as it means it's the
36110         caller's responsibility to add -lnsl if needed, but most likely it
36111         won't be needed since only getaddrinfo uses this and getaddrinfo
36112         isn't needed on Solaris 8.
36113
36114         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36115         problem to Solaris 8 encountered with coreutils 7.2, which
36116         resulted in a message "fnmatch.c:292: warning: passing argument 4
36117         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36118         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36119
36120 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36121
36122         * m4/ld-version-script.m4: Add FIXME comment.
36123
36124 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36125
36126         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36127         SOVERSION variable.
36128
36129 2009-04-02  Bruno Haible  <bruno@clisp.org>
36130
36131         * Makefile (info, html, dvi, pdf): Combine the rules.
36132         Suggested by Jim Meyering.
36133
36134 2009-04-01  Bruno Haible  <bruno@clisp.org>
36135
36136         * Makefile (info, html, dvi, pdf): New targets.
36137         Reported by Reuben Thomas <rrt@sc3d.org>.
36138
36139 2009-04-01  Bruno Haible  <bruno@clisp.org>
36140
36141         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36142         can be put into PATH.
36143         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36144
36145 2009-04-01  Bruno Haible  <bruno@clisp.org>
36146
36147         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36148
36149 2009-04-01  Bruno Haible  <bruno@clisp.org>
36150
36151         Rename module 'visibility'.
36152         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36153         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36154         * doc/gnulib.texi: Update.
36155         * MODULES.html.sh (Misc): Update.
36156         * NEWS: Mention the change.
36157
36158 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36159
36160         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36161         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36162         Eric Blake <ebb9@byu.net> for review.
36163         * MODULES.html.sh: Add lib-msvc-compat.
36164         * doc/gnulib.texi: Link to new section.
36165         * m4/ld-output-def.m4: New file.
36166         * doc/ld-output-def.texi: New file.
36167
36168 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36169
36170         Rename ld-version-script to lib-symbol-versions.  Suggested by
36171         Bruno Haible <bruno@clisp.org>.
36172         * modules/ld-version-script: Renamed to lib-symbol-versions.
36173         * doc/ld-version-script.texi: Fix module name.
36174         * MODULES.html.sh: Add lib-symbol-versions.
36175
36176 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36177
36178         * modules/u64-tests: New file.
36179         * tests/test-u64.c: New file.
36180
36181 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36182
36183         * MODULES.html.sh: Mention u64.
36184         * modules/u64: New module.
36185         * modules/crypto/sha512: Depend on u64 module instead of providing
36186         u64.h.
36187
36188 2009-03-27  Eric Blake  <ebb9@byu.net>
36189
36190         test-strerror: make debugging EAI_SYSTEM easier
36191         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36192         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36193         failure was EAI_SYSTEM.
36194
36195 2009-03-25  Bruno Haible  <bruno@clisp.org>
36196
36197         Fix a problem with --enable-relocatable on Solaris 7.
36198         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36199         since 2008-02-24.
36200
36201 2009-03-25  Eric Blake  <ebb9@byu.net>
36202
36203         test-sockets: avoid gcc warning
36204         * tests/test-sockets.c (main): Silence compiler warning.
36205
36206 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36207
36208         New modules nproc, pthread, contributed by Glen Lenker.
36209
36210         * MODULES.html.sh: Add pthread, nproc.
36211         * lib/nproc.c: New file.
36212         * lib/nproc.h: New file.
36213         * lib/pthread.in.h: New file.
36214         * m4/pthread.m4: New file.
36215         * modules/nproc: New file.
36216         * modules/pthread: New file.
36217
36218 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36219
36220         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36221         New variable.
36222
36223 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36224
36225         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36226         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36227         * tests/test-filevercmp.c: Add tests for backup suffixes.
36228
36229 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36230
36231         * modules/stdlib (Depends-on): Add stdint, needed when defining
36232         struct random_data on, for example, HP-UX 10.20.  Reported by
36233         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36234
36235 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36236
36237         * lib/readline.c (readline): Call fflush on stdout after printing
36238         prompt.
36239
36240 2009-03-20  Bruno Haible  <bruno@clisp.org>
36241
36242         Remove dependency from 'close' module to -lws2_32 on native Windows.
36243         * lib/close-hook.h: New file.
36244         * lib/close-hook.c: New file.
36245         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36246         w32sock.h.
36247         (_gl_close_fd_maybe_socket): Remove function.
36248         (rpl_close): Invoke execute_all_close_hooks instead of
36249         _gl_close_fd_maybe_socket.
36250         * lib/sockets.c: Include close-hook.h, w32sock.h.
36251         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36252         (close_sockets_hook): New variable.
36253         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36254         (gl_sockets_cleanup): Unregister it.
36255         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36256         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36257         * modules/close-hook: New file.
36258         * modules/close (Files): Remove lib/w32sock.h.
36259         (Depends-on): Add close-hook.
36260         (Link): Remove section.
36261         * modules/sockets (Files): Add lib/w32sock.h.
36262         (Depends-on): Add close-hook.
36263         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36264         invocation.
36265         * NEWS: Mention that LIB_CLOSE is gone.
36266
36267 2009-03-23  Eric Blake  <ebb9@byu.net>
36268
36269         signal-tests: test previous patch
36270         * tests/test-signal.c: New file.
36271         * modules/signal-tests: Likewise.
36272
36273         signal.h: always support 'volatile sig_atomic_t'
36274         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36275         (gl_SIGNAL_H_DEFAULTS): Add a default.
36276         * modules/signal (Makefile.am): Substitute if needed.
36277         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36278         users can blindly add volatile.
36279         * doc/posix-headers/signal.texi (signal.h): Document it.
36280         Reported by Matthew Woehlke.
36281
36282 2009-03-23  Jim Meyering  <meyering@redhat.com>
36283
36284         pathmax: PATH_MAX: use pathconf only when available
36285         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36286         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36287         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36288         This avoids a link failure in a PSP cross-compilation environment
36289         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36290
36291         * lib/vasnprintf.c (divide): Fix typo in comment.
36292
36293 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36294
36295         * gnulib-tool (func_filter_filelist): Fix comment.
36296
36297 2009-03-20  Bruno Haible  <bruno@clisp.org>
36298
36299         Make sockets.h self-contained.
36300         * lib/sockets.c: Include sockets.h first.
36301         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36302
36303 2009-03-19  Eric Blake  <ebb9@byu.net>
36304
36305         doc: mention more functions added in cygwin 1.7.0
36306         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36307         addition.
36308         * doc/posix-functions/log2f.texi: Likewise.
36309
36310 2009-03-19  Jim Meyering  <meyering@redhat.com>
36311
36312         fsusage: avoid syntax error due to statement-before-declaration
36313         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36314         after all declarations.  Reported by Matthew Woehlke in
36315         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36316
36317 2009-03-18  Eric Blake  <ebb9@byu.net>
36318
36319         build-aux/compile: sync from automake
36320         * build-aux/compile: New file, from automake.
36321         * config/srclist.txt: Mention build-aux/compile.
36322
36323 2009-03-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/git-merge-changelog.c: Fix typo in comment.
36326         Reported by Reuben Thomas <rrt@sc3d.org>.
36327
36328 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36329
36330         * m4/regex.m4: update and improve help for
36331         --without-included-regex.
36332
36333 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36334
36335         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36336         failure on missing include files.
36337
36338 2009-03-17  Eric Blake  <ebb9@byu.net>
36339
36340         doc: mention more functions added in cygwin 1.7.0
36341         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36342         addition.
36343         * doc/posix-functions/fwscanf.texi: Likewise.
36344         * doc/posix-functions/swprintf.texi: Likewise.
36345         * doc/posix-functions/swscanf.texi: Likewise.
36346         * doc/posix-functions/vfwprintf.texi: Likewise.
36347         * doc/posix-functions/vfwscanf.texi: Likewise.
36348         * doc/posix-functions/vswprintf.texi: Likewise.
36349         * doc/posix-functions/vswscanf.texi: Likewise.
36350         * doc/posix-functions/vwprintf.texi: Likewise.
36351         * doc/posix-functions/vwscanf.texi: Likewise.
36352         * doc/posix-functions/wcscasecmp.texi: Likewise.
36353         * doc/posix-functions/wcsdup.texi: Likewise.
36354         * doc/posix-functions/wcsftime.texi: Likewise.
36355         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36356         * doc/posix-functions/wprintf.texi: Likewise.
36357         * doc/posix-functions/wscanf.texi: Likewise.
36358         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36359
36360 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36361
36362         maint.mk: really add $(AM_MAKEFLAGS)
36363         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36364         was inadvertently omitted in the last commit.
36365         Spotted by Bruno Haible.
36366
36367         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36368         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36369         $(AM_MAKEFLAGS)' rather than plain `make'.
36370
36371         gnulib-tool: execute $MAKE not make
36372         * gnulib-tool: Default $MAKE to 'make'.
36373         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36374         than make.  Initialize $MAKE in the do-autobuild script.
36375
36376         gnulib-tool: use $MAKE not make in generated files
36377         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36378         make, in generated files.  Initialize $MAKE in the do-autobuild
36379         script.
36380
36381         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36382
36383         GNUmakefile: disable parallelism only for multiple, recursive targets
36384         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36385         additions in the Makefile.
36386         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36387         by Automake.
36388         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36389         are listed on the command line and at least one of them is
36390         listed in $(ALL_RECURSIVE_TARGETS).
36391
36392 2009-03-14  Bruno Haible  <bruno@clisp.org>
36393
36394         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36395         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36396         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36397         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36398         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36399         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36400         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36401         unistr/u8-uctomb.
36402         * modules/unistr/u8-strchr (Depends-on): Likewise.
36403         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36404         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36405         unistr/u16-uctomb.
36406         * modules/unistr/u16-strchr (Depends-on): Likewise.
36407         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36408
36409 2009-03-12  Bruno Haible  <bruno@clisp.org>
36410
36411         Work around select() bug on Interix 3.5.
36412         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36413         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36414         * m4/select.m4: New file.
36415         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36416         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36417         * modules/select (Files): Add m4/select.m4.
36418         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36419         * modules/nanosleep (Depends-on): Add select.
36420         * modules/poll (Depends-on): Likewise.
36421         * doc/posix-functions/select.texi: Mention the Interix bug.
36422         Reported by Markus Duft <mduft@gentoo.org>.
36423
36424         * lib/select.c: Renamed from lib/winsock-select.c.
36425         * modules/select (Files): Add lib/select.c, remove
36426         lib/winsock-select.c.
36427         (configure.ac): Update.
36428
36429 2009-03-12  Jim Meyering  <meyering@redhat.com>
36430
36431         avoid gcc warnings about unused macro definitions
36432         * lib/readtokens.c (STREQ): Remove unused definition.
36433         * lib/xmalloc.c (SIZE_MAX): Likewise.
36434         * lib/openat-die.c (N_): Likewise.
36435         * lib/mountlist.c (SIZE_MAX): Remove definition.
36436         Instead, include <stdint.h>.
36437         * lib/readutmp.c: Likewise.
36438         * modules/readutmp (Depends-on): Add stdint.
36439         * modules/mountlist (Depends-on): Add stdint.
36440         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36441
36442 2009-03-10  Bruno Haible  <bruno@clisp.org>
36443
36444         Tests for module 'mbmemcasecoll'.
36445         * modules/mbmemcasecoll-tests: New file.
36446         * tests/test-mbmemcasecoll1.sh: New file.
36447         * tests/test-mbmemcasecoll2.sh: New file.
36448         * tests/test-mbmemcasecoll3.sh: New file.
36449         * tests/test-mbmemcasecoll.c: New file.
36450
36451         New module 'mbmemcasecoll'.
36452         * lib/mbmemcasecoll.h: New file.
36453         * lib/mbmemcasecoll.c: New file.
36454         * modules/mbmemcasecoll: New file.
36455
36456         * tests/test-mbmemcasecmp.h: New file, extracted from
36457         tests/test-mbmemcasecmp.c.
36458         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36459         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36460         (main): Update.
36461         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36462
36463 2009-03-09  Bruno Haible  <bruno@clisp.org>
36464
36465         Tests for module 'mbmemcasecmp'.
36466         * modules/mbmemcasecmp-tests: New file.
36467         * tests/test-mbmemcasecmp1.sh: New file.
36468         * tests/test-mbmemcasecmp2.sh: New file.
36469         * tests/test-mbmemcasecmp3.sh: New file.
36470         * tests/test-mbmemcasecmp.c: New file.
36471
36472         New module 'mbmemcasecmp'.
36473         * lib/mbmemcasecmp.h: New file.
36474         * lib/mbmemcasecmp.c: New file.
36475         * modules/mbmemcasecmp: New file.
36476
36477 2009-03-09  Bruno Haible  <bruno@clisp.org>
36478
36479         Tests for module 'unicase/ulc-casecoll'.
36480         * modules/unicase/ulc-casecoll-tests: New file.
36481         * tests/unicase/test-ulc-casecoll1.sh: New file.
36482         * tests/unicase/test-ulc-casecoll2.sh: New file.
36483         * tests/unicase/test-ulc-casecoll.c: New file.
36484
36485         New module 'unicase/ulc-casecoll'.
36486         * lib/unicase.h (ulc_casecoll): New declaration.
36487         * lib/unicase/ulc-casecoll.c: New file.
36488         * modules/unicase/ulc-casecoll: New file.
36489
36490         New module 'unicase/ulc-casexfrm'.
36491         * lib/unicase.h (ulc_casexfrm): New declaration.
36492         * lib/unicase/ulc-casexfrm.c: New file.
36493         * modules/unicase/ulc-casexfrm: New file.
36494
36495 2009-03-09  Bruno Haible  <bruno@clisp.org>
36496
36497         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36498         invocations.
36499
36500         * m4/mbscasecmp.m4: Remove file.
36501         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36502         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36503
36504         * m4/mbscasestr.m4: Remove file.
36505         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36506         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36507
36508         * m4/mbschr.m4: Remove file.
36509         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36510         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36511
36512         * m4/mbscspn.m4: Remove file.
36513         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36514         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36515
36516         * m4/mbslen.m4: Remove file.
36517         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36518         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36519
36520         * m4/mbsncasecmp.m4: Remove file.
36521         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36522         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36523
36524         * m4/mbsnlen.m4: Remove file.
36525         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36526         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36527
36528         * m4/mbspbrk.m4: Remove file.
36529         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36530         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36531
36532         * m4/mbspcasecmp.m4: Remove file.
36533         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36534         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36535
36536         * m4/mbsrchr.m4: Remove file.
36537         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36538         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36539
36540         * m4/mbssep.m4: Remove file.
36541         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36542         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36543
36544         * m4/mbsspn.m4: Remove file.
36545         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36546         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36547
36548         * m4/mbsstr.m4: Remove file.
36549         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36550         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36551
36552         * m4/mbstok_r.m4: Remove file.
36553         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36554         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36555
36556         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36557
36558         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36559         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36560
36561         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36562
36563 2009-03-08  Bruno Haible  <bruno@clisp.org>
36564
36565         Tests for module 'unicase/ulc-casecmp'.
36566         * modules/unicase/ulc-casecmp-tests: New file.
36567         * tests/unicase/test-ulc-casecmp1.sh: New file.
36568         * tests/unicase/test-ulc-casecmp2.sh: New file.
36569         * tests/unicase/test-ulc-casecmp.c: New file.
36570
36571         New module 'unicase/ulc-casecmp'.
36572         * lib/unicase.h (ulc_casecmp): New declaration.
36573         * lib/unicase/ulc-casecmp.c: New file.
36574         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36575         'const SRC_UNIT *'.
36576         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36577         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36578         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36579         * modules/unicase/ulc-casecmp: New file.
36580
36581         Tests for module 'unicase/u32-is-cased'.
36582         * modules/unicase/u32-is-cased-tests: New file.
36583         * tests/unicase/test-u32-is-cased.c: New file.
36584
36585         Tests for module 'unicase/u16-is-cased'.
36586         * modules/unicase/u16-is-cased-tests: New file.
36587         * tests/unicase/test-u16-is-cased.c: New file.
36588
36589         Tests for module 'unicase/u8-is-cased'.
36590         * modules/unicase/u8-is-cased-tests: New file.
36591         * tests/unicase/test-u8-is-cased.c: New file.
36592         * tests/unicase/test-is-cased.h: New file.
36593
36594         New module 'unicase/u32-is-cased'.
36595         * lib/unicase/u32-is-cased.c: New file.
36596         * modules/unicase/u32-is-cased: New file.
36597
36598         New module 'unicase/u16-is-cased'.
36599         * lib/unicase/u16-is-cased.c: New file.
36600         * modules/unicase/u16-is-cased: New file.
36601
36602         New module 'unicase/u8-is-cased'.
36603         * lib/unicase/u8-is-cased.c: New file.
36604         * lib/unicase/u-is-cased.h: New file.
36605         * modules/unicase/u8-is-cased: New file.
36606
36607         Tests for module 'unicase/u32-is-casefolded'.
36608         * modules/unicase/u32-is-casefolded-tests: New file.
36609         * tests/unicase/test-u32-is-casefolded.c: New file.
36610
36611         Tests for module 'unicase/u16-is-casefolded'.
36612         * modules/unicase/u16-is-casefolded-tests: New file.
36613         * tests/unicase/test-u16-is-casefolded.c: New file.
36614
36615         Tests for module 'unicase/u8-is-casefolded'.
36616         * modules/unicase/u8-is-casefolded-tests: New file.
36617         * tests/unicase/test-u8-is-casefolded.c: New file.
36618         * tests/unicase/test-is-casefolded.h: New file.
36619
36620         New module 'unicase/u32-is-casefolded'.
36621         * lib/unicase/u32-is-casefolded.c: New file.
36622         * modules/unicase/u32-is-casefolded: New file.
36623
36624         New module 'unicase/u16-is-casefolded'.
36625         * lib/unicase/u16-is-casefolded.c: New file.
36626         * modules/unicase/u16-is-casefolded: New file.
36627
36628         New module 'unicase/u8-is-casefolded'.
36629         * lib/unicase/u8-is-casefolded.c: New file.
36630         * modules/unicase/u8-is-casefolded: New file.
36631
36632         Tests for module 'unicase/u32-is-titlecase'.
36633         * modules/unicase/u32-is-titlecase-tests: New file.
36634         * tests/unicase/test-u32-is-titlecase.c: New file.
36635
36636         Tests for module 'unicase/u16-is-titlecase'.
36637         * modules/unicase/u16-is-titlecase-tests: New file.
36638         * tests/unicase/test-u16-is-titlecase.c: New file.
36639
36640         Tests for module 'unicase/u8-is-titlecase'.
36641         * modules/unicase/u8-is-titlecase-tests: New file.
36642         * tests/unicase/test-u8-is-titlecase.c: New file.
36643         * tests/unicase/test-is-titlecase.h: New file.
36644
36645         New module 'unicase/u32-is-titlecase'.
36646         * lib/unicase/u32-is-titlecase.c: New file.
36647         * modules/unicase/u32-is-titlecase: New file.
36648
36649         New module 'unicase/u16-is-titlecase'.
36650         * lib/unicase/u16-is-titlecase.c: New file.
36651         * modules/unicase/u16-is-titlecase: New file.
36652
36653         New module 'unicase/u8-is-titlecase'.
36654         * lib/unicase/u8-is-titlecase.c: New file.
36655         * modules/unicase/u8-is-titlecase: New file.
36656
36657         Tests for module 'unicase/u32-is-lowercase'.
36658         * modules/unicase/u32-is-lowercase-tests: New file.
36659         * tests/unicase/test-u32-is-lowercase.c: New file.
36660
36661         Tests for module 'unicase/u16-is-lowercase'.
36662         * modules/unicase/u16-is-lowercase-tests: New file.
36663         * tests/unicase/test-u16-is-lowercase.c: New file.
36664
36665         Tests for module 'unicase/u8-is-lowercase'.
36666         * modules/unicase/u8-is-lowercase-tests: New file.
36667         * tests/unicase/test-u8-is-lowercase.c: New file.
36668         * tests/unicase/test-is-lowercase.h: New file.
36669
36670         New module 'unicase/u32-is-lowercase'.
36671         * lib/unicase/u32-is-lowercase.c: New file.
36672         * modules/unicase/u32-is-lowercase: New file.
36673
36674         New module 'unicase/u16-is-lowercase'.
36675         * lib/unicase/u16-is-lowercase.c: New file.
36676         * modules/unicase/u16-is-lowercase: New file.
36677
36678         New module 'unicase/u8-is-lowercase'.
36679         * lib/unicase/u8-is-lowercase.c: New file.
36680         * modules/unicase/u8-is-lowercase: New file.
36681
36682         Tests for module 'unicase/u32-is-uppercase'.
36683         * modules/unicase/u32-is-uppercase-tests: New file.
36684         * tests/unicase/test-u32-is-uppercase.c: New file.
36685
36686         Tests for module 'unicase/u16-is-uppercase'.
36687         * modules/unicase/u16-is-uppercase-tests: New file.
36688         * tests/unicase/test-u16-is-uppercase.c: New file.
36689
36690         Tests for module 'unicase/u8-is-uppercase'.
36691         * modules/unicase/u8-is-uppercase-tests: New file.
36692         * tests/unicase/test-u8-is-uppercase.c: New file.
36693         * tests/unicase/test-is-uppercase.h: New file.
36694
36695         New module 'unicase/u32-is-uppercase'.
36696         * lib/unicase/u32-is-uppercase.c: New file.
36697         * modules/unicase/u32-is-uppercase: New file.
36698
36699         New module 'unicase/u16-is-uppercase'.
36700         * lib/unicase/u16-is-uppercase.c: New file.
36701         * modules/unicase/u16-is-uppercase: New file.
36702
36703         New module 'unicase/u8-is-uppercase'.
36704         * lib/unicase/u8-is-uppercase.c: New file.
36705         * modules/unicase/u8-is-uppercase: New file.
36706
36707         New module 'unicase/u32-is-invariant'.
36708         * lib/unicase/u32-is-invariant.c: New file.
36709         * modules/unicase/u32-is-invariant: New file.
36710
36711         New module 'unicase/u16-is-invariant'.
36712         * lib/unicase/u16-is-invariant.c: New file.
36713         * modules/unicase/u16-is-invariant: New file.
36714
36715         New module 'unicase/u8-is-invariant'.
36716         * lib/unicase/u8-is-invariant.c: New file.
36717         * lib/unicase/invariant.h: New file.
36718         * lib/unicase/u-is-invariant.h: New file.
36719         * modules/unicase/u8-is-invariant: New file.
36720
36721         Tests for module 'unicase/u32-casecoll'.
36722         * modules/unicase/u32-casecoll-tests: New file.
36723         * tests/unicase/test-u32-casecoll.c: New file.
36724
36725         Tests for module 'unicase/u16-casecoll'.
36726         * modules/unicase/u16-casecoll-tests: New file.
36727         * tests/unicase/test-u16-casecoll.c: New file.
36728
36729         Tests for module 'unicase/u8-casecoll'.
36730         * modules/unicase/u8-casecoll-tests: New file.
36731         * tests/unicase/test-u8-casecoll.c: New file.
36732
36733         New module 'unicase/u32-casecoll'.
36734         * lib/unicase/u32-casecoll.c: New file.
36735         * modules/unicase/u32-casecoll: New file.
36736
36737         New module 'unicase/u16-casecoll'.
36738         * lib/unicase/u16-casecoll.c: New file.
36739         * modules/unicase/u16-casecoll: New file.
36740
36741         New module 'unicase/u8-casecoll'.
36742         * lib/unicase/u8-casecoll.c: New file.
36743         * lib/unicase/u-casecoll.h: New file.
36744         * modules/unicase/u8-casecoll: New file.
36745
36746         New module 'unicase/u32-casexfrm'.
36747         * lib/unicase/u32-casexfrm.c: New file.
36748         * modules/unicase/u32-casexfrm: New file.
36749
36750         New module 'unicase/u16-casexfrm'.
36751         * lib/unicase/u16-casexfrm.c: New file.
36752         * modules/unicase/u16-casexfrm: New file.
36753
36754         New module 'unicase/u8-casexfrm'.
36755         * lib/unicase/u8-casexfrm.c: New file.
36756         * lib/unicase/u-casexfrm.h: New file.
36757         * modules/unicase/u8-casexfrm: New file.
36758
36759         Tests for module 'unicase/u32-casecmp'.
36760         * modules/unicase/u32-casecmp-tests: New file.
36761         * tests/unicase/test-u32-casecmp.c: New file.
36762
36763         Tests for module 'unicase/u16-casecmp'.
36764         * modules/unicase/u16-casecmp-tests: New file.
36765         * tests/unicase/test-u16-casecmp.c: New file.
36766
36767         Tests for module 'unicase/u8-casecmp'.
36768         * modules/unicase/u8-casecmp-tests: New file.
36769         * tests/unicase/test-u8-casecmp.c: New file.
36770         * tests/unicase/test-casecmp.h: New file.
36771
36772         New module 'unicase/u32-casecmp'.
36773         * lib/unicase/u32-casecmp.c: New file.
36774         * modules/unicase/u32-casecmp: New file.
36775
36776         New module 'unicase/u16-casecmp'.
36777         * lib/unicase/u16-casecmp.c: New file.
36778         * modules/unicase/u16-casecmp: New file.
36779
36780         New module 'unicase/u8-casecmp'.
36781         * lib/unicase/u8-casecmp.c: New file.
36782         * lib/unicase/u-casecmp.h: New file.
36783         * modules/unicase/u8-casecmp: New file.
36784
36785         Tests for module 'unicase/u32-casefold'.
36786         * modules/unicase/u32-casefold-tests: New file.
36787         * tests/unicase/test-u32-casefold.c: New file.
36788
36789         Tests for module 'unicase/u16-casefold'.
36790         * modules/unicase/u16-casefold-tests: New file.
36791         * tests/unicase/test-u16-casefold.c: New file.
36792
36793         Tests for module 'unicase/u8-casefold'.
36794         * modules/unicase/u8-casefold-tests: New file.
36795         * tests/unicase/test-u8-casefold.c: New file.
36796
36797         New module 'unicase/u32-casefold'.
36798         * lib/unicase/u32-casefold.c: New file.
36799         * modules/unicase/u32-casefold: New file.
36800
36801         New module 'unicase/u16-casefold'.
36802         * lib/unicase/u16-casefold.c: New file.
36803         * modules/unicase/u16-casefold: New file.
36804
36805         New module 'unicase/u8-casefold'.
36806         * lib/unicase/u8-casefold.c: New file.
36807         * lib/unicase/u-casefold.h: New file.
36808         * modules/unicase/u8-casefold: New file.
36809
36810         New module 'unicase/tocasefold'.
36811         * lib/unicase/casefold.h: New file.
36812         * lib/unicase/tocasefold.c: New file.
36813         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36814         * modules/unicase/tocasefold: New file.
36815
36816         Tests for module 'unicase/u32-totitle'.
36817         * modules/unicase/u32-totitle-tests: New file.
36818         * tests/unicase/test-u32-totitle.c: New file.
36819
36820         Tests for module 'unicase/u16-totitle'.
36821         * modules/unicase/u16-totitle-tests: New file.
36822         * tests/unicase/test-u16-totitle.c: New file.
36823
36824         Tests for module 'unicase/u8-totitle'.
36825         * modules/unicase/u8-totitle-tests: New file.
36826         * tests/unicase/test-u8-totitle.c: New file.
36827
36828         New module 'unicase/u32-totitle'.
36829         * lib/unicase/u32-totitle.c: New file.
36830         * modules/unicase/u32-totitle: New file.
36831
36832         New module 'unicase/u16-totitle'.
36833         * lib/unicase/u16-totitle.c: New file.
36834         * modules/unicase/u16-totitle: New file.
36835
36836         New module 'unicase/u8-totitle'.
36837         * lib/unicase/u8-totitle.c: New file.
36838         * lib/unicase/u-totitle.h: New file.
36839         * modules/unicase/u8-totitle: New file.
36840
36841         Tests for module 'unicase/u32-tolower'.
36842         * modules/unicase/u32-tolower-tests: New file.
36843         * tests/unicase/test-u32-tolower.c: New file.
36844
36845         Tests for module 'unicase/u16-tolower'.
36846         * modules/unicase/u16-tolower-tests: New file.
36847         * tests/unicase/test-u16-tolower.c: New file.
36848
36849         Tests for module 'unicase/u8-tolower'.
36850         * modules/unicase/u8-tolower-tests: New file.
36851         * tests/unicase/test-u8-tolower.c: New file.
36852
36853         New module 'unicase/u32-tolower'.
36854         * lib/unicase/u32-tolower.c: New file.
36855         * modules/unicase/u32-tolower: New file.
36856
36857         New module 'unicase/u16-tolower'.
36858         * lib/unicase/u16-tolower.c: New file.
36859         * modules/unicase/u16-tolower: New file.
36860
36861         New module 'unicase/u8-tolower'.
36862         * lib/unicase/u8-tolower.c: New file.
36863         * modules/unicase/u8-tolower: New file.
36864
36865         Tests for module 'unicase/u32-toupper'.
36866         * modules/unicase/u32-toupper-tests: New file.
36867         * tests/unicase/test-u32-toupper.c: New file.
36868
36869         Tests for module 'unicase/u16-toupper'.
36870         * modules/unicase/u16-toupper-tests: New file.
36871         * tests/unicase/test-u16-toupper.c: New file.
36872
36873         Tests for module 'unicase/u8-toupper'.
36874         * modules/unicase/u8-toupper-tests: New file.
36875         * tests/unicase/test-u8-toupper.c: New file.
36876
36877         New module 'unicase/u32-toupper'.
36878         * lib/unicase/u32-toupper.c: New file.
36879         * modules/unicase/u32-toupper: New file.
36880
36881         New module 'unicase/u16-toupper'.
36882         * lib/unicase/u16-toupper.c: New file.
36883         * modules/unicase/u16-toupper: New file.
36884
36885         New module 'unicase/u8-toupper'.
36886         * lib/unicase/u8-toupper.c: New file.
36887         * modules/unicase/u8-toupper: New file.
36888
36889         New module 'unicase/u32-casemap'.
36890         * lib/unicase/u32-casemap.c: New file.
36891         * modules/unicase/u32-casemap: New file.
36892
36893         New module 'unicase/u16-casemap'.
36894         * lib/unicase/u16-casemap.c: New file.
36895         * modules/unicase/u16-casemap: New file.
36896
36897         New module 'unicase/u8-casemap'.
36898         * lib/unicase/unicasemap.h: New file.
36899         * lib/unicase/u8-casemap.c: New file.
36900         * lib/unicase/u-casemap.h: New file.
36901         * modules/unicase/u8-casemap: New file.
36902
36903         New module 'unicase/special-casing'.
36904         * lib/unicase/special-casing.h: New file.
36905         * lib/unicase/special-casing.c: New file.
36906         * lib/unicase/special-casing-table.gperf: New file, generated by
36907         gen-uni-tables.c.
36908         * modules/unicase/special-casing: New file.
36909
36910         Tests for module 'unicase/locale-language'.
36911         * modules/unicase/locale-language-tests: New file.
36912         * tests/unicase/test-locale-language.sh: New file.
36913         * tests/unicase/test-locale-language.c: New file.
36914
36915         New module 'unicase/locale-language'.
36916         * lib/unicase/locale-language.c: New file.
36917         * lib/unicase/locale-languages.gperf: New file.
36918         * modules/unicase/locale-language: New file.
36919
36920         Generate more tables for case conversion and case folding.
36921         * lib/gen-uni-tables.c (SCC_*): New enum items.
36922         (struct special_casing_rule): New type.
36923         (casing_rules, num_casing_rules, allocated_casing_rules): New
36924         variables.
36925         (add_casing_rule, fill_casing_rules): New functions.
36926         (struct casefold_rule): New type.
36927         (casefolding_rules, num_casefolding_rules,
36928         allocated_casefolding_rules): New variables.
36929         (fill_casefolding_rules): New function.
36930         (unicode_casefold): New variable.
36931         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36932         sort_casing_rules, output_casing_rules): New functions.
36933         (main): Accept to more arguments: SpecialCasing.txt and
36934         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36935         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36936         Output mapping for casefolding.
36937
36938         * lib/unicase.h: Include stdbool.h, uninorm.h.
36939         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36940         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36941         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36942         arguments.
36943         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36944         resultp arguments.
36945         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36946         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36947         resultp arguments.
36948         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36949         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36950         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36951         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36952         declarations.
36953         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36954
36955 2009-03-08  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36958         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36959         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36960         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36961
36962 2009-03-07  Bruno Haible  <bruno@clisp.org>
36963
36964         Adjust u*_normcmp, u*_normcoll API.
36965         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36966         u16_normcoll, u32_normcoll): Change failure conventions.
36967         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36968         errno and return -1.
36969         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36970
36971 2009-03-07  Bruno Haible  <bruno@clisp.org>
36972
36973         Tests for module 'uninorm/u32-normcoll'.
36974         * modules/uninorm/u32-normcoll-tests: New file.
36975         * tests/uninorm/test-u32-normcoll.c: New file.
36976
36977         Tests for module 'uninorm/u16-normcoll'.
36978         * modules/uninorm/u16-normcoll-tests: New file.
36979         * tests/uninorm/test-u16-normcoll.c: New file.
36980
36981         Tests for module 'uninorm/u8-normcoll'.
36982         * modules/uninorm/u8-normcoll-tests: New file.
36983         * tests/uninorm/test-u8-normcoll.c: New file.
36984
36985 2009-03-07  Bruno Haible  <bruno@clisp.org>
36986
36987         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36988         tests/uninorm/test-u32-normcmp.c.
36989         * tests/uninorm/test-u32-normcmp.c: Include it.
36990         (test_nonascii): New function, extracted from main. Add some more
36991         tests.
36992         (main): Invoke test_ascii and test_nonascii.
36993         * modules/uninorm/u32-normcmp-tests (Files): Add
36994         tests/uninorm/test-u32-normcmp.h.
36995         (Depends-on): Remove uninorm/u32-normcmp.
36996
36997         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36998         tests/uninorm/test-u16-normcmp.c.
36999         * tests/uninorm/test-u16-normcmp.c: Include it.
37000         (test_nonascii): New function, extracted from main. Add some more
37001         tests.
37002         (main): Invoke test_ascii and test_nonascii.
37003         * modules/uninorm/u16-normcmp-tests (Files): Add
37004         tests/uninorm/test-u16-normcmp.h.
37005         (Depends-on): Remove uninorm/u16-normcmp.
37006
37007         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37008         tests/uninorm/test-u8-normcmp.c.
37009         * tests/uninorm/test-u8-normcmp.c: Include it.
37010         (test_nonascii): New function, extracted from main. Add some more
37011         tests.
37012         (main): Invoke test_ascii and test_nonascii.
37013         * modules/uninorm/u8-normcmp-tests (Files): Add
37014         tests/uninorm/test-u8-normcmp.h.
37015         (Depends-on): Remove uninorm/u8-normcmp.
37016
37017 2009-03-07  Bruno Haible  <bruno@clisp.org>
37018
37019         New module 'uninorm/u32-normcoll'.
37020         * lib/uninorm/u32-normcoll.c: New file.
37021         * modules/uninorm/u32-normcoll: New file.
37022
37023         New module 'uninorm/u16-normcoll'.
37024         * lib/uninorm/u16-normcoll.c: New file.
37025         * modules/uninorm/u16-normcoll: New file.
37026
37027         New module 'uninorm/u8-normcoll'.
37028         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37029         declarations.
37030         * lib/uninorm/u8-normcoll.c: New file.
37031         * lib/uninorm/u-normcoll.h: New file.
37032         * modules/uninorm/u8-normcoll: New file.
37033
37034         New module 'uninorm/u32-normxfrm'.
37035         * lib/uninorm/u32-normxfrm.c: New file.
37036         * modules/uninorm/u32-normxfrm: New file.
37037
37038         New module 'uninorm/u16-normxfrm'.
37039         * lib/uninorm/u16-normxfrm.c: New file.
37040         * modules/uninorm/u16-normxfrm: New file.
37041
37042         New module 'uninorm/u8-normxfrm'.
37043         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37044         declarations.
37045         * lib/uninorm/u8-normxfrm.c: New file.
37046         * lib/uninorm/u-normxfrm.h: New file.
37047         * modules/uninorm/u8-normxfrm: New file.
37048
37049 2009-03-07  Bruno Haible  <bruno@clisp.org>
37050
37051         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37052         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37053         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37054
37055 2009-03-07  Bruno Haible  <bruno@clisp.org>
37056
37057         New module 'memxfrm'.
37058         * lib/memxfrm.h: New file.
37059         * lib/memxfrm.c: New file.
37060         * modules/memxfrm: New file.
37061
37062 2009-03-07  Bruno Haible  <bruno@clisp.org>
37063
37064         New module 'memcmp2'.
37065         * lib/memcmp2.h: New file.
37066         * lib/memcmp2.c: New file.
37067         * modules/memcmp2: New file.
37068
37069 2009-03-07  Bruno Haible  <bruno@clisp.org>
37070
37071         Tests for module 'uninorm/decomposing-form'.
37072         * modules/uninorm/decomposing-form-tests: New file.
37073         * tests/uninorm/test-decomposing-form.c: New file.
37074
37075         New module 'uninorm/decomposing-form'.
37076         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37077         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37078         Add 'decomposing_variant' field.
37079         * lib/uninorm/decomposing-form.c: New file.
37080         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37081         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37082         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37083         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37084         * modules/uninorm/decomposing-form: New file.
37085         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37086         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37087
37088 2009-03-07  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37091         strings.
37092
37093 2009-03-06  Bruno Haible  <bruno@clisp.org>
37094
37095         Tests for module 'uninorm/u32-normcmp'.
37096         * tests/uninorm/test-u32-normcmp.c: New file.
37097         * modules/uninorm/u32-normcmp-tests: New file.
37098
37099         Tests for module 'uninorm/u16-normcmp'.
37100         * tests/uninorm/test-u16-normcmp.c: New file.
37101         * modules/uninorm/u16-normcmp-tests: New file.
37102
37103         Tests for module 'uninorm/u8-normcmp'.
37104         * tests/uninorm/test-u8-normcmp.c: New file.
37105         * modules/uninorm/u8-normcmp-tests: New file.
37106
37107         New module 'uninorm/u32-normcmp'.
37108         * lib/uninorm/u32-normcmp.c: New file.
37109         * modules/uninorm/u32-normcmp: New file.
37110
37111         New module 'uninorm/u16-normcmp'.
37112         * lib/uninorm/u16-normcmp.c: New file.
37113         * modules/uninorm/u16-normcmp: New file.
37114
37115         New module 'uninorm/u8-normcmp'.
37116         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37117         declarations.
37118         * lib/uninorm/u8-normcmp.c: New file.
37119         * lib/uninorm/u-normcmp.h: New file.
37120         * modules/uninorm/u8-normcmp: New file.
37121
37122 2009-03-06  Bruno Haible  <bruno@clisp.org>
37123
37124         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37125         Reported by Eric Blake.
37126
37127 2009-03-06  Eric Blake  <ebb9@byu.net>
37128             Bruno Haible  <bruno@clisp.org>
37129
37130         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37131         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37132         condition.
37133         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37134         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37135         condition.
37136         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37137
37138 2009-03-06  Eric Blake  <ebb9@byu.net>
37139
37140         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37141         to avoid compiler warnings.
37142         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37143
37144 2009-03-05  Bruno Haible  <bruno@clisp.org>
37145
37146         * tests/test-ftell.c (main): Disable test beyond end of file on
37147         FreeMiNT.
37148         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37149
37150 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37151
37152         * lib/filevercmp.c: Move hidden files up in ordering.
37153         * tests/test-filevercmp.c: Add tests for hidden files.
37154
37155 2009-03-04  Bruno Haible  <bruno@clisp.org>
37156
37157         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37158         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37159         AM_CFLAGS.
37160         Reported by Simon Josefsson.
37161
37162 2009-03-03  Bruno Haible  <bruno@clisp.org>
37163
37164         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37165         Reported by Simon Josefsson.
37166
37167         * doc/ld-version-script.texi: Update node reference.
37168
37169 2009-03-03  Bruno Haible  <bruno@clisp.org>
37170
37171         * modules/visibility (License): Change to 'unlimited'.
37172         Suggested by Simon Josefsson.
37173
37174 2009-03-03  Jim Meyering  <meyering@redhat.com>
37175
37176         unlinkdir: cannot_unlink_dir may modify process state
37177         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37178         it's neither thread-safe nor appropriate for use in a library.
37179
37180 2009-03-03  Eric Blake  <ebb9@byu.net>
37181
37182         test-closein: silence test under Darwin
37183         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37184         care if it dies from EPIPE or EBADF.
37185
37186 2009-03-03  Bruno Haible  <bruno@clisp.org>
37187
37188         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37189         earlier.
37190         * doc/visibility.texi: Fix @node and @section.
37191
37192 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37193
37194         * doc/gnulib.texi: Link to sections for ld version script and
37195         visibility.
37196         * doc/visibility.texi: Add @node and @section.
37197         * modules/ld-version-script: New module.
37198         * m4/ld-version-script.m4: New file.
37199         * doc/ld-version-script.texi: New file.
37200
37201 2009-03-02  David Lutterkort  <lutter@redhat.com>
37202
37203         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37205
37206 2009-03-02  Bruno Haible  <bruno@clisp.org>
37207
37208         * doc/visibility.texi: Mention libtool's -export-symbols option.
37209
37210 2009-03-02  Jim Meyering  <meyering@redhat.com>
37211
37212         announce-gen: new option: --no-print-checksums
37213         * build-aux/announce-gen (usage): Describe it.
37214         (print_checksums): Print a newline here, not in the [*] footnote.
37215         (main): Honor it.
37216
37217 2009-03-01  Bruno Haible  <bruno@clisp.org>
37218
37219         Use socklen_t in the native Windows replacements prototypes.
37220         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37221         instead of 'int'.
37222         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37223         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37224         * modules/getsockopt (Depends-on): Add socklen.
37225         * modules/setsockopt (Depends-on): Add socklen.
37226
37227 2009-03-01  Bruno Haible  <bruno@clisp.org>
37228
37229         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37230         least 4.2.
37231
37232 2009-03-01  Eric Blake  <ebb9@byu.net>
37233             Bruno Haible  <bruno@clisp.org>
37234
37235         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37236         error messages.
37237         * lib/wait-process.c (wait_subprocess): Omit error message about
37238         deadly signal sent to the child of termsigp != NULL.
37239
37240 2009-03-01  Eric Blake  <ebb9@byu.net>
37241
37242         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37243
37244 2009-03-01  Bruno Haible  <bruno@clisp.org>
37245
37246         Avoid a gcc warning.
37247         * tests/test-sched.c (b): Make global.
37248         Reported by Eric Blake.
37249
37250 2009-01-19  Martin Lambers  <marlam@marlam.de>
37251
37252         Provide POSIX semantics for socket timeout options on W32.
37253         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37254         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37255         * modules/setsockopt: Depend on sys_time module for struct timeval.
37256         * modules/getsockopt: Depend on sys_time module for struct timeval.
37257
37258 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37259
37260         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37261         __USE_GNU, for consistency with netdb.in.h.
37262         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37263
37264 2009-03-01  Bruno Haible  <bruno@clisp.org>
37265
37266         More support for FreeMiNT.
37267         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37268         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37269
37270 2009-03-01  Bruno Haible  <bruno@clisp.org>
37271
37272         More support for FreeMiNT.
37273         * lib/fpurge.c (fpurge): Correct last commit.
37274         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37275
37276 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37277
37278         Fix unportable awk script in vc-list-files.
37279         * build-aux/vc-list-files: In the replacement awk script, use
37280         substr with a second argument of 1, not zero.
37281         Report by Simon Josefsson.
37282
37283 2009-02-28  Bruno Haible  <bruno@clisp.org>
37284
37285         More support for FreeMiNT.
37286         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37287         to FreeMiNT today.
37288         * lib/fwriting.c (fwriting): Likewise.
37289         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37290
37291 2009-02-28  Bruno Haible  <bruno@clisp.org>
37292
37293         * tests/test-freadseek.c (main): Disable test beyond end of file on
37294         FreeMiNT.
37295         * tests/test-ftello.c (main): Likewise.
37296         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37297
37298 2009-02-28  Bruno Haible  <bruno@clisp.org>
37299
37300         Add tentative support for FreeMiNT.
37301         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37302         * lib/fpurge.c (fpurge): Likewise.
37303         * lib/freadable.c (freadable): Likewise.
37304         * lib/freading.c (freading): Likewise.
37305         * lib/freadptr.c (freadptr): Likewise.
37306         * lib/freadseek.c (freadptrinc): Likewise.
37307         * lib/fseeko.c (rpl_fseeko): Likewise.
37308         * lib/fseterr.c (fseterr): Likewise.
37309         * lib/fwritable.c (fwritable): Likewise.
37310         * lib/fwriting.c (fwriting): Likewise.
37311         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37312         Hourihane.
37313         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37314
37315 2009-02-28  Bruno Haible  <bruno@clisp.org>
37316
37317         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37318         SIGCHLD.
37319         Reported by Jim Meyering.
37320
37321 2009-02-28  Bruno Haible  <bruno@clisp.org>
37322
37323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37324         Mention the results of these tests on various platforms.
37325         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37326         order.
37327         * doc/posix-functions/printf.texi: Likewise.
37328         * doc/posix-functions/snprintf.texi: Likewise.
37329         * doc/posix-functions/sprintf.texi: Likewise.
37330         * doc/posix-functions/vfprintf.texi: Likewise.
37331         * doc/posix-functions/vprintf.texi: Likewise.
37332         * doc/posix-functions/vsnprintf.texi: Likewise.
37333         * doc/posix-functions/vsprintf.texi: Likewise.
37334         * doc/glibc-functions/obstack_printf.texi: Likewise.
37335         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37336
37337 2009-02-28  Bruno Haible  <bruno@clisp.org>
37338
37339         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37340         Reported by Loïc Minier <lool@dooz.org>.
37341
37342 2009-02-27  Bruno Haible  <bruno@clisp.org>
37343
37344         * gnulib-tool (func_import): Make the sed expression used to create the
37345         sed script for updating the .gitignore file POSIX compliant.
37346         Reported by Eric Blake.
37347
37348 2009-02-27  Bruno Haible  <bruno@clisp.org>
37349
37350         * gnulib-tool (sed): Don't alias as "sed --posix".
37351         Reported by Eric Blake.
37352
37353 2009-02-27  Bruno Haible  <bruno@clisp.org>
37354
37355         Avoid test link errors.
37356         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37357         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37358         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37359         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37361
37362 2009-02-27  Bruno Haible  <bruno@clisp.org>
37363
37364         Avoid spurious "(cached)" in configure output.
37365         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37366         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37367         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37369         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37370         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37371         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37372         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37373         Reported by Eric Blake.
37374
37375 2009-02-27  Eric Blake  <ebb9@byu.net>
37376
37377         printf: fix regression in previous patch
37378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37379
37380 2009-02-27  Bruno Haible  <bruno@clisp.org>
37381
37382         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37383         value.
37384         * lib/stdint.in.h: Likewise.
37385         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37386
37387 2009-02-27  Eric Blake  <ebb9@byu.net>
37388
37389         doc: mention more functions added in cygwin 1.7.0
37390         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37391         addition.
37392         * doc/posix-functions/open_wmemstream.texi: Likewise.
37393         * doc/posix-functions/wcsnlen.texi: Likewise.
37394         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37395         * doc/posix-functions/wcstod.texi: Likewise.
37396         * doc/posix-functions/wcstof.texi: Likewise.
37397         * doc/posix-functions/wcstoimax.texi: Likewise.
37398         * doc/posix-functions/wcstok.texi: Likewise.
37399         * doc/posix-functions/wcstoumax.texi: Likewise.
37400
37401         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37403         * doc/posix-functions/fprintf.texi: Update.
37404         * doc/posix-functions/printf.texi: Update.
37405         * doc/posix-functions/snprintf.texi: Update.
37406         * doc/posix-functions/sprintf.texi: Update.
37407         * doc/posix-functions/vfprintf.texi: Update.
37408         * doc/posix-functions/vprintf.texi: Update.
37409         * doc/posix-functions/vsnprintf.texi: Update.
37410         * doc/posix-functions/vsprintf.texi: Update.
37411         * doc/glibc-functions/obstack_printf.texi: Update.
37412         * doc/glibc-functions/obstack_vprintf.texi: Update.
37413
37414 2009-02-26  Eric Blake  <ebb9@byu.net>
37415
37416         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37417         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37418         compilation bug by using runtime conversion.
37419         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37420         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37421         * modules/ceill-tests (Files): Use nan.h.
37422         * modules/floorl-tests (Files): Likewise.
37423         * modules/frexpl-tests (Files): Likewise.
37424         * modules/isnanl-tests (Files): Likewise.
37425         * modules/ldexpl-tests (Files): Likewise.
37426         * modules/roundl-tests (Files): Likewise.
37427         * modules/truncl-tests (Files): Likewise.
37428         * tests/test-ceill.c (main): Use a working NaN.
37429         * tests/test-floorl.c (main): Likewise.
37430         * tests/test-frexpl.c (main): Likewise.
37431         * tests/test-isnan.c (test_long_double): Likewise.
37432         * tests/test-isnanl.h (main): Likewise.
37433         * tests/test-ldexpl.h (main): Likewise.
37434         * tests/test-roundl.h (main): Likewise.
37435         * tests/test-truncl.h (main): Likewise.
37436         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37437
37438 2009-02-26  Eric Blake  <ebb9@byu.net>
37439             Bruno Haible  <bruno@clisp.org>
37440
37441         Work around a *printf bug with %ls on Solaris.
37442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37443         precision is specified, sprintf stops converting the wide string
37444         argument when the number of bytes that have been produced by this
37445         conversion equals or exceeds the precision.
37446         * doc/posix-functions/fprintf.texi: Update.
37447         * doc/posix-functions/printf.texi: Update.
37448         * doc/posix-functions/snprintf.texi: Update.
37449         * doc/posix-functions/sprintf.texi: Update.
37450         * doc/posix-functions/vfprintf.texi: Update.
37451         * doc/posix-functions/vprintf.texi: Update.
37452         * doc/posix-functions/vsnprintf.texi: Update.
37453         * doc/posix-functions/vsprintf.texi: Update.
37454         * doc/glibc-functions/obstack_printf.texi: Update.
37455         * doc/glibc-functions/obstack_vprintf.texi: Update.
37456
37457 2009-02-26  Eric Blake  <ebb9@byu.net>
37458
37459         stdlib: favor compiler check of random.h
37460         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37461         to avoid an ObjC random.h installed by Swarm.
37462
37463 2009-02-26  Bruno Haible  <bruno@clisp.org>
37464
37465         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37466         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37467         Reported by Gary V. Vaughan <gary@gnu.org>.
37468
37469 2009-02-26  Bruno Haible  <bruno@clisp.org>
37470
37471         Fix *printf behaviour regarding the %ls directive.
37472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37473         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37474         NEED_PRINTF_DIRECTIVE_LS.
37475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37476         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37478         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37479         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37480         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37481         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37483         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37486         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37490         * doc/posix-functions/fprintf.texi: Update.
37491         * doc/posix-functions/printf.texi: Update.
37492         * doc/posix-functions/snprintf.texi: Update.
37493         * doc/posix-functions/sprintf.texi: Update.
37494         * doc/posix-functions/vfprintf.texi: Update.
37495         * doc/posix-functions/vprintf.texi: Update.
37496         * doc/posix-functions/vsnprintf.texi: Update.
37497         * doc/posix-functions/vsprintf.texi: Update.
37498         * doc/glibc-functions/obstack_printf.texi: Update.
37499         * doc/glibc-functions/obstack_vprintf.texi: Update.
37500         Reported by Eric Blake.
37501
37502 2009-02-25  Bruno Haible  <bruno@clisp.org>
37503
37504         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37505         with known value.
37506         Reported by Gary V. Vaughan <gary@gnu.org>.
37507
37508 2009-02-25  Bruno Haible  <bruno@clisp.org>
37509
37510         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37511         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37512         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37513         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37514         Reported by Gary V. Vaughan <gary@gnu.org>.
37515
37516 2009-02-25  Bruno Haible  <bruno@clisp.org>
37517
37518         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37519         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37520         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37521         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37522         Reported by Gary V. Vaughan <gary@gnu.org>.
37523
37524 2009-02-25  Eric Blake  <ebb9@byu.net>
37525
37526         tests: skip fseek/ftell tests if ungetc is broken
37527         * m4/ungetc.m4: New file.
37528         * modules/fseek-tests: Split test, so ungetc dependency is
37529         separate from rest of test.
37530         * modules/fseeko-tests: Likewise.
37531         * modules/ftell-tests: Likewise.
37532         * modules/ftello-tests: Likewise.
37533         * tests/test-fseek.c (main): Isolate ungetc dependency.
37534         * tests/test-fseeko.c (main): Likewise.
37535         * tests/test-ftell.c (main): Likewise.
37536         * tests/test-ftello.c (main): Likewise.
37537         * tests/test-fseek2.sh: New file.
37538         * tests/test-fseeko2.sh: Likewise.
37539         * tests/test-ftell2.sh: Likewise.
37540         * tests/test-ftello2.sh: Likewise.
37541
37542 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37543
37544         test-getaddrinfo: fix usage of skip return code 77
37545         * tests/test-gettaddrinfo.c: Return skip code 77 only
37546         for first occurance of skip (4x77 is not 77)
37547
37548 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37549
37550         strtod: avoid C99 decl-after-statement
37551         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37552
37553 2009-02-24  Eric Blake  <ebb9@byu.net>
37554
37555         strtod: detect HP-UX 11.31 bug
37556         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37557         Reported by Gary V. Vaughan.
37558
37559 2009-02-23  Bruno Haible  <bruno@clisp.org>
37560
37561         Fix invalid read past end of memory block.
37562         * lib/vasnprintf.c (DCHAR_SET): Define.
37563         (local_wcslen): Define only when needed.
37564         (local_strnlen, local_wcsnlen): New functions.
37565         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37566         directives that involve a conversion ourselves.
37567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37568         wcsnlen, mbrtowc, wcrtomb.
37569         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37570         * tests/test-vasprintf-posix.c (test_function): Likewise.
37571         * tests/test-snprintf-posix.h (test_function): Likewise.
37572         * tests/test-sprintf-posix.h (test_function): Likewise.
37573         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37574
37575 2009-02-22  Bruno Haible  <bruno@clisp.org>
37576
37577         Implement new clarified decomposition of Hangul syllables.
37578         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37579         of type LTV, return only a pairwise decomposition.
37580         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37581         Likewise.
37582         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37583         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37584         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37585
37586 2009-02-22  Bruno Haible  <bruno@clisp.org>
37587
37588         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37589         zero-length results and shrink excess allocated memory.
37590         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37591         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37592         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37593         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37594         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37595         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37596         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37597         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37598         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37599         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37600         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37601         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37602
37603 2009-02-21  Bruno Haible  <bruno@clisp.org>
37604
37605         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37606         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37607         spaces after a period. Put a space between a macro name and its
37608         argument list. Trivial rewordings.
37609         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37610         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37611         (main): Return 0 explicitly.
37612
37613 2009-02-21  Bruno Haible  <bruno@clisp.org>
37614
37615         Tests for module 'uninorm/filter'.
37616         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37617         * modules/uninorm/filter-tests: New file.
37618
37619         New module 'uninorm/filter'.
37620         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37621         uninorm_filter_flush, uninorm_filter_free): New declarations.
37622         * lib/uninorm/uninorm-filter.c: New file.
37623         * modules/uninorm/filter: New file.
37624
37625 2009-02-21  Bruno Haible  <bruno@clisp.org>
37626
37627         Tests for module 'uninorm/nfkc'.
37628         * tests/uninorm/test-nfkc.c: New file.
37629         * tests/uninorm/test-u8-nfkc.c: New file.
37630         * tests/uninorm/test-u16-nfkc.c: New file.
37631         * tests/uninorm/test-u32-nfkc.c: New file.
37632         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37633         * tests/uninorm/test-u32-nfkc-big.c: New file.
37634         * modules/uninorm/nfkc-tests: New file.
37635
37636         New module 'uninorm/nfkc'.
37637         * lib/uninorm/nfkc.c: New file.
37638         * modules/uninorm/nfkc: New file.
37639
37640         Tests for module 'uninorm/nfkd'.
37641         * tests/uninorm/test-nfkd.c: New file.
37642         * tests/uninorm/test-u8-nfkd.c: New file.
37643         * tests/uninorm/test-u16-nfkd.c: New file.
37644         * tests/uninorm/test-u32-nfkd.c: New file.
37645         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37646         * tests/uninorm/test-u32-nfkd-big.c: New file.
37647         * modules/uninorm/nfkd-tests: New file.
37648
37649         New module 'uninorm/nfkd'.
37650         * lib/uninorm/nfkd.c: New file.
37651         * modules/uninorm/nfkd: New file.
37652
37653         Tests for module 'uninorm/nfc'.
37654         * tests/uninorm/test-nfc.c: New file.
37655         * tests/uninorm/test-u8-nfc.c: New file.
37656         * tests/uninorm/test-u16-nfc.c: New file.
37657         * tests/uninorm/test-u32-nfc.c: New file.
37658         * tests/uninorm/test-u32-nfc-big.sh: New file.
37659         * tests/uninorm/test-u32-nfc-big.c: New file.
37660         * modules/uninorm/nfc-tests: New file.
37661
37662         New module 'uninorm/nfc'.
37663         * lib/uninorm/nfc.c: New file.
37664         * modules/uninorm/nfc: New file.
37665
37666         Tests for module 'uninorm/nfd'.
37667         * tests/uninorm/test-nfd.c: New file.
37668         * tests/uninorm/test-u8-nfd.c: New file.
37669         * tests/uninorm/test-u16-nfd.c: New file.
37670         * tests/uninorm/test-u32-nfd.c: New file.
37671         * tests/uninorm/test-u32-nfd-big.sh: New file.
37672         * tests/uninorm/test-u32-nfd-big.c: New file.
37673         * tests/uninorm/test-u32-normalize-big.h: New file.
37674         * tests/uninorm/test-u32-normalize-big.c: New file.
37675         * tests/uninorm/NormalizationTest.txt: New file, created from
37676         Unicode 5.1.0 NormalizationTest.txt.
37677         * modules/uninorm/nfd-tests: New file.
37678
37679         New module 'uninorm/nfd'.
37680         * lib/uninorm/nfd.c: New file.
37681         * modules/uninorm/nfd: New file.
37682
37683         New module 'uninorm/u32-normalize'.
37684         * lib/uninorm/u32-normalize.c: New file.
37685         * modules/uninorm/u32-normalize: New file.
37686
37687         New module 'uninorm/u16-normalize'.
37688         * lib/uninorm/u16-normalize.c: New file.
37689         * modules/uninorm/u16-normalize: New file.
37690
37691         New module 'uninorm/u8-normalize'.
37692         * lib/uninorm/u8-normalize.c: New file.
37693         * lib/uninorm/normalize-internal.h: New file.
37694         * lib/uninorm/u-normalize-internal.h: New file.
37695         * modules/uninorm/u8-normalize: New file.
37696
37697         New module 'uninorm/decompose-internal'.
37698         * lib/uninorm/decompose-internal.c: New file.
37699         * modules/uninorm/decompose-internal: New file.
37700
37701         Tests for module 'uninorm/composition'.
37702         * tests/uninorm/test-composition.c: New file.
37703         * modules/uninorm/composition-tests: New file.
37704
37705         New module 'uninorm/composition'.
37706         * lib/uninorm/composition.c: New file.
37707         * lib/uninorm/composition-table.gperf: New file, generated by
37708         gen-uni-tables.
37709         * modules/uninorm/composition: New file.
37710
37711         Tests for module 'uninorm/compat-decomposition'.
37712         * tests/uninorm/test-compat-decomposition.c: New file.
37713         * modules/uninorm/compat-decomposition-tests: New file.
37714
37715         New module 'uninorm/compat-decomposition'.
37716         * lib/uninorm/decompose-internal.h: New file.
37717         * lib/uninorm/compat-decomposition.c: New file.
37718         * modules/uninorm/compat-decomposition: New file.
37719
37720         Tests for module 'uninorm/canonical-decomposition'.
37721         * tests/uninorm/test-canonical-decomposition.c: New file.
37722         * modules/uninorm/canonical-decomposition-tests: New file.
37723
37724         New module 'uninorm/canonical-decomposition'.
37725         * lib/uninorm/canonical-decomposition.c: New file.
37726         * modules/uninorm/canonical-decomposition: New file.
37727
37728         Tests for module 'uninorm/decomposition'.
37729         * tests/uninorm/test-decomposition.c: New file.
37730         * modules/uninorm/decomposition-tests: New file.
37731
37732         New module 'uninorm/decomposition'.
37733         * lib/uninorm/decomposition.c: New file.
37734         * modules/uninorm/decomposition: New file.
37735
37736         New module 'uninorm/decomposition-table'.
37737         * lib/uninorm/decomposition-table.h: New file.
37738         * lib/uninorm/decomposition-table.c: New file.
37739         * lib/uninorm/decomposition-table1.h: New file, generated by
37740         gen-uni-tables.
37741         * lib/uninorm/decomposition-table2.h: New file, generated by
37742         gen-uni-tables.
37743         * modules/uninorm/decomposition-table: New file.
37744
37745         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37746         (UC_DECOMP_*): New enumeration items.
37747         (get_decomposition): New function.
37748         (struct decomp_table): New type.
37749         (output_decomposition, output_decomposition_tables): New functions.
37750         (unicode_composition_exclusions): New variable.
37751         (fill_composition_exclusions, debug_output_composition_tables): New
37752         functions.
37753         (main): Accept one more argument. Invoke fill_composition_exclusions.
37754         Output decomposition and composition tables.
37755
37756         New module 'uninorm/base'.
37757         * lib/uninorm.h: New file.
37758         * lib/unictype.h: Update comment.
37759         * modules/uninorm/base: New file.
37760
37761 2009-02-21  David Lutterkort  <lutter@redhat.com>
37762
37763         Tests for module 'safe-alloc'.
37764         * tests/test-safe-alloc.c: New file.
37765         * modules/safe-alloc-tests: New file.
37766
37767         New module 'safe-alloc'.
37768         * lib/safe-alloc.h: New file.
37769         * lib/safe-alloc.c: New file.
37770         * m4/safe-alloc.m4: New file.
37771         * modules/safe-alloc: New file.
37772         * doc/safe-alloc.texi: New file.
37773         * doc/gnulib.texi: Include it.
37774         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37775         safe-alloc.
37776
37777 2009-02-18  Bruno Haible  <bruno@clisp.org>
37778
37779         Fix link error on non-glibc systems.
37780         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37781         variable.
37782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37783
37784 2009-02-18  Jim Meyering  <meyering@redhat.com>
37785
37786         fts: avoid used-uninitialized error due to recent change
37787         * lib/fts.c (fts_read): Guard uses of the new member,
37788         parent->fts_n_dirs_remaining, since it's not relevant for
37789         the parent of a directory specified on the command-line.
37790
37791 2009-02-17  James Youngman  <jay@gnu.org>
37792             Bruno Haible  <bruno@clisp.org>
37793
37794         * m4/include_next.m4: Reformulate comment.
37795
37796 2009-02-16  Jim Meyering  <meyering@redhat.com>
37797
37798         fts: add #if guards so that the fts_lgpl module still builds
37799         * lib/fts.c: Guard just-added hash-table-using parts with
37800         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37801         Reported by Simon Josefsson.
37802
37803 2009-02-15  Bruno Haible  <bruno@clisp.org>
37804
37805         * modules/array-mergesort-tests: New file.
37806         * tests/test-array-mergesort.c: New file.
37807
37808         New module 'array-mergesort'.
37809         * modules/array-mergesort: New file.
37810         * lib/array-mergesort.h: New file.
37811
37812 2009-02-15  Bruno Haible  <bruno@clisp.org>
37813
37814         Fix 2009-02-07 commit.
37815         * lib/gen-uni-tables.c (output_predicate, output_category,
37816         output_combclass, output_bidi_category, output_decimal_digit,
37817         output_digit, output_numeric, output_mirror, output_scripts,
37818         output_ident_category, output_simple_mapping): Fix format directives.
37819         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37820
37821 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37822
37823         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37824         fixes are available from IBM.
37825
37826 2009-02-13  Jim Meyering  <meyering@redhat.com>
37827
37828         fts: arrange not to stat non-directories in more cases
37829         This makes GNU find (when it doesn't need to stat each file)
37830         *much* more efficient at traversing reiserfs file systems.
37831         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37832         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37833         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37834         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37835         (leaf_optimization_applies): New function.
37836         (LCO_hash, LCO_compare): New helper functions.
37837         (link_count_optimize_ok): New function.
37838         (fts_stat): Initialize new member (if dir).
37839         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37840         we've just stat'ed a directory.  Skip the stat call when possible.
37841         ---
37842         Note this AFS-related exchange:
37843         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37844         and note find's pioctl call in find/fstype.c.
37845         But that is necessary only if you want to enable the
37846         optimization for AFS, and for now, I don't.
37847
37848         fts: move a function definition "up" (no semantic change)
37849         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37850         "up" to precede upcoming use of a related function.
37851
37852 2009-02-11  Jim Meyering  <meyering@redhat.com>
37853
37854         fts: correct internal computation of nlinks (optimization-related)
37855         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37856         whether the current entry is a directory, so don't test it.
37857
37858 2009-02-10  Bruno Haible  <bruno@clisp.org>
37859
37860         Tests for module 'uniwbrk/ulc-wordbreaks'.
37861         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37862         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37863         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37864
37865         Tests for module 'uniwbrk/u32-wordbreaks'.
37866         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37867         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37868
37869         Tests for module 'uniwbrk/u16-wordbreaks'.
37870         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37871         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37872
37873         Tests for module 'uniwbrk/u8-wordbreaks'.
37874         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37875         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37876
37877 2009-02-10  Bruno Haible  <bruno@clisp.org>
37878
37879         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37880         property.
37881         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37882         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37883         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37884
37885 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37886
37887         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37888         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37889
37890 2009-02-10  Bruno Haible  <bruno@clisp.org>
37891
37892         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37893         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37894         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37895         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37896         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37897         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37898
37899 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37900
37901         * lib/sockets.h (gl_fd_to_handle): New function.
37902
37903         * tests/test-sockets.c: Call gl_fd_to_handle.
37904
37905 2009-02-09  Bruno Haible  <bruno@clisp.org>
37906
37907         * doc/havelib.texi: Document the conventions on bi-arch systems.
37908
37909 2009-02-08  Bruno Haible  <bruno@clisp.org>
37910
37911         Document the AC_LIB_LINKFLAGS macro.
37912         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37913         * doc/gnulib.texi: Include it.
37914
37915 2009-02-08  Bruno Haible  <bruno@clisp.org>
37916
37917         Fix wrong order of sections, compared to TOC.
37918         * doc/gnulib.texi: Include relocatable-maint.texi after the
37919         "Regular expressions" node, not before.
37920
37921 2009-02-08  Bruno Haible  <bruno@clisp.org>
37922
37923         Tests for module 'unicase/totitle'.
37924         * modules/unicase/totitle-tests: New file.
37925
37926         Tests for module 'unicase/tolower'.
37927         * modules/unicase/tolower-tests: New file.
37928
37929         Tests for module 'unicase/toupper'.
37930         * modules/unicase/toupper-tests: New file.
37931         * tests/unicase/test-mapping-part1.h: New file.
37932         * tests/unicase/test-mapping-part2.h: New file.
37933
37934         New module 'unicase/totitle'.
37935         * modules/unicase/totitle: New file.
37936         * lib/unicase/totitle.c: New file.
37937
37938         New module 'unicase/tolower'.
37939         * modules/unicase/tolower: New file.
37940         * lib/unicase/tolower.c: New file.
37941
37942         New module 'unicase/toupper'.
37943         * modules/unicase/toupper: New file.
37944         * lib/unicase/toupper.c: New file.
37945         * lib/unicase/simple-mapping.h: New file.
37946
37947         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37948         (mapping_table): New structure.
37949         (output_simple_mapping): New function.
37950         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37951         * modules/gen-uni-tables (Description): Update.
37952         * lib/unicase/toupper.h: New file, automatically generated by
37953         gen-uni-tables.
37954         * lib/unicase/tolower.h: New file, automatically generated by
37955         gen-uni-tables.
37956         * lib/unicase/totitle.h: New file, automatically generated by
37957         gen-uni-tables.
37958         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37959         gen-uni-tables.
37960         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37961         gen-uni-tables.
37962         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37963         gen-uni-tables.
37964
37965         New module 'unicase/base'.
37966         * modules/unicase/base: New file.
37967         * lib/unicase.h: New file.
37968
37969 2009-02-08  Bruno Haible  <bruno@clisp.org>
37970
37971         New module 'uniwbrk/ulc-wordbreaks'.
37972         * modules/uniwbrk/ulc-wordbreaks: New file.
37973         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37974
37975         New module 'uniwbrk/u32-wordbreaks'.
37976         * modules/uniwbrk/u32-wordbreaks: New file.
37977         * lib/uniwbrk/u32-wordbreaks.c: New file.
37978
37979         New module 'uniwbrk/u16-wordbreaks'.
37980         * modules/uniwbrk/u16-wordbreaks: New file.
37981         * lib/uniwbrk/u16-wordbreaks.c: New file.
37982
37983         New module 'uniwbrk/u8-wordbreaks'.
37984         * modules/uniwbrk/u8-wordbreaks: New file.
37985         * lib/uniwbrk/u8-wordbreaks.c: New file.
37986         * lib/uniwbrk/u-wordbreaks.h: New file.
37987
37988         New module 'uniwbrk/table'.
37989         * modules/uniwbrk/table: New file.
37990         * lib/uniwbrk/wbrktable.h: New file.
37991         * lib/uniwbrk/wbrktable.c: New file.
37992
37993         New module 'uniwbrk/wordbreak-property'.
37994         * modules/uniwbrk/wordbreak-property: New file.
37995         * lib/uniwbrk/wordbreak-property.c: New file.
37996
37997         * lib/gen-uni-tables.c (WBP_*): New enum items.
37998         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37999         (unicode_org_wbp): New variable.
38000         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38001         New functions.
38002         (wbp_table): New structure.
38003         (output_wbp, output_wbrk_tables): New functions.
38004         (main): Accept additional argument. Invoke fill_org_wbp,
38005         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38006         output_wbrk_tables.
38007         * modules/gen-uni-tables (Description): Update.
38008         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38009         gen-uni-tables.
38010
38011         New module 'uniwbrk/base'.
38012         * modules/uniwbrk/base: New file.
38013         * lib/uniwbrk.h: New file.
38014
38015 2009-02-08  Bruno Haible  <bruno@clisp.org>
38016
38017         Update to Unicode 5.1.0.
38018         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38019         U+2185..U+2188.
38020         (is_property_default_ignorable_code_point): Don't include characters
38021         of category Cc or Cs and not-a-characters.
38022         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38023         U+0D79, U+109E, U+109F, U+A60C.
38024         * lib/unictype/bidi_of.h: Regenerated.
38025         * lib/unictype/blocks.h: Regenerated.
38026         * lib/unictype/categ_C.h: Regenerated.
38027         * lib/unictype/categ_Cf.h: Regenerated.
38028         * lib/unictype/categ_Cn.h: Regenerated.
38029         * lib/unictype/categ_L.h: Regenerated.
38030         * lib/unictype/categ_Ll.h: Regenerated.
38031         * lib/unictype/categ_Lm.h: Regenerated.
38032         * lib/unictype/categ_Lo.h: Regenerated.
38033         * lib/unictype/categ_Lu.h: Regenerated.
38034         * lib/unictype/categ_M.h: Regenerated.
38035         * lib/unictype/categ_Mc.h: Regenerated.
38036         * lib/unictype/categ_Me.h: Regenerated.
38037         * lib/unictype/categ_Mn.h: Regenerated.
38038         * lib/unictype/categ_N.h: Regenerated.
38039         * lib/unictype/categ_Nd.h: Regenerated.
38040         * lib/unictype/categ_Nl.h: Regenerated.
38041         * lib/unictype/categ_No.h: Regenerated.
38042         * lib/unictype/categ_P.h: Regenerated.
38043         * lib/unictype/categ_Pd.h: Regenerated.
38044         * lib/unictype/categ_Pe.h: Regenerated.
38045         * lib/unictype/categ_Pf.h: Regenerated.
38046         * lib/unictype/categ_Pi.h: Regenerated.
38047         * lib/unictype/categ_Po.h: Regenerated.
38048         * lib/unictype/categ_Ps.h: Regenerated.
38049         * lib/unictype/categ_S.h: Regenerated.
38050         * lib/unictype/categ_Sk.h: Regenerated.
38051         * lib/unictype/categ_Sm.h: Regenerated.
38052         * lib/unictype/categ_So.h: Regenerated.
38053         * lib/unictype/categ_of.h: Regenerated.
38054         * lib/unictype/combining.h: Regenerated.
38055         * lib/unictype/ctype_alnum.h: Regenerated.
38056         * lib/unictype/ctype_alpha.h: Regenerated.
38057         * lib/unictype/ctype_graph.h: Regenerated.
38058         * lib/unictype/ctype_lower.h: Regenerated.
38059         * lib/unictype/ctype_print.h: Regenerated.
38060         * lib/unictype/ctype_punct.h: Regenerated.
38061         * lib/unictype/ctype_upper.h: Regenerated.
38062         * lib/unictype/decdigit.h: Regenerated.
38063         * lib/unictype/digit.h: Regenerated.
38064         * lib/unictype/mirror.h: Regenerated.
38065         * lib/unictype/numeric.h: Regenerated.
38066         * lib/unictype/pr_alphabetic.h: Regenerated.
38067         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38068         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38069         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38070         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38071         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38072         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38073         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38074         * lib/unictype/pr_combining.h: Regenerated.
38075         * lib/unictype/pr_dash.h: Regenerated.
38076         * lib/unictype/pr_decimal_digit.h: Regenerated.
38077         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38078         * lib/unictype/pr_deprecated.h: Regenerated.
38079         * lib/unictype/pr_diacritic.h: Regenerated.
38080         * lib/unictype/pr_extender.h: Regenerated.
38081         * lib/unictype/pr_format_control.h: Regenerated.
38082         * lib/unictype/pr_grapheme_base.h: Regenerated.
38083         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38084         * lib/unictype/pr_grapheme_link.h: Regenerated.
38085         * lib/unictype/pr_id_continue.h: Regenerated.
38086         * lib/unictype/pr_id_start.h: Regenerated.
38087         * lib/unictype/pr_ideographic.h: Regenerated.
38088         * lib/unictype/pr_ignorable_control.h: Regenerated.
38089         * lib/unictype/pr_lowercase.h: Regenerated.
38090         * lib/unictype/pr_math.h: Regenerated.
38091         * lib/unictype/pr_numeric.h: Regenerated.
38092         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38093         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38094         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38095         * lib/unictype/pr_other_id_continue.h: Regenerated.
38096         * lib/unictype/pr_other_lowercase.h: Regenerated.
38097         * lib/unictype/pr_other_math.h: Regenerated.
38098         * lib/unictype/pr_punctuation.h: Regenerated.
38099         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38100         * lib/unictype/pr_soft_dotted.h: Regenerated.
38101         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38102         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38103         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38104         * lib/unictype/pr_uppercase.h: Regenerated.
38105         * lib/unictype/pr_xid_continue.h: Regenerated.
38106         * lib/unictype/pr_xid_start.h: Regenerated.
38107         * lib/unictype/pr_zero_width.h: Regenerated.
38108         * lib/unictype/scripts.h: Regenerated.
38109         * lib/unictype/scripts_byname.gperf: Regenerated.
38110         * lib/unictype/sy_java_ident.h: Regenerated.
38111         * lib/unilbrk/lbrkprop1.h: Regenerated.
38112         * lib/unilbrk/lbrkprop2.h: Regenerated.
38113         * tests/unictype/test-categ_C.c: Regenerated.
38114         * tests/unictype/test-categ_Cf.c: Regenerated.
38115         * tests/unictype/test-categ_Cn.c: Regenerated.
38116         * tests/unictype/test-categ_L.c: Regenerated.
38117         * tests/unictype/test-categ_Ll.c: Regenerated.
38118         * tests/unictype/test-categ_Lm.c: Regenerated.
38119         * tests/unictype/test-categ_Lo.c: Regenerated.
38120         * tests/unictype/test-categ_Lu.c: Regenerated.
38121         * tests/unictype/test-categ_M.c: Regenerated.
38122         * tests/unictype/test-categ_Mc.c: Regenerated.
38123         * tests/unictype/test-categ_Me.c: Regenerated.
38124         * tests/unictype/test-categ_Mn.c: Regenerated.
38125         * tests/unictype/test-categ_N.c: Regenerated.
38126         * tests/unictype/test-categ_Nd.c: Regenerated.
38127         * tests/unictype/test-categ_Nl.c: Regenerated.
38128         * tests/unictype/test-categ_No.c: Regenerated.
38129         * tests/unictype/test-categ_P.c: Regenerated.
38130         * tests/unictype/test-categ_Pd.c: Regenerated.
38131         * tests/unictype/test-categ_Pe.c: Regenerated.
38132         * tests/unictype/test-categ_Pf.c: Regenerated.
38133         * tests/unictype/test-categ_Pi.c: Regenerated.
38134         * tests/unictype/test-categ_Po.c: Regenerated.
38135         * tests/unictype/test-categ_Ps.c: Regenerated.
38136         * tests/unictype/test-categ_S.c: Regenerated.
38137         * tests/unictype/test-categ_Sk.c: Regenerated.
38138         * tests/unictype/test-categ_Sm.c: Regenerated.
38139         * tests/unictype/test-categ_So.c: Regenerated.
38140         * tests/unictype/test-ctype_alnum.c: Regenerated.
38141         * tests/unictype/test-ctype_alpha.c: Regenerated.
38142         * tests/unictype/test-ctype_graph.c: Regenerated.
38143         * tests/unictype/test-ctype_lower.c: Regenerated.
38144         * tests/unictype/test-ctype_print.c: Regenerated.
38145         * tests/unictype/test-ctype_punct.c: Regenerated.
38146         * tests/unictype/test-ctype_upper.c: Regenerated.
38147         * tests/unictype/test-decdigit.h: Regenerated.
38148         * tests/unictype/test-digit.h: Regenerated.
38149         * tests/unictype/test-numeric.h: Regenerated.
38150         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38151         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38152         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38153         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38154         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38155         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38156         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38157         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38158         * tests/unictype/test-pr_combining.c: Regenerated.
38159         * tests/unictype/test-pr_dash.c: Regenerated.
38160         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38161         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38162         * tests/unictype/test-pr_deprecated.c: Regenerated.
38163         * tests/unictype/test-pr_diacritic.c: Regenerated.
38164         * tests/unictype/test-pr_extender.c: Regenerated.
38165         * tests/unictype/test-pr_format_control.c: Regenerated.
38166         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38167         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38168         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38169         * tests/unictype/test-pr_id_continue.c: Regenerated.
38170         * tests/unictype/test-pr_id_start.c: Regenerated.
38171         * tests/unictype/test-pr_ideographic.c: Regenerated.
38172         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38173         * tests/unictype/test-pr_lowercase.c: Regenerated.
38174         * tests/unictype/test-pr_math.c: Regenerated.
38175         * tests/unictype/test-pr_numeric.c: Regenerated.
38176         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38177         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38178         Regenerated.
38179         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38180         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38181         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38182         * tests/unictype/test-pr_other_math.c: Regenerated.
38183         * tests/unictype/test-pr_punctuation.c: Regenerated.
38184         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38185         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38186         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38187         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38188         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38189         * tests/unictype/test-pr_uppercase.c: Regenerated.
38190         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38191         * tests/unictype/test-pr_xid_start.c: Regenerated.
38192         * tests/unictype/test-pr_zero_width.c: Regenerated.
38193
38194         Update to Unicode 5.1.0.
38195         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38196         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38197         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38198         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38199         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38200         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38201         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38202         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38203         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38204         (nonspacing_table_ind): Update.
38205         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38206
38207         Update to Unicode 5.1.0.
38208         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38209         code transform.
38210         * lib/uniname/uniname.c (unicode_character_name,
38211         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38212         * lib/uniname/uninames.h: Regenerated.
38213         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38214
38215 2009-02-07  Bruno Haible  <bruno@clisp.org>
38216
38217         Merge gen-ctype and gen-lbrk into a single program.
38218         * lib/gen-uni-tables.c: New file, incorporating
38219         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38220         Add directory prefixes to the names of the generated files.
38221         * lib/unictype/gen-ctype.c: Remove file.
38222         * lib/unilbrk/gen-lbrk.c: Remove file.
38223         * modules/gen-uni-tables: New file.
38224         * modules/unictype/gen-ctype: Remove file.
38225         * modules/unilbrk/gen-lbrk: Remove file.
38226
38227 2009-02-07  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38230
38231         New module 'unistr/u32-strcoll'.
38232         * modules/unistr/u32-strcoll: New file.
38233         * lib/unistr/u32-strcoll.c: New file.
38234
38235         New module 'unistr/u16-strcoll'.
38236         * modules/unistr/u16-strcoll: New file.
38237         * lib/unistr/u16-strcoll.c: New file.
38238
38239         New module 'unistr/u8-strcoll'.
38240         * modules/unistr/u8-strcoll: New file.
38241         * lib/unistr/u8-strcoll.c: New file.
38242         * lib/unistr/u-strcoll.h: New file.
38243
38244 2009-02-07  Bruno Haible  <bruno@clisp.org>
38245
38246         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38247         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38248         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38249         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38250         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38251         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38252
38253 2009-02-07  Bruno Haible  <bruno@clisp.org>
38254
38255         Make 64-bit clean.
38256         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38257         output_combclass, output_bidi_category, output_decimal_digit,
38258         output_digit, output_numeric, output_mirror, output_scripts,
38259         output_ident_category): Use proper width specifier in format strings.
38260
38261 2009-02-07  Bruno Haible  <bruno@clisp.org>
38262
38263         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38264         failure behaviour.
38265
38266 2009-02-07  Jim Meyering  <meyering@redhat.com>
38267
38268         regex: avoid compilation failure with upcoming gcc-4.4
38269         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38270         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38271         "... error: integer overflow in preprocessor expression".
38272
38273 2009-02-05  Ben Pfaff  <blp@gnu.org>
38274
38275         Fix link errors on Windows when close module is used.
38276         * modules/close: Add $(LIB_CLOSE) to Link section.
38277         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38278         $(LIB_CLOSE) on Windows.
38279
38280 2009-02-05  Jim Meyering  <meyering@redhat.com>
38281
38282         still avoid unused-parameter warnings, but do it cleanly
38283         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38284         (get_fs_usage): Cast to void instead.
38285         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38286         (dev_from_mount_options, read_file_system_list): Cast to void.
38287         Prompted by Bruno Haible.
38288
38289 2009-02-04  Jim Meyering  <meyering@redhat.com>
38290
38291         fsusage.c: correct copyright year
38292         * lib/fsusage.c: Reflect year in which the change is pushed into
38293
38294         avoid misc. warnings
38295         * lib/fsusage.c (UNUSED_PARAM): Define.
38296         (get_fs_usage): Mark parameter "disk" as unused.
38297         * lib/getugroups.c (getgrent): Use "void" in prototype.
38298         * lib/mountlist.c: Mark unused parameters.
38299         (read_file_system_list): Declare a local with "const".
38300         * lib/nanosleep.c (getnow): Declare static.
38301         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38302
38303         dirfd: set errno upon failure
38304         * lib/dirfd.c: Include <errno.h>.
38305         Set errno to ENOTSUP when returning -1.
38306         * modules/dirfd (Depends-on): Add errno.
38307         Suggested by John Kodis <kodis@comcast.net>.
38308
38309 2009-02-01  Bruno Haible  <bruno@clisp.org>
38310
38311         Don't assume sizeof (long) >= sizeof (void *).
38312         * lib/memcmp.c: Include stdint.h.
38313         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38314         srcp2 to 'const byte *'.
38315         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38316         types to uintptr_t.
38317         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38318         * modules/memcmp (Depends-on): Add stdint.
38319         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38320
38321 2009-01-30  Eric Blake  <ebb9@byu.net>
38322
38323         fix more require-before-expand issues
38324         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38325         expand, AC_PROG_AWK.
38326         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38327
38328 2009-01-28  Eric Blake  <ebb9@byu.net>
38329
38330         version-etc: use consistent URL formatting
38331         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38332         Improve formatting.  Use fputs for string without %.
38333
38334 2009-01-28  Jim Meyering  <meyering@redhat.com>
38335
38336         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38337         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38338         "underquoted definition of NAME" from autoconf-2.59.
38339
38340 2009-01-28  Bruno Haible  <bruno@clisp.org>
38341
38342         * doc/gnulib.texi: Add "Obsolete modules" to index.
38343
38344 2009-01-28  Jim Meyering  <meyering@redhat.com>
38345
38346         useless-if-before-free: recognize more variants
38347         * build-aux/useless-if-before-free: Also recognize e.g.,
38348         if (NULL != p) free (p);
38349
38350 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38351
38352         test-getaddrinfo: skip (don't fail) this test when there's no network
38353         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38354         on the presumption that it means you lack network access.
38355
38356 2009-01-26  Jim Meyering  <meyering@redhat.com>
38357
38358         fflush: avoid warnings on modern systems
38359         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38360         pos and result, into scopes where they're used.
38361
38362 2009-01-26  Eric Blake  <ebb9@byu.net>
38363
38364         Silence warning reintroduced by recent extensions patch.
38365         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38366         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38367         autoconf.
38368
38369         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38370         * m4/00gnulib.m4: New file.
38371         * gnulib-tool (func_get_filelist): Always use it.
38372         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38373         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38374
38375 2009-01-25  Bruno Haible  <bruno@clisp.org>
38376
38377         Make test-quotearg work on MacOS X and AIX.
38378         * tests/test-quotearg.sh: New file.
38379         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38380         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38381         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38382         include <libintl.h>.
38383         (fake_locale): Remove variable.
38384         (gettext, dgettext, dcgettext): Remove functions.
38385         (main): Instead of setting a fake locale, set a real locale. Call
38386         textdomain and bindtextdomain.
38387         * modules/quotearg-tests (Files): Add the new files.
38388         (Depends-on): Add gettext, setenv, unsetenv.
38389         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38390         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38391         Augment TESTS_ENVIRONMENT.
38392
38393 2009-01-25  Bruno Haible  <bruno@clisp.org>
38394
38395         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38396         fr_FR.ISO8859-1 locale on MacOS X.
38397         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38398         ja_JP.eucJP locale on MacOS X.
38399         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38400         zh_CN.GB18030 locale on MacOS X.
38401
38402 2009-01-25  Bruno Haible  <bruno@clisp.org>
38403
38404         Avoid link errors on MacOS X 10.3.
38405         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38406         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38407
38408 2009-01-25  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38411         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38412         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38413         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38414         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38415         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38416         posix_spawnattr_init, posix_spawnattr_setsigmask,
38417         posix_spawnattr_setflags, posix_spawnattr_destroy.
38418
38419         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38420         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38421         * modules/execute (Files): Remove m4/posix_spawn.m4.
38422         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38423         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38424         posix_spawnattr_init, posix_spawnattr_setsigmask,
38425         posix_spawnattr_setflags, posix_spawnattr_destroy.
38426
38427 2009-01-25  Bruno Haible  <bruno@clisp.org>
38428
38429         * lib/glthread/threadlib.c: Include <stdlib.h>.
38430
38431 2009-01-25  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/glthread/threadlib.c (dummy): New declaration.
38434
38435 2009-01-25  Bruno Haible  <bruno@clisp.org>
38436
38437         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38438         multibyte characters also for the GB18030 encoding. Don't crash when
38439         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38440
38441 2009-01-25  Bruno Haible  <bruno@clisp.org>
38442
38443         Avoid redefining 'struct random_data' on OSF/1 5.1.
38444         * lib/stdlib.in.h: Include <random.h> if it exists.
38445         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38446         HAVE_RANDOM_H. Include <random.h> when testing whether
38447         'struct random_data' exists.
38448         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38449
38450 2009-01-25  Bruno Haible  <bruno@clisp.org>
38451
38452         Don't install charset.alias on MacOS X >= 10.3.
38453         * lib/localcharset.c (DARWIN7): New macro.
38454         (get_charset_aliases): Hardcode the result for Darwin7.
38455         * modules/localcharset (install-exec-local): Don't install
38456         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38457
38458 2009-01-25  Bruno Haible  <bruno@clisp.org>
38459
38460         Don't install charset.alias on mingw and Cygwin.
38461         * modules/localcharset (install-exec-local): Don't install
38462         charset.alias on mingw and Cygwin, if the file does not yet exist.
38463         The result for these platforms is hardcoded in localcharset.c.
38464
38465 2009-01-25  Bruno Haible  <bruno@clisp.org>
38466
38467         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38469         before requiring AC_USE_SYSTEM_EXTENSIONS.
38470
38471 2009-01-25  Jim Meyering  <meyering@redhat.com>
38472
38473         c-strtod: avoid warnings
38474         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38475         "assignment discards qualifiers from pointer target type" warnings.
38476
38477 2009-01-24  Bruno Haible  <bruno@clisp.org>
38478
38479         Add support for non-UTF-8 locales on MacOS X.
38480         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38481         canonical encodings. For Darwin 7 and newer, don't map traditional
38482         encodings to UTF-8.
38483         Reported by Vincent Lefevre <vincent@vinc17.org>
38484         at <http://savannah.gnu.org/bugs/?25235>.
38485
38486 2009-01-24  Bruno Haible  <bruno@clisp.org>
38487
38488         * doc/gnulib.texi (Obsolete modules): New section.
38489         Reported by Mike Frysinger <vapier@gentoo.org>.
38490
38491 2009-01-24  Bruno Haible  <bruno@clisp.org>
38492
38493         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38494         (%.dvi): New rule.
38495
38496 2009-01-24  Bruno Haible  <bruno@clisp.org>
38497
38498         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38499         Reported by Eric Blake.
38500
38501 2009-01-24  Bruno Haible  <bruno@clisp.org>
38502
38503         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38504         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38505         Reported by Gary V. Vaughan <gary@gnu.org>.
38506
38507 2009-01-24  Bruno Haible  <bruno@clisp.org>
38508
38509         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38510
38511 2009-01-23  Bruno Haible  <bruno@clisp.org>
38512
38513         Make c-strtod, c-strtold usable in libraries.
38514         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38515         (C_STRTOD): Call strdup instead of xstrdup.
38516         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38517         * modules/c-strtold (Depends-on): Likewise.
38518         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38519         * NEWS: Mention the change.
38520         Reported by Michael Gold <mgold@ncf.ca>.
38521
38522 2009-01-23  Jim Meyering  <meyering@redhat.com>
38523
38524         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38525         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38526         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38527
38528 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38529
38530         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38531         GNU CoreUtils.
38532         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38533         * modules/version-etc (Description): Update.
38534
38535 2009-01-22  Bruno Haible  <bruno@clisp.org>
38536
38537         Cache the C locale object.
38538         * lib/c-strtod.c (c_locale_cache): New variable.
38539         (c_locale): New function.
38540         (C_STRTOD): Use it, and don't call freelocale.
38541         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38542         Suggested by Paolo Bonzini.
38543
38544 2009-01-21  Bruno Haible  <bruno@clisp.org>
38545
38546         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38547         conditions other than overflow.
38548
38549 2009-01-21  Bruno Haible  <bruno@clisp.org>
38550
38551         * lib/c-strtod.c: Include errno.h.
38552         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38553         value from STRTOD_L and STRTOD.
38554
38555 2009-01-21  Bruno Haible  <bruno@clisp.org>
38556         and Jim Meyering  <meyering@redhat.com>
38557
38558         nanosleep: skip configure test (fail it) for apple universal builds
38559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38560         universal builds, assume that nanosleep does not work.
38561         * modules/nanosleep (Depends-on): Add multiarch.
38562
38563         mktime: skip configure test (fail it) for apple universal builds
38564         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38565         universal builds, assume that mktime does not work.
38566         * modules/mktime (Depends-on): Add multiarch.
38567
38568 2009-01-21  Eric Blake  <ebb9@byu.net>
38569
38570         multiarch: avoid expand-before-require warning
38571         * modules/multiarch (configure.ac): Require, rather than expand,
38572         gl_MULTIARCH.
38573         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38574         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38575         enforce that all clients require it.  Partial reversion of
38576         2008-12-29 patch.
38577
38578         error: avoid expand-before-require warning
38579         * modules/errno (configure.ac): Require, rather than expand,
38580         gl_HEADER_ERRNO_H.
38581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38582         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38583         enforce that all clients require it.
38584
38585         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38586         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38587         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38588         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38589
38590 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38591
38592         Revert:
38593         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38594
38595         regex: do not depend on obsolete modules.
38596         * modules/regex: Remove memcmp and memmove.
38597
38598 2009-01-20  Bruno Haible  <bruno@clisp.org>
38599
38600         Make the 'link' module link on Windows NT 4.
38601         * lib/link.c (_WIN32_WINNT): Don't define.
38602         (CreateHardLinkFuncType): New type.
38603         (CreateHardLinkFunc, initialized): New variables.
38604         (initialize): New function.
38605         (link): Invoke CreateHardLink indirectly through the function pointer.
38606
38607 2009-01-20  Bruno Haible  <bruno@clisp.org>
38608
38609         Fix compilation failure on mingw.
38610         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38611
38612 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38613
38614         * doc/c-strtod.texi: Mention a couple of restrictions.
38615
38616 2009-01-20  Jim Meyering  <meyering@redhat.com>
38617
38618         gettimeofday: move more declarations out of functions
38619         * lib/gettimeofday.c: Move extern declarations of tzset and
38620         gmtime out of containing functions.  Prompted by Bruno Haible.
38621
38622 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38623
38624         regex: do not depend on obsolete modules.
38625         * modules/regex: Remove memcmp and memmove.
38626
38627 2009-01-19  Bruno Haible  <bruno@clisp.org>
38628
38629         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38630         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38631         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38632         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38633         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38634
38635 2009-01-19  Bruno Haible  <bruno@clisp.org>
38636
38637         * tests/test-link.c: Include <errno.h>.
38638         (main): Exit with code 77 when a hard link cannot be created due to
38639         the file system.
38640         * tests/test-link.sh: Skip test when a hard link cannot be created due
38641         to the file system.
38642         Suggested by Eric Blake.
38643
38644 2009-01-19  Martin Lambers  <marlam@marlam.de>
38645
38646         * modules/link-tests: New file.
38647         * tests/test-link.sh: New file.
38648         * tests/test-link.c: New file.
38649
38650 2009-01-19  Eric Blake  <ebb9@byu.net>
38651
38652         doc: mention another function added in cygwin 1.7.0
38653         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38654         Another new function in cygwin 1.7.
38655
38656 2009-01-19  Bruno Haible  <bruno@clisp.org>
38657
38658         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38659         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38660         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38661         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38662         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38663         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38664         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38665         * m4/md4.m4 (gl_MD4): Likewise.
38666         * m4/md5.m4 (gl_MD5): Likewise.
38667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38668         * m4/sha1.m4 (gl_SHA1): Likewise.
38669         * m4/sha256.m4 (gl_SHA256): Likewise.
38670         * m4/sha512.m4 (gl_SHA512): Likewise.
38671
38672 2009-01-19  Bruno Haible  <bruno@clisp.org>
38673
38674         * modules/uniname/uniname-tests (Depends-on): Add progname.
38675         * tests/uniname/test-uninames.c: Include progname.h.
38676         (main): Call set_program_name.
38677
38678         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38679         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38680         (main): Call set_program_name.
38681
38682         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38683         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38684         (main): Call set_program_name.
38685
38686         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38687         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38688         (main): Call set_program_name.
38689
38690         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38691         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38692         (main): Call set_program_name.
38693
38694         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38695         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38696         (main): Call set_program_name.
38697
38698         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38699         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38700         (main): Call set_program_name.
38701
38702         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38703         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38704         (main): Call set_program_name.
38705
38706         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38707         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38708         (main): Call set_program_name.
38709
38710 2009-01-19  Eric Blake  <ebb9@byu.net>
38711
38712         test-unistd: test previous patch
38713         * tests/test-unistd.c: Test *_FILENO macros.
38714
38715         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38716         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38717         Guarantee a definition.
38718         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38719         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38720         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38721         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38722         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38723         Likewise.
38724         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38725         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38726         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38727         Likewise.
38728         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38729         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38730         (STDERR_FILENO): Likewise.
38731         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38732         (STDERR_FILENO): Likewise.
38733         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38734         (STDERR_FILENO): Likewise.
38735         Reported by Elbert Pol.
38736
38737 2009-01-19  Eric Blake  <ebb9@byu.net>
38738
38739         doc: mention more functions added in cygwin 1.7.0
38740         * doc/posix-functions/abort.texi (abort): Update wording related
38741         to cygwin.
38742         * doc/posix-functions/daylight.texi (daylight): Likewise.
38743         * doc/posix-functions/optarg.texi (optarg): Likewise.
38744         * doc/posix-functions/optarg.texi (opterr): Likewise.
38745         * doc/posix-functions/optarg.texi (optind): Likewise.
38746         * doc/posix-functions/optarg.texi (optopt): Likewise.
38747         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38748         worked in 1.5.x, and was withdrawn in 1.7.
38749         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38750         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38751         cygwin versions.
38752         * doc/posix-functions/perror.texi (perror): Likewise.
38753         * doc/posix-functions/printf.texi (printf): Likewise.
38754         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38755         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38756         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38757         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38758         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38759         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38760         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38761         Likewise.
38762         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38763         Likewise.
38764         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38765         this function.
38766         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38767         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38768         Likewise.
38769         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38770         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38771         * doc/posix-functions/confstr.texi (confstr): Likewise.
38772         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38773         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38774         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38775         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38776         * doc/posix-functions/fputws.texi (fputws): Likewise.
38777         * doc/posix-functions/fwide.texi (fwide): Likewise.
38778         * doc/posix-functions/getwc.texi (getwc): Likewise.
38779         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38780         * doc/posix-functions/putwc.texi (putwc): Likewise.
38781         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38782         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38783         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38784         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38785         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38786         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38787         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38788         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38789         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38790         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38791         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38792
38793 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38794
38795         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38796         * lib/ioctl.c: Include <sys/ioctl.h>.
38797
38798 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38799
38800         * modules/getdate-tests (Depends-on): Add progname.
38801         * tests/test-getdate.c: Use progname module, to avoid link errors
38802         on non-glibc systems.
38803
38804 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38805
38806         * modules/filenamecat-tests (Depends-on): Add progname.
38807         * modules/fstrcmp-tests (Depends-on): Likewise.
38808
38809         * tests/test-filenamecat.c: Use progname module, to avoid link
38810         errors on non-glibc systems.
38811         * tests/test-fstrcmp.c: Likewise.
38812
38813 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38814
38815         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38816         * lib/gettimeofday.c: Move extern declaration out of function.
38817
38818 2009-01-18  Bruno Haible  <bruno@clisp.org>
38819
38820         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38821         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38822         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38823
38824 2009-01-18  Bruno Haible  <bruno@clisp.org>
38825
38826         * lib/strftime.c (MEMPCPY): Remove unused macro.
38827         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38828
38829 2009-01-18  Martin Lambers  <marlam@marlam.de>
38830
38831         New module 'link'.
38832         * lib/unistd.in.h (link): New declaration.
38833         * lib/link.c: New file.
38834         * m4/link.m4: New file.
38835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38836         HAVE_LINK.
38837         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38838         * modules/link: New file.
38839         * doc/posix-functions/link.texi: Mention the new module.
38840
38841 2009-01-18  Bruno Haible  <bruno@clisp.org>
38842
38843         * tests/test-avltree_list.c (main): Call set_program_name.
38844         * tests/test-avltree_oset.c (main): Likewise.
38845         * tests/test-obstack-printf.c: Include progname.h.
38846         (main): Call set_program_name.
38847         * tests/test-quotearg.c: Include progname.h.
38848         (main): Call set_program_name.
38849         * tests/test-xmemdup0.c: Include progname.h.
38850         (main): Call set_program_name.
38851
38852 2009-01-18  Bruno Haible  <bruno@clisp.org>
38853
38854         New module 'alphasort'.
38855         * lib/dirent.in.h (alphasort): New declaration.
38856         * lib/alphasort.c: New file, from glibc with modifications.
38857         * m4/alphasort.m4: New file.
38858         * modules/alphasort: New file.
38859         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38860         HAVE_ALPHASORT.
38861         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38862         HAVE_ALPHASORT.
38863         * doc/posix-functions/alphasort.texi: Mention the new module and the
38864         portability problems.
38865
38866 2009-01-18  Bruno Haible  <bruno@clisp.org>
38867
38868         New module 'scandir'.
38869         * lib/dirent.in.h (scandir): New declaration.
38870         * lib/scandir.c: New file, from glibc with modifications.
38871         * m4/scandir.m4: New file.
38872         * modules/scandir: New file.
38873         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38874         HAVE_SCANDIR.
38875         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38876         HAVE_SCANDIR.
38877         * doc/posix-functions/scandir.texi: Mention the new module and the
38878         portability problems.
38879
38880 2009-01-17  Bruno Haible  <bruno@clisp.org>
38881
38882         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38883         Update documentation.
38884         (func_remove_suffix): Escape all dots in the suffix. Update
38885         documentation.
38886         (func_filter_filelist): Update documentation.
38887         Reported by Ralf Wildenhues.
38888
38889 2009-01-17  Bruno Haible  <bruno@clisp.org>
38890
38891         * modules/dprintf-posix-tests: New file.
38892         * tests/test-dprintf-posix.sh: New file.
38893         * tests/test-dprintf-posix.c: New file.
38894
38895         New modules 'dprintf', 'dprintf-posix'.
38896         * lib/stdio.in.h (dprintf): New declaration.
38897         * lib/dprintf.c: New file.
38898         * m4/dprintf.m4: New file.
38899         * m4/dprintf-posix.m4: New file.
38900         * modules/dprintf: New file.
38901         * modules/dprintf-posix: New file.
38902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38903         HAVE_DPRINTF, REPLACE_DPRINTF.
38904         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38905         HAVE_DPRINTF, REPLACE_DPRINTF.
38906         * doc/posix-functions/dprintf.texi: Mention the new modules.
38907
38908 2009-01-17  Bruno Haible  <bruno@clisp.org>
38909
38910         * modules/vdprintf-posix-tests: New file.
38911         * tests/test-vdprintf-posix.sh: New file.
38912         * tests/test-vdprintf-posix.c: New file.
38913
38914         New modules 'vdprintf', 'vdprintf-posix'.
38915         * lib/stdio.in.h (vdprintf): New declaration.
38916         * lib/vdprintf.c: New file.
38917         * m4/vdprintf.m4: New file.
38918         * m4/vdprintf-posix.m4: New file.
38919         * modules/vdprintf: New file.
38920         * modules/vdprintf-posix: New file.
38921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38922         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38923         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38924         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38925         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38926
38927 2009-01-17  Bruno Haible  <bruno@clisp.org>
38928
38929         Fix replacement of fopen on mingw.
38930         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38931         mingw.
38932
38933 2009-01-17  Bruno Haible  <bruno@clisp.org>
38934
38935         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38936         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38937
38938 2009-01-17  Bruno Haible  <bruno@clisp.org>
38939
38940         Avoid test-fflush2.sh failure on mingw.
38941         * tests/test-fflush2.c: Include binary-io.h.
38942         (main): Put standard input into binary mode.
38943         * modules/fflush-tests (Depends-on): Add binary-io.
38944
38945 2009-01-17  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/wchar.in.h: In another particular situation, include only the
38948         system's <wchar.h> file.
38949         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38950         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38951         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38952
38953 2009-01-17  Bruno Haible  <bruno@clisp.org>
38954
38955         Support for stripping executables in --enable-relocatable.
38956         * build-aux/install-reloc: Expect one more argument, or an environment
38957         variable RELOC_STRIP_PROG. If set, strip the destination program and
38958         its wrapper.
38959         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38960         RELOC_STRIP_PROG.
38961         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38962         to set RELOCATABLE_STRIP.
38963         * NEWS: Mention the new Makefile requirement.
38964
38965 2009-01-17  Bruno Haible  <bruno@clisp.org>
38966
38967         * build-aux/install-reloc: Remove debugging information left over by
38968         C compiler on MacOS X.
38969
38970 2009-01-17  Bruno Haible  <bruno@clisp.org>
38971
38972         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38973         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38974         _NSGetExecutablePath.
38975
38976 2009-01-16  Jim Meyering  <meyering@redhat.com>
38977
38978         strerror: avoid warnings about discarding "const"
38979         * lib/strerror.c (rpl_strerror): Instead of returning a const
38980         string from each and every "case", use a variable, and add a single
38981         cast after the switch.
38982
38983 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38984
38985         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38986
38987 2009-01-16  Bruno Haible  <bruno@clisp.org>
38988
38989         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38990         array initializer syntax that also works in C++ mode.
38991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38992
38993 2009-01-16  Jim Meyering  <meyering@redhat.com>
38994
38995         poll: suppress a warning
38996         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38997         to ignore "...unsigned expression < 0 is always false" warnings.
38998
38999 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39000
39001         poll: remove declarations of unused variables
39002         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39003         sockbuf and optlen.
39004
39005 2009-01-15  Bruno Haible  <bruno@clisp.org>
39006
39007         Make fflush-after-ungetc POSIX compliant on BSD systems.
39008         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39009         (clear_ungetc_buffer): Implement also for other systems.
39010         (rpl_fflush): On glibc systems, invoke
39011         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39012         clear_ungetc_buffer after fetching the stream's position, not before.
39013
39014 2009-01-15  Bruno Haible  <bruno@clisp.org>
39015
39016         Make fflush-after-ungetc POSIX compliant on glibc systems.
39017         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39018         after ungetc.
39019         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39020         (rpl_fflush): On glibc systems, simply call the system's fflush
39021         function after clearing the ungetc buffer.
39022         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39023         Instead, lseek only to the end of file, then use the system's fseeko
39024         for the rest. On glibc systems, reset the EOF indicator bit.
39025
39026 2009-01-15  Jim Meyering  <meyering@redhat.com>
39027
39028         openmp.m4: revert quote-adding change, for portability to older autoconf
39029         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39030         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39031         Simon Josefsson noticed the problem when using autoconf-2.61.
39032
39033 2009-01-15  Bruno Haible  <bruno@clisp.org>
39034
39035         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39036         * tests/test-fflush2.c (ASSERT): Always fail.
39037         (main): Add two tests for fflush() after ungetc(), taking into account
39038         the Austin Group's clarification.
39039         Suggested by Eric Blake.
39040
39041 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39042
39043         mktime.m4: remove K&R-style function prototypes
39044         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39045         for the Sun C++ compiler.
39046
39047 2009-01-14  Bruno Haible  <bruno@clisp.org>
39048
39049         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39050         while including <wchar.h>.
39051         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39052         the system's <wchar.h> file.
39053         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39054
39055 2009-01-14  Bruno Haible  <bruno@clisp.org>
39056
39057         * m4/csharp.m4: Don't mention gettext on the serial number line.
39058         * m4/csharpexec.m4: Likewise.
39059         * m4/eaccess.m4: Likewise.
39060         * m4/javaexec.m4: Likewise.
39061         * m4/sig_atomic_t.m4: Likewise.
39062         * m4/tmpdir.m4: Likewise.
39063         * m4/intldir.m4: Bump gettext version.
39064         * m4/lib-ld.m4: Likewise.
39065
39066 2009-01-14  Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/progname.c (set_program_name): Add more comments.
39069         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39070
39071 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39072
39073         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39074         were sys/stat.h does not define it.
39075
39076 2009-01-14  Jim Meyering  <meyering@redhat.com>
39077
39078         many *.m4 files: improve m4 quoting
39079         99% of this change was performed by running the following commands:
39080         git ls-files | grep '\.m4$' | xargs perl -pi \
39081           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39082           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39083           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39084           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39085         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39086         The remainder were to add Copyright dates, increment serial numbers,
39087         undo some changes in comments, exclude m4/intl.m4, and add quotes
39088         around the "1" in ",1" where the unusual spacing prohibited the
39089         above regexps from doing the job.  For more details, see
39090         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39091         * m4/acl.m4: Modified.
39092         * m4/afs.m4: Likewise.
39093         * m4/alloca.m4: Likewise.
39094         * m4/argp.m4: Likewise.
39095         * m4/argz.m4: Likewise.
39096         * m4/atexit.m4: Likewise.
39097         * m4/bison-i18n.m4: Likewise.
39098         * m4/bison.m4: Likewise.
39099         * m4/byteswap.m4: Likewise.
39100         * m4/c-stack.m4: Likewise.
39101         * m4/c-strtod.m4: Likewise.
39102         * m4/calloc.m4: Likewise.
39103         * m4/canonicalize-lgpl.m4: Likewise.
39104         * m4/chown.m4: Likewise.
39105         * m4/clock_time.m4: Likewise.
39106         * m4/codeset.m4: Likewise.
39107         * m4/copy-file.m4: Likewise.
39108         * m4/csharp.m4: Likewise.
39109         * m4/csharpcomp.m4: Likewise.
39110         * m4/csharpexec.m4: Likewise.
39111         * m4/d-ino.m4: Likewise.
39112         * m4/d-type.m4: Likewise.
39113         * m4/dirfd.m4: Likewise.
39114         * m4/double-slash-root.m4: Likewise.
39115         * m4/eaccess.m4: Likewise.
39116         * m4/eealloc.m4: Likewise.
39117         * m4/environ.m4: Likewise.
39118         * m4/errno_h.m4: Likewise.
39119         * m4/euidaccess.m4: Likewise.
39120         * m4/execute.m4: Likewise.
39121         * m4/fatal-signal.m4: Likewise.
39122         * m4/fchdir.m4: Likewise.
39123         * m4/fcntl_h.m4: Likewise.
39124         * m4/fileblocks.m4: Likewise.
39125         * m4/filenamecat.m4: Likewise.
39126         * m4/findprog.m4: Likewise.
39127         * m4/flexmember.m4: Likewise.
39128         * m4/fnmatch.m4: Likewise.
39129         * m4/fopen.m4: Likewise.
39130         * m4/fpending.m4: Likewise.
39131         * m4/fprintf-posix.m4: Likewise.
39132         * m4/free.m4: Likewise.
39133         * m4/frexp.m4: Likewise.
39134         * m4/frexpl.m4: Likewise.
39135         * m4/fsusage.m4: Likewise.
39136         * m4/ftruncate.m4: Likewise.
39137         * m4/gc-camellia.m4: Likewise.
39138         * m4/gc-random.m4: Likewise.
39139         * m4/gc.m4: Likewise.
39140         * m4/getaddrinfo.m4: Likewise.
39141         * m4/getcwd-abort-bug.m4: Likewise.
39142         * m4/getcwd-path-max.m4: Likewise.
39143         * m4/getdate.m4: Likewise.
39144         * m4/getdomainname.m4: Likewise.
39145         * m4/getgroups.m4: Likewise.
39146         * m4/gethostname.m4: Likewise.
39147         * m4/gethrxtime.m4: Likewise.
39148         * m4/getline.m4: Likewise.
39149         * m4/getloadavg.m4: Likewise.
39150         * m4/getndelim2.m4: Likewise.
39151         * m4/getpass.m4: Likewise.
39152         * m4/gettext.m4: Likewise.
39153         * m4/gettime.m4: Likewise.
39154         * m4/gettimeofday.m4: Likewise.
39155         * m4/gnulib-common.m4: Likewise.
39156         * m4/group-member.m4: Likewise.
39157         * m4/host-os.m4: Likewise.
39158         * m4/iconv.m4: Likewise.
39159         * m4/iconv_open.m4: Likewise.
39160         * m4/inet_ntop.m4: Likewise.
39161         * m4/inet_pton.m4: Likewise.
39162         * m4/inline.m4: Likewise.
39163         * m4/intldir.m4: Likewise.
39164         * m4/intlmacosx.m4: Likewise.
39165         * m4/intmax.m4: Likewise.
39166         * m4/intmax_t.m4: Likewise.
39167         * m4/inttypes.m4: Likewise.
39168         * m4/inttypes_h.m4: Likewise.
39169         * m4/inttypes-pri.m4: Likewise.
39170         * m4/isapipe.m4: Likewise.
39171         * m4/isnand.m4: Likewise.
39172         * m4/isnanf.m4: Likewise.
39173         * m4/isnanl.m4: Likewise.
39174         * m4/javacomp.m4: Likewise.
39175         * m4/javaexec.m4: Likewise.
39176         * m4/jm-winsz1.m4: Likewise.
39177         * m4/jm-winsz2.m4: Likewise.
39178         * m4/lchown.m4: Likewise.
39179         * m4/lcmessage.m4: Likewise.
39180         * m4/ldexpl.m4: Likewise.
39181         * m4/lib-ld.m4: Likewise.
39182         * m4/lib-link.m4: Likewise.
39183         * m4/libsigsegv.m4: Likewise.
39184         * m4/link-follow.m4: Likewise.
39185         * m4/localcharset.m4: Likewise.
39186         * m4/locale-fr.m4: Likewise.
39187         * m4/locale-ja.m4: Likewise.
39188         * m4/locale-tr.m4: Likewise.
39189         * m4/locale-zh.m4: Likewise.
39190         * m4/lock.m4: Likewise.
39191         * m4/longlong.m4: Likewise.
39192         * m4/ls-mntd-fs.m4: Likewise.
39193         * m4/lstat.m4: Likewise.
39194         * m4/malloc.m4: Likewise.
39195         * m4/mathl.m4: Likewise.
39196         * m4/mbrtowc.m4: Likewise.
39197         * m4/mbstate_t.m4: Likewise.
39198         * m4/mbswidth.m4: Likewise.
39199         * m4/memchr.m4: Likewise.
39200         * m4/memcmp.m4: Likewise.
39201         * m4/memcpy.m4: Likewise.
39202         * m4/memmem.m4: Likewise.
39203         * m4/memmove.m4: Likewise.
39204         * m4/mempcpy.m4: Likewise.
39205         * m4/memrchr.m4: Likewise.
39206         * m4/memset.m4: Likewise.
39207         * m4/minmax.m4: Likewise.
39208         * m4/mkdir-slash.m4: Likewise.
39209         * m4/mkdtemp.m4: Likewise.
39210         * m4/mktime.m4: Likewise.
39211         * m4/mmap-anon.m4: Likewise.
39212         * m4/mountlist.m4: Likewise.
39213         * m4/nanosleep.m4: Likewise.
39214         * m4/nls.m4: Likewise.
39215         * m4/nocrash.m4: Likewise.
39216         * m4/open.m4: Likewise.
39217         * m4/openat.m4: Likewise.
39218         * m4/openmp.m4: Likewise.
39219         * m4/pathmax.m4: Likewise.
39220         * m4/perl.m4: Likewise.
39221         * m4/physmem.m4: Likewise.
39222         * m4/pipe.m4: Likewise.
39223         * m4/po.m4: Likewise.
39224         * m4/poll.m4: Likewise.
39225         * m4/posixtm.m4: Likewise.
39226         * m4/posixver.m4: Likewise.
39227         * m4/printf-frexp.m4: Likewise.
39228         * m4/printf-frexpl.m4: Likewise.
39229         * m4/printf-posix.m4: Likewise.
39230         * m4/printf-posix-rpl.m4: Likewise.
39231         * m4/printf.m4: Likewise.
39232         * m4/progtest.m4: Likewise.
39233         * m4/putenv.m4: Likewise.
39234         * m4/readline.m4: Likewise.
39235         * m4/readlink.m4: Likewise.
39236         * m4/readutmp.m4: Likewise.
39237         * m4/realloc.m4: Likewise.
39238         * m4/regex.m4: Likewise.
39239         * m4/relocatable.m4: Likewise.
39240         * m4/relocatable-lib.m4: Likewise.
39241         * m4/rename-dest-slash.m4: Likewise.
39242         * m4/rename.m4: Likewise.
39243         * m4/rmdir-errno.m4: Likewise.
39244         * m4/rmdir.m4: Likewise.
39245         * m4/roundf.m4: Likewise.
39246         * m4/roundl.m4: Likewise.
39247         * m4/rpmatch.m4: Likewise.
39248         * m4/save-cwd.m4: Likewise.
39249         * m4/selinux-selinux-h.m4: Likewise.
39250         * m4/setenv.m4: Likewise.
39251         * m4/settime.m4: Likewise.
39252         * m4/sig2str.m4: Likewise.
39253         * m4/sig_atomic_t.m4: Likewise.
39254         * m4/signalblocking.m4: Likewise.
39255         * m4/signbit.m4: Likewise.
39256         * m4/sigpipe.m4: Likewise.
39257         * m4/sockets.m4: Likewise.
39258         * m4/sockpfaf.m4: Likewise.
39259         * m4/st_dm_mode.m4: Likewise.
39260         * m4/stat-time.m4: Likewise.
39261         * m4/stdbool.m4: Likewise.
39262         * m4/stdint.m4: Likewise.
39263         * m4/stdint_h.m4: Likewise.
39264         * m4/stpcpy.m4: Likewise.
39265         * m4/stpncpy.m4: Likewise.
39266         * m4/strcase.m4: Likewise.
39267         * m4/strchrnul.m4: Likewise.
39268         * m4/strcspn.m4: Likewise.
39269         * m4/strdup.m4: Likewise.
39270         * m4/strftime.m4: Likewise.
39271         * m4/strndup.m4: Likewise.
39272         * m4/strnlen.m4: Likewise.
39273         * m4/strpbrk.m4: Likewise.
39274         * m4/strptime.m4: Likewise.
39275         * m4/strsep.m4: Likewise.
39276         * m4/strtod.m4: Likewise.
39277         * m4/strtoimax.m4: Likewise.
39278         * m4/strtok_r.m4: Likewise.
39279         * m4/strtol.m4: Likewise.
39280         * m4/strtoll.m4: Likewise.
39281         * m4/strtoul.m4: Likewise.
39282         * m4/strtoull.m4: Likewise.
39283         * m4/strtoumax.m4: Likewise.
39284         * m4/strverscmp.m4: Likewise.
39285         * m4/threadlib.m4: Likewise.
39286         * m4/timegm.m4: Likewise.
39287         * m4/tm_gmtoff.m4: Likewise.
39288         * m4/tmpdir.m4: Likewise.
39289         * m4/tmpfile.m4: Likewise.
39290         * m4/tzset.m4: Likewise.
39291         * m4/uintmax_t.m4: Likewise.
39292         * m4/unlinkdir.m4: Likewise.
39293         * m4/unlocked-io.m4: Likewise.
39294         * m4/uptime.m4: Likewise.
39295         * m4/userspec.m4: Likewise.
39296         * m4/utimbuf.m4: Likewise.
39297         * m4/utime.m4: Likewise.
39298         * m4/utimes-null.m4: Likewise.
39299         * m4/utimes.m4: Likewise.
39300         * m4/vararrays.m4: Likewise.
39301         * m4/vasnprintf.m4: Likewise.
39302         * m4/vfprintf-posix.m4: Likewise.
39303         * m4/vprintf-posix.m4: Likewise.
39304         * m4/wait-process.m4: Likewise.
39305         * m4/wchar_t.m4: Likewise.
39306         * m4/wint_t.m4: Likewise.
39307         * m4/write-any-file.m4: Likewise.
39308         * m4/yield.m4: Likewise.
39309
39310 2009-01-13  Bruno Haible  <bruno@clisp.org>
39311
39312         Avoid test-copy-file.sh failures when ACL support insufficient.
39313         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39314         TESTS_ENVIRONMENT.
39315         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39316         Reported by Jim Meyering.
39317
39318 2009-01-13  Bruno Haible  <bruno@clisp.org>
39319
39320         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39321         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39322         * modules/unistdio/u8-printf-parse (Files): Likewise.
39323         * modules/unistdio/u32-printf-parse (Files): Likewise.
39324         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39325
39326 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39327
39328         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39329         and m4/inttypes_h.m4 too.
39330
39331 2009-01-12  Eric Blake  <ebb9@byu.net>
39332
39333         tests: IRIX 6.2 cc can't compile -0.0 into .data
39334         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39335         rather than at compile-time.
39336         * tests/test-floorl.c (minus_zero): Likewise.
39337         * tests/test-frexpl.c (minus_zero): Likewise.
39338         * tests/test-isnan.c (minus_zerol): Likewise.
39339         * tests/test-isnanl.h (minus_zero): Likewise.
39340         * tests/test-ldexpl.c (minus_zero): Likewise.
39341         * tests/test-roundl.c (minus_zero): Likewise.
39342         * tests/test-signbit.c (minus_zerol): Likewise.
39343         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39344         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39345         * tests/test-truncl.c (minus_zero): Likewise.
39346         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39347         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39348         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39349
39350 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39351
39352         regex: fix glibc bug 9697
39353         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39354         handling.
39355
39356 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39357
39358         regex: fix glibc bug 697
39359         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39360         being NULL also if there are no backreferences.
39361
39362 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39363
39364         regex: merge glibc changes
39365         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39366         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39367         re_string_skip_chars, re_string_reconstruct): Likewise.
39368         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39369
39370 2009-01-07  Jim Meyering  <meyering@redhat.com>
39371
39372         poll: filter through cppi
39373         * lib/poll.c: Indent cpp directives to reflect nesting.
39374
39375 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39376
39377         poll: don't return uninitialized
39378         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39379
39380 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39381
39382         avoid compile failure on AIX 6.1
39383         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39384         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39385
39386 2009-01-04  Jim Meyering  <meyering@redhat.com>
39387
39388         remove duplicate inclusion of <stdio.h>
39389         * tests/test-fprintf-posix.c: Likewise.
39390         * tests/test-printf-posix.c: Likewise.
39391         * tests/test-snprintf-posix.c: Likewise.
39392         * tests/test-sprintf-posix.c: Likewise.
39393         * tests/test-vasprintf-posix.c: Likewise.
39394         * tests/test-vfprintf-posix.c: Likewise.
39395         * tests/test-vprintf-posix.c: Likewise.
39396         * tests/test-vsnprintf-posix.c: Likewise.
39397         * tests/test-vsprintf-posix.c: Likewise.
39398
39399 2009-01-03  Jim Meyering  <meyering@redhat.com>
39400
39401         gnulib-tool: fix sed-based filtering
39402         * gnulib-tool (func_filter_filelist): Remove extra backslash
39403         in sed_fff_filter definition.
39404
39405 2009-01-02  Jim Meyering  <meyering@redhat.com>
39406
39407         strftime: avoid compilation failure on Solaris 2.6
39408         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39409         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39410         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39411         be available.  Reported by Tom G. Christensen.  Details in
39412         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39413
39414 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39415             Bruno Haible  <bruno@clisp.org>
39416
39417         Speed up gnulib-tool by doing more string processing through shell
39418         built-ins.
39419         * gnulib-tool (fast_func_append): New variable.
39420         (func_remove_prefix, func_remove_suffix): New functions.
39421         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39422         (func_filter_filelist): New function.
39423         (func_get_dependencies): Use func_remove_suffix instead of sed.
39424         (func_get_automake_snippet): Use func_filter_filelist instead of a
39425         subshell and sed invocation.
39426
39427 2009-01-01  Bruno Haible  <bruno@clisp.org>
39428
39429         Fix a security bug.
39430         * gnulib-tool (func_import, import, update): Don't allow the characters
39431         '"', '$', '`', '\' in macro arguments that become part of commands that
39432         are evaluated.
39433
39434 2009-01-01  Bruno Haible  <bruno@clisp.org>
39435
39436         * gnulib-tool (func_reset_sigpipe): Add more comments.
39437
39438 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39439
39440         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39441         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39442         already know the answer.
39443
39444 2009-01-01  Jim Meyering  <meyering@redhat.com>
39445
39446         * lib/version-etc.c (version_etc_va): Update copyright year.
39447
39448 2008-12-30  Bruno Haible  <bruno@clisp.org>
39449
39450         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39451         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39452         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39453
39454 2008-12-29  Eric Blake  <ebb9@byu.net>
39455
39456         multiarch: avoid autoconf AC_REQUIRE bug
39457         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39458         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39459         2.63 and older.
39460         Reported by Bruno Haible, and analyzed in
39461         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39462
39463 2008-12-29  Bruno Haible  <bruno@clisp.org>
39464
39465         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39466         files in subdirectories correctly.
39467         Reported by Ralf Wildenhues.
39468
39469 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39470
39471         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39472         rather than 'join FILE -', for Solaris join.
39473
39474 2008-12-29  Bruno Haible  <bruno@clisp.org>
39475
39476         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39477         quoting.
39478         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39479         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39480         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39481         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39482         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39483         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39484         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39485         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39486         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39487         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39488         * m4/nls.m4 (AM_NLS): Likewise.
39489         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39490         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39491         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39492         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39493         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39494         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39495         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39496         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39497         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39498         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39499         * m4/xsize.m4 (gl_XSIZE): Likewise.
39500         Suggested by Jim Meyering.
39501
39502 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39503
39504         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39505         * lib/parse-duration.c: use a switch instead of cascading if's.
39506
39507 2008-12-29  Eric Blake  <ebb9@byu.net>
39508
39509         wchar.h: supply WEOF on Irix 5.3
39510         * lib/wchar.in.h (wint_t): Also supply WEOF.
39511         * lib/wctype.in.h (wint_t): Likewise.
39512         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39513         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39514         Reported by Tom G. Christensen.
39515
39516 2008-12-26  Bruno Haible  <bruno@clisp.org>
39517
39518         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39519         i486, i586, i686.
39520
39521 2008-12-26  Bruno Haible  <bruno@clisp.org>
39522
39523         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39524
39525 2008-12-26  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39528         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39529         not __STDC_CONSTANT_MACROS.
39530         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39531
39532 2008-12-25  Bruno Haible  <bruno@clisp.org>
39533
39534         Add support for universal builds to vasnprintf.
39535         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39536         universal builds, guess no.
39537         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39538         * modules/vasprintf-posix (Depends-on): Likewise.
39539         * modules/fprintf-posix (Depends-on): Likewise.
39540         * modules/vfprintf-posix (Depends-on): Likewise.
39541         * modules/snprintf-posix (Depends-on): Likewise.
39542         * modules/vsnprintf-posix (Depends-on): Likewise.
39543         * modules/sprintf-posix (Depends-on): Likewise.
39544         * modules/vsprintf-posix (Depends-on): Likewise.
39545         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39546         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39549         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39550         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39552
39553         Add support for universal builds to <inttypes.h>.
39554         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39555         _SCNu64_PREFIX): In Apple
39556         universal builds, define directly, using _LP64.
39557         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39558         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39559         * modules/inttypes (Depends-on): Add multiarch.
39560         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39561
39562         Add support for universal builds to <stdint.h>.
39563         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39564         universal builds, define directly, using _LP64.
39565         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39566         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39567         and size_t.
39568         * modules/stdint (Depends-on): Add multiarch.
39569         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39570
39571         New module 'multiarch'.
39572         * modules/multiarch: New file.
39573         * m4/multiarch.m4: New file.
39574
39575 2008-12-25  Bruno Haible  <bruno@clisp.org>
39576
39577         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39578
39579 2008-12-25  Bruno Haible  <bruno@clisp.org>
39580
39581         * modules/btowc (License): Relicense under LGPLv2+.
39582         * modules/mbsinit (License): Likewise.
39583         * modules/mbrtowc (License): Likewise.
39584         * modules/wcrtomb (License): Likewise.
39585         * modules/streq (License): Likewise.
39586         Reported by David Lutterkort <lutter@redhat.com>.
39587
39588 2008-12-23  Bruno Haible  <bruno@clisp.org>
39589
39590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39591
39592 2008-12-23  Bruno Haible  <bruno@clisp.org>
39593
39594         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39596         GETADDRINFO_LIB, not in LIBS.
39597         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39598         * modules/canon-host (Link): Likewise.
39599         * NEWS: Mention the change.
39600         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39601         GETADDRINFO_LIB.
39602
39603 2008-12-22  Bruno Haible  <bruno@clisp.org>
39604
39605         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39606         * doc/posix-functions/iswalpha_l.texi: Likewise.
39607         * doc/posix-functions/iswblank_l.texi: Likewise.
39608         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39609         * doc/posix-functions/iswctype_l.texi: Likewise.
39610         * doc/posix-functions/iswdigit_l.texi: Likewise.
39611         * doc/posix-functions/iswgraph_l.texi: Likewise.
39612         * doc/posix-functions/iswlower_l.texi: Likewise.
39613         * doc/posix-functions/iswprint_l.texi: Likewise.
39614         * doc/posix-functions/iswpunct_l.texi: Likewise.
39615         * doc/posix-functions/iswspace_l.texi: Likewise.
39616         * doc/posix-functions/iswupper_l.texi: Likewise.
39617         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39618         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39619         * doc/posix-functions/open_wmemstream.texi: Likewise.
39620         * doc/posix-functions/swscanf.texi: Likewise.
39621         * doc/posix-functions/towctrans_l.texi: Likewise.
39622         * doc/posix-functions/towlower.texi: Likewise.
39623         * doc/posix-functions/towlower_l.texi: Likewise.
39624         * doc/posix-functions/towupper.texi: Likewise.
39625         * doc/posix-functions/towupper_l.texi: Likewise.
39626         * doc/posix-functions/vfwprintf.texi: Likewise.
39627         * doc/posix-functions/vfwscanf.texi: Likewise.
39628         * doc/posix-functions/vswscanf.texi: Likewise.
39629         * doc/posix-functions/vwprintf.texi: Likewise.
39630         * doc/posix-functions/vwscanf.texi: Likewise.
39631         * doc/posix-functions/wcpcpy.texi: Likewise.
39632         * doc/posix-functions/wcpncpy.texi: Likewise.
39633         * doc/posix-functions/wcscasecmp.texi: Likewise.
39634         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39635         * doc/posix-functions/wcscoll_l.texi: Likewise.
39636         * doc/posix-functions/wcsdup.texi: Likewise.
39637         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39638         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39639         * doc/posix-functions/wcsnlen.texi: Likewise.
39640         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39641         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39642         * doc/posix-functions/wctrans_l.texi: Likewise.
39643         * doc/posix-functions/wctype_l.texi: Likewise.
39644         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39645         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39646         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39647         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39648         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39649         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39650         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39651         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39652         * doc/glibc-functions/wcschrnul.texi: Likewise.
39653         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39654         * doc/glibc-functions/wcstod_l.texi: Likewise.
39655         * doc/glibc-functions/wcstof_l.texi: Likewise.
39656         * doc/glibc-functions/wcstol_l.texi: Likewise.
39657         * doc/glibc-functions/wcstold_l.texi: Likewise.
39658         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39659         * doc/glibc-functions/wcstoq.texi: Likewise.
39660         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39661         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39662         * doc/glibc-functions/wcstouq.texi: Likewise.
39663         * doc/glibc-functions/wmempcpy.texi: Likewise.
39664
39665 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39666             Eric Blake  <ebb9@byu.net>
39667             Paolo Bonzini  <bonzini@gnu.org>
39668             Bruno Haible  <bruno@clisp.org>
39669
39670         Make c-stack work on Haiku.
39671         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39672         (c_stack_action): Use SA_ONSTACK flag.
39673
39674 2008-12-22  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39677
39678 2008-12-22  Bruno Haible  <bruno@clisp.org>
39679
39680         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39681         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39682         being overridden.
39683         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39684         New macros.
39685         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39687         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39688         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39689
39690 2008-12-22  Bruno Haible  <bruno@clisp.org>
39691
39692         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39693         from test code.
39694
39695 2008-12-22  Eric Blake  <ebb9@byu.net>
39696
39697         Avoid gcc warnings on cygwin.
39698         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39699         Avoid unused variable.
39700         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39701         Likewise.
39702
39703 2008-12-22  Bruno Haible  <bruno@clisp.org>
39704
39705         Remove HAVE_MBRTOWC conditionals.
39706         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39707         (mbscasecmp): Assume mbrtowc function.
39708         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39709         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39710         * lib/mbschr.c: Include mbuiter.h unconditionally.
39711         (mbschr): Assume mbrtowc function.
39712         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39713         (mbscspn): Assume mbrtowc function.
39714         * lib/mbslen.c: Include mbuiter.h unconditionally.
39715         (mbslen): Assume mbrtowc function.
39716         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39717         (mbsncasecmp): Assume mbrtowc function.
39718         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39719         (mbsnlen): Assume mbrtowc function.
39720         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39721         (mbspbrk): Assume mbrtowc function.
39722         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39723         (mbspcasecmp): Assume mbrtowc function.
39724         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39725         (mbsrchr): Assume mbrtowc function.
39726         * lib/mbssep.c: Include mbuiter.h unconditionally.
39727         (mbssep): Assume mbrtowc function.
39728         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39729         (mbsspn): Assume mbrtowc function.
39730         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39731         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39732         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39733         (mbstok_r): Assume mbrtowc function.
39734         * lib/propername.c: Include mbuiter.h unconditionally.
39735         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39736         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39737         (trim2): Assume mbrtowc function.
39738         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39739         (mbsnwidth): Assume mbrtowc function.
39740         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39741         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39742         fallback definitions.
39743         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39744
39745 2008-12-22  Bruno Haible  <bruno@clisp.org>
39746
39747         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39748
39749 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39750
39751         * modules/regex: Request emulations for the mb*/wc* functions we need.
39752         * m4/regex.m4: Don't look for those functions here.
39753         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39754
39755 2008-12-22  Bruno Haible  <bruno@clisp.org>
39756
39757         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39758
39759 2008-12-21  Bruno Haible  <bruno@clisp.org>
39760
39761         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39762         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39763         (Include): Remove conditionalization.
39764         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39765         (Include): Remove conditionalization.
39766         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39767         (Include): Remove conditionalization.
39768         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39769         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39770         * NEWS: Mention the change.
39771         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39772         via Sergey Poznyakoff <gray@gnu.org.ua>.
39773
39774 2008-12-21  Bruno Haible  <bruno@clisp.org>
39775
39776         * MODULES.html.sh (Extended multibyte and wide character utilities
39777         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39778         wcrtomb, wcsrtombs.
39779         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39780         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39781         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39782         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39783
39784 2008-12-21  Bruno Haible  <bruno@clisp.org>
39785
39786         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39787
39788 2008-12-21  Bruno Haible  <bruno@clisp.org>
39789
39790         * modules/wcsnrtombs-tests: New file.
39791         * tests/test-wcsnrtombs1.sh: New file.
39792         * tests/test-wcsnrtombs2.sh: New file.
39793         * tests/test-wcsnrtombs3.sh: New file.
39794         * tests/test-wcsnrtombs4.sh: New file.
39795         * tests/test-wcsnrtombs.c: New file.
39796
39797         New module 'wcsnrtombs'.
39798         * lib/wchar.in.h (wcsnrtombs): New declaration.
39799         * lib/wcsnrtombs.c: New file.
39800         * lib/wcsrtombs-state.c: New file.
39801         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39802         (internal_state): Remove variable.
39803         * m4/wcsnrtombs.m4: New file.
39804         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39805         compilation units.
39806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39807         HAVE_WCSNRTOMBS.
39808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39809         HAVE_WCSNRTOMBS.
39810         * modules/wcsnrtombs: New file.
39811         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39812         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39813
39814 2008-12-21  Bruno Haible  <bruno@clisp.org>
39815
39816         * modules/wcsrtombs-tests: New file.
39817         * tests/test-wcsrtombs1.sh: New file.
39818         * tests/test-wcsrtombs2.sh: New file.
39819         * tests/test-wcsrtombs3.sh: New file.
39820         * tests/test-wcsrtombs4.sh: New file.
39821         * tests/test-wcsrtombs.c: New file.
39822
39823         New module 'wcsrtombs'.
39824         * lib/wchar.in.h (wcsrtombs): New declaration.
39825         * lib/wcsrtombs.c: New file.
39826         * m4/wcsrtombs.m4: New file.
39827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39828         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39830         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39831         * modules/wcsrtombs: New file.
39832         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39833         bugs.
39834
39835 2008-12-21  Bruno Haible  <bruno@clisp.org>
39836
39837         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39838         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39840         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39841         if not correct.
39842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39843         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39844         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39845         m4/locale-zh.m4, m4/codeset.m4.
39846         * doc/posix-functions/wcrtomb.texi: Document the bug.
39847
39848 2008-12-21  Bruno Haible  <bruno@clisp.org>
39849
39850         Work around a btowc() bug on IRIX 6.5.
39851         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39852         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39853         REPLACE_WTOBC if not.
39854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39855         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39856         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39857
39858 2008-12-21  Bruno Haible  <bruno@clisp.org>
39859
39860         * modules/wcrtomb-tests: New file.
39861         * tests/test-wcrtomb.sh: New file.
39862         * tests/test-wcrtomb.c: New file.
39863
39864         New module 'wcrtomb'.
39865         * lib/wchar.in.h (wcrtomb): New declaration.
39866         * lib/wcrtomb.c: New file.
39867         * m4/wcrtomb.m4: New file.
39868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39869         HAVE_WCRTOMB.
39870         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39871         HAVE_WCRTOMB.
39872         * modules/wcrtomb: New file.
39873         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39874
39875 2008-12-21  Bruno Haible  <bruno@clisp.org>
39876
39877         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39878         * modules/mbsrtowcs (Files): Likewise.
39879         * modules/wctob (Files): Likewise.
39880         * modules/c-strcase-tests (Files): Likewise.
39881         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39882         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39883         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39884         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39885         * modules/vasnprintf-posix-tests (Files): Likewise.
39886
39887 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39888
39889         gitlog-to-changelog: pass all command-line arguments to git-log
39890         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39891         it is sometimes convenient to filter the commits in various ways.
39892         gitlog-to-changelog only allows --since to specify a start date,
39893         but git-log itself supports many other filtering mechanisms.
39894         At the moment, I want to filter by branch name.  Rather than
39895         adding a --branch option to gitlog-to-changelog, it seems more
39896         flexible to simply pass all options directly to git-log and let
39897         git do the work.  Notice that this effectively makes --since a
39898         redundant option for gitlog-to-changelog, but removing it would
39899         require current usage to change since calls would then require
39900         an additional '--'.
39901
39902 2008-12-21  Bruno Haible  <bruno@clisp.org>
39903
39904         * modules/mbsnrtowcs-tests: New file.
39905         * tests/test-mbsnrtowcs1.sh: New file.
39906         * tests/test-mbsnrtowcs2.sh: New file.
39907         * tests/test-mbsnrtowcs3.sh: New file.
39908         * tests/test-mbsnrtowcs4.sh: New file.
39909         * tests/test-mbsnrtowcs.c: New file.
39910
39911         New module 'mbsnrtowcs'.
39912         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39913         * lib/mbsnrtowcs.c: New file.
39914         * lib/mbsrtowcs-state.c: New file.
39915         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39916         (internal_state): Remove variable.
39917         * m4/mbsnrtowcs.m4: New file.
39918         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39919         compilation units.
39920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39921         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39922         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39923         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39924         * modules/mbsnrtowcs: New file.
39925         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39926         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39927         portability problem.
39928
39929 2008-12-21  Bruno Haible  <bruno@clisp.org>
39930
39931         Work around mbsrtowcs bug.
39932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39933         (gl_FUNC_MBSRTOWCS): Invoke it.
39934         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39935         m4/locale-zh.m4.
39936         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39937
39938 2008-12-21  Bruno Haible  <bruno@clisp.org>
39939
39940         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39941
39942 2008-12-21  Bruno Haible  <bruno@clisp.org>
39943
39944         Update doc for AIX.
39945         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39946         16-bit wchar_t type.
39947         * doc/posix-functions/btowc.texi: Likewise.
39948         * doc/posix-functions/fgetwc.texi: Likewise.
39949         * doc/posix-functions/fgetws.texi: Likewise.
39950         * doc/posix-functions/fputwc.texi: Likewise.
39951         * doc/posix-functions/fputws.texi: Likewise.
39952         * doc/posix-functions/fwide.texi: Likewise.
39953         * doc/posix-functions/fwprintf.texi: Likewise.
39954         * doc/posix-functions/fwscanf.texi: Likewise.
39955         * doc/posix-functions/getwchar.texi: Likewise.
39956         * doc/posix-functions/getwc.texi: Likewise.
39957         * doc/posix-functions/iswalnum.texi: Likewise.
39958         * doc/posix-functions/iswalpha.texi: Likewise.
39959         * doc/posix-functions/iswblank.texi: Likewise.
39960         * doc/posix-functions/iswcntrl.texi: Likewise.
39961         * doc/posix-functions/iswctype.texi: Likewise.
39962         * doc/posix-functions/iswdigit.texi: Likewise.
39963         * doc/posix-functions/iswgraph.texi: Likewise.
39964         * doc/posix-functions/iswlower.texi: Likewise.
39965         * doc/posix-functions/iswprint.texi: Likewise.
39966         * doc/posix-functions/iswpunct.texi: Likewise.
39967         * doc/posix-functions/iswspace.texi: Likewise.
39968         * doc/posix-functions/iswupper.texi: Likewise.
39969         * doc/posix-functions/iswxdigit.texi: Likewise.
39970         * doc/posix-functions/mbrtowc.texi: Likewise.
39971         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39972         * doc/posix-functions/mbstowcs.texi: Likewise.
39973         * doc/posix-functions/mbtowc.texi: Likewise.
39974         * doc/posix-functions/putwchar.texi: Likewise.
39975         * doc/posix-functions/putwc.texi: Likewise.
39976         * doc/posix-functions/swprintf.texi: Likewise.
39977         * doc/posix-functions/tolower.texi: Likewise.
39978         * doc/posix-functions/toupper.texi: Likewise.
39979         * doc/posix-functions/towctrans.texi: Likewise.
39980         * doc/posix-functions/ungetwc.texi: Likewise.
39981         * doc/posix-functions/vswprintf.texi: Likewise.
39982         * doc/posix-functions/wcrtomb.texi: Likewise.
39983         * doc/posix-functions/wcscat.texi: Likewise.
39984         * doc/posix-functions/wcschr.texi: Likewise.
39985         * doc/posix-functions/wcscmp.texi: Likewise.
39986         * doc/posix-functions/wcscoll.texi: Likewise.
39987         * doc/posix-functions/wcscpy.texi: Likewise.
39988         * doc/posix-functions/wcscspn.texi: Likewise.
39989         * doc/posix-functions/wcsftime.texi: Likewise.
39990         * doc/posix-functions/wcslen.texi: Likewise.
39991         * doc/posix-functions/wcsncat.texi: Likewise.
39992         * doc/posix-functions/wcsncmp.texi: Likewise.
39993         * doc/posix-functions/wcsncpy.texi: Likewise.
39994         * doc/posix-functions/wcspbrk.texi: Likewise.
39995         * doc/posix-functions/wcsrchr.texi: Likewise.
39996         * doc/posix-functions/wcsrtombs.texi: Likewise.
39997         * doc/posix-functions/wcsspn.texi: Likewise.
39998         * doc/posix-functions/wcsstr.texi: Likewise.
39999         * doc/posix-functions/wcstod.texi: Likewise.
40000         * doc/posix-functions/wcstof.texi: Likewise.
40001         * doc/posix-functions/wcstoimax.texi: Likewise.
40002         * doc/posix-functions/wcstok.texi: Likewise.
40003         * doc/posix-functions/wcstold.texi: Likewise.
40004         * doc/posix-functions/wcstoll.texi: Likewise.
40005         * doc/posix-functions/wcstol.texi: Likewise.
40006         * doc/posix-functions/wcstombs.texi: Likewise.
40007         * doc/posix-functions/wcstoull.texi: Likewise.
40008         * doc/posix-functions/wcstoul.texi: Likewise.
40009         * doc/posix-functions/wcstoumax.texi: Likewise.
40010         * doc/posix-functions/wcswidth.texi: Likewise.
40011         * doc/posix-functions/wcsxfrm.texi: Likewise.
40012         * doc/posix-functions/wctob.texi: Likewise.
40013         * doc/posix-functions/wctomb.texi: Likewise.
40014         * doc/posix-functions/wctrans.texi: Likewise.
40015         * doc/posix-functions/wctype.texi: Likewise.
40016         * doc/posix-functions/wcwidth.texi: Likewise.
40017         * doc/posix-functions/wmemchr.texi: Likewise.
40018         * doc/posix-functions/wmemcmp.texi: Likewise.
40019         * doc/posix-functions/wmemcpy.texi: Likewise.
40020         * doc/posix-functions/wmemmove.texi: Likewise.
40021         * doc/posix-functions/wmemset.texi: Likewise.
40022         * doc/posix-functions/wprintf.texi: Likewise.
40023         * doc/posix-functions/wscanf.texi: Likewise.
40024
40025 2008-12-21  Bruno Haible  <bruno@clisp.org>
40026
40027         Update doc for HP-UX 11.11.
40028         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40029         in HP-UX version 11.00, not in all versions of HP-UX 11.
40030         * doc/posix-functions/fwide.texi: Likewise.
40031         * doc/posix-functions/fwprintf.texi: Likewise.
40032         * doc/posix-functions/fwscanf.texi: Likewise.
40033         * doc/posix-functions/inet_ntop.texi: Likewise.
40034         * doc/posix-functions/inet_pton.texi: Likewise.
40035         * doc/posix-functions/mbrlen.texi: Likewise.
40036         * doc/posix-functions/mbrtowc.texi: Likewise.
40037         * doc/posix-functions/mbsinit.texi: Likewise.
40038         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40039         * doc/posix-functions/swprintf.texi: Likewise.
40040         * doc/posix-functions/swscanf.texi: Likewise.
40041         * doc/posix-functions/towctrans.texi: Likewise.
40042         * doc/posix-functions/vfwprintf.texi: Likewise.
40043         * doc/posix-functions/vswprintf.texi: Likewise.
40044         * doc/posix-functions/vwprintf.texi: Likewise.
40045         * doc/posix-functions/wcrtomb.texi: Likewise.
40046         * doc/posix-functions/wcsrtombs.texi: Likewise.
40047         * doc/posix-functions/wcsstr.texi: Likewise.
40048         * doc/posix-functions/wctob.texi: Likewise.
40049         * doc/posix-functions/wctrans.texi: Likewise.
40050         * doc/posix-functions/wmemchr.texi: Likewise.
40051         * doc/posix-functions/wmemcmp.texi: Likewise.
40052         * doc/posix-functions/wmemcpy.texi: Likewise.
40053         * doc/posix-functions/wmemmove.texi: Likewise.
40054         * doc/posix-functions/wmemset.texi: Likewise.
40055         * doc/posix-functions/wprintf.texi: Likewise.
40056         * doc/posix-functions/wscanf.texi: Likewise.
40057
40058 2008-12-21  Bruno Haible  <bruno@clisp.org>
40059
40060         Work around a portability problem.
40061         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40062         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40063
40064 2008-12-20  Bruno Haible  <bruno@clisp.org>
40065
40066         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40067         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40068         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40070         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40071
40072         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40073         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40074         set.
40075         (GNULIB_defined_mbstate_t): New macro.
40076         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40077         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40078         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40079         reuses the system's mbrtowc function but works around the bugs.
40080         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40081         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40082         macros.
40083         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40084         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40085         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40086         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40087         REPLACE_MBSINIT if mbsinit needs to be overridden.
40088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40089         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40090         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40091         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40092         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40093         m4/locale-zh.m4.
40094         (Depends): Add mbsinit.
40095         * modules/mbsinit (Depends): Add mbrtowc.
40096         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40097
40098 2008-12-20  Bruno Haible  <bruno@clisp.org>
40099
40100         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40101         so that there are no conversion errors on AIX.
40102         * tests/test-mbsrtowcs.c (main): LIkewise.
40103
40104 2008-12-20  Bruno Haible  <bruno@clisp.org>
40105
40106         Work around wctob bug on Solaris <= 9.
40107         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40108         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40110         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40111         * modules/wctob (Files): Add m4/locale-fr.m4.
40112         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40113
40114 2008-12-20  Bruno Haible  <bruno@clisp.org>
40115
40116         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40117         /dev/null.
40118         * tests/test-select-in.sh: Likewise.
40119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40120
40121 2008-12-20  Bruno Haible  <bruno@clisp.org>
40122
40123         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40124         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40125         Cygwin 1.5.x.
40126
40127 2008-12-20  Bruno Haible  <bruno@clisp.org>
40128
40129         Ensure mbstate_t is defined on HP-UX 11.11.
40130         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40131         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40132         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40133         AC_USE_SYSTEM_EXTENSIONS.
40134         * modules/fnmatch (Depends-on): Add extensions.
40135         * modules/mbrlen (Depends-on): Likewise.
40136         * modules/mbrtowc (Depends-on): Likewise.
40137         * modules/mbsinit (Depends-on): Likewise.
40138         * modules/mbsrtowcs (Depends-on): Likewise.
40139         * modules/mbswidth (Depends-on): Likewise.
40140         * modules/quotearg (Depends-on): Likewise.
40141         * modules/strftime (Depends-on): Likewise.
40142
40143 2008-12-20  Bruno Haible  <bruno@clisp.org>
40144
40145         Ensure wctob is declared on IRIX 6.5.
40146         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40147         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40148         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40150         of HAVE_WCTOB.
40151         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40152         HAVE_WCTOB.
40153         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40154
40155 2008-12-19  Bruno Haible  <bruno@clisp.org>
40156
40157         * modules/mbsrtowcs-tests: New file.
40158         * tests/test-mbsrtowcs1.sh: New file.
40159         * tests/test-mbsrtowcs2.sh: New file.
40160         * tests/test-mbsrtowcs3.sh: New file.
40161         * tests/test-mbsrtowcs4.sh: New file.
40162         * tests/test-mbsrtowcs.c: New file.
40163
40164         New module 'mbsrtowcs'.
40165         * lib/wchar.in.h (mbsrtowcs): New declaration.
40166         * lib/mbsrtowcs.c: New file.
40167         * m4/mbsrtowcs.m4: New file.
40168         * modules/mbsrtowcs: New file.
40169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40170         HAVE_MBSRTOWCS.
40171         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40172         HAVE_MBSRTOWCS.
40173         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40174
40175 2008-12-19  Bruno Haible  <bruno@clisp.org>
40176
40177         New module 'mbrlen'.
40178         * lib/wchar.in.h (mbrlen): New declaration.
40179         * lib/mbrlen.c: New file.
40180         * m4/mbrlen.m4: New file.
40181         * modules/mbrlen: New file.
40182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40183         HAVE_MBRLEN.
40184         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40185         HAVE_MBRLEN.
40186         * doc/posix-functions/mbrlen.texi: Document the new module.
40187
40188 2008-12-19  Bruno Haible  <bruno@clisp.org>
40189
40190         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40191         * modules/mbrtowc (Depends-on): Add verify.
40192         Suggested by Paul Eggert.
40193
40194 2008-12-18  Bruno Haible  <bruno@clisp.org>
40195
40196         * modules/mbsinit-tests: New file.
40197         * tests/test-mbsinit.sh: New file.
40198         * tests/test-mbsinit.c: New file.
40199
40200 2008-12-18  Bruno Haible  <bruno@clisp.org>
40201
40202         * modules/mbrtowc-tests: New file.
40203         * tests/test-mbrtowc1.sh: New file.
40204         * tests/test-mbrtowc2.sh: New file.
40205         * tests/test-mbrtowc3.sh: New file.
40206         * tests/test-mbrtowc4.sh: New file.
40207         * tests/test-mbrtowc.c: New file.
40208
40209         New module 'mbrtowc'.
40210         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40211         mbsinit and mbrtowc.
40212         (mbrtowc): New declaration.
40213         * lib/mbrtowc.c: New file.
40214         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40215         * modules/mbrtowc: New file.
40216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40217         HAVE_MBRTOWC.
40218         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40219         HAVE_MBRTOWC.
40220         * doc/posix-functions/mbrtowc.texi: Document the new module.
40221
40222 2008-12-18  Bruno Haible  <bruno@clisp.org>
40223
40224         New module 'wctob'.
40225         * lib/wchar.in.h (wctob): New declaration.
40226         * lib/wctob.c: New file.
40227         * m4/wctob.m4: New file.
40228         * modules/wctob: New file.
40229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40230         HAVE_WCTOB.
40231         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40232         * doc/posix-functions/wctob.texi: Document the new module.
40233
40234 2008-12-18  Bruno Haible  <bruno@clisp.org>
40235
40236         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40237         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40238
40239 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40240
40241         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40242         G. Christensen" <tgc@jupiterrise.com>.
40243
40244         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40245         G. Christensen" <tgc@jupiterrise.com>.
40246
40247         * lib/flock.c: Need to include string.h.  Reported by "Tom
40248         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40249         <ebb9@byu.net>.
40250
40251 2008-12-18  Bruno Haible  <bruno@clisp.org>
40252
40253         * m4/locale-ja.m4: New file, from GNU gettext.
40254
40255 2008-12-17  Bruno Haible  <bruno@clisp.org>
40256
40257         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40258         Suggested by Eric Blake.
40259
40260 2008-12-17  Bruno Haible  <bruno@clisp.org>
40261
40262         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40263
40264 2008-12-17  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40267         * modules/mbsinit (Depends-on): Add verify.
40268         Suggested by Paul Eggert.
40269
40270 2008-12-17  Bruno Haible  <bruno@clisp.org>
40271
40272         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40273         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40274         gl_FUNC_MBRTOWC.
40275         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40276         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40277         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40278         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40279         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40280         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40281         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40282         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40283         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40284         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40285         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40286         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40287         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40288         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40289         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40290         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40291         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40292         * modules/trim (configure.ac): Likewise.
40293
40294 2008-12-17  Bruno Haible  <bruno@clisp.org>
40295
40296         * modules/btowc-tests: New file.
40297         * tests/test-btowc1.sh: New file.
40298         * tests/test-btowc2.sh: New file.
40299         * tests/test-btowc.c: New file.
40300
40301         New module 'btowc'.
40302         * lib/wchar.in.h (btowc): New declaration.
40303         * lib/btowc.c: New file.
40304         * m4/btowc.m4: New file.
40305         * modules/btowc: New file.
40306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40307         HAVE_BTOWC.
40308         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40309         * doc/posix-functions/btowc.texi: Document the new module.
40310
40311 2008-12-17  Bruno Haible  <bruno@clisp.org>
40312
40313         New module 'mbsinit'.
40314         * lib/wchar.in.h (mbsinit): New declaration.
40315         * lib/mbsinit.c: New file.
40316         * m4/mbsinit.m4: New file.
40317         * modules/mbsinit: New file.
40318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40319         HAVE_MBSINIT.
40320         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40321         HAVE_MBSINIT.
40322         * doc/posix-functions/mbsinit.texi: Document the new module.
40323
40324 2008-12-16  Bruno Haible  <bruno@clisp.org>
40325
40326         * lib/unistd.in.h: Add comment.
40327         * tests/test-environ.c: Don't include <stdlib.h>.
40328
40329 2008-12-16  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/parse-duration.h (parse_duration): Document return value
40332         convention.
40333         * lib/parse-duration.c: Include specification header first. Add
40334         comments.
40335         (_): Remove macro.
40336         (parse_year_month_day, parse_hour_minute_second): Move side effects
40337         outside of strchr call.
40338         (parse_non_iso8601): Move side effects outside of isspace call.
40339         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40340         call.
40341
40342 2008-12-16  Bruno Haible  <bruno@clisp.org>
40343
40344         * tests/test-parse-duration.sh: Produce no output when the test
40345         succeeds.
40346
40347 2008-12-16  Bruno Haible  <bruno@clisp.org>
40348
40349         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40350         expressions.
40351
40352 2008-12-15  Bruno Haible  <bruno@clisp.org>
40353
40354         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40355         * doc/glibc-functions/flistxattr.texi: Likewise.
40356         * doc/glibc-functions/fopencookie.texi: Likewise.
40357         * doc/glibc-functions/fremovexattr.texi: Likewise.
40358         * doc/glibc-functions/fsetxattr.texi: Likewise.
40359         * doc/glibc-functions/getxattr.texi: Likewise.
40360         * doc/glibc-functions/lgetxattr.texi: Likewise.
40361         * doc/glibc-functions/listxattr.texi: Likewise.
40362         * doc/glibc-functions/llistxattr.texi: Likewise.
40363         * doc/glibc-functions/lremovexattr.texi: Likewise.
40364         * doc/glibc-functions/lsetxattr.texi: Likewise.
40365         * doc/glibc-functions/removexattr.texi: Likewise.
40366         * doc/glibc-functions/setxattr.texi: Likewise.
40367         * doc/posix-functions/open_memstream.texi: Likewise.
40368
40369 2008-12-15  Eric Blake  <ebb9@byu.net>
40370
40371         Update doc for cygwin 1.7.
40372         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40373         functions.
40374         * doc/posix-functions/fchmodat.texi: Likewise.
40375         * doc/posix-functions/fchownat.texi: Likewise.
40376         * doc/posix-functions/fdopendir.texi: Likewise.
40377         * doc/posix-functions/fmemopen.texi: Likewise.
40378         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40379         * doc/posix-functions/fstatat.texi: Likewise.
40380         * doc/posix-functions/futimens.texi: Likewise.
40381         * doc/posix-functions/gai_strerror.texi: Likewise.
40382         * doc/posix-functions/getaddrinfo.texi: Likewise.
40383         * doc/posix-functions/getnameinfo.texi: Likewise.
40384         * doc/posix-functions/if_freenameindex.texi: Likewise.
40385         * doc/posix-functions/if_indextoname.texi: Likewise.
40386         * doc/posix-functions/if_nameindex.texi: Likewise.
40387         * doc/posix-functions/if_nametoindex.texi: Likewise.
40388         * doc/posix-functions/insque.texi: Likewise.
40389         * doc/posix-functions/linkat.texi: Likewise.
40390         * doc/posix-functions/llrint.texi: Likewise.
40391         * doc/posix-functions/llrintf.texi: Likewise.
40392         * doc/posix-functions/llrintl.texi: Likewise.
40393         * doc/posix-functions/lockf.texi: Likewise.
40394         * doc/posix-functions/lrintl.texi: Likewise.
40395         * doc/posix-functions/mkdirat.texi: Likewise.
40396         * doc/posix-functions/mkfifoat.texi: Likewise.
40397         * doc/posix-functions/mknodat.texi: Likewise.
40398         * doc/posix-functions/mq_close.texi: Likewise.
40399         * doc/posix-functions/mq_getattr.texi: Likewise.
40400         * doc/posix-functions/mq_notify.texi: Likewise.
40401         * doc/posix-functions/mq_open.texi: Likewise.
40402         * doc/posix-functions/mq_receive.texi: Likewise.
40403         * doc/posix-functions/mq_send.texi: Likewise.
40404         * doc/posix-functions/mq_setattr.texi: Likewise.
40405         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40406         * doc/posix-functions/mq_timedsend.texi: Likewise.
40407         * doc/posix-functions/mq_unlink.texi: Likewise.
40408         * doc/posix-functions/open_memstream.texi: Likewise.
40409         * doc/posix-functions/openat.texi: Likewise.
40410         * doc/posix-functions/posix_fadvise.texi: Likewise.
40411         * doc/posix-functions/posix_fallocate.texi: Likewise.
40412         * doc/posix-functions/posix_madvise.texi: Likewise.
40413         * doc/posix-functions/posix_memalign.texi: Likewise.
40414         * doc/posix-functions/posix_openpt.texi: Likewise.
40415         * doc/posix-functions/readlinkat.texi: Likewise.
40416         * doc/posix-functions/remque.texi: Likewise.
40417         * doc/posix-functions/renameat.texi: Likewise.
40418         * doc/posix-functions/rintl.texi: Likewise.
40419         * doc/posix-functions/sem_unlink.texi: Likewise.
40420         * doc/posix-functions/shm_open.texi: Likewise.
40421         * doc/posix-functions/shm_unlink.texi: Likewise.
40422         * doc/posix-functions/signgam.texi: Likewise.
40423         * doc/posix-functions/sigset.texi: Likewise.
40424         * doc/posix-functions/stpcpy.texi: Likewise.
40425         * doc/posix-functions/stpncpy.texi: Likewise.
40426         * doc/posix-functions/strerror.texi: Likewise.
40427         * doc/posix-functions/strtod.texi: Likewise.
40428         * doc/posix-functions/symlinkat.texi: Likewise.
40429         * doc/posix-functions/unlinkat.texi: Likewise.
40430         * doc/posix-functions/utimensat.texi: Likewise.
40431         * doc/glibc-functions/bindresvport.texi: Likewise.
40432         * doc/glibc-functions/dn_expand.texi: Likewise.
40433         * doc/glibc-functions/exp10.texi: Likewise.
40434         * doc/glibc-functions/exp10f.texi: Likewise.
40435         * doc/glibc-functions/fgetxattr.texi: Likewise.
40436         * doc/glibc-functions/flistxattr.texi: Likewise.
40437         * doc/glibc-functions/fopencookie.texi: Likewise.
40438         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40439         * doc/glibc-functions/fremovexattr.texi: Likewise.
40440         * doc/glibc-functions/fsetxattr.texi: Likewise.
40441         * doc/glibc-functions/getifaddrs.texi: Likewise.
40442         * doc/glibc-functions/getxattr.texi: Likewise.
40443         * doc/glibc-functions/lgetxattr.texi: Likewise.
40444         * doc/glibc-functions/listxattr.texi: Likewise.
40445         * doc/glibc-functions/llistxattr.texi: Likewise.
40446         * doc/glibc-functions/lremovexattr.texi: Likewise.
40447         * doc/glibc-functions/lsetxattr.texi: Likewise.
40448         * doc/glibc-functions/pow10.texi: Likewise.
40449         * doc/glibc-functions/pow10f.texi: Likewise.
40450         * doc/glibc-functions/rcmd_af.texi: Likewise.
40451         * doc/glibc-functions/removexattr.texi: Likewise.
40452         * doc/glibc-functions/res_init.texi: Likewise.
40453         * doc/glibc-functions/res_mkquery.texi: Likewise.
40454         * doc/glibc-functions/res_query.texi: Likewise.
40455         * doc/glibc-functions/res_querydomain.texi: Likewise.
40456         * doc/glibc-functions/res_send.texi: Likewise.
40457         * doc/glibc-functions/rresvport_af.texi: Likewise.
40458         * doc/glibc-functions/setxattr.texi: Likewise.
40459         * doc/glibc-functions/strcasestr.texi: Likewise.
40460
40461 2008-12-15  Bruno Haible  <bruno@clisp.org>
40462
40463         Fix compilation error on OSF/1 4.0.
40464         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40465         <sys/time.h>, simply delegate to the system header.
40466         Reported by Daniel Richard G. <oss@teragram.com>.
40467
40468 2008-12-15  Bruno Haible  <bruno@clisp.org>
40469
40470         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40471         * doc/posix-functions/fchmodat.texi: Likewise.
40472         * doc/posix-functions/fchownat.texi: Likewise.
40473         * doc/posix-functions/fdopendir.texi: Likewise.
40474         * doc/posix-functions/fstatat.texi: Likewise.
40475         * doc/posix-functions/mkdirat.texi: Likewise.
40476         * doc/posix-functions/unlinkat.texi: Likewise.
40477
40478 2008-12-14  Bruno Haible  <bruno@clisp.org>
40479
40480         Update doc for POSIX:2008.
40481         * doc/posix-functions/faccessat.texi: New file.
40482         * doc/posix-functions/fchmodat.texi: New file.
40483         * doc/posix-functions/fchownat.texi: New file.
40484         * doc/posix-functions/fdopendir.texi: New file.
40485         * doc/posix-functions/fstatat.texi: New file.
40486         * doc/posix-functions/futimens.texi: New file.
40487         * doc/posix-functions/linkat.texi: New file.
40488         * doc/posix-functions/mkdirat.texi: New file.
40489         * doc/posix-functions/mkfifoat.texi: New file.
40490         * doc/posix-functions/mknodat.texi: New file.
40491         * doc/posix-functions/open_wmemstream.texi: New file.
40492         * doc/posix-functions/openat.texi: New file.
40493         * doc/posix-functions/psiginfo.texi: New file.
40494         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40495         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40496         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40497         * doc/posix-functions/readlinkat.texi: New file.
40498         * doc/posix-functions/renameat.texi: New file.
40499         * doc/posix-functions/strerror_l.texi: New file.
40500         * doc/posix-functions/symlinkat.texi: New file.
40501         * doc/posix-functions/unlinkat.texi: New file.
40502         * doc/posix-functions/utimensat.texi: New file.
40503         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40504
40505 2008-12-14  Bruno Haible  <bruno@clisp.org>
40506
40507         Update doc for POSIX:2008.
40508         * doc/posix-functions/alphasort.texi: Renamed from
40509         doc/glibc-functions/alphasort.texi.
40510         * doc/posix-functions/dirfd.texi: Renamed from
40511         doc/glibc-functions/dirfd.texi.
40512         * doc/posix-functions/dprintf.texi: Renamed from
40513         doc/glibc-functions/dprintf.texi.
40514         * doc/posix-functions/duplocale.texi: Renamed from
40515         doc/glibc-functions/duplocale.texi.
40516         * doc/posix-functions/fexecve.texi: Renamed from
40517         doc/glibc-functions/fexecve.texi.
40518         * doc/posix-functions/fmemopen.texi: Renamed from
40519         doc/glibc-functions/fmemopen.texi.
40520         * doc/posix-functions/freelocale.texi: Renamed from
40521         doc/glibc-functions/freelocale.texi.
40522         * doc/posix-functions/getdate_err.texi: Renamed from
40523         doc/glibc-functions/getdate_err.texi.
40524         * doc/posix-functions/isalnum_l.texi: Renamed from
40525         doc/glibc-functions/isalnum_l.texi.
40526         * doc/posix-functions/isalpha_l.texi: Renamed from
40527         doc/glibc-functions/isalpha_l.texi.
40528         * doc/posix-functions/isblank_l.texi: Renamed from
40529         doc/glibc-functions/isblank_l.texi.
40530         * doc/posix-functions/iscntrl_l.texi: Renamed from
40531         doc/glibc-functions/iscntrl_l.texi.
40532         * doc/posix-functions/isdigit_l.texi: Renamed from
40533         doc/glibc-functions/isdigit_l.texi.
40534         * doc/posix-functions/isgraph_l.texi: Renamed from
40535         doc/glibc-functions/isgraph_l.texi.
40536         * doc/posix-functions/islower_l.texi: Renamed from
40537         doc/glibc-functions/islower_l.texi.
40538         * doc/posix-functions/isprint_l.texi: Renamed from
40539         doc/glibc-functions/isprint_l.texi.
40540         * doc/posix-functions/ispunct_l.texi: Renamed from
40541         doc/glibc-functions/ispunct_l.texi.
40542         * doc/posix-functions/isspace_l.texi: Renamed from
40543         doc/glibc-functions/isspace_l.texi.
40544         * doc/posix-functions/isupper_l.texi: Renamed from
40545         doc/glibc-functions/isupper_l.texi.
40546         * doc/posix-functions/iswalnum_l.texi: Renamed from
40547         doc/glibc-functions/iswalnum_l.texi.
40548         * doc/posix-functions/iswalpha_l.texi: Renamed from
40549         doc/glibc-functions/iswalpha_l.texi.
40550         * doc/posix-functions/iswblank_l.texi: Renamed from
40551         doc/glibc-functions/iswblank_l.texi.
40552         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40553         doc/glibc-functions/iswcntrl_l.texi.
40554         * doc/posix-functions/iswctype_l.texi: Renamed from
40555         doc/glibc-functions/iswctype_l.texi.
40556         * doc/posix-functions/iswdigit_l.texi: Renamed from
40557         doc/glibc-functions/iswdigit_l.texi.
40558         * doc/posix-functions/iswgraph_l.texi: Renamed from
40559         doc/glibc-functions/iswgraph_l.texi.
40560         * doc/posix-functions/iswlower_l.texi: Renamed from
40561         doc/glibc-functions/iswlower_l.texi.
40562         * doc/posix-functions/iswprint_l.texi: Renamed from
40563         doc/glibc-functions/iswprint_l.texi.
40564         * doc/posix-functions/iswpunct_l.texi: Renamed from
40565         doc/glibc-functions/iswpunct_l.texi.
40566         * doc/posix-functions/iswspace_l.texi: Renamed from
40567         doc/glibc-functions/iswspace_l.texi.
40568         * doc/posix-functions/iswupper_l.texi: Renamed from
40569         doc/glibc-functions/iswupper_l.texi.
40570         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40571         doc/glibc-functions/iswxdigit_l.texi.
40572         * doc/posix-functions/isxdigit_l.texi: Renamed from
40573         doc/glibc-functions/isxdigit_l.texi.
40574         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40575         doc/glibc-functions/mbsnrtowcs.texi.
40576         * doc/posix-functions/mkdtemp.texi: Renamed from
40577         doc/glibc-functions/mkdtemp.texi.
40578         * doc/posix-functions/newlocale.texi: Renamed from
40579         doc/glibc-functions/newlocale.texi.
40580         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40581         doc/glibc-functions/nl_langinfo_l.texi.
40582         * doc/posix-functions/open_memstream.texi: Renamed from
40583         doc/glibc-functions/open_memstream.texi.
40584         * doc/posix-functions/opterr.texi: Renamed from
40585         doc/glibc-functions/opterr.texi.
40586         * doc/posix-functions/optind.texi: Renamed from
40587         doc/glibc-functions/optind.texi.
40588         * doc/posix-functions/optopt.texi: Renamed from
40589         doc/glibc-functions/optopt.texi.
40590         * doc/posix-functions/psignal.texi: Renamed from
40591         doc/glibc-functions/psignal.texi.
40592         * doc/posix-functions/scandir.texi: Renamed from
40593         doc/glibc-functions/scandir.texi.
40594         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40595         doc/glibc-functions/sched_get_priority_min.texi.
40596         * doc/posix-functions/signgam.texi: Renamed from
40597         doc/glibc-functions/signgam.texi.
40598         * doc/posix-functions/stpcpy.texi: Renamed from
40599         doc/glibc-functions/stpcpy.texi.
40600         * doc/posix-functions/stpncpy.texi: Renamed from
40601         doc/glibc-functions/stpncpy.texi.
40602         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40603         doc/glibc-functions/strcasecmp_l.texi.
40604         * doc/posix-functions/strcoll_l.texi: Renamed from
40605         doc/glibc-functions/strcoll_l.texi.
40606         * doc/posix-functions/strfmon_l.texi: Renamed from
40607         doc/glibc-functions/strfmon_l.texi.
40608         * doc/posix-functions/strftime_l.texi: Renamed from
40609         doc/glibc-functions/strftime_l.texi.
40610         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40611         doc/glibc-functions/strncasecmp_l.texi.
40612         * doc/posix-functions/strndup.texi: Renamed from
40613         doc/glibc-functions/strndup.texi.
40614         * doc/posix-functions/strnlen.texi: Renamed from
40615         doc/glibc-functions/strnlen.texi.
40616         * doc/posix-functions/strsignal.texi: Renamed from
40617         doc/glibc-functions/strsignal.texi.
40618         * doc/posix-functions/strxfrm_l.texi: Renamed from
40619         doc/glibc-functions/strxfrm_l.texi.
40620         * doc/posix-functions/timer_gettime.texi: Renamed from
40621         doc/glibc-functions/timer_gettime.texi.
40622         * doc/posix-functions/tolower_l.texi: Renamed from
40623         doc/glibc-functions/tolower_l.texi.
40624         * doc/posix-functions/toupper_l.texi: Renamed from
40625         doc/glibc-functions/toupper_l.texi.
40626         * doc/posix-functions/towctrans_l.texi: Renamed from
40627         doc/glibc-functions/towctrans_l.texi.
40628         * doc/posix-functions/towlower_l.texi: Renamed from
40629         doc/glibc-functions/towlower_l.texi.
40630         * doc/posix-functions/towupper_l.texi: Renamed from
40631         doc/glibc-functions/towupper_l.texi.
40632         * doc/posix-functions/uselocale.texi: Renamed from
40633         doc/glibc-functions/uselocale.texi.
40634         * doc/posix-functions/vdprintf.texi: Renamed from
40635         doc/glibc-functions/vdprintf.texi.
40636         * doc/posix-functions/wcpcpy.texi:
40637         Renamed from doc/glibc-functions/wcpcpy.texi.
40638         * doc/posix-functions/wcpncpy.texi: Renamed from
40639         doc/glibc-functions/wcpncpy.texi.
40640         * doc/posix-functions/wcscasecmp.texi: Renamed from
40641         doc/glibc-functions/wcscasecmp.texi.
40642         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40643         doc/glibc-functions/wcscasecmp_l.texi.
40644         * doc/posix-functions/wcscoll_l.texi: Renamed from
40645         doc/glibc-functions/wcscoll_l.texi.
40646         * doc/posix-functions/wcsdup.texi: Renamed from
40647         doc/glibc-functions/wcsdup.texi.
40648         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40649         doc/glibc-functions/wcsncasecmp.texi.
40650         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40651         doc/glibc-functions/wcsncasecmp_l.texi.
40652         * doc/posix-functions/wcsnlen.texi: Renamed from
40653         doc/glibc-functions/wcsnlen.texi.
40654         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40655         doc/glibc-functions/wcsnrtombs.texi.
40656         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40657         doc/glibc-functions/wcsxfrm_l.texi.
40658         * doc/posix-functions/wctrans_l.texi: Renamed from
40659         doc/glibc-functions/wctrans_l.texi.
40660         * doc/posix-functions/wctype_l.texi: Renamed from
40661         doc/glibc-functions/wctype_l.texi.
40662         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40663         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40664         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40665         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40666         these subsections.
40667         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40668         Remove sections.
40669
40670 2008-12-14  Bruno Haible  <bruno@clisp.org>
40671
40672         Update doc for POSIX:2008.
40673         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40674
40675 2008-12-14  Bruno Haible  <bruno@clisp.org>
40676
40677         Update doc for POSIX:2008.
40678         * doc/pastposix-functions/bcmp.texi: Renamed from
40679         doc/posix-functions/bcmp.texi.
40680         * doc/pastposix-functions/bcopy.texi: Renamed from
40681         doc/posix-functions/bcopy.texi.
40682         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40683         doc/posix-functions/bsd_signal.texi.
40684         * doc/pastposix-functions/bzero.texi: Renamed from
40685         doc/posix-functions/bzero.texi.
40686         * doc/pastposix-functions/ecvt.texi: Renamed from
40687         doc/posix-functions/ecvt.texi.
40688         * doc/pastposix-functions/fcvt.texi: Renamed from
40689         doc/posix-functions/fcvt.texi.
40690         * doc/pastposix-functions/ftime.texi: Renamed from
40691         doc/posix-functions/ftime.texi.
40692         * doc/pastposix-functions/gcvt.texi: Renamed from
40693         doc/posix-functions/gcvt.texi.
40694         * doc/pastposix-functions/getcontext.texi: Renamed from
40695         doc/posix-functions/getcontext.texi.
40696         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40697         doc/posix-functions/gethostbyaddr.texi.
40698         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40699         doc/posix-functions/gethostbyname.texi.
40700         * doc/pastposix-functions/getwd.texi: Renamed from
40701         doc/posix-functions/getwd.texi.
40702         * doc/pastposix-functions/h_errno.texi: Renamed from
40703         doc/posix-functions/h_errno.texi.
40704         * doc/pastposix-functions/index.texi: Renamed from
40705         doc/posix-functions/index.texi.
40706         * doc/pastposix-functions/makecontext.texi: Renamed from
40707         doc/posix-functions/makecontext.texi.
40708         * doc/pastposix-functions/mktemp.texi: Renamed from
40709         doc/posix-functions/mktemp.texi.
40710         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40711         doc/posix-functions/pthread_attr_getstackaddr.texi.
40712         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40713         doc/posix-functions/pthread_attr_setstackaddr.texi.
40714         * doc/pastposix-functions/rindex.texi: Renamed from
40715         doc/posix-functions/rindex.texi.
40716         * doc/pastposix-functions/scalb.texi: Renamed from
40717         doc/posix-functions/scalb.texi.
40718         * doc/pastposix-functions/setcontext.texi: Renamed from
40719         doc/posix-functions/setcontext.texi.
40720         * doc/pastposix-functions/swapcontext.texi: Renamed from
40721         doc/posix-functions/swapcontext.texi.
40722         * doc/pastposix-functions/ualarm.texi: Renamed from
40723         doc/posix-functions/ualarm.texi.
40724         * doc/pastposix-functions/usleep.texi: Renamed from
40725         doc/posix-functions/usleep.texi.
40726         * doc/pastposix-functions/vfork.texi: Renamed from
40727         doc/posix-functions/vfork.texi.
40728         * doc/pastposix-functions/wcswcs.texi: Renamed from
40729         doc/posix-functions/wcswcs.texi.
40730         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40731         (Function Substitutes): Update.
40732
40733 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40734
40735         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40736         m4/strerror.m4.
40737
40738 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40739             Bruno Haible  <bruno@clisp.org>
40740
40741         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40742
40743 2008-12-13  Bruno Haible  <bruno@clisp.org>
40744
40745         * modules/strtoull (Depends-on): Remove unistd.
40746
40747 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40748
40749         * modules/strtoull (Depends-on): Add stdlib.
40750
40751 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40752
40753         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40754
40755 2008-12-10  Jim Meyering  <meyering@redhat.com>
40756
40757         gl_ASSERT: don't say assertions are disabled when they're not
40758         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40759         "checking whether to enable assertions... no", when they are in
40760         fact enabled.  This is solely a bug in the output of configure.
40761         In spite of saying "no", NDEBUG was not defined in that case.
40762         Also, as noted by Eric Blake, leave assertions enabled upon
40763         --enable-assert=INVALID.
40764
40765 2008-12-10  Bruno Haible  <bruno@clisp.org>
40766
40767         Change MODULES.html to refer to POSIX:2008 where possible.
40768         * MODULES.html.sh (POSIX2008_URL): New variable.
40769         (posix_headers): Remove sys/timeb, ucontext.
40770         (posix2001_headers): New variable.
40771         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40772         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40773         index, makecontext, mktemp, pthread_attr_getstackaddr,
40774         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40775         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40776         (posix2001_functions): New variable.
40777         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40778         otherwise.
40779
40780 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40781
40782         add missing include to parse-duration.c
40783         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40784         * modules/parse-duration (Depends-on): Add xalloc.
40785
40786         fix sed script reading maint.mk
40787         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40788         (syntax-check-rules): Use it.
40789
40790 2008-12-09  Bruno Haible  <bruno@clisp.org>
40791
40792         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40793         MacOS X 10.4/PowerPC.
40794         Reported by Simon Josefsson.
40795
40796 2008-12-08  Jim Meyering  <meyering@redhat.com>
40797
40798         work around mingw's lack of some S_IF definitions
40799         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40800         Reported by Simon Josefsson.
40801
40802 2008-12-08  Bruno Haible  <bruno@clisp.org>
40803
40804         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40805         applied to variables. Needed on MacOS X 10.4/PowerPC.
40806         Reported by Simon Josefsson.
40807
40808 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40809         and Eric Blake  <ebb9@byu.net>
40810
40811         assert: honor --enable-assert
40812         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40813         order to honor --enable-assert, rather than treating it as a
40814         synonym for --disable-assert.
40815
40816 2008-12-08  Jim Meyering  <meyering@redhat.com>
40817
40818         * lib/posixtm.c: Remove now-useless declaration of mktime.
40819
40820         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40821
40822 2008-12-07  Bruno Haible  <bruno@clisp.org>
40823
40824         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40825         test_once): Mark functions as static.
40826         * tests/test-tls.c (test_tls): Likewise.
40827
40828 2008-12-07  Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40831         iconv_register_autodetect.
40832
40833 2008-12-07  Jim Meyering  <meyering@redhat.com>
40834
40835         posixtm.c: avoid a warning
40836         * lib/posixtm.c (posixtime): Don't initialize tm0.
40837         It's no longer needed to placate gcc4's -Wuninitialized,
40838         and the attempt to placate would elicit a new warning.
40839
40840         unicodeio.c: mark unused parameters
40841         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40842         (fallback_failure_callback): Likewise.
40843
40844 2008-12-07  Bruno Haible  <bruno@clisp.org>
40845
40846         * gnulib-tool (func_create_testdir): When building the tests
40847         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40848         Reported by Simon Josefsson.
40849
40850 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40851
40852         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40853
40854 2008-12-06  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40857         Suggested by Eric Blake.
40858
40859 2008-12-06  Bruno Haible  <bruno@clisp.org>
40860
40861         Fix a c-stack test failure on MacOS X.
40862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40863         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40864         handler for SIGBUS as well.
40865         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40866         install a signal handler for SIGBUS as well.
40867         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40868
40869 2008-12-06  Bruno Haible  <bruno@clisp.org>
40870
40871         Advocacy documentation.
40872         * doc/gnulib-intro.texi (Benefits): New section.
40873         * doc/gnulib.texi: Update.
40874
40875 2008-12-06  Bruno Haible  <bruno@clisp.org>
40876
40877         Document the 'manywarnings' module.
40878         * doc/manywarnings.texi: New file.
40879         * doc/gnulib.texi: Include it.
40880
40881 2008-12-05  Eric Blake  <ebb9@byu.net>
40882
40883         tests: silence some gcc warnings
40884         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40885         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40886         type mismatches.
40887
40888 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40889             Bruno Haible  <bruno@clisp.org>
40890
40891         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40892
40893 2008-11-29  Jim Meyering  <meyering@redhat.com>
40894
40895         unicodeio.c: mark unused parameters
40896         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40897         (fallback_failure_callback): Likewise.
40898
40899         fts: fix a thinko
40900         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40901         (set_stat_type): Return S_IF*-valued "type" directly.
40902         Prompted by James Youngman's spotting a related bug.
40903         Confirmed by further testing through find.
40904
40905         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40906         * lib/fts.c (D_TYPE): Define.
40907         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40908         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40909         (s_ifmt_shift_bits): New function.
40910         (set_stat_type): New function.
40911         (fts_build): When not calling fts_stat, call set_stat_type
40912         to propagate dirent.d_type info to fts_read caller.
40913         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40914         fts_statp->st_mode type information may be valid.
40915
40916 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40917
40918         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40919         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40920         <sds@gnu.org>.
40921
40922 2008-11-20  Bruno Haible  <bruno@clisp.org>
40923
40924         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40925         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40926         INCLUDE_NEXT.
40927         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40928         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40929         * modules/math (Makefile.am): Substitute
40930         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40932
40933 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40934             Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/stdint.in.h: Define all type macros so that their expansion is
40937         a single typedef'ed token. Fixes a compilation failure in Boost which
40938         does "using ::int8_t;".
40939
40940 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40941
40942         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40943         gl_MANYWARN_ALL_GCC.
40944         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40945         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40946         * modules/manywarnings: New file.
40947         * MODULES.html.sh: Mention manywarnings module.
40948
40949 2008-11-18  Bruno Haible  <bruno@clisp.org>
40950
40951         * doc/gnulib-tool.texi (Unit tests): New section.
40952
40953 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40954
40955         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40956         paths like 'lib/po/foo.po'.
40957
40958 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40959
40960         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40961         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40962
40963 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40964
40965         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40966         parameter works.
40967
40968 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40969
40970         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40971
40972 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40973
40974         * modules/parse-duration-tests: New file.
40975         * tests/test-parse-duration.sh: New file.
40976         * tests/test-parse-duration.c: New file.
40977
40978         New module 'parse-duration'.
40979         * lib/parse-duration.h: New file.
40980         * lib/parse-duration.c: New file.
40981         * modules/parse-duration: New file.
40982
40983 2008-11-17  Bruno Haible  <bruno@clisp.org>
40984
40985         * tests/test-select-out.sh: Comment out the first pipe test.
40986         Reported by Simon Josefsson.
40987
40988 2008-11-17  Bruno Haible  <bruno@clisp.org>
40989
40990         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40992         gl_HOSTENT.
40993
40994 2008-11-17  Bruno Haible  <bruno@clisp.org>
40995
40996         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40997         -lnetwork and -lnet. Needed for Haiku and BeOS.
40998
40999 2008-11-16  Bruno Haible  <bruno@clisp.org>
41000
41001         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41002
41003 2008-11-16  Bruno Haible  <bruno@clisp.org>
41004
41005         Avoid test failure on Haiku.
41006         * tests/test-fsync.c: Include <errno.h>.
41007         (main): Don't require that fsync (0) fails.
41008
41009 2008-11-15  Bruno Haible  <bruno@clisp.org>
41010
41011         New module 'hostent'.
41012         * modules/hostent: New file.
41013         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41014
41015 2008-11-15  Bruno Haible  <bruno@clisp.org>
41016
41017         New module 'servent'.
41018         * modules/servent: New file.
41019         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41020
41021 2008-11-15  Bruno Haible  <bruno@clisp.org>
41022
41023         Avoid generating same test program with two different rules.
41024         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41025         test-frexp to test-frexp-nolibm.
41026         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41027         test-frexpl to test-frexpl-nolibm.
41028
41029 2008-11-15  Bruno Haible  <bruno@clisp.org>
41030
41031         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41032         $(FREXPL_LIBM).
41033
41034 2008-11-15  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/netdb.in.h: Activate the definitions also when the system's
41037         <netdb.h> has 'struct addrinfo'.
41038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41039         EAI_OVERFLOW or AI_NUMERICSERV.
41040         * doc/posix-headers/netdb.texi: Document the problem.
41041
41042 2008-11-15  Bruno Haible  <bruno@clisp.org>
41043
41044         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41045
41046         Make the 'sched' module work on platforms where <sched.h> exists but
41047         is incomplete (such as Haiku).
41048         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41049         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41050         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41051         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41052         HAVE_STRUCT_SCHED_PARAM.
41053         * modules/sched (Depends-on): Add include_next.
41054         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41055         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41056         * doc/posix-headers/sched.texi: Document the issue.
41057
41058 2008-11-13  Jim Meyering  <meyering@redhat.com>
41059
41060         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41061         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41062         test would fail due to the difference in the Report bugs to ...
41063         line.  The expected address is empty, "<>", while the actual
41064         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41065
41066 2008-11-12  Bruno Haible  <bruno@clisp.org>
41067
41068         lstat: don't compile lstat.c on systems lacking lstat
41069         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41070         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41071         Reported by Daniel P. Berrange via Jim Meyering.
41072
41073 2008-11-12  Jim Meyering  <meyering@redhat.com>
41074
41075         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41076
41077 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41078
41079         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41080         instead.
41081
41082 2008-11-12  Bruno Haible  <bruno@clisp.org>
41083
41084         * lib/unicodeio.c: Include unistr.h.
41085         (utf8_wctomb): Remove function.
41086         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41087
41088 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41089
41090         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41091         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41092         <bruno@clisp.org>.
41093         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41094
41095 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41096
41097         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41098         * doc/gnulib.texi: Add section for warnings.
41099
41100 2008-11-11  Bruno Haible  <bruno@clisp.org>
41101
41102         * lib/sockets.h: Add a comment.
41103
41104 2008-11-11  Karl Berry  <karl@gnu.org>
41105
41106         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41107
41108 2008-11-11  Eric Blake  <ebb9@byu.net>
41109
41110         fdl.texi: avoid git symlinks
41111         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41112
41113 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41114
41115         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41116
41117 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41118
41119         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41120         (gl_WARN_ADD): Substitute $2 if literal.
41121
41122 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41123
41124         * m4/warning.m4: Remove.
41125
41126 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41127
41128         * m4/warnings.m4: Almost complete rewrite. :-)
41129
41130 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41131
41132         * modules/warnings: New module.
41133         * m4/warnings.m4: New file.
41134         * MODULES.html.sh: Mention warnings module.
41135         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41136         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41137
41138 2008-11-10  Eric Blake  <ebb9@byu.net>
41139
41140         fdl.texi: make a symlink to the latest version
41141         * doc/standards.texi: Revert today's earlier change.
41142         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41143         * doc/fdl.texi: ...and replace this with a symlink to the newer
41144         fdl-1.3.texi.
41145
41146 2008-11-10  Bruno Haible  <bruno@clisp.org>
41147
41148         * tests/test-select-fd.c (main): Accept the result file name as fourth
41149         argument.
41150         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41151         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41152
41153 2008-11-10  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41156         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41157         as autoconf-substituted macros.
41158         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41160         gl_NETDB_H_DEFAULTS. Set these variables.
41161         * modules/netdb (Makefile.am): Substitute these variables.
41162
41163 2008-11-10  Eric Blake  <ebb9@byu.net>
41164
41165         standards.texi: include correct file for FDL 1.3
41166         * doc/standards.texi (GNU Free Documentation License): Change
41167         include file to pull in FDL 1.3, not 1.2.
41168
41169         fdl.texi: revert accidental change to license
41170         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41171
41172 2008-11-10  Bruno Haible  <bruno@clisp.org>
41173
41174         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41175         cross-compiling guesses also when the native compile gives no result.
41176
41177 2008-11-10  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/spawni.c (__spawni): Force variable into the stack.
41180
41181 2008-11-10  Bruno Haible  <bruno@clisp.org>
41182
41183         Add support for Haiku.
41184         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41185         glibc and BeOS, but also on Haiku.
41186         * lib/fpurge.c (fpurge): Likewise.
41187         * lib/freadable.c (freadable): Likewise.
41188         * lib/freadahead.c (freadahead): Likewise.
41189         * lib/freading.c (freading): Likewise.
41190         * lib/freadptr.c (freadptr): Likewise.
41191         * lib/freadseek.c (freadptrinc): Likewise.
41192         * lib/fseeko.c (rpl_fseeko): Likewise.
41193         * lib/fseterr.c (fseterr): Likewise.
41194         * lib/fwritable.c (fwritable): Likewise.
41195         * lib/fwriting.c (fwriting): Likewise.
41196         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41197
41198 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41199
41200         * lib/config.charset: Treat Haiku like BeOS.
41201
41202 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41203
41204         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41205         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41206
41207 2008-11-08  Bruno Haible  <bruno@clisp.org>
41208
41209         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41210         AC_CACHE_CHECK.
41211
41212 2008-11-08  Bruno Haible  <bruno@clisp.org>
41213
41214         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41215
41216 2008-11-08  Bruno Haible  <bruno@clisp.org>
41217
41218         * tests/test-select-fd.c: New file.
41219         * tests/test-select-in.sh: New file.
41220         * tests/test-select-out.sh: New file.
41221         * tests/test-select-stdin.c: New file.
41222         * modules/select-tests (Files): Add the new files.
41223         (Depends-on): Add gettimeofday.
41224         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41225         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41226         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41227
41228 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41229             Bruno Haible  <bruno@clisp.org>
41230
41231         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41232
41233 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41234
41235         * build-aux/pmccabe2html: Added support for C++ source files.
41236
41237 2008-11-05  Ben Pfaff  <blp@gnu.org>
41238
41239         Fix lib/close.c build on Windows.
41240         * modules/close (Files): Add lib/w32sock.h.
41241
41242 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41243
41244         Accept Bison's NEWS format.
41245         * build-aux/announce-gen (print_news_deltas): Tweak
41246         $re_prefix.
41247
41248 2008-11-04  Bruno Haible  <bruno@clisp.org>
41249
41250         * modules/random_r (Maintainer): Add glibc.
41251
41252 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41253
41254         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41255         by karl@freefriends.org (Karl Berry).
41256         * doc/alloca.texi: Likewise.
41257         * doc/c-ctype.texi: Likewise.
41258         * doc/c-strcase.texi: Likewise.
41259         * doc/c-strcaseeq.texi: Likewise.
41260         * doc/c-strcasestr.texi: Likewise.
41261         * doc/c-strstr.texi: Likewise.
41262         * doc/c-strtod.texi: Likewise.
41263         * doc/c-strtold.texi: Likewise.
41264         * doc/ctime.texi: Likewise.
41265         * doc/error.texi: Likewise.
41266         * doc/fdl.texi: Likewise.
41267         * doc/gcd.texi: Likewise.
41268         * doc/getdate.texi: Likewise.
41269         * doc/gnulib-intro.texi: Likewise.
41270         * doc/gnulib-tool.texi: Likewise.
41271         * doc/gnulib.texi: Likewise.
41272         * doc/inet_ntoa.texi: Likewise.
41273         * doc/maintain.texi: Likewise.
41274         * doc/make-stds.texi: Likewise.
41275         * doc/quote.texi: Likewise.
41276         * doc/regexprops-generic.texi: Likewise.
41277         * doc/standards.texi: Likewise.
41278         * doc/verify.texi: Likewise.
41279         * doc/visibility.texi: Likewise.
41280         * doc/gnulib.texi (GNU Free Documentation License): Include
41281         fdl-1.3.texi instead of fdl.texi.
41282
41283 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41284
41285         * doc/fdl-1.3.texi: New file, from
41286         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41287         * modules/fdl-1.3: Add.
41288         * MODULES.html.sh: Add fdl-1.3.
41289
41290 2008-11-03  Bruno Haible  <bruno@clisp.org>
41291
41292         Make determination of absolute name of header file work with AIX xlc.
41293         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41294         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41295         preprocessing.
41296         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41297         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41298
41299 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41300
41301         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41302         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41303         <ludo@gnu.org>.
41304
41305 2008-11-02  Bruno Haible  <bruno@clisp.org>
41306
41307         Mark 'strpbrk' obsolete.
41308         * modules/strpbrk (Status, Notice): New sections.
41309         * modules/strtok_r (Depends-on): Add strpbrk.
41310
41311 2008-11-02  Bruno Haible  <bruno@clisp.org>
41312
41313         Mark 'strdup' obsolete.
41314         * modules/strdup (Status, Notice): New sections.
41315         * modules/findprog (Depends-on): Add strdup.
41316         * modules/getaddrinfo (Depends-on): Likewise.
41317         * modules/localename (Depends-on): Likewise.
41318         * modules/relocatable-lib (Depends-on): Likewise.
41319         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41320         * modules/relocatable-prog (Depends-on): Likewise.
41321         * modules/trim (Depends-on): Likewise.
41322         * modules/unictype/gen-ctype (Depends-on): Likewise.
41323         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41324
41325 2008-11-02  Bruno Haible  <bruno@clisp.org>
41326
41327         Mark 'strcspn' obsolete.
41328         * modules/strcspn (Status, Notice): New sections.
41329
41330 2008-11-02  Bruno Haible  <bruno@clisp.org>
41331
41332         Mark 'rmdir' obsolete.
41333         * modules/rmdir (Status, Notice): New sections.
41334         * modules/clean-temp (Depends-on): Add rmdir.
41335         * modules/openat (Depends-on): Likewise.
41336
41337 2008-11-02  Bruno Haible  <bruno@clisp.org>
41338
41339         Mark 'raise' obsolete.
41340         * modules/raise (Status, Notice): New sections.
41341         (Include): Specify <signal.h>.
41342         * modules/stdio (Depends-on): Add raise.
41343         * modules/write (Depends-on): Likewise.
41344
41345 2008-11-02  Bruno Haible  <bruno@clisp.org>
41346
41347         Mark 'memset' obsolete.
41348         * modules/memset (Status, Notice): New sections.
41349
41350 2008-11-02  Bruno Haible  <bruno@clisp.org>
41351
41352         Mark 'memmove' obsolete.
41353         * modules/memmove (Status, Notice): New sections.
41354         * modules/argp (Depends-on): Add memmove.
41355         * modules/argz (Depends-on): Likewise.
41356         * modules/canonicalize (Depends-on): Likewise.
41357         * modules/canonicalize-lgpl (Depends-on): Likewise.
41358         * modules/fts (Depends-on): Likewise.
41359         * modules/getcwd (Depends-on): Likewise.
41360         * modules/human (Depends-on): Likewise.
41361         * modules/regex (Depends-on): Likewise.
41362         * modules/striconveh (Depends-on): Likewise.
41363         * modules/trim (Depends-on): Likewise.
41364         * modules/unistr/u8-move (Depends-on): Likewise.
41365         * modules/unistr/u16-move (Depends-on): Likewise.
41366         * modules/unistr/u32-move (Depends-on): Likewise.
41367
41368 2008-11-02  Bruno Haible  <bruno@clisp.org>
41369
41370         Mark 'memcpy' obsolete.
41371         * modules/memcpy (Status, Notice): New sections.
41372
41373 2008-11-02  Bruno Haible  <bruno@clisp.org>
41374
41375         Mark 'memcmp' obsolete.
41376         * modules/memcmp (Status, Notice): New sections.
41377         * modules/argmatch (Depends-on): Add memchr.
41378         * modules/backupfile (Depends-on): Likewise.
41379         * modules/c-strcasestr (Depends-on): Likewise.
41380         * modules/crypto/des (Depends-on): Likewise.
41381         * modules/csharpcomp (Depends-on): Likewise.
41382         * modules/fnmatch (Depends-on): Likewise.
41383         * modules/git-merge-changelog (Depends-on): Likewise.
41384         * modules/isnand (Depends-on): Likewise.
41385         * modules/isnand-nolibm (Depends-on): Likewise.
41386         * modules/isnanf (Depends-on): Likewise.
41387         * modules/isnanf-nolibm (Depends-on): Likewise.
41388         * modules/isnanl (Depends-on): Likewise.
41389         * modules/isnanl-nolibm (Depends-on): Likewise.
41390         * modules/mbchar (Depends-on): Likewise.
41391         * modules/memcoll (Depends-on): Likewise.
41392         * modules/quotearg (Depends-on): Likewise.
41393         * modules/regex (Depends-on): Likewise.
41394         * modules/relocatable-prog (Depends-on): Likewise.
41395         * modules/same (Depends-on): Likewise.
41396         * modules/signbit (Depends-on): Likewise.
41397         * modules/strcasestr-simple (Depends-on): Likewise.
41398         * modules/unictype/gen-ctype (Depends-on): Likewise.
41399         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41400         * modules/uniname/uniname (Depends-on): Likewise.
41401         * modules/unistr/u8-cmp (Depends-on): Likewise.
41402
41403 2008-11-02  Bruno Haible  <bruno@clisp.org>
41404
41405         Mark 'memchr' obsolete.
41406         * modules/memchr (Status, Notice): New sections.
41407         * modules/argp (Depends-on): Add memchr.
41408         * modules/base64 (Depends-on): Likewise.
41409         * modules/c-strcasestr (Depends-on): Likewise.
41410         * modules/chdir-long (Depends-on): Likewise.
41411         * modules/fnmatch (Depends-on): Likewise.
41412         * modules/getsubopt (Depends-on): Likewise.
41413         * modules/git-merge-changelog (Depends-on): Likewise.
41414         * modules/glob (Depends-on): Likewise.
41415         * modules/strcasestr-simple (Depends-on): Likewise.
41416         * modules/strnlen (Depends-on): Likewise.
41417
41418 2008-11-02  Bruno Haible  <bruno@clisp.org>
41419
41420         Mark 'atexit' obsolete.
41421         * modules/atexit (Status, Notice): New sections.
41422         * modules/chdir-long (Depends-on): Add atexit.
41423         * modules/wait-process (Depends-on): Likewise.
41424
41425 2008-11-02  Bruno Haible  <bruno@clisp.org>
41426
41427         * gnulib-tool: New option --with-obsolete.
41428         (func_usage): Document it.
41429         (func_modules_transitive_closure): Drop obsolete dependencies if
41430         incobsolete is not true.
41431         (func_import): Read and save the incobsolete variable to the cache.
41432
41433 2008-11-02  Bruno Haible  <bruno@clisp.org>
41434
41435         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41436         * gnulib-tool: New option --extract-status.
41437         (func_usage): Document it.
41438         (sed_extract_prog): Recognize it.
41439         (func_get_status): New function.
41440
41441 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41442
41443         * modules/sockets (License): Change from LGPL to LGPLv2+.
41444
41445 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41446
41447         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41448
41449 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41450
41451         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41452         Mention times and sys_times.
41453         * modules/sys_times, modules/sys_times-tests: New modules.
41454         * modules/times, modules/times-tests: Likewise
41455         * m4/sys_times_h.m4: New file.
41456         * lib/sys_times.in.h: Likewise
41457         * lib/times.c: Likewise.
41458         * tests/test-sys_times.c: Likewise.
41459         * tests/test-times.c: Likewise.
41460         * doc/posix-headers/sys_times.texi: Update.
41461         * doc/posix-functions/times.texi: Update.
41462
41463 2008-10-28  Jim Meyering  <meyering@redhat.com>
41464
41465         * modules/tempname (Depends-on): Add lstat.
41466
41467         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41468
41469 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41470
41471         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41472         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41473         using idiom used elsewhere in gnulib.
41474
41475 2008-10-27  Jim Meyering  <meyering@redhat.com>
41476
41477         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41478
41479 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41480
41481         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41482         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41483         programs.
41484         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41485
41486 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41487
41488         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41489
41490 2008-10-27  Bruno Haible  <bruno@clisp.org>
41491
41492         * tests/test-lstat.c: Include <stdio.h>.
41493
41494 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41495
41496         * modules/lstat-tests: New module.
41497         * tests/test-lstat.c: New file.
41498
41499 2008-10-26  Jim Meyering  <meyering@redhat.com>
41500
41501         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41502
41503 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41504             Bruno Haible  <bruno@clisp.org>
41505
41506         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41507         * modules/configmake (Include): Add a note that the include must come
41508         after all system headers.
41509         * lib/javaversion.c: Include configmake.h after all other includes.
41510
41511 2008-10-26  Bruno Haible  <bruno@clisp.org>
41512
41513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41514         HAVE_STRUCT_RANDOM_DATA to 1.
41515         (gl_STDLIB_H): Simplify.
41516
41517 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41518
41519         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41520         substitute HAVE_STRUCT_RANDOM_DATA.
41521         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41522         random_data.
41523         * modules/stdlib (Makefile.am): Substitute
41524         HAVE_STRUCT_RANDOM_DATA.
41525
41526 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41527
41528         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41529         * doc/gnulib-intro.texi (Copyright): Likewise.
41530
41531 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41532
41533         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41534         findings.
41535
41536 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41537             Bruno Haible  <bruno@clisp.org>
41538
41539         * lib/unistd.in.h: Include <winsock2.h>.
41540         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41541         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41542         Provide dummy declarations.
41543         (gethostname): Override.
41544         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41545         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41546         gl_PREREQ_SYS_H_WINSOCK2.
41547         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41548         * doc/posix-functions/gethostname.texi: More details.
41549
41550 2008-10-25  Bruno Haible  <bruno@clisp.org>
41551
41552         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41553         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41554         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41555
41556         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41557         here ...
41558         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41559         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41560         gl_UNISTD_H_DEFAULTS.
41561
41562 2008-10-25  Eric Blake  <ebb9@byu.net>
41563
41564         signbit: avoid spurious compiler failure
41565         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41566         declarations inside function.
41567
41568 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41569             Bruno Haible  <bruno@clisp.org>
41570
41571         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41572         * modules/random_r (Depends-on): Add stdint.
41573
41574 2008-10-24  Bruno Haible  <bruno@clisp.org>
41575
41576         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41577         Eggert.
41578         * modules/strerror (License): Likewise.
41579
41580 2008-10-24  Jim Meyering  <meyering@redhat.com>
41581
41582         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41583         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41584
41585 2008-10-24  Eric Blake  <ebb9@byu.net>
41586
41587         getgroups: fix compilation when getgroups is available
41588         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41589         but with <config.h> override of getgroups disabled.
41590
41591 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41592
41593         * doc/gnulib.texi (Header files): Add note about C++ problems.
41594         Explained by Bruno Haible <bruno@clisp.org>.
41595
41596 2008-10-23  Bruno Haible  <bruno@clisp.org>
41597
41598         Define a dummy SA_NODEFER macro on Interix.
41599         * lib/signal.in.h (SA_NODEFER): Define fallback.
41600         Reported by Aleksey Cheusov <cheusov@tut.by> via
41601         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41602
41603 2008-10-23  Bruno Haible  <bruno@clisp.org>
41604
41605         * modules/freadahead (License): Change to LGPLv2+.
41606         Suggested by Simon Josefsson.
41607
41608 2008-10-23  Jim Meyering  <meyering@redhat.com>
41609
41610         random_r: new module
41611         * modules/random_r: New file.
41612         * m4/random_r.m4: New file.
41613         * lib/random_r.c: New file, from glibc.
41614         * modules/random_r-tests: New file.
41615         * tests/test-random_r.c: New file.
41616         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41617          Declare.
41618         (RAND_MAX): Define.
41619         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41620         * modules/stdlib: Substitute them, too.
41621         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41622         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41623         * doc/glibc-functions/random_r.texi: Likewise.
41624         * doc/glibc-functions/setstate_r.texi: Likewise.
41625         * doc/glibc-functions/srandom_r.texi: Likewise.
41626         * config/srclist.txt: Mention it.
41627
41628 2008-10-23  David Lutterkort  <lutter@redhat.com>
41629
41630         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41631         link requirement
41632
41633 2008-10-23  Jim Meyering  <meyering@redhat.com>
41634
41635         selinux-h: mark parameters of stub functions as intentionally unused
41636         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41637         * lib/se-context.in.h: Likewise.
41638
41639 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41640
41641         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41642
41643 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41644
41645         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41646
41647 2008-10-22  Eric Blake  <ebb9@byu.net>
41648
41649         glthread/thread: avoid compiler warning
41650         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41651         Add unreachable abort to silence compiler.
41652
41653 2008-10-22  Eric Blake  <ebb9@byu.net>
41654
41655         netdb: also supply struct addrinfo for cygwin 1.5.x
41656         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41657         older cygwin.
41658         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41659         cygwin.
41660         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41661
41662 2008-10-22  Bruno Haible  <bruno@clisp.org>
41663
41664         * users.txt: Update entry about pspp.
41665
41666 2008-10-21  Bruno Haible  <bruno@clisp.org>
41667
41668         Simplification.
41669         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41670         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41671
41672         Simplification.
41673         * lib/ioctl.c (ioctl): Don't undefine.
41674         * lib/socket.c (socket): Don't undefine.
41675
41676         Remove unused module indicator macros.
41677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41678         GNULIB_$1 as a C macro.
41679
41680         * doc/posix-functions/close.texi: Undo last change.
41681         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41682         Windows platforms.
41683
41684 2008-10-21  Bruno Haible  <bruno@clisp.org>
41685
41686         Add gethostname() declaration to <unistd.h>.
41687         * lib/unistd.in.h (gethostname): New declaration.
41688         * lib/gethostname.c: Include <unistd.h>.
41689         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41690         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41692         and HAVE_GETHOSTNAME.
41693         * modules/gethostname (Depends-on): Add unistd.
41694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41695         (Include): Specify <unistd.h>.
41696         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41697         HAVE_GETHOSTNAME.
41698         * tests/test-gethostname.c: Include <unistd.h> first.
41699
41700 2008-10-21  Bruno Haible  <bruno@clisp.org>
41701
41702         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41703         * modules/select-tests (Depends-on): Likewise.
41704         Reported by Simon Josefsson.
41705
41706 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41707
41708         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41709         * lib/accept.c: New file, based on winsock.c.
41710         * lib/bind.c: New file, based on winsock.c.
41711         * lib/connect.c: New file, based on winsock.c.
41712         * lib/getpeername.c: New file, based on winsock.c.
41713         * lib/getsockname.c: New file, based on winsock.c.
41714         * lib/getsockopt.c: New file, based on winsock.c.
41715         * lib/ioctl.c: New file, based on winsock.c.
41716         * lib/listen.c: New file, based on winsock.c.
41717         * lib/recv.c: New file, based on winsock.c.
41718         * lib/recvfrom.c: New file, based on winsock.c.
41719         * lib/send.c: New file, based on winsock.c.
41720         * lib/sendto.c: New file, based on winsock.c.
41721         * lib/setsockopt.c: New file, based on winsock.c.
41722         * lib/shutdown.c: New file, based on winsock.c.
41723         * lib/socket.c: New file, based on winsock.c.
41724         * lib/w32sock.h: New file, based on winsock.c.
41725         * lib/winsock.c: Remove file.
41726         * modules/accept: Likewise.
41727         * modules/bind: Likewise.
41728         * modules/connect: Likewise.
41729         * modules/getpeername: Likewise.
41730         * modules/getsockname: Likewise.
41731         * modules/getsockopt: Likewise.
41732         * modules/ioctl: Likewise.
41733         * modules/listen: Likewise.
41734         * modules/recv: Likewise.
41735         * modules/recvfrom: Likewise.
41736         * modules/send: Likewise.
41737         * modules/sendto: Likewise.
41738         * modules/setsockopt: Likewise.
41739         * modules/shutdown: Likewise.
41740         * modules/socket: Use socket.c instead of winsock.c.
41741         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41742         * doc/posix-functions/accept.texi: Doc fix.
41743         * doc/posix-functions/bind.texi: Doc fix.
41744         * doc/posix-functions/close.texi: Doc fix.
41745         * doc/posix-functions/connect.texi: Doc fix.
41746         * doc/posix-functions/getpeername.texi: Doc fix.
41747         * doc/posix-functions/getsockname.texi: Doc fix.
41748         * doc/posix-functions/getsockopt.texi: Doc fix.
41749         * doc/posix-functions/ioctl.texi: Doc fix.
41750         * doc/posix-functions/listen.texi: Doc fix.
41751         * doc/posix-functions/recv.texi: Doc fix.
41752         * doc/posix-functions/recvfrom.texi: Doc fix.
41753         * doc/posix-functions/send.texi: Doc fix.
41754         * doc/posix-functions/sendto.texi: Doc fix.
41755         * doc/posix-functions/setsockopt.texi: Doc fix.
41756         * doc/posix-functions/shutdown.texi: Doc fix.
41757         * doc/posix-functions/socket.texi: Doc fix.
41758
41759 2008-10-20  Bruno Haible  <bruno@clisp.org>
41760
41761         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41762         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41763         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41764         as an alias for SIGABRT.
41765         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41766         (sigaction): Map it to SIGABRT.
41767         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41768
41769 2008-10-20  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/fts.c: Don't include lstat.h.
41772         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41773
41774         Move the lstat() declaration to <sys/stat.h>.
41775         * lib/lstat.h: Remove file.
41776         * lib/sys_stat.in.h: Add special invocation convention.
41777         (lstat): New declaration.
41778         * lib/lstat.c (orig_lstat): New function.
41779         (rpl_lstat): Use orig_lstat instead of lstat.
41780         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41781         AC_C_INLINE. Set REPLACE_LSTAT.
41782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41783         and REPLACE_LSTAT.
41784         * modules/lstat (Files): Remove lib/lstat.h.
41785         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41786         (Include): Specify <sys/stat.h> instead of lstat.h.
41787         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41788         REPLACE_LSTAT.
41789         * NEWS: Mention the change.
41790
41791 2008-10-20  Bruno Haible  <bruno@clisp.org>
41792
41793         * modules/posix_spawn-tests: New file.
41794         * tests/test-posix_spawn3.c: New file.
41795
41796 2008-10-20  Bruno Haible  <bruno@clisp.org>
41797
41798         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41799         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41800         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41801         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41802         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41803
41804 2008-10-20  Bruno Haible  <bruno@clisp.org>
41805
41806         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41807         of posix_spawn on AIX 5.3.
41808
41809 2008-10-20  Bruno Haible  <bruno@clisp.org>
41810
41811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41812
41813 2008-10-20  Bruno Haible  <bruno@clisp.org>
41814
41815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41816         of AC_LANG_PROGRAM.
41817
41818 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41819
41820         * lib/netdb.in.h: Don't define GNU specific constants until they
41821         are supported or needed.  Reported by Bruno Haible
41822         <bruno@clisp.org>.
41823
41824 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41825
41826         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41827
41828 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41829
41830         * lib/getaddrinfo.h: Remove file.
41831         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41832         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41833         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41834         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41835         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41836         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41837         * tests/test-getaddrinfo.c: Likewise.
41838         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41839         * NEWS: Mention change.
41840
41841 2008-10-19  Bruno Haible  <bruno@clisp.org>
41842
41843         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41844
41845 2008-10-19  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/wait-process.c: Include simply <sys/wait.h>.
41848         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41849         WIFSTOPPED): Remove fallback definitions.
41850         * modules/wait-process (Depends-on): Add sys_wait.
41851
41852         New module 'sys_wait'.
41853         * modules/sys_wait: New file.
41854         * lib/sys_wait.in.h: New file, partially copied from
41855         lib/wait-process.c.
41856         * m4/sys_wait_h.m4: New file.
41857         * doc/posix-headers/sys_wait.texi: Mention the new module.
41858
41859 2008-10-19  Bruno Haible  <bruno@clisp.org>
41860
41861         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41862
41863 2008-10-19  Bruno Haible  <bruno@clisp.org>
41864
41865         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41866         * lib/wait-process.c (WAIT_T): Remove type.
41867         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41868         (wait_subprocess): Update.
41869
41870 2008-10-19  Bruno Haible  <bruno@clisp.org>
41871
41872         New module 'atoll'.
41873         * modules/atoll: New file.
41874         * lib/stdlib.in.h (atoll): New declaration.
41875         * lib/atoll.c: New file, from glibc with modifications.
41876         * m4/atoll.m4: New file.
41877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41878         HAVE_ATOLL.
41879         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41880         * doc/posix-functions/atoll.texi: Mention the new module.
41881
41882 2008-10-19  Bruno Haible  <bruno@clisp.org>
41883
41884         Add strtoull() declaration to <stdlib.h>.
41885         * lib/stdlib.in.h (strtoull): New declaration.
41886         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41887         Set HAVE_STRTOULL.
41888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41889         HAVE_STRTOULL.
41890         * modules/strtoull (Depends-on): Add stdlib.
41891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41892         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41893         HAVE_STRTOULL.
41894
41895 2008-10-19  Bruno Haible  <bruno@clisp.org>
41896
41897         Add strtoll() declaration to <stdlib.h>.
41898         * lib/stdlib.in.h (strtoll): New declaration.
41899         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41900         Set HAVE_STRTOLL.
41901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41902         HAVE_STRTOLL.
41903         * modules/strtoll (Depends-on): Add stdlib.
41904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41905         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41906
41907 2008-10-19  Bruno Haible  <bruno@clisp.org>
41908
41909         * modules/bcopy (Depends-on): Add strings.
41910         (Include): Specify <strings.h>.
41911
41912 2008-10-19  Bruno Haible  <bruno@clisp.org>
41913
41914         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41915
41916 2008-10-19  Bruno Haible  <bruno@clisp.org>
41917
41918         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41919         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41920         mingw.
41921
41922 2008-10-19  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/atanl.c: Don't include isnanl.h.
41925         * lib/cosl.c: Likewise.
41926         * lib/ldexpl.c: Likewise.
41927         * lib/logl.c: Likewise.
41928         * lib/sinl.c: Likewise.
41929         * lib/sqrtl.c: Likewise.
41930         * lib/tanl.c: Likewise.
41931
41932         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41933         * lib/isnanf.h: Remove file.
41934         * lib/isnand.h: Remove file.
41935         * lib/isnanl.h: Remove file.
41936         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41937         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41938         macros.
41939         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41940         HAVE_ISNANF, don't define it as a C macro.
41941         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41942         HAVE_ISNAND, don't define it as a C macro.
41943         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41944         HAVE_ISNANL, don't define it as a C macro.
41945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41946         HAVE_ISNAN[FDL].
41947         * modules/isnanf (Files): Remove lib/isnanf.h.
41948         (Depends-on): Add math.
41949         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41950         (Include): Specify <math.h> instead of isnanf.h.
41951         * modules/isnand (Files): Remove lib/isnand.h.
41952         (Depends-on): Add math.
41953         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41954         (Include): Specify <math.h> instead of isnand.h.
41955         * modules/isnanl (Files): Remove lib/isnanl.h.
41956         (Depends-on): Add math.
41957         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41958         (Include): Specify <math.h> instead of isnanl.h.
41959         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41960         HAVE_ISNAN[FDL].
41961         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41962         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41963         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41964         * NEWS: Mention the change.
41965
41966 2008-10-18  Bruno Haible  <bruno@clisp.org>
41967
41968         Add getusershell(), setusershell(), endusershell() declarations to
41969         <unistd.h>.
41970         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41971         declarations.
41972         * lib/getusershell.c: Include unistd.h.
41973         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41974         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41975         HAVE_GETUSERSHELL.
41976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41977         and HAVE_GETUSERSHELL.
41978         * modules/getusershell (Depends-on): Add unistd, extensions.
41979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41980         (Include): Specify <unistd.h>.
41981         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41982         HAVE_GETUSERSHELL.
41983
41984 2008-10-18  Bruno Haible  <bruno@clisp.org>
41985
41986         Add a getloadavg() declaration to <stdlib.h>.
41987         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41988         getloadavg declaration.
41989         (getloadavg): New declaration.
41990         * lib/getloadavg.c: Include <stdlib.h> first.
41991         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41992         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41993         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41995         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41996         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41997         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41998         (Include): Specify <stdlib.h>.
41999         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42000         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42001
42002 2008-10-18  Bruno Haible  <bruno@clisp.org>
42003
42004         * lib/dirchownmod.c: Don't include lchmod.h.
42005
42006         Move the lchmod() declaration to <sys/stat.h>.
42007         * lib/lchmod.h: Remove file.
42008         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42009         (lchmod): New declaration, moved here from lib/lchown.h.
42010         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42011         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42013         and HAVE_LCHMOD.
42014         * modules/lchmod (Files): Remove lib/lchmod.h.
42015         (Depends-on): Add sys_stat, extensions.
42016         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42017         (Include): Specify <sys/stat.h> instead of lchmod.h.
42018         * modules/sys_stat (Depends-on): Add link-warning.
42019         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42020         definition of GL_LINK_WARNING.
42021         * NEWS: Mention the change.
42022
42023 2008-10-18  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/fchdir.c: Don't include dirfd.h.
42026         * lib/fts.c: Likewise.
42027         * lib/getcwd.c: Likewise.
42028         * lib/glob.c: Likewise.
42029
42030         Move the dirfd() declaration to <dirent.h>.
42031         * lib/dirfd.h: Remove file.
42032         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42033         (dirfd): New declaration.
42034         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42035         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42036         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42037         HAVE_DECL_DIRFD.
42038         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42039         HAVE_DECL_DIRFD.
42040         * modules/dirfd (Files): Remove lib/dirfd.h.
42041         (Depends-on): Add dirent, extensions.
42042         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42043         (Include): Specify <dirent.h> instead of dirfd.h.
42044         * modules/dirent (Depends-on): Add link-warning.
42045         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42046         definition of GL_LINK_WARNING.
42047         * NEWS: Mention the change.
42048
42049 2008-10-18  Bruno Haible  <bruno@clisp.org>
42050
42051         Move the euidaccess() declaration to <unistd.h>.
42052         * lib/euidaccess.h: Remove file.
42053         * lib/unistd.in.h (euidaccess): New declaration.
42054         * lib/euidaccess.c: Don't include euidaccess.h.
42055         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42056         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42058         and HAVE_EUIDACCESS.
42059         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42060         (Depends-on): Add unistd.
42061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42062         (Include): Specify <unistd.h> instead of euidaccess.h.
42063         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42064         HAVE_EUIDACCESS.
42065         * NEWS: Mention the change.
42066
42067 2008-10-18  Bruno Haible  <bruno@clisp.org>
42068
42069         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42070
42071         Move the getdomainname() declaration to <unistd.h>.
42072         * lib/getdomainname.h: Remove file.
42073         * lib/unistd.in.h (getdomainname): New declaration.
42074         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42075         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42076         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42077         HAVE_GETDOMAINNAME.
42078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42079         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42080         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42081         (Depends-on): Add unistd, extensions.
42082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42083         (Includes): Specify <unistd.h> instead of getdomainname.h.
42084         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42085         HAVE_GETDOMAINNAME.
42086         * NEWS: Mention the change.
42087
42088 2008-10-18  Bruno Haible  <bruno@clisp.org>
42089
42090         * modules/dirent: New file.
42091         * m4/dirent_h.m4: New file.
42092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42093         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42094         * modules/fchdir (Files): Remove lib/dirent.in.h.
42095         (Depends-on): Add dirent.
42096         (Makefile.am): Move rules to modules/dirent.
42097         * doc/posix-headers/dirent.texi: Mention the new module.
42098
42099 2008-10-18  Bruno Haible  <bruno@clisp.org>
42100
42101         Avoid -Wunused-parameter warnings in public gnulib header files.
42102         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42103         macro.
42104         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42105
42106 2008-10-18  Bruno Haible  <bruno@clisp.org>
42107
42108         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42109         * doc/glibc-functions/error.texi: Mention the module 'error'.
42110         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42111         * doc/glibc-functions/getdomainname.texi: Mention the module
42112         'getdomainname'.
42113         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42114         * doc/glibc-functions/getpagesize.texi: Mention the module
42115         'getpagesize'.
42116         * doc/glibc-functions/getusershell.texi: Mention the module
42117         'getusershell'.
42118         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42119         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42120         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42121         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42122         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42123         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42124         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42125         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42126         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42127         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42128         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42129         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42130         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42131         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42132
42133 2008-10-17  Bruno Haible  <bruno@clisp.org>
42134
42135         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42136         HP-UX and IRIX, use -0.0L.
42137         * tests/test-ceill.c (minus_zero): Likewise.
42138         * tests/test-floorl.c (minus_zero): Likewise.
42139         * tests/test-frexpl.c (minus_zero): Likewise.
42140         * tests/test-isnan.c (minus_zerol): Likewise.
42141         * tests/test-isnanl.h (minus_zero): Likewise.
42142         * tests/test-ldexpl.c (minus_zero): Likewise.
42143         * tests/test-roundl.c (minus_zero): Likewise.
42144         * tests/test-signbit.c (minus_zerol): Likewise.
42145         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42146         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42147         * tests/test-truncl.c (minus_zero): Likewise.
42148         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42149         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42150         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42151         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42152
42153 2008-10-17  Bruno Haible  <bruno@clisp.org>
42154
42155         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42156         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42157         that it gets activated only for gcc >= 3.0.
42158         * lib/dirent.in.h: Likewise.
42159         * lib/errno.in.h: Likewise.
42160         * lib/fcntl.in.h: Likewise.
42161         * lib/float.in.h: Likewise.
42162         * lib/iconv.in.h: Likewise.
42163         * lib/inttypes.in.h: Likewise.
42164         * lib/locale.in.h: Likewise.
42165         * lib/math.in.h: Likewise.
42166         * lib/netdb.in.h: Likewise.
42167         * lib/netinet_in.in.h: Likewise.
42168         * lib/search.in.h: Likewise.
42169         * lib/signal.in.h: Likewise.
42170         * lib/spawn.in.h: Likewise.
42171         * lib/stdarg.in.h: Likewise.
42172         * lib/stdint.in.h: Likewise.
42173         * lib/stdio.in.h: Likewise.
42174         * lib/stdlib.in.h: Likewise.
42175         * lib/string.in.h: Likewise.
42176         * lib/strings.in.h: Likewise.
42177         * lib/sys_file.in.h: Likewise.
42178         * lib/sys_ioctl.in.h: Likewise.
42179         * lib/sys_select.in.h: Likewise.
42180         * lib/sys_socket.in.h: Likewise.
42181         * lib/sys_stat.in.h: Likewise.
42182         * lib/sys_time.in.h: Likewise.
42183         * lib/sysexits.in.h: Likewise.
42184         * lib/time.in.h: Likewise.
42185         * lib/unistd.in.h: Likewise.
42186         * lib/wchar.in.h: Likewise.
42187         * lib/wctype.in.h: Likewise.
42188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42189
42190 2008-10-17  Jim Meyering  <meyering@redhat.com>
42191
42192         ignore-value: don't depend on inline module
42193         * modules/ignore-value (Depends-on): Remove 'inline'.
42194         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42195         Suggestion from Bruno Haible.
42196
42197 2008-10-17  Bruno Haible  <bruno@clisp.org>
42198
42199         New implementation of condition variables for Win32.
42200         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42201         (gl_linked_waitqueue_t): New type.
42202         (gl_cond_t): Use it.
42203         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42204         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42205         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42206         (glthread_cond_init_func, glthread_cond_wait_func,
42207         glthread_cond_timedwait_func, glthread_cond_signal_func,
42208         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42209         Reimplemented on the basis of gl_linked_waitqueue_t.
42210         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42211         gl_waitqueue_t.
42212         (gl_rwlock_t): Update.
42213         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42214
42215 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42216
42217         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42218         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42219
42220 2008-10-17  Jim Meyering  <meyering@redhat.com>
42221
42222         ignore-value: new module
42223         * modules/ignore-value: New file.
42224         * lib/ignore-value.h: New file.
42225         * MODULES.html.sh (Compiler warning management): New section,
42226         just for this module.  More to come.
42227
42228 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42229
42230         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42231         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42232         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42233
42234 2008-10-16  Jim Meyering  <meyering@redhat.com>
42235
42236         openat-die.c: avoid 'no previous prototype' warning
42237         * lib/openat-die.c: Include "openat.h".
42238         Reported by Reuben Thomas <rrt@sc3d.org>.
42239
42240 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42241
42242         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42243         * lib/netdb.in.h: Fix typo.
42244         Reported by Bruno Haible  <bruno@clisp.org>
42245
42246         * lib/netdb.in.h: Include sys/socket.h for platforms without
42247         netdb.h, to get structures like hostent on MinGW.
42248         * modules/netdb (Depends-on): Add sys_socket.
42249
42250 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42251
42252         * modules/netdb, modules/netdb-tests: New file.
42253         * m4/netdb_h.m4: New file.
42254         * lib/netdb.in.h: Add, currently just an empty file pending
42255         definitions.
42256         * tests/test-netdb.c: New file.
42257         * doc/posix-headers/netdb.texi: Mention that we replace it if
42258         needed.
42259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42260         netdb.
42261
42262 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42263
42264         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42265         with code.
42266
42267 2008-10-13  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/glthread/cond.c (glthread_cond_wait_func,
42270         glthread_cond_timedwait_func): Add a comment.
42271
42272 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42273
42274         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42275         * tests/test-select.c: Likewise,
42276
42277 2008-10-13  Bruno Haible  <bruno@clisp.org>
42278
42279         * lib/glthread/cond.c (glthread_cond_wait_func,
42280         glthread_cond_timedwait_func): Fix variable name.
42281         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42282
42283 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42284
42285         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42287         struct sockaddr.sa_len.
42288         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42289
42290 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42291
42292         * build-aux/pmccabe2html: Add css and css_url parameters.
42293
42294 2008-10-12  Bruno Haible  <bruno@clisp.org>
42295
42296         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42297         calling aclx_get.
42298         Reported by Rainer Tammer <tammer@tammer.net>.
42299
42300 2008-10-12  Bruno Haible  <bruno@clisp.org>
42301
42302         Use msvcrt aware primitives for creation/termination of Win32 threads.
42303         * lib/glthread/thread.c: Include <process.h>.
42304         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42305         (wrapper_func): Update signature.
42306         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42307
42308 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42309             Bruno Haible  <bruno@clisp.org>
42310
42311         Provide a Win32 implementation of the 'cond' module.
42312         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42313         * lib/glthread/cond.c (glthread_cond_init_func,
42314         glthread_cond_wait_func, glthread_cond_timedwait_func,
42315         glthread_cond_signal_func, glthread_cond_broadcast_func,
42316         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42317         * modules/cond (Dependencies): Add gettimeofday.
42318
42319 2008-10-11  Bruno Haible  <bruno@clisp.org>
42320
42321         Make sleep work on older versions of mingw.
42322         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42323         only whether it exists.
42324         * doc/posix-functions/sleep.texi: Mention the problem with older
42325         versions of mingw.
42326
42327 2008-10-11  Bruno Haible  <bruno@clisp.org>
42328
42329         New module 'shutdown'.
42330         * modules/shutdown: New file.
42331         * lib/sys_socket.in.h (shutdown): New declaration.
42332         * lib/winsock.c (shutdown): New function.
42333         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42334         GNULIB_SHUTDOWN.
42335         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42336         * doc/posix-functions/shutdown.texi: Document the new module.
42337
42338 2008-10-11  Jim Meyering  <meyering@redhat.com>
42339
42340         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42341
42342 2008-10-11  Bruno Haible  <bruno@clisp.org>
42343
42344         New module 'fclose'.
42345         * modules/fclose: New file.
42346         * lib/stdio.in.h (fclose): New declaration.
42347         * lib/fclose.c: New file.
42348         * m4/fclose.m4: New file.
42349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42350         REPLACE_FCLOSE.
42351         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42352         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42353         REPLACE_FCLOSE.
42354         * modules/close (Depends-on): fclose.
42355         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42356
42357 2008-10-11  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42360         set errno and don't call _close.
42361
42362 2008-10-10  Bruno Haible  <bruno@clisp.org>
42363
42364         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42365         ACL, not afterwards. Fixes test failure on Cygwin.
42366
42367 2008-10-09  Ben Pfaff  <blp@gnu.org>
42368
42369         * build-aux/announce-gen: Fix gnulib version related part of usage
42370         message.  Die with a useful error message if no tarballs are
42371         found.
42372
42373 2008-10-10  Jim Meyering  <meyering@redhat.com>
42374
42375         bootstrap: use git's --depth=N option only if it's supported
42376         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42377         recognize the --depth option.  Reported by Pádraig Brady.
42378
42379 2008-10-09  Bruno Haible  <bruno@clisp.org>
42380
42381         New module 'ioctl'.
42382         * modules/ioctl: New file.
42383         * lib/sys_socket.in.h (ioctl): Remove declaration.
42384         * lib/winsock.c: Include <sys/ioctl.h>.
42385         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42386         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42387         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42388         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42389         * doc/posix-functions/ioctl.texi: Mention the new module.
42390
42391 2008-10-09  Bruno Haible  <bruno@clisp.org>
42392
42393         New module 'sys_ioctl'.
42394         * lib/sys_ioctl.in.h: New file.
42395         * m4/sys_ioctl_h.m4: New file.
42396         * modules/sys_ioctl: New file.
42397         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42398
42399 2008-10-09  Bruno Haible  <bruno@clisp.org>
42400
42401         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42402         * lib/winsock.c: Include <stdarg.h>.
42403         (rpl_ioctl): Change to second argument 'int' and then varargs.
42404
42405 2008-10-09  Bruno Haible  <bruno@clisp.org>
42406
42407         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42408         when the sys_socket module is present and the system has <winsock2.h>.
42409
42410 2008-10-09  Bruno Haible  <bruno@clisp.org>
42411
42412         * doc/posix-functions/close.texi: Mention module 'close' instead of
42413         module 'sys_socket'.
42414
42415 2008-10-09  Bruno Haible  <bruno@clisp.org>
42416
42417         * doc/glibc-headers/sys_ioctl.texi: New file.
42418         * doc/gnulib.texi: Include it.
42419
42420 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42421             Bruno Haible  <bruno@clisp.org>
42422
42423         Combine the two replacements of 'close'.
42424         * lib/sys_socket.in.h (close): Define to a reminder to include
42425         <unistd.h>.
42426         (_gl_close_fd_maybe_socket): New declaration.
42427         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42428         * lib/winsock.c (close): Remove undefinition.
42429         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42430         needed for the gnulib module 'close'.
42431         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42432         define to an error symbol or to a warning, if suitable.
42433         * lib/close.c: Include <sys/socket.h>.
42434         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42435         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42436         UNISTD_H_HAVE_WINSOCK2_H.
42437         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42439         UNISTD_H_HAVE_WINSOCK2_H.
42440         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42441         (configure.ac): Set a module indicator.
42442         (Makefile.am): Substitute GNULIB_CLOSE.
42443         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42444         * modules/poll-tests (Depends-on): Add close.
42445         * modules/select-tests (Depends-on): Likewise.
42446
42447 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42448             Bruno Haible  <bruno@clisp.org>
42449
42450         New module 'close'.
42451         * modules/close: New file.
42452         * lib/unistd.in.h (close): Move declaration out of the
42453         FCHDIR_REPLACEMENT scope.
42454         (_gl_unregister_fd): New declaration.
42455         * lib/close.c: New file.
42456         * lib/fchdir.c (rpl_close): Remove function.
42457         * m4/close.m4: New file.
42458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42459         close.
42460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42461         REPLACE_CLOSE.
42462         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42463         REPLACE_CLOSE.
42464         * modules/fchdir (Depends-on): Add close.
42465
42466 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42467             Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/fcntl.in.h (open): Simplify conditionals.
42470         (_gl_register_fd): New declaration.
42471         * lib/fchdir.c (rpl_open): Remove function.
42472         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42473         also.
42474         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42476         open.
42477
42478 2008-10-09  Jim Meyering  <meyering@redhat.com>
42479
42480         GNUmakefile: use the more name-space-friendly "_version"
42481         * top/GNUmakefile (_dummy): Update.
42482         (_version): Rename from "version".
42483
42484 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42485             Bruno Haible  <bruno@clisp.org>
42486
42487         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42488         rpl_close.
42489         (_gl_register_fd): New function, extracted from rpl_open.
42490         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42491         (rpl_open, rpl_opendir): Use _gl_register_fd.
42492
42493 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42494
42495         Fix organization of 'open' replacement.
42496         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42497         (gl_FUNC_OPEN): Use it.
42498         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42499
42500 2008-10-08  Bruno Haible  <bruno@clisp.org>
42501
42502         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42503
42504 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42505
42506         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42507         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42508         listen).
42509
42510 2008-10-08  Eric Blake  <ebb9@byu.net>
42511
42512         GNUmakefile: add 'make version' target
42513         * top/GNUmakefile (_curr-ver): Split version update rules...
42514         (version): ...into a target.
42515
42516 2008-10-07  Bruno Haible  <bruno@clisp.org>
42517
42518         Use a more portable replacement expression for -0.0L.
42519         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42520         instead of -0.0L. Fix m4 quotation.
42521
42522         * tests/test-signbit.c: Include <float.h>.
42523         (minus_zero): New variable.
42524         (test_signbitl): Use minus_zero instead of -zero.
42525         * modules/signbit-tests (Depends-on): Add float.
42526
42527         * tests/test-ceill.c: Include <float.h>.
42528         (zero): Remove variable.
42529         (minus_zero): New variable.
42530         (main): Use minus_zero instead of -zero.
42531         * modules/ceill-tests (Depends-on): Add float.
42532
42533         * tests/test-floorl.c: Include <float.h>.
42534         (zero): Remove variable.
42535         (minus_zero): New variable.
42536         (main): Use minus_zero instead of -zero.
42537         * modules/floorl-tests (Depends-on): Add float.
42538
42539         * tests/test-roundl.c: Include <float.h>.
42540         (zero): Remove variable.
42541         (minus_zero): New variable.
42542         (main): Use minus_zero instead of -zero.
42543         * modules/roundl-tests (Depends-on): Add float.
42544
42545         * tests/test-truncl.c: Include <float.h>.
42546         (zero): Remove variable.
42547         (minus_zero): New variable.
42548         (main): Use minus_zero instead of -zero.
42549         * modules/truncl-tests (Depends-on): Add float.
42550
42551         * tests/test-frexpl.c (zero): Remove variable.
42552         (minus_zero): New variable.
42553         (main): Use minus_zero instead of -zero.
42554         * modules/frexpl-tests (Depends-on): Add float.
42555
42556         * tests/test-isnan.c (zerol): Remove variable.
42557         (minus_zerol): New variable.
42558         (test_long_double): Use minus_zerol instead of -zerol.
42559         * modules/isnan-tests (Depends-on): Add float.
42560
42561         * tests/test-isnanl.h (zero): Remove variable.
42562         (minus_zero): New variable.
42563         (main): Use minus_zero instead of -zero.
42564         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42565         * modules/isnanl-tests (Depends-on): Add float.
42566
42567         * tests/test-ldexpl.c (zero): Remove variable.
42568         (minus_zero): New variable.
42569         (main): Use minus_zero instead of -zero.
42570         * modules/ldexpl-tests (Depends-on): Add float.
42571
42572         * tests/test-snprintf-posix.h (zerol): Remove variable.
42573         (minus_zerol): New variable.
42574         (test_function): Use minus_zerol instead of -zerol.
42575         * modules/snprintf-posix-tests (Depends-on): Add float.
42576         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42577
42578         * tests/test-sprintf-posix.h (zerol): Remove variable.
42579         (minus_zerol): New variable.
42580         (test_function): Use minus_zerol instead of -zerol.
42581         * modules/sprintf-posix-tests (Depends-on): Add float.
42582         * modules/vsprintf-posix-tests (Depends-on): Add float.
42583
42584         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42585         (minus_zerol): New variable.
42586         (test_function): Use minus_zerol instead of -zerol.
42587         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42588
42589         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42590         (minus_zerol): New variable.
42591         (test_function): Use minus_zerol instead of -zerol.
42592         * modules/vasprintf-posix-tests (Depends-on): Add float.
42593
42594 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42595
42596         * MODULES.html.sh (Support for building documentation): Mention
42597         pmccabe2html.  Sort entries.
42598
42599         Add pmccabe2html module, from gnupdf.
42600         * build-aux/pmccabe.css: New file.
42601         * build-aux/pmccabe2html: New file.
42602         * m4/pmccabe2html.m4: New file.
42603         * modules/pmccabe2html: New file.
42604
42605 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42606
42607         flock: new module
42608         * MODULES.html.sh: Add to list of modules.
42609         * lib/flock.c: flock implementation for Windows and Unix systems
42610         which have fcntl.
42611         * doc/glibc-functions/flock.texi: Update documentation.
42612         * lib/sys_file.in.h: <sys/file.h> header file.
42613         * m4/flock.m4: M4 macros.
42614         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42615         * modules/flock: flock module.
42616         * modules/flock-tests: flock tests module.
42617         * modules/sys_file: sys/file.h module.
42618         * tests/test-flock.c: test suite for flock.
42619
42620 2008-10-06  Jim Meyering  <meyering@redhat.com>
42621
42622         bootstrap: check for LT_INIT more portably still ;-)
42623         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42624         Spotted by Bruno Haible.
42625
42626 2008-10-06  Eric Blake  <ebb9@byu.net>
42627
42628         test-signbit: avoid tripping Irix cc bug on -0.0L
42629         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42630         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42631         entire testsuite consistent and avoids an Irix 6.2 bug.
42632
42633 2008-10-05  Bruno Haible  <bruno@clisp.org>
42634             Jim Meyering  <jim@meyering.net>
42635
42636         Add an option for ignoring EPIPE during close_stdout.
42637         * lib/closeout.h: Include <stdbool.h>.
42638         (close_stdout_set_ignore_EPIPE): New declaration.
42639         * lib/closeout.c: Include <stdbool.h>.
42640         (ignore_EPIPE): New variable.
42641         (close_stdout_set_ignore_EPIPE): New function.
42642         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42643         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42644         failure.
42645         * modules/closeout (Depends-on): Add stdbool.
42646
42647 2008-10-05  Bruno Haible  <bruno@clisp.org>
42648
42649         * modules/accept: New file.
42650         * modules/bind: New file.
42651         * modules/connect: New file.
42652         * modules/getpeername: New file.
42653         * modules/getsockname: New file.
42654         * modules/getsockopt: New file.
42655         * modules/listen: New file.
42656         * modules/recv: New file.
42657         * modules/recvfrom: New file.
42658         * modules/send: New file.
42659         * modules/sendto: New file.
42660         * modules/setsockopt: New file.
42661         * modules/socket: New file.
42662         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42663         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42664         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42665         the particular module is requested. Add a link warning when the
42666         particular module is not requested.
42667         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42668         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42669         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42670         the particular module is requested.
42671         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42672         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42673         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42674         * modules/sys_socket (Depends-on): Add link-warning.
42675         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42676         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42677         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42678         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42679         GL_LINK_WARNING.
42680         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42681         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42682         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42683         * doc/posix-functions/getpeername.texi: Mention the new module
42684         'getpeername'.
42685         * doc/posix-functions/getsockname.texi: Mention the new module
42686         'getsockname'.
42687         * doc/posix-functions/getsockopt.texi: Mention the new module
42688         'getsockopt'.
42689         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42690         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42691         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42692         * doc/posix-functions/send.texi: Mention the new module 'send'.
42693         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42694         * doc/posix-functions/setsockopt.texi: Mention the new module
42695         'setsockopt'.
42696         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42697         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42698         listen, connect, accept.
42699         * modules/select-tests (Depends-on): Likewise.
42700
42701 2008-10-05  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/winsock.c (strerror): Remove unused #undef.
42704         (rpl_close): Remove unused local variable.
42705
42706         * modules/sys_socket (Depends-on); Add errno.
42707
42708 2008-10-05  Bruno Haible  <bruno@clisp.org>
42709
42710         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42711         (select): Add a link warning when the 'select' module is not used.
42712         * modules/sys_select (Depends-on): Add link-warning.
42713         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42714         Suggested by Paolo Bonzini.
42715
42716 2008-10-05  Jim Meyering  <meyering@redhat.com>
42717
42718         bootstrap: check for LT_INIT more portably
42719         * build-aux/bootstrap: Avoid using grep -E, since it's not
42720         portable enough.  Suggestion from Bruno Haible.
42721
42722 2008-10-05  Bruno Haible  <bruno@clisp.org>
42723
42724         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42725         as being fixed by gnulib.
42726
42727 2008-10-05  Bruno Haible  <bruno@clisp.org>
42728
42729         * modules/select-tests: New file, mostly copied from
42730         modules/sys_select-tests.
42731         * tests/test-select.c: New file, mostly copied from
42732         tests/test-sys_select.c.
42733         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42734         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42735         (Makefile.am): Remove test_sys_select_LDADD.
42736
42737         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42738         to an undefined symbol, for an error message.
42739         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42740         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42741         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42742         winsock-select.c here.
42743         * modules/sys_select (Files): Remove lib/winsock-select.c.
42744         (Depends-on): Remove alloca.
42745         (Makefile.am): Substitute GNULIB_SELECT.
42746         * modules/select: New file.
42747         * doc/posix-functions/select.texi: Update.
42748
42749 2008-10-05  Bruno Haible  <bruno@clisp.org>
42750
42751         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42752         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42753         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42754         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42755         getdtablesize.
42756         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42757         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42758
42759 2008-10-05  Bruno Haible  <bruno@clisp.org>
42760
42761         * modules/getdtablesize-tests: New file.
42762         * tests/test-getdtablesize.c: New file.
42763
42764         New module 'getdtablesize'.
42765         * lib/unistd.in.h (getdtablesize): New declaration.
42766         * lib/getdtablesize.c: New file.
42767         * m4/getdtablesize.m4: New file.
42768         * modules/getdtablesize: New file.
42769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42770         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42771         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42772         HAVE_GETDTABLESIZE.
42773         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42774
42775 2008-10-05  Bruno Haible  <bruno@clisp.org>
42776
42777         * modules/sched (Makefile.am): Fix typo.
42778         Reported by Simon Josefsson.
42779
42780 2008-10-05  Jim Meyering  <meyering@redhat.com>
42781
42782         bootstrap: check for LT_INIT, too
42783         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42784         are deprecated.  Suggestion from Ralf Wildenhues.
42785
42786 2008-10-05  Bruno Haible  <bruno@clisp.org>
42787
42788         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42789         overriding them by ours.
42790         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42791
42792 2008-10-05  Jim Meyering  <meyering@redhat.com>
42793
42794         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42795         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42796         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42797
42798 2008-10-04  Bruno Haible  <bruno@clisp.org>
42799
42800         * modules/dup2 (License): Change to LGPLv2+.
42801         * modules/sleep (License): Likewise.
42802         * modules/perror (License): Likewise.
42803         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42804         Blake.
42805         * modules/signal (License): Likewise.
42806         * modules/sigprocmask (License): Likewise.
42807         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42808         Meyering.
42809
42810 2008-10-04  Bruno Haible  <bruno@clisp.org>
42811
42812         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42813         Reported by Rainer Tammer <tammer@tammer.net>.
42814
42815 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42816             Bruno Haible  <bruno@clisp.org>
42817
42818         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42819         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42820         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42821
42822 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42823
42824         filevercmp: new module
42825         * lib/filevercmp.h: New function filevercmp comparing version strings.
42826         * lib/filevercmp.c: Implementation of filevercmp function.
42827         * modules/filevercmp: Module metadata.
42828         * tests/test-filevercmp.c: Unit test for new module.
42829         * modules/filevercmp-tests: Unit test metadata.
42830         * MODULES.html.sh: Add filevercmp module.
42831
42832 2008-10-03  Bruno Haible  <bruno@clisp.org>
42833
42834         * lib/c-ctype.h: Add comment.
42835         Reported by Jim Meyering.
42836
42837 2008-10-02  Bruno Haible  <bruno@clisp.org>
42838
42839         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42840
42841 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42842
42843         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42844         name of bootstrap.conf accordingly.
42845
42846 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42847
42848         * build-aux/bootstrap: Install git-merge-changelog configuration
42849         items into .gitconfig if needed.
42850
42851 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42852
42853         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42854         git repository, and initialize/update it accordingly.
42855
42856 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42857
42858         * modules/fsync-tests: New file.
42859         * tests/test-fsync.c: New file.
42860
42861         New module 'fsync'.
42862         * lib/fsync.c: New file.
42863         * m4/fsync.m4: New file.
42864         * modules/fsync: New file.
42865         * lib/unistd.in.h (fsync): New declaration.
42866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42867         GNULIB_FSYNC and HAVE_FSYNC.
42868         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42869         * MODULES.html.sh (posix_functions): Add fsync.
42870         * doc/posix-functions/fsync.texi: Mention the new module.
42871
42872 2008-10-02  Jim Meyering  <meyering@redhat.com>
42873
42874         fts.c: sync with similar code from coreutils' remove.c
42875         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42876         Guard also with "#if defined __linux__", since for now at least,
42877         this code is Linux-kernel-specific.
42878
42879 2008-10-02  Jim Meyering  <meyering@redhat.com>
42880
42881         fts: bug fixes
42882         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42883         Include <sys/vfs.h>, not <sys/statfs.h>.
42884
42885         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42886         Include <sys/vfs.h>, not <sys/statfs.h>.
42887
42888 2008-10-01  Bruno Haible  <bruno@clisp.org>
42889
42890         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42892         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42893         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42894         * doc/posix-functions/posix_spawnp.texi: Likewise.
42895         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42896         whether posix_spawn actually works.
42897         * m4/pipe.m4 (gl_PIPE): Likewise.
42898         * modules/execute (Files): Add m4/posix_spawn.m4.
42899         * modules/pipe (Files): Add m4/posix_spawn.m4.
42900         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42901
42902 2008-10-01  Jim Meyering  <meyering@redhat.com>
42903
42904         remove trailing spaces
42905         * NEWS: Likewise.
42906         * lib/poll.c (poll): Likewise.
42907         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42908         * lib/winsock.c (rpl_close): Likewise.
42909         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42910         * modules/yield: Likewise.
42911         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42912         * tests/test-sys_select.c (connect_to_socket): Likewise.
42913
42914         fts.c: adjust a new interface to be more generally useful
42915         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42916         (fts_build): Adjust caller.
42917
42918 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42919
42920         * modules/cond-tests: New file.
42921         * tests/test-cond.c: New file.
42922
42923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42924             Bruno Haible  <bruno@clisp.org>
42925
42926         * modules/cond (Dependencies): Add errno, time.
42927         * lib/glthread/cond.h: Include <time.h>.
42928         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42929         across platforms.
42930
42931 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42932             Bruno Haible  <bruno@clisp.org>
42933
42934         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42935
42936 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42937             Bruno Haible  <bruno@clisp.org>
42938
42939         * modules/tls-tests (Depends-on): Add thread, yield.
42940         (configure.ac): Remove all checks.
42941         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42942         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42943         gl_thread_self): Remove definitions. Include glthread/thread.h and
42944         glthread/yield.h instead.
42945         (test_tls): Pass an additional NULL argument to gl_thread_join.
42946
42947 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42948             Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/lock-tests (Depends-on): Add thread, yield.
42951         (configure.ac): Remove all checks.
42952         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42953         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42954         gl_thread_self): Remove definitions. Include glthread/thread.h and
42955         glthread/yield.h instead.
42956         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42957         additional NULL argument to gl_thread_join.
42958
42959 2008-09-30  Bruno Haible  <bruno@clisp.org>
42960
42961         Fix the Win32 implementation of the 'thread' module.
42962         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42963         pointer type.
42964         (gl_thread_self): Invoke gl_thread_self_func.
42965         (gl_thread_self_func): New declaration.
42966         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42967         (do_init_self_key, init_self_key): New functions.
42968         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42969         Remove some fields.
42970         (running_threads, running_lock): Remove variables.
42971         (get_current_thread_handle): New function.
42972         (gl_thread_self_func, wrapper_func, glthread_create_func,
42973         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42974         simplified.
42975
42976 2008-09-30  Bruno Haible  <bruno@clisp.org>
42977
42978         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42979         files.
42980
42981 2008-09-30  Jim Meyering  <meyering@redhat.com>
42982
42983         fts.m4: correct the test for statfs.f_type
42984         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42985         when checking for statfs.f_type.
42986
42987 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42988
42989         tests: avoid some compiler warnings
42990         * tests/test-memchr.c (main): Pass NULL indirectly.
42991         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42992
42993 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42994
42995         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42996         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42997         exactly specified dayshifts.
42998         (dayshift): New rule.
42999         (rel): Add dayshift.
43000         (relative_time_table) [tomorrow, yesterday, today, now]:
43001         Use tDAY_SHIFT in place of tDAY_UNIT.
43002         * tests/test-getdate.c: Add tests for now-disallowed countable
43003         dayshifts, e.g., "4 yesterday ago".
43004
43005 2008-09-29  Bruno Haible  <bruno@clisp.org>
43006
43007         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43008         * tests/test-posix_spawn1.in.sh: Renamed from
43009         tests/test-posix_spawn.in.sh.
43010         * tests/test-posix_spawn2.c: New file.
43011         * tests/test-posix_spawn2.in.sh: New file.
43012         * modules/posix_spawnp-tests (Files): Update.
43013         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43014
43015 2008-09-29  Bruno Haible  <bruno@clisp.org>
43016
43017         Propagate effects of putenv/setenv/unsetenv to child processes.
43018         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43019         * lib/pipe.c (create_pipe): Likewise.
43020
43021 2008-09-29  Bruno Haible  <bruno@clisp.org>
43022
43023         Enable use of shell scripts as executables in mingw.
43024         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43025         run the program as a shell script.
43026         * lib/pipe.c (create_pipe): Likewise.
43027         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43028         resulting array.
43029
43030 2008-09-29  Eric Blake  <ebb9@byu.net>
43031
43032         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43033
43034 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43035
43036         * doc/posix-functions/accept.texi: Update mingw problems.
43037         * doc/posix-functions/bind.texi: Update mingw problems.
43038         * doc/posix-functions/close.texi: Update mingw problems.
43039         * doc/posix-functions/connect.texi: Update mingw problems.
43040         * doc/posix-functions/getpeername.texi: Update mingw problems.
43041         * doc/posix-functions/getsockname.texi: Update mingw problems.
43042         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43043         * doc/posix-functions/ioctl.texi: Update mingw problems.
43044         * doc/posix-functions/listen.texi: Update mingw problems.
43045         * doc/posix-functions/recv.texi: Update mingw problems.
43046         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43047         * doc/posix-functions/select.texi: Update mingw problems.
43048         * doc/posix-functions/send.texi: Update mingw problems.
43049         * doc/posix-functions/sendto.texi: Update mingw problems.
43050         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43051         * doc/posix-functions/socket.texi: Update mingw problems.
43052
43053 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43054             Bruno Haible  <bruno@clisp.org>
43055
43056         * lib/sys_select.in.h: Include sys/time.h.
43057         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43058         * modules/sys_select: Depend on sys_time.
43059         * tests/test-sys_select.c: Test that sys/select.h defines struct
43060         timeval fully.
43061
43062 2008-09-29  Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43065         * lib/sys_select.in.h: Likewise.
43066
43067 2008-09-29  Bruno Haible  <bruno@clisp.org>
43068
43069         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43070
43071 2008-09-29  Bruno Haible  <bruno@clisp.org>
43072
43073         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43074         Set LIBSOCKET instead of augmenting LIBS.
43075         * modules/sockets (Link): New section.
43076         * modules/sockets-tests (test_sockets_LDADD): New variable.
43077         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43078         * modules/poll-tests (test_poll_LDADD): New variable.
43079         * NEWS: Document the change.
43080
43081 2008-09-29  Bruno Haible  <bruno@clisp.org>
43082
43083         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43084         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43085         ARPA_INET_H directly.
43086         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43087
43088 2008-09-28  Bruno Haible  <bruno@clisp.org>
43089
43090         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43091         from gl_HEADER_SYS_SOCKET.
43092         (gl_HEADER_SYS_SOCKET): Invoke it.
43093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43094
43095 2008-09-28  Bruno Haible  <bruno@clisp.org>
43096
43097         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43098         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43099         Needed on OSF/1 4.0.
43100
43101 2008-09-28  Bruno Haible  <bruno@clisp.org>
43102
43103         Override open more carefully.
43104         * lib/open.c (orig_open): New function.
43105         (rpl_open): Use orig_open instead of open.
43106         * lib/fcntl.in.h: Add special invocation convention.
43107         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43108         (gl_FUNC_OPEN): Invoke it.
43109
43110         Override freopen more carefully.
43111         * lib/freopen.c (orig_freopen): New function.
43112         (rpl_freopen): Use orig_freopen instead of freopen.
43113         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43114         (gl_FUNC_FREOPEN): Invoke it.
43115
43116         Override fopen more carefully.
43117         * lib/fopen.c (orig_fopen): New function.
43118         (rpl_fopen): Use orig_fopen instead of fopen.
43119         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43120         (gl_FUNC_FOPEN): Invoke it.
43121         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43122
43123 2008-09-28  Bruno Haible  <bruno@clisp.org>
43124
43125         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43126         SIGPIPE.
43127
43128 2008-09-28  Bruno Haible  <bruno@clisp.org>
43129
43130         * tests/test-sigaction.c (handler, main): Disable the check whether
43131         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43132         glibc systems with LinuxThreads.
43133
43134 2008-09-28  Bruno Haible  <bruno@clisp.org>
43135
43136         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43137
43138         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43139         with AIX xlc.
43140         * lib/fcntl.in.h (open): Likewise.
43141         Reported by Rainer Tammer <tammer@tammer.net>.
43142
43143 2008-09-28  Bruno Haible  <bruno@clisp.org>
43144
43145         * modules/posix_spawnp-tests: New file.
43146         * tests/test-posix_spawn.c: New file.
43147         * tests/test-posix_spawn.in.sh: New file.
43148
43149         New module 'posix_spawnp'.
43150         * modules/posix_spawnp: New file.
43151         * lib/spawnp.c: New file, from GNU libc with modifications.
43152         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43153
43154         New module 'posix_spawn'.
43155         * modules/posix_spawn: New file.
43156         * lib/spawn.c: New file, from GNU libc with modifications.
43157         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43158
43159         New module 'posix_spawnattr_destroy'.
43160         * modules/posix_spawnattr_destroy: New file.
43161         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43162         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43163         module.
43164
43165         New module 'posix_spawnattr_setsigmask'.
43166         * modules/posix_spawnattr_setsigmask: New file.
43167         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43168         modifications.
43169         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43170         new module.
43171
43172         New module 'posix_spawnattr_getsigmask'.
43173         * modules/posix_spawnattr_getsigmask: New file.
43174         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43175         modifications.
43176         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43177         new module.
43178
43179         New module 'posix_spawnattr_setsigdefault'.
43180         * modules/posix_spawnattr_setsigdefault: New file.
43181         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43182         modifications.
43183         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43184         new module.
43185
43186         New module 'posix_spawnattr_getsigdefault'.
43187         * modules/posix_spawnattr_getsigdefault: New file.
43188         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43189         modifications.
43190         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43191         new module.
43192
43193         New module 'posix_spawnattr_setschedpolicy'.
43194         * modules/posix_spawnattr_setschedpolicy: New file.
43195         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43196         modifications.
43197         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43198         new module.
43199
43200         New module 'posix_spawnattr_getschedpolicy'.
43201         * modules/posix_spawnattr_getschedpolicy: New file.
43202         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43203         modifications.
43204         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43205         new module.
43206
43207         New module 'posix_spawnattr_setschedparam'.
43208         * modules/posix_spawnattr_setschedparam: New file.
43209         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43210         modifications.
43211         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43212         new module.
43213
43214         New module 'posix_spawnattr_getschedparam'.
43215         * modules/posix_spawnattr_getschedparam: New file.
43216         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43217         modifications.
43218         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43219         new module.
43220
43221         New module 'posix_spawnattr_setpgroup'.
43222         * modules/posix_spawnattr_setpgroup: New file.
43223         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43224         modifications.
43225         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43226         module.
43227
43228         New module 'posix_spawnattr_getpgroup'.
43229         * modules/posix_spawnattr_getpgroup: New file.
43230         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43231         modifications.
43232         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43233         module.
43234
43235         New module 'posix_spawnattr_setflags'.
43236         * modules/posix_spawnattr_setflags: New file.
43237         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43238         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43239         module.
43240
43241         New module 'posix_spawnattr_getflags'.
43242         * modules/posix_spawnattr_getflags: New file.
43243         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43244         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43245         module.
43246
43247         New module 'posix_spawnattr_init'.
43248         * modules/posix_spawnattr_init: New file.
43249         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43250         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43251         module.
43252
43253         New module 'posix_spawn_file_actions_destroy'.
43254         * modules/posix_spawn_file_actions_destroy: New file.
43255         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43256         modifications.
43257         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43258         the new module.
43259
43260         New module 'posix_spawn_file_actions_addopen'.
43261         * modules/posix_spawn_file_actions_addopen: New file.
43262         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43263         modifications.
43264         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43265         the new module.
43266
43267         New module 'posix_spawn_file_actions_adddup2'.
43268         * modules/posix_spawn_file_actions_adddup2: New file.
43269         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43270         modifications.
43271         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43272         the new module.
43273
43274         New module 'posix_spawn_file_actions_addclose'.
43275         * modules/posix_spawn_file_actions_addclose: New file.
43276         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43277         modifications.
43278         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43279         the new module.
43280
43281         New module 'posix_spawn_file_actions_init'.
43282         * modules/posix_spawn_file_actions_init: New file.
43283         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43284         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43285         new module.
43286
43287         New module 'posix_spawn-internal'.
43288         * modules/posix_spawn-internal: New file.
43289         * lib/spawn_int.h: New file, from GNU libc with modifications.
43290         * lib/spawni.c: New file, from GNU libc with modifications.
43291         * m4/posix_spawn.m4: New file.
43292
43293         New module 'spawn'.
43294         * modules/spawn: New file.
43295         * lib/spawn.in.h: New file, from GNU libc with modifications.
43296         * m4/spawn_h.m4: New file.
43297         * doc/posix-headers/spawn.texi: Mention the new module.
43298
43299 2008-09-28  Bruno Haible  <bruno@clisp.org>
43300
43301         * modules/sched-tests: New file.
43302         * tests/test-sched.c: New file.
43303
43304         New module 'sched'.
43305         * modules/sched: New file.
43306         * lib/sched.in.h: New file.
43307         * m4/sched_h.m4: New file.
43308         * doc/posix-headers/sched.texi: Mention the new module.
43309
43310 2008-09-27  Eric Blake  <ebb9@byu.net>
43311
43312         Fix previous patch, and tweak references to $0.
43313         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43314         (func_version, func_gnulib_dir): Don't call this program
43315         gnulib-tool.
43316         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43317         with using $0 in function.
43318         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43319         (func_fatal_error): Reuse the name the user invoked us with.
43320
43321 2008-09-27  Bruno Haible  <bruno@clisp.org>
43322
43323         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43324         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43325         (gl_ICONV_H): Not here.
43326         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43327         instead of assigning ICONV_H directly.
43328
43329         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43331         WCHAR_H directly.
43332
43333 2008-09-27  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43336         * modules/arpa_inet (Depends-on): Add link-warning.
43337         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43338         * modules/unistd (Makefile.am): Likewise.
43339
43340 2008-09-26  Bruno Haible  <bruno@clisp.org>
43341
43342         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43343         variables.
43344         (func_version): Essentially copied from gnulib-tool.
43345         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43346         func_readlink): Copied from gnulib-tool.
43347
43348 2008-09-26  Bruno Haible  <bruno@clisp.org>
43349
43350         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43351         invoking git-version-gen.
43352
43353 2008-09-26  Bruno Haible  <bruno@clisp.org>
43354
43355         * posix-modules: Update to directory names changed on 2008-01-19.
43356         Remove commas in output before splitting into words. No more need to
43357         avoid 'ftruncate' since 2007-02-19.
43358
43359 2008-09-26  Bruno Haible  <bruno@clisp.org>
43360
43361         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43362
43363 2008-09-26  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43366         * modules/fwriteerror (Depends-on): Add errno.
43367
43368 2008-09-26  Bruno Haible  <bruno@clisp.org>
43369
43370         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43371         * tests/test-vc-list-files-cvs.sh: Likewise.
43372
43373 2008-09-26  Bruno Haible  <bruno@clisp.org>
43374
43375         * doc/posix-headers/sys_resource.texi: Reorder items.
43376
43377 2008-09-26  Jim Meyering  <meyering@redhat.com>
43378
43379         fts: tweak inode comparison function
43380         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43381         inode numbers, as documented.
43382
43383         fts: sort dirent entries on inode number before traversing
43384         This avoids a quadratic, seek-related performance penalty when
43385         operating on a directory containing many entries (measurable at 10k;
43386         3.5 hours at 2 million entries with a cold cache) on certain types
43387         of file systems, including ext3 and ext4, but not tmpfs.
43388         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43389         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43390         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43391         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43392         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43393         (fts_build): Set the stat.st_ino member from D_INO.
43394         If it is likely to be useful, sort dirent entries on inode number.
43395
43396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43397         and the struct statfs.f_type member.
43398         * modules/fts (Depends-on): Add d-ino.
43399
43400 2008-09-26  Bruno Haible  <bruno@clisp.org>
43401
43402         * modules/sigpipe-die (Depends-on): Add sigpipe.
43403
43404         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43405         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43406         and GNULIB_STDIO_H_SIGPIPE are set.
43407         * lib/stdio-write.c: New file.
43408         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43409         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43410         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43411         REPLACE_STDIO_WRITE_FUNCS.
43412         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43413         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43414         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43415         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43416         * modules/stdio (Files): Add lib/stdio-write.c.
43417         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43418         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43419         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43420         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43421         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43422         REPLACE_FPRINTF_POSIX.
43423         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43424         REPLACE_PRINTF_POSIX.
43425         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43426         REPLACE_VFPRINTF_POSIX.
43427         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43428         REPLACE_VPRINTF_POSIX.
43429         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43430         SIGPIPE issue.
43431         * doc/posix-functions/fputc.texi: Likewise.
43432         * doc/posix-functions/fputs.texi: Likewise.
43433         * doc/posix-functions/fwrite.texi: Likewise.
43434         * doc/posix-functions/printf.texi: Likewise.
43435         * doc/posix-functions/putc.texi: Likewise.
43436         * doc/posix-functions/putchar.texi: Likewise.
43437         * doc/posix-functions/puts.texi: Likewise.
43438         * doc/posix-functions/vfprintf.texi: Likewise.
43439         * doc/posix-functions/vprintf.texi: Likewise.
43440
43441         * modules/safe-write (Depends-on): Add write.
43442
43443         * modules/sigpipe-tests: New file.
43444         * tests/test-sigpipe.c: New file.
43445         * tests/test-sigpipe.sh: New file.
43446
43447         * modules/write: New file.
43448         * lib/unistd.in.h: Include <sys/types.h>.
43449         (write): New declaration.
43450         * lib/write.c: New file.
43451         * m4/write.m4: New file.
43452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43453         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43454         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43455         GNULIB_WRITE, REPLACE_WRITE.
43456         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43457         and the SIGPIPE issue.
43458
43459         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43460         (raise): New declaration.
43461         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43462         (ext_signal): New function.
43463         (rpl_raise): New function.
43464         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43465         GNULIB_SIGNAL_H_SIGPIPE.
43466         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43467         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43468
43469         * modules/sigpipe: New file.
43470         * m4/sigpipe.m4: New file.
43471
43472 2008-09-25  Derek Price  <derek@ximbiot.com>
43473             Bruno Haible  <bruno@clisp.org>
43474
43475         * gnulib-tool (func_import): Report all license incompatibilities, not
43476         just the first one.
43477
43478 2008-09-25  Bruno Haible  <bruno@clisp.org>
43479
43480         * gnulib-tool (func_import): When computing the edits, consider not
43481         only the Makefile.ams that exist but also those that will be generated.
43482
43483 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43484
43485         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43486         fixes gnulib-tool --test warning about duplicate dependency.
43487
43488 2008-09-25  Bruno Haible  <bruno@clisp.org>
43489
43490         * gnulib-tool: Don't ask the user to perform edits in the generated
43491         Makefile.ams.
43492         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43493         apply to the Makefile.am being generated.
43494         (func_emit_tests_Makefile_am): Execute edits that apply to the
43495         Makefile.am being generated.
43496         (func_import): Setup list of Makefile.am edits before emitting the
43497         Makefile.ams, not at the end.
43498         (func_create_testdir): Update.
43499         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43500
43501 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43502
43503         * gnulib-tool (func_import): Store the --tests-base option in the
43504         comment in gnulib-cache.m4.
43505
43506 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43507
43508         * NEWS: Document increased portability that sys_select now provides.
43509
43510         * lib/sys_select.in.h: Install select wrapper.
43511         * lib/sys_socket.in.h: Use more descriptive name when there is no
43512         select wrapper.
43513         * lib/winsock-select.c: New.
43514         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43515         Require gl_HEADER_SYS_SOCKET.
43516         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43517         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43518         * tests/test-sys_select.c: Add functional tests.
43519
43520 2008-09-24  Eric Blake  <ebb9@byu.net>
43521
43522         open, fopen: close fd leak in last patch
43523         * lib/open.c (rpl_open): Close fd before returning error.
43524         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43525         * doc/posix-functions/open.texi (open): Document that Irix also
43526         has the bug.
43527         * doc/posix-functions/fopen.texi (fopen): Likewise.
43528         Reported by Paolo Bonzini.
43529
43530 2008-09-24  Bruno Haible  <bruno@clisp.org>
43531
43532         Ensure that a filename ending in a slash cannot be used to access a
43533         non-directory.
43534         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43535         to check whether it's really a directory.
43536         * lib/fopen.c: Include fcntl.h, unistd.h.
43537         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43538         and fdopen().
43539         * modules/fopen (Depends-on): Add unistd.
43540         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43541         * tests/test-fopen.c (main): Likewise.
43542         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43543         * doc/posix-functions/fopen.texi: Likewise.
43544         Reported by Eric Blake.
43545
43546 2008-09-23  Eric Blake  <ebb9@byu.net>
43547
43548         c-stack: avoid compiler optimizations when provoking overflow
43549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43550         recursion harder to optimize, to ensure a stack overflow occurs.
43551         * tests/test-c-stack.c (recurse): Likewise.
43552         Borrowed from libsigsegv.
43553
43554         c-stack: work around Irix sigaltstack bug
43555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43556         whether sigaltstack uses wrong end of stack_t (copied in part from
43557         libsigsegv).
43558         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43559         Irix bug, without requiring an over-allocation.
43560         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43561         bug.
43562
43563         fopen: document mingw bug on directories
43564         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43565         not allowing a stream visiting a directory, even though reading
43566         from such a stream is not portable.
43567
43568 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43569
43570         * lib/poll.c: Rewrite.
43571         * modules/poll: Depend on alloca.
43572
43573 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43574
43575         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43576         instead define prototypes for a full set of wrappers.  Ensure
43577         that Cygwin does not use the compatibility code, which is only
43578         for MinGW.
43579         * lib/winsock.c: New.
43580         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43581         * modules/sys_socket: Add lib/winsock.c.
43582
43583         * modules/poll-tests: Add errno and perror.
43584         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43585
43586 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43587
43588         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43589
43590 2008-09-23  Bruno Haible  <bruno@clisp.org>
43591
43592         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43593         * doc/glibc-functions/*: Likewise.
43594
43595 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43596
43597         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43598         success.
43599
43600 2008-09-22  Eric Blake  <ebb9@byu.net>
43601             Bruno Haible  <bruno@clisp.org>
43602
43603         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43604         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43605         supply %A but mishandle pseudo-NaN.
43606         Reported by Simon Josefsson.
43607
43608 2008-09-21  Bruno Haible  <bruno@clisp.org>
43609
43610         * tests/test-lock.c (main): Tweak skip message.
43611         * tests/test-tls.c (main): Likewise.
43612
43613 2008-09-21  Bruno Haible  <bruno@clisp.org>
43614
43615         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43616         whether 'struct sigaction' has sa_sigaction here...
43617         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43618         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43619
43620 2008-09-21  Bruno Haible  <bruno@clisp.org>
43621
43622         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43623         section.
43624         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43625         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43626         the new section.
43627         (Support for obsolete systems lacking POSIX:2001): New section.
43628         (String handling <string.h>): Move strdup to the new section.
43629         Suggested by Simon Josefsson and Paolo Bonzini.
43630
43631 2008-09-21  Bruno Haible  <bruno@clisp.org>
43632
43633         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43634         exponents in %e and %g results on 'long double'. Needed for mingw's
43635         improved *printf functions.
43636         * tests/test-vasprintf-posix.c (test_function): Likewise.
43637         * tests/test-snprintf-posix.h (test_function): Likewise.
43638         * tests/test-sprintf-posix.h (test_function): Likewise.
43639         Reported by Eric Blake.
43640
43641 2008-09-21  Bruno Haible  <bruno@clisp.org>
43642
43643         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43644         * tests/test-sprintf-posix.h (test_function): Likewise.
43645
43646 2008-09-21  Bruno Haible  <bruno@clisp.org>
43647
43648         * modules/getpass (Depends-on): Add strdup-posix.
43649
43650         New module 'strdup-posix'.
43651         * modules/strdup-posix: New file.
43652         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43653         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43655         REPLACE_STRDUP.
43656         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43657         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43659         strdup-posix.
43660
43661         * modules/strdup (Depends-on): Remove malloc-posix.
43662
43663 2008-09-20  Bruno Haible  <bruno@clisp.org>
43664
43665         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43666         Wildenhues.
43667
43668 2008-09-20  Bruno Haible  <bruno@clisp.org>
43669
43670         Ensure that wint_t gets defined on IRIX 5.3.
43671         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43672         * lib/wctype.in.h (wint_t): Likewise.
43673         (__wctype_wint_t): Remove type.
43674         (isw*): Use wint_t instead of __wctype_wint_t.
43675         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43676         * modules/wchar (Files): Add m4/wint_t.m4.
43677         (Makefile.am): Substitute HAVE_WINT_T.
43678         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43679         * tests/test-wctype.c: Check that wint_t is defined.
43680         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43681         * doc/posix-headers/wctype.texi: Likewise.
43682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43683
43684 2008-09-18  Bruno Haible  <bruno@clisp.org>
43685
43686         * gnulib-tool (func_exit): Update comment.
43687
43688 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43689
43690         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43691         assumes strdup exists and does not depend on strdup to return
43692         ENOMEM on out of memory conditions.
43693
43694 2008-09-18  Bruno Haible  <bruno@clisp.org>
43695
43696         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43697         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43698         digits for the exponent.
43699
43700 2008-09-18  Jim Meyering  <meyering@redhat.com>
43701             Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/vasnprintf.c (decimal_point_char): Define also if
43704         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43705
43706 2008-09-16  Bruno Haible  <bruno@clisp.org>
43707         and Eric Blake  <ebb9@byu.net>
43708
43709         vasnprintf: support Irix 5.3
43710         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43711         that mishandle long double infinity.
43712         Reported by Tom G. Christensen.
43713
43714 2008-09-16  Bruno Haible  <bruno@clisp.org>
43715
43716         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43717         Solaris 9.
43718         * doc/glibc-functions/alphasort.texi: Likewise.
43719         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43720
43721 2008-09-16  Jim Meyering  <meyering@redhat.com>
43722
43723         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43724         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43725         a umask modification leak out of a subshell.  Otherwise, the
43726         opensolaris /bin/sh would be accepted and thus cause unwarranted
43727         failures in the coreutils test suite.
43728
43729 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43730
43731         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43732         to succeed.
43733
43734 2008-09-16  Jim Meyering  <meyering@redhat.com>
43735
43736         avoid spurious test failure when library is built without ACL support
43737         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43738         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43739         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43740         * tests/test-copy-acl.sh: Likewise.
43741
43742 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43743
43744         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43745         based on character occurrence counts.
43746
43747 2008-09-15  Eric Blake  <ebb9@byu.net>
43748
43749         tests: avoid some compiler warnings
43750         * tests/test-memchr.c (main): Pass NULL indirectly.
43751         * tests/test-closein.c (main): Avoid unused variable.
43752
43753 2008-09-15  Bruno Haible  <bruno@clisp.org>
43754
43755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43756         are missing on OpenBSD 4.0 individually.
43757         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43758
43759 2008-09-15  Bruno Haible  <bruno@clisp.org>
43760
43761         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43762         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43763         * doc/posix-functions/perror.texi: Likewise.
43764         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43765         is missing.
43766         Reported by Eric Blake.
43767
43768         * lib/errno.in.h: Use replacement values >= 2000.
43769         Reported by Eric Blake.
43770
43771 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43772
43773         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43774         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43775         limit.
43776         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43777         compareseq was aborted.
43778
43779 2008-09-14  Bruno Haible  <bruno@clisp.org>
43780
43781         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43782         yvec_edit_count.
43783         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43784         (fstrcmp_bounded): Simplify result computation accordingly.
43785
43786 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43787
43788         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43789         (fstrcmp): Define in terms of fstrcmp_bounded.
43790         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43791         lower_bound argument.
43792         Return quickly if the result is certainly < lower_bound.
43793         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43794
43795 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43796
43797         * lib/diffseq.h (EARLY_ABORT): New macro.
43798         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43799         evaluates to true.
43800
43801 2008-09-14  Bruno Haible  <bruno@clisp.org>
43802
43803         * modules/perror-tests: New file.
43804         * tests/test-perror.sh: New file.
43805         * tests/test-perror.c: New file.
43806
43807         New module 'perror'.
43808         * lib/stdio.in.h (perror): New declaration.
43809         * lib/perror.c: New file.
43810         * m4/perror.m4: New file.
43811         * modules/perror: New file.
43812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43813         * doc/posix-functions/perror.texi: Mention the perror module.
43814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43815         REPLACE_PERROR.
43816         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43817         REPLACE_PERROR.
43818
43819 2008-09-14  Bruno Haible  <bruno@clisp.org>
43820
43821         * modules/stdio (Makefile.am): Reorder to match the order in
43822         lib/stdio.in.h.
43823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43824
43825 2008-09-13  Bruno Haible  <bruno@clisp.org>
43826
43827         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43828
43829 2008-09-13  Bruno Haible  <bruno@clisp.org>
43830
43831         Extend strerror to cover the added errno values.
43832         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43833         (rpl_strerror): Provide error messages for the added errno values and
43834         for the WSA* values.
43835         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43836         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43837         strerror.
43838         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43839         * modules/strerror (Depends-on): Add errno.
43840         * doc/posix-functions/strerror.texi: Document the change.
43841         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43842         and EOVERFLOW.
43843
43844 2008-09-13  Bruno Haible  <bruno@clisp.org>
43845
43846         * modules/EOVERFLOW: Remove file.
43847         * m4/eoverflow.m4: Remove file.
43848         * modules/EOVERFLOW-tests: Remove file.
43849         * tests/test-EOVERFLOW.c: Remove file.
43850         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43851         * modules/ftell (Depends-on): Likewise.
43852         * modules/getdelim (Depends-on): Likewise.
43853         * modules/getugroups (Depends-on): Likewise.
43854         * modules/poll (Depends-on): Likewise.
43855         * modules/snprintf (Depends-on): Likewise.
43856         * modules/sprintf-posix (Depends-on): Likewise.
43857         * modules/vasnprintf (Depends-on): Likewise.
43858         * modules/vasprintf (Depends-on): Likewise.
43859         * modules/vfprintf-posix (Depends-on): Likewise.
43860         * modules/vsnprintf (Depends-on): Likewise.
43861         * modules/vsprintf-posix (Depends-on): Likewise.
43862         * modules/xvasprintf (Depends-on): Likewise.
43863         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43864         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43865         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43866         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43867         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43868         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43869         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43870         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43871         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43872         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43873         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43874         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43875         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43876         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43877         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43878         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43879         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43880         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43881         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43882         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43883         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43884         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43885         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43886         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43887         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43888         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43889         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43890         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43891         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43892         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43893         * MODULES.html.sh: Remove EOVERFLOW.
43894         * NEWS: Mention the change.
43895
43896 2008-09-13  Bruno Haible  <bruno@clisp.org>
43897
43898         * modules/errno-tests: New file.
43899         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43900
43901         * lib/errno.in.h: New file.
43902         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43903         * modules/errno: New file.
43904         * doc/posix-headers/errno.texi: Update documentation.
43905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43906
43907 2008-09-13  Bruno Haible  <bruno@clisp.org>
43908
43909         * tests/test-poll.c: Use #if for native Windows, rather than testing
43910         __MSVCRT__.
43911
43912 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43913             Bruno Haible  <bruno@clisp.org>
43914
43915         * lib/glob.c: Don't include <pwd.h> on native Windows.
43916         (WINDOWS32): New macro.
43917         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43918
43919 2008-09-13  Bruno Haible  <bruno@clisp.org>
43920
43921         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43922         (ETIMEDOUT): Remove macro.
43923         (glthread_cond_timedwait_multithreaded): New declaration.
43924         (glthread_cond_timedwait): Use it.
43925         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43926         (glthread_cond_timedwait_multithreaded): New function.
43927
43928 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43929
43930         * modules/poll-tests: Do not check for io.h.
43931         * tests/test-poll.c: Check for __MSVCRT__ instead.
43932
43933 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43934
43935         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43936         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43937         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43938
43939 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43940
43941         * modules/poll-tests: New.
43942         * tests/test-poll.c: New.
43943
43944 2008-09-12  Eric Blake  <ebb9@byu.net>
43945
43946         frexp: test for NetBSD failure on -0.0
43947         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43948         not all, bugs from NetBSD 3.0 have been fixed.
43949         * doc/posix-functions/frexp.texi (frexp): Document bug.
43950         Reported by Thomas Klausner.
43951
43952         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43953         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43954         literal -0.0.
43955         Reported by Jonathan C. Patschke <jp@centtech.com>.
43956
43957 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43958
43959         * lib/glthread/cond.h: Use dummy implementation also if
43960         USE_WIN32_THREADS.
43961
43962 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43963
43964         * modules/fnmatch-posix (License): Change to LGPLv2+.
43965         * modules/fnmatch-gnu (License): Likewise.
43966
43967 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43968
43969         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43970
43971 2008-09-11  Jim Meyering  <meyering@redhat.com>
43972
43973         * users.txt: Add gtk-vnc.
43974
43975 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43976
43977         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43978         rotate amounts.
43979
43980         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43981         required for 16-bit and 8-bit rotates.
43982         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43983         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43984         UINT8_MAX instead of hard-coded constants.
43985         Suggested by Paul Eggert.
43986
43987 2008-09-07  Bruno Haible  <bruno@clisp.org>
43988
43989         * tests/test-striconveh.c (main): Check behaviour when converting from
43990         UTF-7.
43991
43992         Make striconveh work better with stateful encodings.
43993         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43994         that iconv does not increment the inptr when returning -1/EINVAL.
43995
43996 2008-09-07  Bruno Haible  <bruno@clisp.org>
43997
43998         * build-aux/config.rpath: Update according to libtool-2.2.6.
43999         * build-aux/config.libpath: Likewise.
44000
44001 2008-09-06  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44004         * lib/freadptr.c (freadptr): Likewise.
44005         * lib/freadseek.c (freadptrinc): Likewise.
44006         Reported by Simon Josefsson.
44007
44008 2008-09-06  Bruno Haible  <bruno@clisp.org>
44009
44010         * modules/freadptr (License): Change to LGPLv2+.
44011         * modules/freadseek (License): Likewise.
44012         Suggested by Eric Blake.
44013
44014         * modules/memchr2 (License): Change to LGPLv2+.
44015         Approved by Eric Blake.
44016
44017 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44018             Bruno Haible  <bruno@clisp.org>
44019
44020         Make gnulib-tool work with native 'sed' on AIX.
44021         * gnulib-tool (sed_noop): New variable.
44022         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44023         func_add_or_update, func_create_testdir): Use it to initialize sed
44024         script variables.
44025         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44026
44027 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44028             Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44031         also works after #include directives.
44032
44033 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44034
44035         getdate.y: reject an out-of-range timezone value
44036         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44037         the range [-24...+24].  When specified with only one or two digits,
44038         * tests/test-getdate.c: Tests for the fix.
44039         * doc/getdate.texi: Document this change.
44040
44041 2008-09-03  Bruno Haible  <bruno@clisp.org>
44042
44043         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44044
44045 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44046
44047         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44048         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44049         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44050         Blake <ebb9@byu.net>.
44051
44052         * tests/test-bitrotate.c: Add more test vectors.
44053
44054 2008-09-02  Eric Blake  <ebb9@byu.net>
44055
44056         vasnprintf-posix: handle large precision via %.*d
44057         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44058         when handling it ourselves.
44059         * tests/test-vasnprintf-posix.c (test_function): Add test.
44060         * tests/test-snprintf-posix.h (test_function): Likewise.
44061         * tests/test-sprintf-posix.h (test_function): Likewise.
44062         * tests/test-vasprintf-posix.c (test_function): Likewise.
44063         Reported by Alain Guibert.
44064
44065 2008-09-01  Eric Blake  <ebb9@byu.net>
44066
44067         c-stack: make configure-time check more robust
44068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44069         successful sigaction call.
44070         Reported by Tom G. Christensen.
44071
44072 2008-09-01  Bruno Haible  <bruno@clisp.org>
44073
44074         New module 'findprog-lgpl'.
44075         * modules/findprog-lgpl: New file.
44076         * lib/findprog-lgpl.c: New file.
44077         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44078         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44079         to decide whether to use strdup or xstrdup, concatenated_filename or
44080         xconcatenated_filename.
44081
44082 2008-09-01  Bruno Haible  <bruno@clisp.org>
44083
44084         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44085         'xconcat-filename' (GPL).
44086         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44087         (License): Change to LGPLv2+.
44088         * modules/xconcat-filename: New file.
44089         * lib/concat-filename.h (concatenated_filename): Change specification.
44090         (xconcatenated_filename): New declaration.
44091         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44092         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44093         memory situations.
44094         * lib/xconcat-filename.c: New file.
44095         * NEWS: Mention the change.
44096         * lib/findprog.c: Include concat-filename.h, not filename.h.
44097         (find_in_path): Use xconcatenated_filename instead of
44098         concatenated_filename.
44099         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44100         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44101         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44102         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44103         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44104         instead of concatenated_filename.
44105         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44106         (execute_java_class): Use xconcatenated_filename instead of
44107         concatenated_filename.
44108         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44109         * modules/javacomp (Depends-on): Likewise.
44110         * modules/javaexec (Depends-on): Likewise.
44111
44112 2008-09-01  Bruno Haible  <bruno@clisp.org>
44113
44114         Split module 'filename' into 'filename' and 'concat-filename'.
44115         * modules/filename: Keep only lib/filename.h.
44116         (License): Change to LGPLv2+.
44117         * modules/concat-filename: New file, extracted from modules/filename.
44118         * lib/filename.h (concatenated_filename): Remove declaration.
44119         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44120         * lib/concat-filename.c: Include concat-filename.h.
44121         * NEWS: Mention the change.
44122
44123 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44124
44125         * lib/bitrotate.h (rotl8, rotr8): Add.
44126
44127         * modules/bitrotate (configure.ac): Need
44128         AC_REQUIRE([AC_C_INLINE]).
44129         (Description): Mention stdint.h.  Reported by Bruno Haible
44130         <bruno@clisp.org>.
44131
44132         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44133         Paolo Bonzini <bonzini@gnu.org>.
44134
44135 2008-08-31  Bruno Haible  <bruno@clisp.org>
44136
44137         Assume Solaris specific bi-arch conventions on Solaris systems.
44138         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44139         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44141         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44142         like acl_libdirstem.
44143         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44144         acl_libdirstem.
44145         * NEWS: Mention the change.
44146         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44147
44148 2008-08-31  Jim Meyering  <meyering@redhat.com>
44149
44150         * lib/strftime.h: Add comments describing the two added arguments.
44151
44152         remove duplicate #include directives
44153         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44154         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44155
44156 2008-08-31  Bruno Haible  <bruno@clisp.org>
44157
44158         New module 'sigpipe-die'.
44159         * modules/sigpipe-die: New file.
44160         * lib/sigpipe-die.h: New file.
44161         * lib/sigpipe-die.c: New file.
44162         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44163
44164 2008-08-31  Bruno Haible  <bruno@clisp.org>
44165
44166         Don't override previously installed signal handlers.
44167         * lib/fatal-signal.c (saved_sigactions): New variable.
44168         (uninstall_handlers): Reset the signal to the saved handler, not
44169         to SIG_DFL (except when ignored).
44170         (install_handlers): Save the previous handlers.
44171
44172 2008-08-30  Bruno Haible  <bruno@clisp.org>
44173
44174         * gnulib-tool (func_reset_sigpipe): New function.
44175         (func_get_automake_snippet, func_modules_transitive_closure,
44176         func_import): Invoke it before a join command that reads from stdin,
44177         to avoid "echo: write error: Broken pipe" error messages on stderr.
44178         Reported by Sam Steingold <sds@gnu.org>.
44179
44180 2008-08-30  Bruno Haible  <bruno@clisp.org>
44181
44182         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44183         Code copied from m4/open.m4.
44184         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44185         access and the filename ends in a slash. Code copied from lib/open.c.
44186         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44187         * tests/test-fopen.c (main): Check against bug with trailing slash.
44188
44189 2008-08-29  Bruno Haible  <bruno@clisp.org>
44190
44191         Avoid some "gcc -pedantic" warnings.
44192         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44193         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44194         * lib/dirent.in.h: Likewise.
44195         * lib/fcntl.in.h: Likewise.
44196         * lib/float.in.h: Likewise.
44197         * lib/iconv.in.h: Likewise.
44198         * lib/inttypes.in.h: Likewise.
44199         * lib/locale.in.h: Likewise.
44200         * lib/math.in.h: Likewise.
44201         * lib/netinet_in.in.h: Likewise.
44202         * lib/search.in.h: Likewise.
44203         * lib/signal.in.h: Likewise.
44204         * lib/stdarg.in.h: Likewise.
44205         * lib/stdint.in.h: Likewise.
44206         * lib/stdio.in.h: Likewise.
44207         * lib/stdlib.in.h: Likewise.
44208         * lib/string.in.h: Likewise.
44209         * lib/strings.in.h: Likewise.
44210         * lib/sys_select.in.h: Likewise.
44211         * lib/sys_socket.in.h: Likewise.
44212         * lib/sys_stat.in.h: Likewise.
44213         * lib/sys_time.in.h: Likewise.
44214         * lib/sysexits.in.h: Likewise.
44215         * lib/time.in.h: Likewise.
44216         * lib/unistd.in.h: Likewise.
44217         * lib/wchar.in.h: Likewise.
44218         * lib/wctype.in.h: Likewise.
44219         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44220         * modules/fchdir (Makefile.am): Likewise.
44221         * modules/fcntl (Makefile.am): Likewise.
44222         * modules/float (Makefile.am): Likewise.
44223         * modules/iconv_open (Makefile.am): Likewise.
44224         * modules/inttypes (Makefile.am): Likewise.
44225         * modules/locale (Makefile.am): Likewise.
44226         * modules/math (Makefile.am): Likewise.
44227         * modules/netinet_in (Makefile.am): Likewise.
44228         * modules/search (Makefile.am): Likewise.
44229         * modules/signal (Makefile.am): Likewise.
44230         * modules/stdarg (Makefile.am): Likewise.
44231         * modules/stdint (Makefile.am): Likewise.
44232         * modules/stdio (Makefile.am): Likewise.
44233         * modules/stdlib (Makefile.am): Likewise.
44234         * modules/string (Makefile.am): Likewise.
44235         * modules/strings (Makefile.am): Likewise.
44236         * modules/sys_select (Makefile.am): Likewise.
44237         * modules/sys_socket (Makefile.am): Likewise.
44238         * modules/sys_stat (Makefile.am): Likewise.
44239         * modules/sys_time (Makefile.am): Likewise.
44240         * modules/sysexits (Makefile.am): Likewise.
44241         * modules/time (Makefile.am): Likewise.
44242         * modules/unistd (Makefile.am): Likewise.
44243         * modules/wchar (Makefile.am): Likewise.
44244         * modules/wctype (Makefile.am): Likewise.
44245         Reported by Reuben Thomas <rrt@sc3d.org>.
44246
44247 2008-08-29  Bruno Haible  <bruno@clisp.org>
44248
44249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44250         any more.
44251
44252 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44253
44254         * MODULES.html.sh (Misc): Add bitrotate.
44255
44256         * modules/bitrotate: New file.
44257
44258         * lib/bitrotate.h: New file.
44259
44260         * modules/bitrotate-tests: New file.
44261
44262         * tests/test-bitrotate.c: New file.
44263
44264         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44265         on the bitrotate module.
44266
44267         * lib/arctwo.c: Use new bitrotate module.
44268
44269 2008-08-29  Jim Meyering  <meyering@redhat.com>
44270
44271         bootstrap: merge changes from coreutils
44272         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44273         of copied files.  Remove a kludge, now that this is fixed.
44274         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44275         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44276         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44277
44278 2008-08-29  Bruno Haible  <bruno@clisp.org>
44279
44280         * MODULES.html.sh: Remove --cvs-urls option.
44281
44282 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44283
44284         maint.mk: adjust to file name change
44285         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44286
44287 2008-08-28  Jim Meyering  <meyering@redhat.com>
44288
44289         * modules/getndelim2 (License): Relicense to LGPLv2+.
44290         Approved by Richard Stallman for the version of 1995, and by
44291         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44292
44293 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44294
44295         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44296         dummy if one is not available.  Do not touch them if
44297         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44298         (getc_maybe_unlocked): New.
44299         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44300
44301 2008-08-26  Eric Blake  <ebb9@byu.net>
44302
44303         doc/INSTALL: resync from autoconf
44304         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44305         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44306         moving...
44307         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44308         * INSTALL: Regenerate.
44309         * INSTALL.ISO: New file.
44310         * INSTALL.UTF-8: Likewise.
44311
44312 2008-08-26  Jim Meyering  <meyering@redhat.com>
44313
44314         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44315         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44316         these definitions conditional, so that they may be overridden, too.
44317
44318 2008-08-26  Bruno Haible  <bruno@clisp.org>
44319
44320         Generate INSTALL file variants with prettier quotes.
44321         * doc/Makefile (INSTALL_PRELUDE): New macro.
44322         (INSTALL): Use it.
44323         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44324
44325 2008-08-26  Bruno Haible  <bruno@clisp.org>
44326
44327         Run makeinfo in an English locale.
44328         * doc/Makefile (MAKEINFO): New variable.
44329
44330 2008-08-26  Bruno Haible  <bruno@clisp.org>
44331
44332         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44333         Suggested by Eric Blake.
44334
44335 2008-08-25  Bruno Haible  <bruno@clisp.org>
44336
44337         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44338
44339 2008-08-25  Eric Blake  <ebb9@byu.net>
44340
44341         c-stack: test that stack overflow can be caught
44342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44343         that platform allows handling stack overflow; at least OS/2 EMX
44344         has sigaltstack, but crashes before transferring control to
44345         handler on stack overflow.
44346         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44347         check for HAVE_STACK_OVERFLOW_HANDLING.
44348         Reported by Elbert Pol.
44349
44350 2008-08-25  Bruno Haible  <bruno@clisp.org>
44351
44352         * doc/posix-functions/strftime.texi: Fix description of strftime
44353         module.
44354
44355 2008-08-24  Bruno Haible  <bruno@clisp.org>
44356
44357         * tests/uniwidth/test-uc_width2.c: New file.
44358         * tests/uniwidth/test-uc_width2.sh: New file.
44359         * modules/uniwidth/width-tests (Files): Add the new files.
44360         (TESTS): Add uniwidth/test-uc_width2.sh.
44361         (TESTS_ENVIRONMENT): New variable.
44362         (check_PROGRAMS): Add test-uc_width2.
44363         (test_uc_width2_SOURCES): New variable.
44364
44365         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44366         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44367         not 0x00AB.
44368         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44369
44370 2008-08-22  Eric Blake  <ebb9@byu.net>
44371
44372         test-lock, test-tls: mention why a test is skipped
44373         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44374         skipped.
44375         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44376
44377         count-one-bits: relax license
44378         * modules/count-one-bits (License): Relicense to LGPLv2+.
44379         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44380
44381 2008-08-22  Andreas Schwab  <schwab@suse.de>
44382
44383         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44384         Remove spurious space in assignment.
44385
44386 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44387
44388         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44389         Paul Eggert <eggert@CS.UCLA.EDU>.
44390
44391 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44392
44393         * modules/gettext: Add m4/threadlib.m4.
44394
44395 2008-08-19  Eric Blake  <ebb9@byu.net>
44396
44397         test-c-stack: fix compilation failure on FreeBSD 5.0
44398         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44399         headers before <sys/resource.h>.
44400         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44401         the bug.
44402         Reported by Nelson H. F. Beebe.
44403
44404         strverscmp: migrate from "strverscmp.h" to <string.h>
44405         * modules/string (Makefile.am): Add new hooks.
44406         * modules/strverscmp (Files): Remove strverscmp.h.
44407         (Depends-on): Add string.
44408         (configure.ac): Add indicator.
44409         (Include): Mention new header.
44410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44411         defaults.
44412         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44413         results.
44414         * lib/strverscmp.h: Delete.
44415         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44416         * tests/test-strverscmp.c (includes): Adjust client.
44417         * lib/check-version.c (includes): Likewise.
44418         * NEWS: Document the change.
44419
44420         strverscmp: add unit test
44421         * modules/strverscmp-tests: New file.
44422         * tests/test-strverscmp.c: Likewise.
44423
44424 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44425
44426         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44427         regarding Windows crypto stuff, from Mono.
44428
44429 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44430
44431         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44432         if present, for intel RND.  Return error on failures.
44433
44434 2008-08-18  Ben Pfaff  <blp@gnu.org>
44435
44436         gitlog-to-changelog: give better diagnostic for failed pipe-open
44437         * build-aux/gitlog-to-changelog: Improve error message: suggest
44438         that the version of Git may be too old.
44439
44440 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44441
44442         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44443         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44444
44445 2008-08-18  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44448         pthread_in_use().
44449
44450 2008-08-18  Bruno Haible  <bruno@clisp.org>
44451
44452         * lib/glthread/threadlib.c: Include <pthread.h>.
44453
44454 2008-08-18  Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44457         glthread_recursive_lock_* macros.
44458         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44459         Fix syntax error.
44460
44461 2008-08-18  Bruno Haible  <bruno@clisp.org>
44462
44463         * lib/glthread/thread.c: Avoid forcing a context switch right after
44464         thread creation.
44465
44466 2008-08-17  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44469         * lib/glthread/thread.h: Provide Win32 specific implementation.
44470         * modules/thread (Files): Add lib/glthread/thread.c.
44471         (Depends-on): Add lock.
44472         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44473
44474 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44475
44476         New module 'yield'.
44477         * modules/yield: New file.
44478         * lib/glthread/yield.h: New file.
44479         * m4/yield.m4: New file.
44480         * MODULES.html.sh (Multithreading): Add yield.
44481
44482 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44483
44484         New module 'thread'.
44485         * modules/thread: New file.
44486         * lib/glthread/thread.h: New file.
44487         * m4/thread.m4: New file.
44488         * MODULES.html.sh (Multithreading): Add thread.
44489
44490 2008-08-17  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/glthread/lock.h: Include <stdlib.h> always.
44493         * lib/glthread/tls.h: Likewise.
44494         * lib/glthread/cond.h: Likewise.
44495
44496 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44497
44498         New module 'cond'.
44499         * modules/cond: New file.
44500         * lib/glthread/cond.h: New file.
44501         * lib/glthread/cond.c: New file.
44502         * m4/cond.m4: New file.
44503         * MODULES.html.sh (Multithreading): Add cond.
44504
44505 2008-08-16  Eric Blake  <ebb9@byu.net>
44506
44507         c-stack: fix regression on Irix 5.3 from 2008-06-21
44508         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44509         sa_sigaction...
44510         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44511         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44512         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44513         * modules/signal (Makefile.am): Use the value.
44514         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44515         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44516         * doc/posix-headers/signal.texi (signal.h): Document this
44517         portability issue.
44518         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44519         Reported by Tom G. Christensen.
44520
44521 2008-08-17  Bruno Haible  <bruno@clisp.org>
44522
44523         New module 'threadlib'.
44524         * modules/threadlib: New file.
44525         * lib/glthread/threadlib.c: New file, extracted from
44526         lib/glthread/lock.c.
44527         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44528         functions.
44529         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44530         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44531         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44532         macros.
44533         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44534         (gl_DISABLE_THREADS): Remove macro.
44535         * modules/lock (Files): Remove build-aux/config.rpath.
44536         (Depends-on): Remove havelib. Add threadlib.
44537         (configure.ac-early): Remove section.
44538         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44539         * modules/tls (Depends-on): Remove lock. Add threadlib.
44540         (Link): New section, copied from threadlib.
44541         * MODULES.html.sh (Multithreading): Add threadlib.
44542
44543 2008-08-14  Bruno Haible  <bruno@clisp.org>
44544
44545         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44546         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44547         glthread_rwlock_unlock, glthread_rwlock_destroy,
44548         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44549         glthread_recursive_lock_destroy): Define as macros always.
44550         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44551         glthread_lock_lock.
44552         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44553         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44554         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44555         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44556         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44557         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44558         (glthread_recursive_lock_lock_func): Renamed from
44559         glthread_recursive_lock_lock.
44560         (glthread_recursive_lock_unlock_func): Renamed from
44561         glthread_recursive_lock_unlock.
44562         (glthread_recursive_lock_destroy_func): Renamed from
44563         glthread_recursive_lock_destroy.
44564
44565 2008-08-14  Bruno Haible  <bruno@clisp.org>
44566
44567         * lib/glthread/lock.h: Renamed from lib/lock.h.
44568         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44569         * lib/glthread/tls.h: Renamed from lib/tls.h.
44570         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44571         * lib/fstrcmp.c: Update includes.
44572         * lib/strsignal.c: Update includes.
44573         * modules/lock (Files, Makefile.am): Update.
44574         (Include): Change to "glthread/lock.h".
44575         * modules/tls (Files, Makefile.am): Update.
44576         (Include): Change to "glthread/tls.h".
44577         * tests/test-lock.c: Update includes.
44578         * tests/test-tls.c: Update includes.
44579         * NEWS: Mention the renamed header files.
44580
44581 2008-08-11  Jim Meyering  <meyering@redhat.com>
44582
44583         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44584
44585 2008-08-11  Eric Blake  <ebb9@byu.net>
44586
44587         test-c-stack: avoid C99-ism
44588         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44589         before statement.
44590         Reported by Alain Guibert.
44591
44592 2008-08-10  Jim Meyering  <meyering@redhat.com>
44593
44594         ensure that return value of uinttostr et al are not ignored
44595         * lib/inttostr.h (__GNUC_PREREQ): Define.
44596         (__attribute_warn_unused_result__): Define.
44597         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44598
44599 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44600
44601         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44602         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44603
44604 2008-08-07  Jim Meyering  <meyering@redhat.com>
44605
44606         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44607
44608         * modules/mkstemp (License): Relicense under LGPLv2+.
44609         * modules/tempname (License): Likewise.
44610
44611 2008-08-06  Bruno Haible  <bruno@clisp.org>
44612
44613         * lib/poll.c (poll): Further micro-optimization.
44614
44615 2008-08-06  Jim Meyering  <meyering@redhat.com>
44616
44617         inet_pton.c: use locale-independent tolower
44618         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44619         (inet_pton6): Use c_tolower rather than tolower.
44620         * modules/inet_pton (Depends-on): Add c-ctype.
44621
44622 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44623
44624         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44625         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44626
44627 2008-08-06  Jim Meyering  <meyering@redhat.com>
44628
44629         * modules/inet_pton (License): Relicense under LGPLv2+.
44630
44631 2008-08-03  Bruno Haible  <bruno@clisp.org>
44632
44633         Additional non-aborting API for lock and tls.
44634         * lib/lock.h: Include <errno.h>.
44635         (glthread_lock_init): New macro/function.
44636         (gl_lock_init): Define as wrapper around glthread_lock_init.
44637         (glthread_lock_lock): New macro/function.
44638         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44639         (glthread_lock_unlock): New macro/function.
44640         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44641         (glthread_lock_destroy): New macro/function.
44642         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44643         (glthread_rwlock_init): New macro/function.
44644         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44645         (glthread_rwlock_rdlock): New macro/function.
44646         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44647         (glthread_rwlock_wrlock): New macro/function.
44648         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44649         (glthread_rwlock_unlock): New macro/function.
44650         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44651         (glthread_rwlock_destroy): New macro/function.
44652         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44653         (glthread_recursive_lock_init): New macro/function.
44654         (gl_recursive_lock_init): Define as wrapper around
44655         glthread_recursive_lock_init.
44656         (glthread_recursive_lock_lock): New macro/function.
44657         (gl_recursive_lock_lock): Define as wrapper around
44658         glthread_recursive_lock_lock.
44659         (glthread_recursive_lock_unlock): New macro/function.
44660         (gl_recursive_lock_unlock): Define as wrapper around
44661         glthread_recursive_lock_unlock.
44662         (glthread_recursive_lock_destroy): New macro/function.
44663         (gl_recursive_lock_destroy): Define as wrapper around
44664         glthread_recursive_lock_destroy.
44665         (glthread_once): New macro/function.
44666         (gl_once): Define as wrapper around glthread_once.
44667         Update function declarations.
44668         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44669         glthread_rwlock_init. Return error code.
44670         (glthread_rwlock_rdlock_multithreaded): Renamed from
44671         glthread_rwlock_rdlock. Return error code.
44672         (glthread_rwlock_wrlock_multithreaded): Renamed from
44673         glthread_rwlock_wrlock. Return error code.
44674         (glthread_rwlock_unlock_multithreaded): Renamed from
44675         glthread_rwlock_unlock. Return error code.
44676         (glthread_rwlock_destroy_multithreaded): Renamed from
44677         glthread_rwlock_destroy. Return error code.
44678         (glthread_recursive_lock_init_multithreaded): Renamed from
44679         glthread_recursive_lock_init. Return error code.
44680         (glthread_recursive_lock_lock_multithreaded): Renamed from
44681         glthread_recursive_lock_lock. Return error code.
44682         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44683         glthread_recursive_lock_unlock. Return error code.
44684         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44685         glthread_recursive_lock_destroy. Return error code.
44686         (glthread_once_call): Make static.
44687         (glthread_once_multithreaded): Renamed from glthread_once.
44688         * lib/tls.h: Include <errno.h>.
44689         (glthread_tls_key_init): New macro/function.
44690         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44691         (glthread_tls_set): New macro/function.
44692         (gl_tls_set): Define as wrapper around glthread_tls_set.
44693         (glthread_tls_key_destroy): New macro/function.
44694         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44695         Update function declarations.
44696         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44697         glthread_tls_get.
44698         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44699
44700 2008-08-04  Eric Blake  <ebb9@byu.net>
44701
44702         gnumakefile: use space, not TAB, outside of targets
44703         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44704
44705 2008-08-02  Jim Meyering  <meyering@redhat.com>
44706
44707         getdate.y: avoid locale-dependent date parsing failure
44708         In Turkish locales, getdate would fail to recognize keywords
44709         containing a lowercase "i".  The solution is not to rely on
44710         locale-sensitive case-conversion.
44711         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44712         (lookup_word): Use c_toupper in place of toupper.
44713         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44714         Reported by Vefa Bicakci <bicave@superonline.com> in
44715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44716         * modules/getdate (Depends-on): Add c-ctype.
44717
44718 2008-08-02  Bruno Haible  <bruno@clisp.org>
44719
44720         * gnulib-tool (func_import): When updating or creating a .gitignore
44721         file, prepend each added line with a slash, and ignore leading slashes
44722         from the existing lines.
44723         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44724
44725 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44726
44727         Portability fix for GNU make 3.79.1.
44728         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44729         versions do not understand.
44730
44731 2008-08-01  Bruno Haible  <bruno@clisp.org>
44732
44733         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44734         * tests/test-isnanf.h (zero): New variable.
44735         (main): Avoid literal -0.0f.
44736         * tests/test-isnand.h (zero): New variable.
44737         (main): Avoid literal -0.0.
44738         * tests/test-isnanl.h (zero): New variable.
44739         (main): Avoid literal -0.0L.
44740         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44741         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44742         -0.0, -0.0L.
44743         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44744         (test_signbitd): Avoid literal -0.0.
44745         (test_signbitl): Avoid literal -0.0L.
44746         * tests/test-ceilf1.c (zero): New variable.
44747         (main): Avoid literal -0.0f.
44748         * tests/test-ceill.c (zero): New variable.
44749         (main): Avoid literal -0.0L.
44750         * tests/test-floorf1.c (zero): New variable.
44751         (main): Avoid literal -0.0f.
44752         * tests/test-floorl.c (zero): New variable.
44753         (main): Avoid literal -0.0L.
44754         * tests/test-roundf1.c (zero): New variable.
44755         (main): Avoid literal -0.0f.
44756         * tests/test-round1.c (zero): New variable.
44757         (main): Avoid literal -0.0.
44758         * tests/test-roundl.c (zero): New variable.
44759         (main): Avoid literal -0.0L.
44760         * tests/test-truncf1.c (zero): New variable.
44761         (main): Avoid literal -0.0f.
44762         * tests/test-trunc1.c (zero): New variable.
44763         (main): Avoid literal -0.0.
44764         * tests/test-truncl.c (zero): New variable.
44765         (main): Avoid literal -0.0L.
44766         * tests/test-frexp.c (zero): New variable.
44767         (main): Avoid literal -0.0.
44768         * tests/test-frexpl.c (zero): New variable.
44769         (main): Avoid literal -0.0L.
44770         * tests/test-ldexpl.c (zero): New variable.
44771         (main): Avoid literal -0.0L.
44772         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44773         (zerod, zerol): New variables.
44774         (test_function): Avoid literals -0.0, -0.0L.
44775         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44776         (zerod, zerol): New variables.
44777         (test_function): Avoid literals -0.0, -0.0L.
44778         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44779         (zerod, zerol): New variables.
44780         (test_function): Avoid literals -0.0, -0.0L.
44781         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44782         (zerod, zerol): New variables.
44783         (test_function): Avoid literals -0.0, -0.0L.
44784         * tests/test-strtod.c (zero): New variable.
44785         (main): Avoid literal -0.0.
44786         Reported by Jonathan C. Patschke <jp@centtech.com>.
44787
44788 2008-07-31  Jim Meyering  <meyering@redhat.com>
44789
44790         sha256.h: correct definition of SHA224_DIGEST_SIZE
44791         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44792         Reported by Paulie Pena IV <paulie4@gmail.com>.
44793         Define as 224 / 8, rather than as a literal.
44794         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44795         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44796         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44797
44798 2008-07-31  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44801         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44802         Reported by Jonathan Patschke <jp@centtech.com>.
44803
44804 2008-07-31  Bruno Haible  <bruno@clisp.org>
44805
44806         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44807         Reported by Paolo Bonzini <bonzini@gnu.org>.
44808
44809 2008-07-30  Eric Blake  <ebb9@byu.net>
44810
44811         test-strtod: allow compilation without -lm
44812         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44813         Reported by Dennis Clarke <blastwave@gmail.com>.
44814
44815 2008-07-28  Jim Meyering  <meyering@redhat.com>
44816
44817         bootstrap: work also when there are no .po files in po/
44818         * build-aux/bootstrap (update_po_files): Complete the change
44819         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44820
44821 2008-07-27  Jim Meyering  <meyering@redhat.com>
44822
44823         * users.txt: Add zile.
44824
44825 2008-07-26  Ben Pfaff  <blp@gnu.org>
44826
44827         Add missing dependencies on new m4/exponent[fdl].m4 files.
44828         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44829         * modules/isnand-nolibm: Add m4/exponentd.m4.
44830         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44831         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44832         m4/isnan[fdl].m4, because the macros actually used moved.
44833         Reported by Jim Meyering.
44834
44835 2008-07-14  Ben Pfaff  <blp@gnu.org>
44836
44837         Add isinf module.
44838         * lib/isinf.c: New file.
44839         * lib/math.in.h: Define isinf macro if we have decided to replace
44840         it.
44841         * m4/isinf.m4: New file.
44842         * m4/math_h.m4: Initialize and substitute variables for isinf
44843         module.
44844         * modules/isinf: New file.
44845         * modules/isinf-tests: New file.
44846         * modules/math: Add substitutions for new module.
44847         * tests/test-isinf.c: New file.
44848         * doc/posix-functions/isinf.texi: Mention new module.
44849         * MODULES.html.sh: Mention new module.
44850
44851 2008-07-14  Ben Pfaff  <blp@gnu.org>
44852
44853         Factor out some macros for use by additional modules.
44854         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44855         exponentf.m4.
44856         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44857         exponentd.m4.
44858         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44859         file exponentl.m4.
44860         * m4/exponentf.m4: New file.
44861         * m4/exponentd.m4: New file.
44862         * m4/exponentl.m4: New file.
44863         * modules/isnanf: Use new file m4/exponentf.m4.
44864         * modules/isnand: Use new file m4/exponentd.m4.
44865         * modules/isnanl: Use new file m4/exponentl.m4.
44866
44867 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44868
44869         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44870         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44871         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44872         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44873
44874         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44875         readlink on platforms without PATH_MAX.
44876
44877 2008-07-21  Eric Blake  <ebb9@byu.net>
44878
44879         Warn, not fail, on stale version.
44880         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44881
44882         Don't allow installation with stale devel version number.
44883         * top/GNUmakefile (_is-install-target): New macro.
44884         (_curr-ver): Forbid installation with stale version number.
44885
44886 2008-07-20  Bruno Haible  <bruno@clisp.org>
44887
44888         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44889         TESTS_ENVIRONMENT.
44890         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44891
44892 2008-07-20  Bruno Haible  <bruno@clisp.org>
44893
44894         * lib/c-stack.h (c_stack_action): Add documentation.
44895         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44896
44897 2008-07-20  Bruno Haible  <bruno@clisp.org>
44898
44899         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44900         * modules/readlink (License): Likewise.
44901
44902 2008-07-17  Eric Blake  <ebb9@byu.net>
44903
44904         * modules/c-stack (Link): Fix typo.
44905
44906         Make c-stack use libsigsegv, when available.
44907         * modules/c-stack (Depends-on): Add libsigsegv.
44908         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44909         needed.
44910         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44911         (segv_handler, overflow_handler, c_stack_action)
44912         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44913         implementation when libsigsegv is available, but only when using
44914         the library is necessary.
44915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44916         comment, explaining why XSI check fails on Linux.
44917         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44918         * tests/test-c-stack2.sh: Tweak skip message.
44919         * NEWS: Document new link-time requirements.
44920
44921 2008-07-16  Eric Blake  <ebb9@byu.net>
44922
44923         c-stack: Expose false positives when not using libsigsegv.
44924         * modules/c-stack-tests (Files): Expand test.
44925         * tests/test-c-stack.c (main): Add means to conditionally trigger
44926         non-overflow SIGSEGV.
44927         * tests/test-c-stack2.sh: New file.
44928
44929 2008-07-14  Bruno Haible  <bruno@clisp.org>
44930
44931         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44932         Reported by Eric Blake.
44933
44934 2008-07-14  Sam Steingold  <sds@gnu.org>
44935             Bruno Haible  <bruno@clisp.org>
44936
44937         New module libsigsegv.
44938         * modules/libsigsegv: New file.
44939         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44940         modifications.
44941         * MODULES.html.sh (Signal handling): New section.
44942
44943 2008-07-14  Bruno Haible  <bruno@clisp.org>
44944
44945         * modules/unictype/ctype-* (Description): Add the word "function".
44946         Improves the resulting doc in MODULES.html.
44947
44948 2008-07-12  Ben Pfaff  <blp@gnu.org>
44949
44950         Add longlong module.
44951         * modules/longlong: New file.
44952
44953 2008-07-12  Bruno Haible  <bruno@clisp.org>
44954
44955         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44956         to empty.
44957
44958 2008-07-10  Ben Pfaff  <blp@gnu.org>
44959
44960         Add isnan module.
44961         * doc/posix-functions/isnan.texi: Mention new module.
44962         * lib/math.in.h: Define isnan macro if we have decided to replace
44963         it.
44964         * m4/isnan.m4: New file.
44965         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44966         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44967         also.
44968         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44969         redundancy.
44970         * m4/math_h.m4: Initialize and substitute variables for isnan
44971         module.
44972         * modules/isnan: New file.
44973         * modules/isnan-tests: New file.
44974         * modules/math: Add substitutions for new module.
44975         * tests/test-isnan.c: New file.
44976         * MODULES.html.sh: Mention new module.
44977
44978 2008-07-10  Ben Pfaff  <blp@gnu.org>
44979
44980         Add isnanf module.
44981         * lib/isnanf.m4: New file.
44982         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44983         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44984         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44985         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44986         * modules/isnanf: New file.
44987         * modules/isnanf-tests: New file.
44988         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44989         files.
44990         * tests/test-isnanf-nolibm.c: factored most of its contents into
44991         new file tests/test-isnanf.h.
44992         * tests/test-isnanf.h: New file.
44993         * tests/test-isnanf.c: New file.
44994         * MODULES.html.sh: Mention new module.
44995         * doc/glibc-functions/isnanf.texi: Mention new module.
44996
44997 2008-07-10  Ben Pfaff  <blp@gnu.org>
44998
44999         Add isnand module.
45000         * lib/isnand.h: New file.
45001         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45002         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45003         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45004         functionality also.
45005         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45006         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45007         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45008         * modules/isnand: New file.
45009         * modules/isnand-tests: New file.
45010         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45011         files.
45012         * tests/test-isnand-nolibm.c: factored most of its contents into
45013         new file tests/test-isnand.h.
45014         * tests/test-isnand.h: New file.
45015         * tests/test-isnand.c: New file.
45016         * MODULES.html.sh: Mention new module.
45017
45018 2008-07-10  Ben Pfaff  <blp@gnu.org>
45019
45020         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45021         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45022         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45023         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45024         * modules/isnanf-nolibm: Update references to renamed files.
45025         * modules/isnand-nolibm: Likewise.
45026         * modules/isnanf-nolibm-tests: Likewise.
45027         * modules/isnand-nolibm-tests: Likewise.
45028         * lib/frexp.c: Likewise.
45029         * lib/isfinite.c: Likewise.
45030         * lib/signbitd.c: Likewise.
45031         * lib/signbitf.c: Likewise.
45032         * lib/vasnprintf.c: Likewise.
45033         * tests/test-ceilf1.c: Likewise.
45034         * tests/test-ceilf2.c: Likewise.
45035         * tests/test-floorf1.c: Likewise.
45036         * tests/test-floorf2.c: Likewise.
45037         * tests/test-frexp.c: Likewise.
45038         * tests/test-round1.c: Likewise.
45039         * tests/test-round2.c: Likewise.
45040         * tests/test-roundf1.c: Likewise.
45041         * tests/test-strtod.c: Likewise.
45042         * tests/test-trunc1.c: Likewise.
45043         * tests/test-trunc2.c: Likewise.
45044         * tests/test-truncf1.c: Likewise.
45045         * tests/test-truncf2.c: Likewise.
45046         * NEWS: Mention the renamed header files.
45047
45048 2008-07-11  Jim Meyering  <meyering@redhat.com>
45049
45050         vc-list-files: make the last-resort awk code more portable
45051         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45052         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45053         does not support it.
45054
45055 2008-07-10  Eric Blake  <ebb9@byu.net>
45056
45057         Work with tar's bootstrap.
45058         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45059         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45060         an m4 comment.
45061
45062 2008-07-09  Jim Meyering  <meyering@redhat.com>
45063
45064         posix-shell.m4: fix typo that made this test malfunction
45065         * m4/posix-shell.m4: Remove capitalization in variable name.
45066
45067 2008-07-08  Bruno Haible  <bruno@clisp.org>
45068
45069         * m4/onceonly.m4: Update comments.
45070         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45071
45072 2008-07-04  Jim Meyering  <meyering@redhat.com>
45073
45074         * users.txt: Add vc-dwim.
45075         (bison, coreutils): Use the gitweb URL.
45076
45077 2008-07-03  Jim Meyering  <meyering@redhat.com>
45078
45079         * users.txt: Add libffcall.  From Sam Steingold.
45080
45081 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45082
45083         getdate.y: do not ignore TZ with relative day, month or year offset
45084         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45085         relative-date-handling, since otherwise, the latter would clobber the
45086         sole output (an updated Start value) of the tz-handling block.
45087         * tests/test-getdate.c: Tests for the fix
45088
45089 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45090
45091         Recognize 'foo_LIBRARIES += libgnu.a'.
45092         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45093         makefile snippet has already specified an installation location,
45094         also using '+='.
45095
45096 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45097
45098         getdate.y: factor out common actions
45099         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45100         Use them in place of open-coded actions.
45101
45102 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45103
45104         Add self-test for getdate module.
45105         * modules/getdate-tests: New file.
45106         * tests/test-getdate.c: New file.
45107
45108 2008-06-29  Bruno Haible  <bruno@clisp.org>
45109
45110         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45111         .gitignore.
45112         Reported by Sylvain Beucler <beuc@beuc.net>.
45113
45114 2008-06-29  Bruno Haible  <bruno@clisp.org>
45115
45116         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45117         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45118
45119 2008-06-29  Bruno Haible  <bruno@clisp.org>
45120
45121         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45122         EXTRA_DIST.
45123         Reported by Sylvain Beucler <beuc@beuc.net>.
45124
45125 2008-06-26  Jim Meyering  <meyering@redhat.com>
45126
45127         make several modules depend on the "open" module
45128         This provides slightly increased consistency when opening-for-write
45129         the name of a non-directory spelled with a trailing slash.
45130         * modules/chdir-safer: Likewise.
45131         * modules/chown: Likewise.
45132         * modules/clean-temp: Likewise.
45133         * modules/copy-file: Likewise.
45134         * modules/fchdir: Likewise.
45135         * modules/fcntl-safer: Likewise.
45136         * modules/pipe: Likewise.
45137         * modules/utime: Likewise.
45138         Prompted by Eric Blake and Bruno Haible.
45139
45140 2008-06-24  Andreas Schwab  <schwab@suse.de>
45141
45142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45143         literals can be used as initializers for global variables.
45144
45145 2008-06-23  Eric Blake  <ebb9@byu.net>
45146
45147         Make gnulib-cache.m4 easier to diff.
45148         * gnulib-tool (func_import): Allow newlines when reading cached
45149         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45150
45151 2008-06-23  Bruno Haible  <bruno@clisp.org>
45152
45153         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45154         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45155         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45156         m4/signalblocking.m4.
45157         (gl_PREREQ_SIGACTION): Don't invoke it.
45158         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45159         gl_PREREQ_SIG_HANDLER_H.
45160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45161         Don't check for sigaction here.
45162
45163 2008-06-23  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45166         (install_handlers): Don't set the SA_RESETHAND flag.
45167
45168 2008-06-23  Bruno Haible  <bruno@clisp.org>
45169
45170         * m4/sigaction.m4: Comment fixes.
45171         * lib/signal.in.h: Likewise.
45172
45173 2008-06-23  Eric Blake  <ebb9@byu.net>
45174
45175         Fix typo.
45176         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45177
45178         Avoid SA_ namespace.
45179         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45180         Reported by Ralf Wildenhues.
45181
45182         Avoid test failure due to SA_RESTORER.
45183         * tests/test-sigaction.c (SA_MASK): New macro.
45184         (main): Avoid failing due to extension flags being set.
45185         Reported by Jim Meyering.
45186
45187         Revert use of sig-handler.h in sigprocmask.c.
45188         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45189         it requires the existence of struct sigaction.
45190         * lib/sigprocmask.c (handler_t): Restore typedef.
45191         (rpl_signal, old_handlers): Use local type.
45192
45193 2008-06-22  Bruno Haible  <bruno@clisp.org>
45194
45195         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45196         conditionally.
45197         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45198
45199 2008-06-22  Bruno Haible  <bruno@clisp.org>
45200
45201         * doc/posix-functions/siginterrupt.texi: Move note.
45202
45203         * lib/signal.in.h (SA_RESTART): New macro.
45204         * lib/sigaction.c: Update comment.
45205
45206         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45207
45208         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45209         (gl_PREREQ_SIGPROCMASK): Invoke it.
45210         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45211
45212         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45213
45214         * lib/sigprocmask.c: Update a comment.
45215
45216 2008-06-21  Eric Blake  <ebb9@byu.net>
45217
45218         Use sigaction module rather than signal().
45219         * modules/c-stack (Depends-on): Add sigaction.
45220         * modules/fatal-signal (Depends-on): Likewise.
45221         * modules/nanosleep (Depends-on): Likewise.
45222         * modules/sigprocmask (Files): Add sig-handler.h.
45223         * modules/sigaction (Files): Likewise.
45224         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45225         Eggert.
45226         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45227         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45228         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45229         (init_fatal_signals): Likewise.
45230         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45231         (siginterrupt): Delete fallback.
45232         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45233         instead.
45234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45235         siginterrupt.
45236
45237         New module sigaction, for mingw.
45238         * modules/sigaction: New module...
45239         * modules/sigaction-tests: ...and its test.
45240         * m4/sigaction.m4: New file.
45241         * lib/sigaction.c: Likewise.
45242         * tests/test-sigaction.c: Likewise.
45243         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45244         * modules/signal (Makefile.am): Likewise.
45245         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45246         needed.
45247         * doc/posix-headers/signal.texi (signal.h): Mention provided
45248         types.
45249         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45250         that sigaction is preferable.
45251         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45252         module.
45253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45254         sigaction.
45255
45256         Improve robustness of sigprocmask by overriding signal.
45257         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45258         is in use.
45259         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45260         (SIGKILL, SIGSTOP): Provide fallbacks.
45261         (rpl_signal): Implement.
45262         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45263         signal can be called inside handlers.
45264
45265         Fix nanosleep module on mingw.
45266         * modules/nanosleep (Depends-on): Add sys_select.
45267         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45268
45269         Fix licensing of sigprocmask.
45270         * modules/raise (License): Relicense as LGPL.
45271
45272 2008-06-21  Bruno Haible  <bruno@clisp.org>
45273
45274         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45275         result if it contains question marks.
45276         Reported by Michael Geng <linux@michaelgeng.de>.
45277
45278 2008-06-19  Bruno Haible  <bruno@clisp.org>
45279
45280         Fix CVS-ism.
45281         * doc/gnulib.texi: Include updated-stamp.texi.
45282         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45283         (updated-stamp.texi): New rule.
45284         (gnulib.info): Depend on it.
45285         * doc/.gitignore: Add updated-stamp.texi.
45286         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45287
45288 2008-06-19  Bruno Haible  <bruno@clisp.org>
45289
45290         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45291         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45292
45293 2008-06-19  Eric Blake  <ebb9@byu.net>
45294
45295         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45296         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45297         Reported by Stepan Kasal.
45298
45299 2008-06-18  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45302         Reported by Eric Blake.
45303
45304 2008-06-18  Eric Blake  <ebb9@byu.net>
45305
45306         Work around cygwin 1.5.25 strsignal bug.
45307         * tests/test-strsignal.c: Allow for const char *.
45308         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45309
45310 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45311
45312         * users.txt: Update URL to article and add author/date
45313         information.
45314
45315 2008-06-17  Bruno Haible  <bruno@clisp.org>
45316
45317         New macro gl_DISABLE_THREADS.
45318         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45319         if the user did not pass --enable-threads or --disable-threads option.
45320         (gl_DISABLE_THREADS): New macro.
45321         Reported by Eric Blake <ebb9@byu.net>.
45322
45323 2008-06-17  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45326         when the macro ignores it.
45327         Based on a patch by Eric Blake <ebb9@byu.net>.
45328
45329 2008-06-17  Bruno Haible  <bruno@clisp.org>
45330
45331         * modules/tls (License): Change to LGPLv2+.
45332         Reported by Eric Blake.
45333
45334 2008-06-17  Eric Blake  <ebb9@byu.net>
45335
45336         Simplify c-stack prerequisites.
45337         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45339         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45340         check.
45341         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45342         <sys/resource.h>.
45343
45344         Move c-stack test into testsuite.
45345         * modules/c-stack-tests: New file.
45346         * lib/c-stack.c [DEBUG]: Move test program...
45347         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45348         fail test if sigaltstack is lacking.
45349         * tests/test-c-stack.sh: New driver file.
45350
45351 2008-06-16  Eric Blake  <ebb9@byu.net>
45352
45353         Use raise module consistently.
45354         * modules/fatal-signal (Depends-on): Add raise.
45355         * modules/sigprocmask (Depends-on): Likewise.
45356         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45357         * lib/sigprocmask.c (sigprocmask): Likewise.
45358         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45359         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45360
45361         Fix compliance bug in sigpending.
45362         * lib/sigprocmask.c (sigpending): Return pending array via
45363         parameter, not return value.
45364
45365 2008-06-14  Eric Blake  <ebb9@byu.net>
45366
45367         Improve obstack-printf test code.
45368         * tests/test-obstack-printf.c (test_function): Fix comment, and
45369         simplify usage of obstack_* in macros.  Add a test for coverage.
45370         Reported by Bruno Haible.
45371
45372 2008-06-14  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45375         array size as a constant, not as a const variable.
45376         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45377         AC_USE_SYSTEM_EXTENSIONS.
45378         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45379         Test whether the obstack_printf function actually exists.
45380         * modules/obstack-printf (Depends-on): Add extensions.
45381         (Include): Remove obstack.h.
45382         * modules/obstack-printf-posix (Depends-on): Add extensions.
45383         (Include): Remove obstack.h.
45384
45385 2008-06-13  Eric Blake  <ebb9@byu.net>
45386
45387         Add obstack-printf and obstack-printf-posix modules.
45388         * modules/obstack-printf: New file.
45389         * modules/obstack-printf-posix: Likewise.
45390         * MODULES.html.sh (Misc): Mention them.
45391         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45392         Likewise.
45393         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45394         Likewise.
45395         * modules/stdio (Makefile.am): Accomodate new modules.
45396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45397         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45398         Declare.
45399         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45400         functions.
45401         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45402         (gl_REPLACE_OBSTACK_PRINTF): New macros
45403         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45404         * tests/test-obstack-printf.c: New file.
45405         * modules/obstack-printf-tests: Likewise.
45406         * modules/obstack-printf-posix-tests: Likewise.
45407
45408 2008-06-11  Bruno Haible  <bruno@clisp.org>
45409
45410         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45411         * lib/open.c: Include errno.h.
45412         (open): Fail when attempting to write to a file that has a trailing
45413         slash.
45414         * tests/test-open.c (main): Test against trailing slash bug.
45415         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45416
45417 2008-06-10  Bruno Haible  <bruno@clisp.org>
45418
45419         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45420         for $? to work inside the trap command, with various /bin/sh-s.
45421         * tests/test-vc-list-files-cvs.sh: Likewise.
45422
45423 2008-06-10  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/acl-internal.h: Don't include gettext.h here.
45426         * lib/set-mode-acl.c: Include gettext.h here.
45427         * lib/copy-acl.c: Likewise.
45428
45429 2008-06-10  Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45432         * lib/wait-process.c (wait_subprocess): Likewise.
45433         * lib/execute.h (execute): Add termsigp argument.
45434         * lib/execute.c (execute): Likewise.
45435         * lib/csharpcomp.c (compile_csharp_using_pnet,
45436         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45437         * lib/csharpexec.c (execute_csharp_using_pnet,
45438         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45439         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45440         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45441         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45442         is_jikes_present): Update.
45443         * lib/javaexec.c (execute_java_class): Update.
45444         * lib/javaversion.c (execute_and_read_line): Update.
45445         * NEWS: Document the changes.
45446         Reported by Eric Blake.
45447
45448 2008-06-10  Eric Blake  <ebb9@byu.net>
45449
45450         Add missing include.
45451         * tests/test-strstr.c (includes): Add <signal.h>.
45452         * tests/test-strcasestr.c (includes): Likewise.
45453         * tests/test-memmem.c (includes): Likewise.
45454
45455 2008-06-10  Bruno Haible  <bruno@clisp.org>
45456
45457         * lib/wait-process.c (wait_subprocess): Add an assertion.
45458
45459 2008-06-10  Bruno Haible  <bruno@clisp.org>
45460
45461         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45462
45463 2008-06-10  Bruno Haible  <bruno@clisp.org>
45464
45465         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45466         using alarm().
45467         * tests/test-strcasestr.c (main): Likewise.
45468         * tests/test-strstr.c (main): Likewise.
45469
45470 2008-06-09  Bruno Haible  <bruno@clisp.org>
45471
45472         Work around the Solaris 10 ACE ACLs ABI change.
45473         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45474         declare if ACL_NO_TRIVIAL is present.
45475         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45476         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45477         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45478         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45479         define if ACL_NO_TRIVIAL is present.
45480         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45481         and use the current ABI.
45482         (file_has_acl): Use same #if condition as elsewhere.
45483         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45484         in use, and use the current ABI.
45485         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45486         Reported by Jim Meyering.
45487
45488 2008-06-09  Eric Blake  <ebb9@byu.net>
45489
45490         Work around environments that (stupidly) ignore SIGALRM.
45491         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45492         before using alarm().
45493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45495         Reported by Ian Beckwith <ianb@erislabs.net>.
45496
45497         Produce autobuild blurb earlier in log.
45498         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45499
45500 2008-06-09  Jim Meyering  <meyering@redhat.com>
45501         and OndÅ™ej Vašík  <ovasik@redhat.com>
45502
45503         utimens.c: correct kernel bug work-around
45504         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45505         failure, not success, and the kernel bug we're trying to work
45506         around affects not just the utimensat call, but also the fallback
45507         futimens call.
45508         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45509         not success.
45510         [HAVE_FUTIMENS]: Use the same work-around, here.
45511
45512 2008-06-09  Jim Meyering  <meyering@redhat.com>
45513
45514         add more guards around definition of ACE_-related code
45515         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45516         ALLOW and ACE_OWNER are also defined.
45517
45518 2008-06-08  Bruno Haible  <bruno@clisp.org>
45519
45520         * lib/acl-internal.h: Add me as co-author.
45521         * lib/file-has-acl.c: Likewise.
45522         * lib/set-mode-acl.c: Likewise.
45523         * lib/copy-acl.c: Likewise.
45524
45525 2008-06-08  Bruno Haible  <bruno@clisp.org>
45526
45527         Add support for AIX ACLs.
45528         * lib/acl-internal.h (acl_nontrivial): New declaration.
45529         * lib/file-has-acl.c (acl_nontrivial): New function.
45530         (file_has_acl): Add implementation using AIX 4 ACL API.
45531         * lib/set-mode-acl.c (qset_acl): Likewise.
45532         * lib/copy-acl.c (qcopy_acl): Likewise.
45533
45534 2008-06-08  Bruno Haible  <bruno@clisp.org>
45535
45536         Add support for HP-UX ACLs.
45537         * lib/acl-internal.h (acl_nontrivial): New declaration.
45538         * lib/file-has-acl.c (acl_nontrivial): New function.
45539         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45540         * lib/set-mode-acl.c (qset_acl): Likewise.
45541         * lib/copy-acl.c (qcopy_acl): Likewise.
45542
45543 2008-06-08  Bruno Haible  <bruno@clisp.org>
45544
45545         Add support for Cygwin ACLs.
45546         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45547         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45548         the chmod_or_fchmod call.
45549         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45550
45551 2008-06-08  Bruno Haible  <bruno@clisp.org>
45552
45553         Fix bug with setuid modes in Solaris 10+ code.
45554         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45555         succeeded, when the mode contains some special bits.
45556
45557 2008-06-08  Bruno Haible  <bruno@clisp.org>
45558
45559         Add support for Solaris 7..10 ACLs.
45560         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45561         declarations.
45562         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45563         functions.
45564         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45565         * lib/set-mode-acl.c (qset_acl): Likewise.
45566         * lib/copy-acl.c (qcopy_acl): Likewise.
45567
45568 2008-06-08  Bruno Haible  <bruno@clisp.org>
45569
45570         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45571         declaration.
45572         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45573         (acl_access_nontrivial): Remove MacOS X case.
45574         (file_has_acl): Use acl_extended_nontrivial.
45575         * lib/copy-acl.c (qcopy_acl): Likewise.
45576
45577 2008-06-08  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45580
45581 2008-06-08  Jim Meyering  <meyering@redhat.com>
45582
45583         * modules/acl (Maintainer): Add Bruno Haible.
45584
45585 2008-06-07  Bruno Haible  <bruno@clisp.org>
45586
45587         Improve support for Tru64 ACLs.
45588         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45589         ACL on OSF/1.
45590
45591 2008-06-07  Bruno Haible  <bruno@clisp.org>
45592
45593         Add support for MacOS X ACLs.
45594         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45595         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45596         * lib/set-mode-acl.c (qset_acl): Likewise.
45597         * lib/copy-acl.c (qcopy_acl): Likewise.
45598
45599 2008-06-07  Bruno Haible  <bruno@clisp.org>
45600
45601         Fix memory leak introduced on 2008-05-22.
45602         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45603         use.
45604
45605 2008-06-07  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45608         to construct an empty ACL.
45609
45610 2008-06-07  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45613         precisely.
45614         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45615
45616 2008-06-07  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45619         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45620
45621 2008-06-07  Bruno Haible  <bruno@clisp.org>
45622
45623         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45624         regardless of POSIX.
45625         * doc/posix-functions/_longjmp.texi: Likewise.
45626         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45627         SystemV platform in this case.
45628
45629 2008-06-06  Eric Blake  <ebb9@byu.net>
45630
45631         Document abort() bugs.
45632         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45633
45634         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45635         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45636         sigsetjmp.
45637         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45638         siglongjmp, but only as a macro.
45639         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45640         is obsolete.
45641         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45642
45643         Tweak documentation to cover cygwin argz bugs.
45644         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45645         argz bug fix; no code change needed since no cygwin releases
45646         occurred between the last fix and the bug being tested.
45647         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45648         module and recently fixed cygwin bugs.
45649         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45650         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45651         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45652         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45653         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45654         Likewise.
45655         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45656         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45657         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45658         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45659         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45660         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45661         Likewise.
45662
45663         Avoid gcc warning on cygwin.
45664         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45665         !ACL_NO_TRIVIAL]: Avoid unused variable.
45666
45667 2008-06-05  Eric Blake  <ebb9@byu.net>
45668
45669         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45670         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45671         git-version-gen fails to come up with a version.
45672         Reported by Simon Josefsson.
45673
45674 2008-06-05  Jim Meyering  <meyering@redhat.com>
45675             Paul Eggert  <eggert@cs.ucla.edu>
45676
45677         utimens.c: work around a probable Linux kernel bug
45678         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45679         appears to be a kernel bug that causes utimensat to return 280
45680         instead of 0, indicating success.
45681
45682 2008-06-04  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45685         2008-06-01 commit.
45686
45687 2008-06-04  Bruno Haible  <bruno@clisp.org>
45688
45689         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45690         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45691         (file_has_acl): Use it. Save errno afterwards.
45692         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45693
45694 2008-06-03  Bruno Haible  <bruno@clisp.org>
45695
45696         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45697         draft code. Simplify #ifs.
45698         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45699         Put Solaris code after POSIX-draft code. Fix comments regarding
45700         Solaris 10, HP-UX. Mention Cygwin.
45701         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45702
45703 2008-06-03  Eric Blake  <ebb9@byu.net>
45704
45705         Provide fallback for older kernels.
45706         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45707         Provide runtime fallback if kernel lacks support.
45708         Reported by Mike Frysinger.
45709
45710 2008-06-02  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45713         it exists.
45714
45715 2008-06-02  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45718         * lib/copy-acl.c (qcopy_acl): Update comment.
45719
45720 2008-06-02  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45723         like ACL APIs.
45724
45725 2008-06-02  Bruno Haible  <bruno@clisp.org>
45726
45727         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45728         * tests/test-set-mode-acl.sh: Likewise.
45729         * tests/test-copy-acl.sh: Likewise.
45730         * tests/test-copy-file.sh: Likewise.
45731
45732 2008-06-02  Bruno Haible  <bruno@clisp.org>
45733
45734         * tests/test-file-has-acl.sh: Remove unused code.
45735
45736 2008-06-01  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45739         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45740         messages.
45741         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45742
45743 2008-06-01  Bruno Haible  <bruno@clisp.org>
45744
45745         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45746         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45747         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45748         APIs.
45749         * modules/acl-tests (configure.ac): Remove tests now contained in
45750         m4/acl.m4.
45751
45752 2008-06-02  Jim Meyering  <meyering@redhat.com>
45753
45754         announce-gen: use a better key-server host name
45755         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45756         it may be more consistently reliable.  Suggested by Werner Koch
45757         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45758
45759 2008-06-01  Bruno Haible  <bruno@clisp.org>
45760
45761         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45762         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45763
45764 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45765
45766         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45767
45768 2008-06-01  Bruno Haible  <bruno@clisp.org>
45769
45770         New ACL tests.
45771         * tests/test-file-has-acl.sh: New file.
45772         * tests/test-file-has-acl.c: New file.
45773         * tests/test-set-mode-acl.sh: New file.
45774         * tests/test-set-mode-acl.c: New file.
45775         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45776         * tests/test-copy-acl.c: New file.
45777         * modules/acl-tests: New file, based on modules/copy-file-tests.
45778         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45779         (Depends-on): Add acl-tests.
45780         (configure.ac): Remove checks.
45781         (Makefile.am): Don't create test-sameacls program here any more.
45782
45783 2008-06-01  Bruno Haible  <bruno@clisp.org>
45784
45785         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45786         * tests/test-sameacls.c: Include progname.h.
45787         (main): Invoke set_program_name. Portability fixes for MacOS X,
45788         Solaris, HP-UX.
45789
45790 2008-06-01  Bruno Haible  <bruno@clisp.org>
45791
45792         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45793         function.
45794         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45795
45796 2008-06-01  Bruno Haible  <bruno@clisp.org>
45797
45798         * modules/rpmatch (Depends-on): Add strdup.
45799
45800 2008-06-01  Bruno Haible  <bruno@clisp.org>
45801
45802         * lib/pipe.c: Include unistd-safer.h.
45803         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45804         * modules/pipe (Depends-on): Add unistd-safer.
45805
45806 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45807
45808         * modules/autobuild (configure.ac): Call AB_INIT.
45809
45810 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45811
45812         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45813         Suggested by Bruno Haible <bruno@clisp.org>.
45814
45815 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45816
45817         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45818         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45819         <bruno@clisp.org>.
45820
45821 2008-05-29  Eric Blake  <ebb9@byu.net>
45822
45823         Prefer new POSIX 200x interfaces over futimesat.
45824         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45825         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45826         when available.
45827         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45828
45829 2008-05-28  Bruno Haible  <bruno@clisp.org>
45830
45831         * modules/stpcpy (License): Change to LGPLv2+.
45832         Requested by David Lutterkort <dlutter@redhat.com>.
45833
45834 2008-05-27  Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45837         current mingw.
45838         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45839
45840 2008-05-27  Bruno Haible  <bruno@clisp.org>
45841
45842         * modules/iconv_open (Link): New section, from module 'iconv'.
45843         * modules/striconv (Link): Likewise.
45844         * modules/striconveh (Link): Likewise.
45845         * modules/xstriconv (Link): Likewise.
45846         * modules/unicodeio (Link): Likewise.
45847         * modules/propername (Link): Likewise.
45848         Reported by Jim Meyering.
45849
45850 2008-05-26  Jim Meyering  <meyering@redhat.com>
45851
45852         sha256: do not artificially restrict buffer length to be < 2^32
45853         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45854         uint32_t to size_t.
45855         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45856         to match.
45857
45858         avoid unaligned access errors, e.g., on sparc
45859         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45860         direct access through a possibly-unaligned uint64* pointer.
45861         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45862         direct access through a possibly-unaligned uint32* pointer.
45863         Prompted by this patch from Tom "spot" Callaway:
45864         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45865
45866         sha512.c: fix typo in comment
45867         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45868
45869 2008-05-25  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45872         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45873         (Makefile.am): Update lib_SOURCES.
45874
45875 2008-05-25  Bruno Haible  <bruno@clisp.org>
45876
45877         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45878
45879 2008-05-25  Jim Meyering  <meyering@redhat.com>
45880
45881         useless-if-before-free: freed expr may have white-space differences
45882         * build-aux/useless-if-before-free: Recognize cases in which the
45883         freed expression differs from the tested one in embedded white
45884         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45885         $1 was used, so we can't make any regexp shy.  Improved tests now
45886         detect this.
45887
45888         useless-if-before-free: accept white space in the expression.
45889         * build-aux/useless-if-before-free: For now, any white space
45890         in the expression must be identical in the free argument.
45891
45892         useless-if-before-free: efficiency tweak
45893         * build-aux/useless-if-before-free: Make the expression-matching
45894         regexp "shy".
45895         Make the *outer* regexp shy, not the expr-matching one.
45896
45897         update code-in-comment to accept cast of free arg
45898         * build-aux/useless-if-before-free: Update regexp.
45899
45900 2008-05-25  Bruno Haible  <bruno@clisp.org>
45901
45902         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45903         * modules/copy-file-tests (Files, Makefile.am): Update.
45904         * tests/test-copy-file.c (func_test_copy): Update.
45905
45906 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45907
45908         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45909
45910 2008-05-23  Bruno Haible  <bruno@clisp.org>
45911
45912         Improve support for ACLs on OSF/1.
45913         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45914         Remove fallback for unknown flavors of ACLs.
45915
45916 2008-05-22  Bruno Haible  <bruno@clisp.org>
45917
45918         Add support for ACLs on OSF/1.
45919         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45920         replacements.
45921         (acl_free_text): New macro fallback.
45922         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45923         acl_free.
45924         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45925         acl_free_text function. Require AC_C_INLINE.
45926
45927 2008-05-22  Bruno Haible  <bruno@clisp.org>
45928
45929         Make copy_acl work on MacOS X 10.5.
45930         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45931         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45932         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45933         If MODE_INSIDE_ACL, don't assume that every system has the same text
45934         representation for ACLs as FreeBSD.
45935         * lib/copy-acl.c (copy_acl): Add support for platforms with
45936         !MODE_INSIDE_ACL.
45937         * lib/file-has-acl.c (file_has_acl): Likewise.
45938         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45939         FreeBSD, MacOS X, or IRIX, respectively.
45940
45941 2008-05-22  Bruno Haible  <bruno@clisp.org>
45942
45943         * lib/acl.h: Don't include <sys/acl.h>.
45944         (GETACLCNT): Move fallback to lib/acl-internal.h.
45945         * lib/acl-internal.h: Include <sys/acl.h> here.
45946         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45947
45948 2008-05-22  Bruno Haible  <bruno@clisp.org>
45949
45950         Split off copy_acl function to separate file.
45951         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45952         * lib/acl.c (copy_acl): Moved function to separate file.
45953         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45954         * modules/acl (Files): Add lib/copy-acl.c.
45955         (Makefiles.am): Augment lib_SOURCES.
45956
45957 2008-05-22  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/copy-file-tests: New file.
45960         * tests/test-copy-file.sh: New file.
45961         * tests/test-copy-file.c: New file.
45962         * tests/test-copy-file-sameacls.c: New file.
45963
45964 2008-05-22  Eric Blake  <ebb9@byu.net>
45965
45966         Avoid gcc warning.
45967         * tests/test-memcmp.c (main): Pass NULL indirectly.
45968
45969 2008-05-21  Bruno Haible  <bruno@clisp.org>
45970
45971         Add reference doc about ACLs.
45972         * doc/acl-resources.txt: New file.
45973         * doc/acl-cygwin.txt: New file.
45974
45975 2008-05-21  Bruno Haible  <bruno@clisp.org>
45976
45977         Avoid one more warning from gcc.
45978         * lib/vasnprintf.c (IF_LINT): Update comments.
45979         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45980
45981 2008-05-21  Jim Meyering  <meyering@redhat.com>
45982
45983         avoid a warning from gcc
45984         * lib/vasnprintf.c (IF_LINT): Define.
45985         (scale10_round_decimal_long_double):
45986         Use it to avoid a "may be used uninitialized" warning.
45987         (scale10_round_decimal_double): Likewise.
45988
45989 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45990
45991         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45992         declared.
45993
45994 2008-05-20  Bruno Haible  <bruno@clisp.org>
45995
45996         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45997         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45998
45999 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46000
46001         * modules/memcmp-tests: New file.
46002         * tests/test-memcmp.c: New file.
46003
46004 2008-05-19  Bruno Haible  <bruno@clisp.org>
46005
46006         * modules/propername (Notice, configure.ac): Put quoted "..." into
46007         --keyword option.
46008         * lib/propername.h: Update comments accordingly.
46009         Reported by Eric Blake.
46010
46011 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46012
46013         * modules/getpass-gnu (Depends-on): Add fseeko.
46014
46015 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46016
46017         * modules/base64-tests: New file.
46018
46019 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46020
46021         * lib/base64.c (base64_decode_ctx): If a decode context structure
46022         was passed in use it to ignore newlines.  If a context structure
46023         was _not_ passed in, continue to treat newlines as garbage (this
46024         is the historical behavior).  Formerly base64_decode.
46025         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46026         takes a decode context structure.
46027         * lib/base64.h (base64_decode): Macro for four-argument calls.
46028         (base64_decode_alloc): Likewise.
46029         * lib/base64.c (base64_decode_ctx): If a decode context structure
46030         was passed in use it to ignore newlines.  If a context structure
46031         was _not_ passed in, continue to treat newlines as garbage (this
46032         is the historical behavior).  Formerly base64_decode.
46033         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46034         takes a decode context structure.
46035         * lib/base64.h (base64_decode): Macro for four-argument calls.
46036         (base64_decode_alloc): Likewise.
46037
46038 2008-05-19  Jim Meyering  <meyering@redhat.com>
46039
46040         avoid a warning from gcc
46041         * lib/trim.c (IF_LINT): Define.
46042         (trim2): Use it to avoid a "may be used uninitialized" warning.
46043
46044         Fix doc typo.
46045         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46046
46047 2008-05-19  Bruno Haible  <bruno@clisp.org>
46048
46049         * doc/glibc-functions/getpass.texi: Document limits of other
46050         implementations.
46051
46052 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46053             Bruno Haible <bruno@clisp.org>
46054
46055         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46056
46057 2008-05-18  Bruno Haible  <bruno@clisp.org>
46058
46059         * modules/propername: New file, from GNU gettext.
46060         * lib/propername.h: New file, from GNU gettext.
46061         * lib/propername.c: New file, from GNU gettext.
46062         * MODULES.html.sh (Internationalization functions): Add propername.
46063
46064 2008-05-16  Jim Meyering  <meyering@redhat.com>
46065             Bruno Haible  <bruno@clisp.org>
46066
46067         Avoid some warnings from "gcc -Wshadow".
46068         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46069
46070 2008-05-15  Eric Blake  <ebb9@byu.net>
46071
46072         Extend previous patch to cygwin 1.7.0.
46073         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46074         fast implementation in cygwin >= 1.7.0.
46075         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46077
46078 2008-05-15  Bruno Haible  <bruno@clisp.org>
46079
46080         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46081         implementation in glibc >= 2.9.
46082         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46084
46085 2008-05-15  Bruno Haible  <bruno@clisp.org>
46086
46087         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46088         (Unicode string functions): Add unilbrk/*.
46089         Reported by Karl Berry.
46090
46091 2008-05-15  Eric Blake  <ebb9@byu.net>
46092
46093         Fix violation of <stdbool.h> replacement in regex.
46094         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46095         * lib/regexec.c (re_search_internal): Likewise.
46096         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46097
46098 2008-05-15  Jim Meyering  <meyering@redhat.com>
46099
46100         avoid distracting test output when git or cvs is not found
46101         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46102         * tests/test-vc-list-files-git.sh: Likewise.
46103
46104 2008-05-15  Eric Blake  <ebb9@byu.net>
46105
46106         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46107         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46108         glibc version.
46109         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46110         * doc/posix-functions/strstr.texi (strstr): Likewise.
46111         * lib/str-two-way.h (MAX): Sychronize with glibc.
46112
46113 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46114
46115         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46116         opr.ctx_type.
46117         (calc_first): Initialize constraint field.
46118         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46119         Fix grammar.
46120         (duplicate_node): Merge constraint field for all node types.
46121         (calc_eclosure_iter): Look at constraint field for all node types.
46122         * lib/regex_internal.c (create_cd_newstate): Don't look at
46123         opr.ctx_type.
46124
46125 2008-05-14  Bruno Haible  <bruno@clisp.org>
46126
46127         Help GCC to do better code generation.
46128         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46129         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46130         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46131         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46132         Declare with attribute 'malloc' if supported.
46133
46134 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46135
46136         use "echo STR|wc -c" rather than unportable "expr length STR"
46137         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46138         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46139
46140 2008-05-14  Jim Meyering  <meyering@redhat.com>
46141
46142         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46143         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46144         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46145         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46146         via Collin Lasse.
46147
46148 2008-05-14  Eric Blake  <ebb9@byu.net>
46149
46150         Avoid quadratic growth in gl_LIBSOURCES.
46151         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46152         Suggested by Bruno Haible.
46153
46154         Test xmemdup0.
46155         * modules/xmemdup0-tests: New file.
46156         * tests/test-xmemdup0.c: Likewise.
46157
46158 2008-05-13  Eric Blake  <ebb9@byu.net>
46159
46160         Split xmemdup0 into its own module.
46161         * modules/xmemdup0: New file.
46162         * lib/xmemdup0.h: Likewise.
46163         * lib/xmemdup0.c: Likewise.
46164         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46165         * lib/xalloc.h (xmemdup0): Remove.
46166         * lib/xmalloc.c (xmemdup0): Likewise.
46167
46168 2008-05-13  Eric Blake  <ebb9@byu.net>
46169             Bruno Haible  <bruno@clisp.org>
46170
46171         Reduce number of forks required during autoconf.
46172         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46173         and gl_LIBSOURCES_DIR.
46174         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46175         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46176         m4_syscmd per file.
46177         <m4_foreach_w>: Move...
46178         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46179
46180 2008-05-13  Eric Blake  <ebb9@byu.net>
46181
46182         * gnulib-tool: Fix various comment typos.
46183
46184 2008-05-12  Bruno Haible  <bruno@clisp.org>
46185
46186         Tailor the linebreaking algorithm.
46187         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46188
46189 2008-05-12  Bruno Haible  <bruno@clisp.org>
46190
46191         Update to Unicode 5.0.0.
46192         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46193         LBP_JV, LBP_JT. Redistribute values.
46194         (unilbrk_table): Change size.
46195         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46196         Unicode TR#14 rev. 22.
46197         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46198         LBP_JV, LBP_JT. Redistribute values.
46199         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46200         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46201         Update.
46202         * lib/unilbrk/lbrkprop1.h: Regenerated.
46203         * lib/unilbrk/lbrkprop2.h: Regenerated.
46204         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46205         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46206         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46207         Likewise.
46208         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46209         Likewise.
46210         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46211         result.
46212         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46213         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46214         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46215         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46216         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46217         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46218
46219 2008-05-11  Bruno Haible  <bruno@clisp.org>
46220
46221         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46222
46223 2008-05-11  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46226         * modules/unilbrk/gen-lbrk: New file.
46227
46228 2008-05-11  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46231         * m4/sha512.m4 (gl_SHA512): Likewise.
46232
46233 2008-05-11  Jim Meyering  <meyering@redhat.com>
46234
46235         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46236         * modules/crypto/sha256: New file.
46237         * modules/crypto/sha512: Likewise.
46238         * lib/sha256.c: Likewise.
46239         * lib/sha256.h: Likewise.
46240         * lib/sha512.c: Likewise.
46241         * lib/sha512.h: Likewise.
46242         * lib/u64.h: Likewise.
46243         * m4/sha256.m4: Likewise.
46244         * m4/sha512.m4: Likewise.
46245         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46246
46247 2008-05-10  Bruno Haible  <bruno@clisp.org>
46248
46249         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46250         (Input/Output <stdio.h>): Add xprintf.
46251         (Signal handling <signal.h>): Add strsignal.
46252         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46253         (Core language properties): Add func.
46254         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46255         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46256         strings.
46257         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46258         (Input/output): New section.
46259         (File system functions): Add openat-die, stat-macros.
46260         (Networking functions): Add sockets.
46261         (Unicode string functions): Add unictype/*.
46262         (Support for building libraries and executables): Add gperf.
46263         (Support for building documentation): Add agpl-3.0.
46264         (Misc): Add nocrash.
46265
46266 2008-05-10  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/unictype/gen-ctype: New file.
46269
46270 2008-05-10  Jim Meyering  <meyering@redhat.com>
46271
46272         Make chdir-safer.c more efficient on a system with no symlinks.
46273         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46274         also if ELOOP is zero.  Suggested by Bruno Haible.
46275
46276         Make chdir-safer.c slightly safer.
46277         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46278         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46279
46280         Avoid compile failure on systems without ELOOP (like mingw).
46281         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46282         Reported by Bruno Haible.
46283
46284 2008-05-10  Bruno Haible  <bruno@clisp.org>
46285
46286         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46287         (is_utf8_encoding): Use a case-insensitive comparison.
46288         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46289         streq.
46290
46291 2008-05-10  Bruno Haible  <bruno@clisp.org>
46292
46293         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46294         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46295         * lib/unilbrk/ulc-common.h (iconv_string_length,
46296         iconv_string_keeping_offsets): Remove declarations.
46297         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46298         Don't include <iconv.h>, streq.h, xsize.h.
46299         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46300         conversion.
46301         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46302         <iconv.h>, streq.h, xsize.h.
46303         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46304         conversion.
46305         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46306         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46307         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46308         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46309
46310 2008-05-10  Bruno Haible  <bruno@clisp.org>
46311
46312         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46313         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46314
46315         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46316         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46317
46318         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46319         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46320
46321         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46322         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46323
46324         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46325         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46326
46327         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46328         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46329
46330         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46331         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46332
46333         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46334         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46335
46336 2008-05-10  Bruno Haible  <bruno@clisp.org>
46337
46338         Split up 'linebreak' module.
46339         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46340         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46341         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46342         modifications.
46343         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46344         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46345         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46346         lib/linebreak.c.
46347         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46348         lib/linebreak.c.
46349         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46350         lib/linebreak.c.
46351         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46352         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46353         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46354         lib/linebreak.c.
46355         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46356         lib/linebreak.c.
46357         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46358         lib/linebreak.c.
46359         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46360         lib/linebreak.c.
46361         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46362         lib/linebreak.c.
46363         * modules/unilbrk/base: New file.
46364         * modules/unilbrk/tables: New file.
46365         * modules/unilbrk/u8-possible-linebreaks: New file.
46366         * modules/unilbrk/u16-possible-linebreaks: New file.
46367         * modules/unilbrk/u32-possible-linebreaks: New file.
46368         * modules/unilbrk/ulc-common: New file.
46369         * modules/unilbrk/ulc-possible-linebreaks: New file.
46370         * modules/unilbrk/u8-width-linebreaks: New file.
46371         * modules/unilbrk/u16-width-linebreaks: New file.
46372         * modules/unilbrk/u32-width-linebreaks: New file.
46373         * modules/unilbrk/ulc-width-linebreaks: New file.
46374         * lib/linebreak.h: Remove file.
46375         * lib/linebreak.c: Remove file.
46376         * m4/linebreak.m4: Remove file.
46377         * modules/linebreak: Remove file.
46378         * NEWS: Mention the changes.
46379
46380 2008-05-09  Eric Blake  <ebb9@byu.net>
46381
46382         Add xmemdup0.
46383         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46384         implementation.
46385         * lib/xmalloc.c (xmemdup0): New C implementation.
46386
46387 2008-05-08  Bruno Haible  <bruno@clisp.org>
46388
46389         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46390
46391 2008-05-07  Eric Blake  <ebb9@byu.net>
46392
46393         Support cross-compilation of <wctype.h>.
46394         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46395         AC_CACHE_CHECK.
46396
46397 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46398
46399         * build-aux/vc-list-files: Add support for bzr.
46400
46401 2008-05-03  Jim Meyering  <meyering@redhat.com>
46402
46403         avoid failed assertion with tight malloc
46404         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46405
46406 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46407
46408         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46409         are needed from arpa/inet.h.
46410         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46411         Reported by Bruno Haible.
46412
46413 2008-05-02  Jim Meyering  <meyering@redhat.com>
46414
46415         avoid compilation error on FreeBSD 6
46416         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46417
46418 2008-05-01  Jim Meyering  <meyering@redhat.com>
46419
46420         useless-if-before-free: correct --help's exit status description
46421         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46422         for one or more matches, etc.  Reported by Bruno Haible.
46423
46424         vc-list-files: make the stand-alone gnulib test work
46425         * modules/vc-list-files-tests (configure.ac):
46426         Define and AC_SUBST abs_aux_dir.
46427         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46428         $(abs_top_srcdir) to each script and having each of them
46429         duplicate the work of setting PATH, set PATH here, using
46430         the new variable, abs_aux_dir instead.
46431         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46432         * tests/test-vc-list-files-git.sh: Likewise.
46433         Reported by Bruno Haible.
46434
46435 2008-05-01  Bruno Haible  <bruno@clisp.org>
46436
46437         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46438         reallocation. Rename 'done' to 'found_delimiter'.
46439
46440 2008-05-01  Jim Meyering  <meyering@redhat.com>
46441
46442         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46443         * build-aux/vc-list-files: Use `...`, not $(...).
46444
46445 2008-04-30  Jim Meyering  <meyering@redhat.com>
46446
46447         add tests for vc-list-files
46448         * modules/vc-list-files-tests: New module.
46449         * tests/test-vc-list-files-cvs.sh: New file.
46450         * tests/test-vc-list-files-git.sh: New file.
46451
46452         avoid a warning from gcc
46453         * lib/getndelim2.c (IF_LINT): Define.
46454         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46455
46456         vc-list-files: work properly with build-aux/cvsu, too
46457         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46458         to all cvs-based clauses.
46459
46460         vc-list-files: work properly in the CVS+awk case, too
46461         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46462
46463         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46464         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46465         take more than one file argument, so .  Add quotes, just in case $dir
46466         ever contains a shell meta-character.  Prompted by Soren Hansen in
46467         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46468
46469 2008-04-29  Eric Blake  <ebb9@byu.net>
46470
46471         Optimize getndelim2 to use block operations when possible.
46472         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46473         freadseek, and memchr2.
46474         * lib/getndelim2.c (getndelim2): Use them for block reads.
46475
46476 2008-04-29  Bruno Haible  <bruno@clisp.org>
46477
46478         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46479         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46480         * modules/inet_ntop (Depends-on): Add extensions.
46481         * modules/inet_pton (Depends-on): Likewise.
46482         Reported by Simon Josefsson.
46483
46484 2008-04-29  Jim Meyering  <meyering@redhat.com>
46485
46486         When the is more than one match in a block, match all of them.
46487         * build-aux/useless-if-before-free: Iterate through each block
46488         until there are no more matches.
46489
46490         Fix broken useless-if-before-free script.
46491         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46492         the expression to match cast of argument to free-like function.
46493
46494 2008-04-29  Eric Blake  <ebb9@byu.net>
46495
46496         Use new header.
46497         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46498
46499 2008-04-29  Jim Meyering  <meyering@redhat.com>
46500
46501         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46502         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46503         by gnulib to exist and to declare e.g., inet_ntop.
46504         Don't include "inet_ntop.h", now removed.
46505
46506         * m4/arpa_inet_h.m4: Remove trailing blanks.
46507
46508 2008-04-29  Eric Blake  <ebb9@byu.net>
46509
46510         Silence valgrind on safe reads beyond potential array bounds.
46511         * lib/rawmemchr.valgrind: New file.
46512         * lib/strchrnul.valgrind: Likewise.
46513         * modules/rawmemchr (Files): Distribute new file.
46514         * modules/strchrnul (Files): Likewise.
46515         Suggested by Bruno Haible.
46516
46517 2008-04-29  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46520         (inet_ntop, inet_pton): Change portability warning's wording.
46521         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46522         Invoke gl_CHECK_NEXT_HEADERS.
46523         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46524         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46525         set ARPA_INET_H.
46526         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46527         * modules/arpa_inet (Description): No longer only for systems that
46528         lack it.
46529         (Depends-on): Add include_next.
46530         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46531         HAVE_ARPA_INET_H.
46532
46533 2008-04-29  Jim Meyering  <meyering@redhat.com>
46534
46535         * modules/mkdir (License): Re-license as LGPLv2+.
46536
46537 2008-04-29  Bruno Haible  <bruno@clisp.org>
46538
46539         * modules/rawmemchr (Maintainer): Set to Eric.
46540         * modules/strchrnul (Maintainer): Likewise.
46541
46542 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46543
46544         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46545         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46546
46547         * modules/arpa_inet (arpa/inet.h): Use them.
46548
46549 2008-04-28  Eric Blake  <ebb9@byu.net>
46550
46551         Test getndelim2.
46552         * modules/getndelim2-tests: New file.
46553         * tests/test-getndelim2.c: Likewise.
46554         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46555         stream.
46556         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46557
46558         * MODULES.html.sh: Document new module.
46559
46560 2008-04-20  Bruno Haible  <bruno@clisp.org>
46561
46562         * lib/c-stack.c (die): Use raise.
46563         * modules/c-stack (Depends-on): Add raise.
46564
46565 2008-04-28  Bruno Haible  <bruno@clisp.org>
46566
46567         Expect rpmatch to be declared.
46568         * lib/yesno.c (rpmatch): Remove declaration.
46569
46570         Declare rpmatch.
46571         * lib/stdlib.in.h (rpmatch): New declaration.
46572         * lib/rpmatch.c: Include <stdlib.h> first.
46573         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46574         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46576         HAVE_RPMATCH.
46577         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46578         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46579         (Include): Set to <stdlib.h>.
46580         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46581         HAVE_RPMATCH.
46582         * NEWS: Document the change.
46583
46584 2008-04-28  Bruno Haible  <bruno@clisp.org>
46585
46586         Change rpmatch to use nl_langinfo when appropriate.
46587         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46588         (N_): New macro.
46589         (localized_pattern): New function/macro.
46590         (try): Remove match, nomatch arguments. Copy the pattern into safe
46591         memory before caching it.
46592         (rpmatch): Use localized_pattern. Add translator comments.
46593         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46594         Suggested by Eric Blake.
46595         * modules/rpmatch (Depends-on): Add stdbool.
46596
46597 2008-04-28  Eric Blake  <ebb9@byu.net>
46598
46599         Add rawmemchr module, matching glibc.
46600         * modules/string (Makefile.am): New indicator.
46601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46602         * lib/string.in.h (rawmemchr): Declare when appropriate.
46603         * modules/rawmemchr: New file.
46604         * m4/rawmemchr.m4: Likewise.
46605         * lib/rawmemchr.c: Likewise.
46606         * modules/rawmemchr-tests: Likewise.
46607         * tests/test-rawmemchr.c: Likewise.
46608         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46609         module.
46610         * modules/strchrnul (Depends-on): Add rawmemchr.
46611         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46612
46613         Whitespace cleanup.
46614         * tests/test-strchrnul.c: Reindent.
46615         * lib/strchrnul.c: Likewise.
46616
46617         Optimize and test strchrnul.
46618         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46619         * modules/strchrnul-tests: New file.
46620         * tests/test-strchrnul.c: Likewise.
46621
46622         Remove intprops dependency.
46623         * modules/memchr (Depends-on): Remove intprops.
46624         * modules/memrchr (Depends-on): Likewise.
46625         * modules/memchr2 (Depends-on): Likewise.
46626         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46627         * lib/memrchr.c (__memrchr): Likewise.
46628         * lib/memrchr2.c (memchr2): Likewise.
46629         Reported by Simon Josefsson.
46630
46631 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46632
46633         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46634         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46635
46636 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46637
46638         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46639
46640         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46641
46642         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46643
46644         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46645         declarations.
46646         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46647
46648         * m4/inet_pton.m4: Don't check for header files.
46649
46650         * m4/inet_ntop.m4: Don't check for header files.
46651
46652 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46653
46654         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46655         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46656         trigger for cygwin).
46657         Reported by Bruno Haible  <bruno@clisp.org>.
46658
46659 2008-04-28  Bruno Haible  <bruno@clisp.org>
46660
46661         * doc/posix-functions/strdup.texi: Mention mingw problem.
46662
46663 2008-04-27  Bruno Haible  <bruno@clisp.org>
46664
46665         * modules/stat-time-tests (Depends-on): Add sleep.
46666         * tests/test-stat-time.c (force_unlink): New function.
46667         (cleanup): Use it.
46668         (test_mtime): Remove the ctime related tests.
46669         (test_ctime): New function, containing the ctime related tests.
46670         (main): Call test_ctime, except on native Windows platforms.
46671
46672 2008-04-27  Bruno Haible  <bruno@clisp.org>
46673
46674         * lib/rpmatch.c (rpmatch): Add some comments.
46675         Reported by James Youngman <jay@gnu.org>.
46676
46677 2008-04-27  Bruno Haible  <bruno@clisp.org>
46678
46679         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46680         quiet NaNs.
46681
46682 2008-04-27  Bruno Haible  <bruno@clisp.org>
46683
46684         Make test-yesno.sh work on mingw.
46685         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46686         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46687         (main): Set stdin to binary mode.
46688         * modules/yesno-tests (Depends-on): Add binary-io.
46689
46690 2008-04-27  Bruno Haible  <bruno@clisp.org>
46691
46692         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46693         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46694         argument that lie outside the IEEE 854 domain.
46695         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46696         (gl_ISFINITE): Use it.
46697         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46698
46699 2008-04-27  Bruno Haible  <bruno@clisp.org>
46700
46701         Allow local renaming in config.h.
46702         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46703
46704 2008-04-27  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/memchr.c (__memchr): Change type of 'i'.
46707         * lib/memchr2.c (memchr2): Likewise.
46708
46709 2008-04-26  Eric Blake  <ebb9@byu.net>
46710         and Bruno Haible  <bruno@clisp.org>
46711
46712         Optimize and test memrchr.
46713         * modules/memrchr (Depends-on): Add intprops.
46714         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46715         * modules/memrchr-tests: New file.
46716         * tests/test-memrchr.c: New file.
46717
46718 2008-04-26  Bruno Haible  <bruno@clisp.org>
46719
46720         Add tentative support for DragonFly BSD.
46721         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46722         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46723         fp.
46724         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46725         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46726         * lib/fpurge.c (fpurge): Likewise.
46727         * lib/freadable.c (freaadable): Likewise.
46728         * lib/freadahead.c (freadahead): Likewise.
46729         * lib/freading.c (freading): Likewise.
46730         * lib/freadptr.c (freadptr): Likewise.
46731         * lib/freadseek.c (freadptrinc): Likewise.
46732         * lib/fseeko.c (fseeko): Likewise.
46733         * lib/fseterr.c (fseterr): Likewise.
46734         * lib/fwritable.c (fwritable): Likewise.
46735         * lib/fwriting.c (fwriting): Likewise.
46736
46737 2008-04-26  Bruno Haible  <bruno@clisp.org>
46738
46739         * lib/stdio-impl.h: New file.
46740         * lib/fbufmode.c: Include stdio-impl.h.
46741         (fbufmode): Use fp_, remove redundant #defines.
46742         * lib/fflush.c: Include stdio-impl.h.
46743         (clear_ungetc_buffer): Remove redundant #defines.
46744         * lib/fpurge.c: Include stdio-impl.h.
46745         (fpurge): Remove redundant #defines.
46746         * lib/freadable.c: Include stdio-impl.h.
46747         (freadable): Remove redundant #defines.
46748         * lib/freadahead.c: Include stdio-impl.h.
46749         (freadahead): Remove redundant #defines.
46750         * lib/freading.c: Include stdio-impl.h.
46751         (freading): Remove redundant #defines.
46752         * lib/freadptr.c: Include stdio-impl.h.
46753         (freadptr): Remove redundant #defines.
46754         * lib/freadseek.c: Include stdio-impl.h.
46755         (freadptrinc): Remove redundant #defines.
46756         * lib/fseeko.c: Include stdio-impl.h.
46757         (rpl_fseeko): Remove redundant #defines.
46758         * lib/fseterr.c: Include stdio-impl.h.
46759         (fseterr): Remove redundant #defines.
46760         * lib/fwritable.c: Include stdio-impl.h.
46761         (fwritable: Remove redundant #defines.
46762         * lib/fwriting.c: Include stdio-impl.h.
46763         (fwriting): Remove redundant #defines.
46764         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46765         * modules/fflush (Files): Likewise.
46766         * modules/fpurge (Files): Likewise.
46767         * modules/freadable (Files): Likewise.
46768         * modules/freadahead (Files): Likewise.
46769         * modules/freading (Files): Likewise.
46770         * modules/freadptr (Files): Likewise.
46771         * modules/freadseek (Files): Likewise.
46772         * modules/fseeko (Files): Likewise.
46773         * modules/fseterr (Files): Likewise.
46774         * modules/fwritable (Files): Likewise.
46775         * modules/fwriting (Files): Likewise.
46776
46777 2008-04-26  Bruno Haible  <bruno@clisp.org>
46778
46779         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46780         restore_seek_optimization, update_fpos_cache): New functions, extracted
46781         from rpl_fflush.
46782         (rpl_fflush): Use them.
46783         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46784         (gl_REPLACE_FFLUSH): Use it.
46785
46786 2008-04-26  Bruno Haible  <bruno@clisp.org>
46787
46788         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46789         on Solaris.
46790         * tests/test-xstrtoimax.sh: Likewise.
46791         * tests/test-xstrtoumax.sh: Likewise.
46792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46793
46794 2008-04-26  Bruno Haible  <bruno@clisp.org>
46795
46796         * modules/memchr-tests: New file.
46797         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46798
46799 2008-04-26  Eric Blake  <ebb9@byu.net>
46800             Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/memchr.c: Include intprops.h.
46803         (__memchr): Optimize parallel detection of matching bytes. Rename local
46804         variables. Add explanatory comments.
46805
46806 2008-04-26  Bruno Haible  <bruno@clisp.org>
46807
46808         Fix module 'memchr', broken since 2000-10-28.
46809         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46810
46811 2008-04-26  Bruno Haible  <bruno@clisp.org>
46812
46813         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46814         comments.
46815
46816 2008-04-25  Eric Blake  <ebb9@byu.net>
46817
46818         Use native fstatat on cygwin 1.7.0.
46819         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46820         first.
46821
46822 2008-04-23  Eric Blake  <ebb9@byu.net>
46823
46824         Improve memchr2 performance.
46825         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46826         NUL bytes.
46827         * modules/memchr2 (Depends-on): Use intprops.h.
46828
46829 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46830
46831         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46832         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46833         <blp@cs.stanford.edu>.
46834
46835 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46836
46837         * lib/arpa_inet.in.h: New file.
46838
46839         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46840         (Makefile.am): Sed in substitute header file.
46841
46842         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46843         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46844
46845         * modules/inet_ntop (configure.ac): Use
46846         gl_ARPA_INET_MODULE_INDICATOR.
46847
46848         * modules/inet_pton (configure.ac): Use
46849         gl_ARPA_INET_MODULE_INDICATOR.
46850
46851 2008-04-22  Jim Meyering  <meyering@redhat.com>
46852
46853         * modules/verify (License): Re-license as LGPLv2+.
46854
46855 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46856
46857         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46858         parameter to void* as per POSIX standard (MinGW uses char*).
46859
46860 2008-04-21  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46863         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46864         Define to replacements if REPLACE_ISWCNTRL is 1.
46865         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46866         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46867         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46868         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46869         what it fixes.
46870         * doc/posix-functions/iswalpha.texi: Likewise.
46871         * doc/posix-functions/iswblank.texi: Likewise.
46872         * doc/posix-functions/iswcntrl.texi: Likewise.
46873         * doc/posix-functions/iswdigit.texi: Likewise.
46874         * doc/posix-functions/iswgraph.texi: Likewise.
46875         * doc/posix-functions/iswlower.texi: Likewise.
46876         * doc/posix-functions/iswprint.texi: Likewise.
46877         * doc/posix-functions/iswpunct.texi: Likewise.
46878         * doc/posix-functions/iswspace.texi: Likewise.
46879         * doc/posix-functions/iswupper.texi: Likewise.
46880         * doc/posix-functions/iswxdigit.texi: Likewise.
46881         Reported by Alain Guibert.
46882
46883 2008-04-21  Bruno Haible  <bruno@clisp.org>
46884
46885         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46886         Patch by Alain Guibert.
46887
46888 2008-04-21  Bruno Haible  <bruno@clisp.org>
46889
46890         Fix test failures on mingw.
46891         * tests/test-xstrtol.c (print_no_progname): New function.
46892         (main): Install it in error_print_progname hook.
46893         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46894         * tests/test-xstrtoimax.sh: Likewise.
46895         * tests/test-xstrtoumax.sh: Likewise.
46896
46897 2008-04-21  Bruno Haible  <bruno@clisp.org>
46898
46899         Fix test failure on mingw.
46900         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46901
46902 2008-04-21  Bruno Haible  <bruno@clisp.org>
46903
46904         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46905         Actually assign a value.
46906
46907 2008-04-20  Bruno Haible  <bruno@clisp.org>
46908
46909         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46910         take 2.
46911         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46912         'canonicalize-lgpl' module is also used.
46913         * lib/canonicalize-lgpl.c: Undo last change.
46914         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46915
46916 2008-04-20  Bruno Haible  <bruno@clisp.org>
46917
46918         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46919         config.h. Provide _mkdir based fallback for mingw.
46920         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46921         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46922         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46923         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46924         rather than defining mkdir in config.h.
46925         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46926         (gl_SYS_STAT_H_DEFAULTS): New macro.
46927         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46928         HAVE_IO_H any more.
46929         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46930         HAVE_DECL_MKDIR and HAVE_IO_H.
46931
46932 2008-04-20  Bruno Haible  <bruno@clisp.org>
46933
46934         * lib/isapipe.c: Port to native Windows platforms.
46935
46936 2008-04-20  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46939
46940 2008-04-21  Eric Blake  <ebb9@byu.net>
46941
46942         Work around preprocessors that don't handle UINTMAX_MAX.
46943         * lib/memchr2.c (memchr2): Avoid embedded #if.
46944         Reported by Alain Guibert, fix suggested by Bruno Haible.
46945
46946 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46947
46948         * doc/posix-functions/strftime.texi (strftime): Explain better
46949         Windows incompatibility.  Suggested by Micah Cowan
46950         <micah@cowan.name>.
46951
46952 2008-04-20  Bruno Haible  <bruno@clisp.org>
46953
46954         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46955         unistr/u8-mblen.
46956
46957 2008-04-20  Bruno Haible  <bruno@clisp.org>
46958
46959         Fix test failure on platforms with non-GNU iconv.
46960         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46961         (U_TO_U8): Use it, rather than u16_to_u8.
46962         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46963         units at the end of the input string.
46964         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46965
46966 2008-04-20  Bruno Haible  <bruno@clisp.org>
46967
46968         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46969         when the resulting length is 0.
46970         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46971
46972 2008-04-20  Bruno Haible  <bruno@clisp.org>
46973
46974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46975         works.
46976         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46977
46978 2008-04-20  Bruno Haible  <bruno@clisp.org>
46979
46980         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46981         * modules/tsearch-tests (configure.ac): Test for initstate function.
46982
46983 2008-04-20  Bruno Haible  <bruno@clisp.org>
46984
46985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46986         for nlink_t if missing.
46987         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46988
46989 2008-04-19  Bruno Haible  <bruno@clisp.org>
46990
46991         Work around snprintf bug on Linux libc5.
46992         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46994         gl_SNPRINTF_SIZE1.
46995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46996         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46997         that test failed.
46998         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46999         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47000         * modules/snprintf (Files): Add m4/printf.m4.
47001         * modules/vsnprintf (Files): Likewise.
47002         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47003         * doc/posix-functions/vsnprintf.texi: Likewise.
47004
47005 2008-04-19  Bruno Haible  <bruno@clisp.org>
47006
47007         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47008         from 0.0058 to less than 10^-7.
47009
47010 2008-04-19  Bruno Haible  <bruno@clisp.org>
47011
47012         Fix rounding when a precision is given.
47013         * lib/vasnprintf.c (is_borderline): New function.
47014         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47015         9...9x.
47016         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47017         %e, %g.
47018         * tests/test-vasprintf-posix.c (test_function): Likewise.
47019         * tests/test-snprintf-posix.h (test_function): Likewise.
47020         * tests/test-sprintf-posix.h (test_function): Likewise.
47021         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47022         * tests/test-printf-posix.h (test_function): Likewise.
47023         * tests/test-printf-posix.output: Update.
47024         Reported by John Darrington <john@darrington.wattle.id.au> via
47025         Ben Pfaff <blp@cs.stanford.edu>.
47026
47027 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47028
47029         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47030         Suggested by Bruno Haible <bruno@clisp.org>.
47031
47032 2008-04-17  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47035         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47036         implementation.
47037         Patch by Bruce Merry <bmerry@gmail.com>.
47038
47039 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47040
47041         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47042         doesn't work under Windows.
47043
47044 2008-04-16  Bruno Haible  <bruno@clisp.org>
47045
47046         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47047         New macros.
47048         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47049         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47050         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47051         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47052         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47053         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47054         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47055         macros.
47056         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47057         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47058         Northern Sotho, Uighur.
47059
47060 2008-04-16  Bruno Haible  <bruno@clisp.org>
47061
47062         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47063         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47064         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47065         Reported by Daniel Bergström <daniel@octocode.com>.
47066
47067 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47068             Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47071         function.
47072         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47073         New functions, mostly extracted from gl_locale_name_default.
47074         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47075
47076 2008-04-16  Eric Blake  <ebb9@byu.net>
47077
47078         Adjust strtod detection to catch glibc 2.7 bug.
47079         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47080         Reported by John Gatewood Ham.
47081
47082 2008-04-16  Bruno Haible  <bruno@clisp.org>
47083
47084         Add tentative support for Linux libc5.
47085         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47086         * lib/fpurge.c (fpurge): Likewise.
47087         * lib/freadable.c (freadable): Likewise.
47088         * lib/freadahead.c (freadahead): Likewise.
47089         * lib/freading.c (freading): Likewise.
47090         * lib/freadptr.c (freadptr): Likewise.
47091         * lib/freadseek.c (freadptrinc): Likewise.
47092         * lib/fseeko.c (rpl_fseeko): Likewise.
47093         * lib/fseterr.c (fseterr): Likewise.
47094         * lib/fwritable.c (fwritable): Likewise.
47095         * lib/fwriting.c (fwriting): Likewise.
47096         Reported by Alain Guibert <alguibert+bts@free.fr>.
47097
47098 2008-04-15  Bruno Haible  <bruno@clisp.org>
47099
47100         * modules/mathl (configure.ac): Define module indicator.
47101
47102 2008-04-15  Bruno Haible  <bruno@clisp.org>
47103
47104         * lib/logl.c (logl): Remove unused variables.
47105
47106 2008-04-15  Bruno Haible  <bruno@clisp.org>
47107
47108         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47109         fails.
47110
47111 2008-04-15  Bruno Haible  <bruno@clisp.org>
47112
47113         * lib/trim.c (trim2): Fix argument of isspace() macro.
47114
47115 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47116
47117         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47118         to 0.
47119         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47120
47121 2008-04-14  Bruno Haible  <bruno@clisp.org>
47122
47123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47124         AC_LANG_PROGRAM argument.
47125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47126         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47128         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47129         * m4/math_h.m4 (gl_MATH_H): Likewise.
47130         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47132         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47133         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47134         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47135         * m4/regex.m4 (gl_REGEX): Likewise.
47136         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47137         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47139         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47140         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47141         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47144
47145 2008-04-14  Jim Meyering  <meyering@redhat.com>
47146
47147         test-strtod: fix typos: s/abs/fabs/
47148         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47149
47150 2008-04-13  Bruno Haible  <bruno@clisp.org>
47151
47152         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47153         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47154         module is also used and while not building the reloc-wrapper.
47155
47156 2008-04-13  Bruno Haible  <bruno@clisp.org>
47157
47158         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47159
47160 2008-04-13  Bruno Haible  <bruno@clisp.org>
47161
47162         Fix AIX compilation failure introduced on 2008-04-02.
47163         * tests/test-frexp.c (exp): Undefine before redefining.
47164         * tests/test-frexpl.c (exp): Likewise.
47165
47166 2008-04-13  Bruno Haible  <bruno@clisp.org>
47167
47168         Work around a HP-UX stdio bug.
47169         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47170         * tests/test-ftello.c (main): Likewise.
47171         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47172         * doc/posix-functions/ftello.texi: Likewise.
47173
47174 2008-04-13  Bruno Haible  <bruno@clisp.org>
47175
47176         Make test-signbit pass on HP-UX/hppa.
47177         * tests/test-signbit.c (minus_zerol): New variable.
47178         (test_signbitl): Use it.
47179
47180 2008-04-13  Bruno Haible  <bruno@clisp.org>
47181
47182         Make truncl work on OSF/1 4.0.
47183         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47184         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47185         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47187         HAVE_DECL_TRUNCL.
47188         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47189         HAVE_DECL_TRUNCL.
47190         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47191
47192 2008-04-13  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47195
47196 2008-04-13  Bruno Haible  <bruno@clisp.org>
47197
47198         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47199         expression, so as to avoid HP-UX 11 cc compiler bug.
47200
47201 2008-04-13  Bruno Haible  <bruno@clisp.org>
47202
47203         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47204
47205 2008-04-13  Bruno Haible  <bruno@clisp.org>
47206
47207         * lib/git-merge-changelog.c: Remove empty declaration outside of
47208         functions.
47209
47210 2008-04-13  Bruno Haible  <bruno@clisp.org>
47211
47212         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47213
47214 2008-04-13  Bruno Haible  <bruno@clisp.org>
47215
47216         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47217         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47218         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47219         also if it exists but lacks definitions of the SHUT_* macros.
47220         * modules/sys_socket (Description): Update.
47221         Reported by Elbert Pol <e.pol@chello.nl>.
47222
47223 2008-04-13  Bruno Haible  <bruno@clisp.org>
47224
47225         * lib/localcharset.c (OS2): Don't redefine if already defined.
47226         Reported by Elbert Pol <e.pol@chello.nl>.
47227
47228 2008-04-13  Bruno Haible  <bruno@clisp.org>
47229
47230         * lib/binary-io.h [__EMX__]: Include <io.h>.
47231         Reported by Elbert Pol <e.pol@chello.nl>.
47232
47233 2008-04-12  Bruno Haible  <bruno@clisp.org>
47234
47235         * lib/fpucw.h: Enable the definitions also for x86_64.
47236         Needed for NetBSD/x86_64.
47237         Reported by Thomas Klausner <tk@giga.or.at>.
47238
47239 2008-04-12  Bruno Haible  <bruno@clisp.org>
47240
47241         * tests/test-strtod.c: Include isnand.h.
47242         (main): Use isnand instead of isnan.
47243         Reported by Jim Meyering.
47244
47245 2008-04-12  Bruno Haible  <bruno@clisp.org>
47246
47247         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47248         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47249
47250 2008-04-12  Jim Meyering  <meyering@redhat.com>
47251
47252         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47253
47254 2008-04-12  Bruno Haible  <bruno@clisp.org>
47255
47256         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47257         Reported by Elbert Pol <e.pol@chello.nl>.
47258
47259 2008-04-12  Eric Blake  <ebb9@byu.net>
47260
47261         Work around Solaris 10 math.h bug.
47262         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47263         (gl_MATH_H_DEFAULTS): Set up default.
47264         * modules/math (Makefile.am): Replace new indicators.
47265         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47266         * tests/test-math.c (main): Test this.
47267         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47268         * doc/posix-headers/math.texi (math.h): Mention bug.
47269         Reported by Nelson H. F. Beebe and Jim Meyering.
47270
47271 2008-04-11  Bruno Haible  <bruno@clisp.org>
47272
47273         Adapt to future versions of Apple GCC.
47274         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47275         Reported by Peter O'Gorman <peter@pogma.com>.
47276
47277 2008-04-11  Bruno Haible  <bruno@clisp.org>
47278
47279         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47280
47281 2008-04-11  Bruno Haible  <bruno@clisp.org>
47282
47283         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47284
47285         * modules/getaddrinfo-tests (Makefile.am): Define
47286         test_getaddrinfo_LDADD.
47287
47288 2008-04-11  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47291         (init): Fix syntax error.
47292         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47293         is declared.
47294
47295 2008-04-11  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47298         * modules/glob (Depends-on): Add stdbool.
47299
47300 2008-04-11  Bruno Haible  <bruno@clisp.org>
47301
47302         * lib/trim.c: Include <string.h>.
47303
47304 2008-04-11  Eric Blake  <ebb9@byu.net>
47305
47306         Avoid compile failure on OS/2.
47307         * lib/regex_internal.h (internal_function): Disable optimization
47308         on OS/2 (__EMX__), where it caused compiler error.
47309         Reported by Elbert Pol.
47310
47311 2008-04-11  Bruno Haible  <bruno@clisp.org>
47312
47313         Flush the standard error stream before aborting. Needed on mingw.
47314         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47315         * tests/test-array_list.c (ASSERT): Likewise.
47316         * tests/test-array_oset.c (ASSERT): Likewise.
47317         * tests/test-avltree_list.c (ASSERT): Likewise.
47318         * tests/test-avltree_oset.c (ASSERT): Likewise.
47319         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47320         * tests/test-binary-io.c (ASSERT): Likewise.
47321         * tests/test-byteswap.c (ASSERT): Likewise.
47322         * tests/test-c-ctype.c (ASSERT): Likewise.
47323         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47324         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47325         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47326         * tests/test-c-strstr.c (ASSERT): Likewise.
47327         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47328         * tests/test-canonicalize.c (ASSERT): Likewise.
47329         * tests/test-carray_list.c (ASSERT): Likewise.
47330         * tests/test-ceilf1.c (ASSERT): Likewise.
47331         * tests/test-ceilf2.c (ASSERT): Likewise.
47332         * tests/test-ceill.c (ASSERT): Likewise.
47333         * tests/test-count-one-bits.c (ASSERT): Likewise.
47334         * tests/test-fbufmode.c (ASSERT): Likewise.
47335         * tests/test-fflush2.c (ASSERT): Likewise.
47336         * tests/test-floorf1.c (ASSERT): Likewise.
47337         * tests/test-floorf2.c (ASSERT): Likewise.
47338         * tests/test-floorl.c (ASSERT): Likewise.
47339         * tests/test-fopen.c (ASSERT): Likewise.
47340         * tests/test-fpending.c (ASSERT): Likewise.
47341         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47342         * tests/test-fpurge.c (ASSERT): Likewise.
47343         * tests/test-freadable.c (ASSERT): Likewise.
47344         * tests/test-freadahead.c (ASSERT): Likewise.
47345         * tests/test-freading.c (ASSERT): Likewise.
47346         * tests/test-freadptr.c (ASSERT): Likewise.
47347         * tests/test-freadptr2.c (ASSERT): Likewise.
47348         * tests/test-freadseek.c (ASSERT): Likewise.
47349         * tests/test-freopen.c (ASSERT): Likewise.
47350         * tests/test-frexp.c (ASSERT): Likewise.
47351         * tests/test-frexpl.c (ASSERT): Likewise.
47352         * tests/test-fseek.c (ASSERT): Likewise.
47353         * tests/test-fseeko.c (ASSERT): Likewise.
47354         * tests/test-fstrcmp.c (ASSERT): Likewise.
47355         * tests/test-ftell.c (ASSERT): Likewise.
47356         * tests/test-ftello.c (ASSERT): Likewise.
47357         * tests/test-func.c (ASSERT): Likewise.
47358         * tests/test-fwritable.c (ASSERT): Likewise.
47359         * tests/test-fwriting.c (ASSERT): Likewise.
47360         * tests/test-getdelim.c (ASSERT): Likewise.
47361         * tests/test-getline.c (ASSERT): Likewise.
47362         * tests/test-i-ring.c (ASSERT): Likewise.
47363         * tests/test-iconv-utf.c (ASSERT): Likewise.
47364         * tests/test-iconv.c (ASSERT): Likewise.
47365         * tests/test-isfinite.c (ASSERT): Likewise.
47366         * tests/test-isnand.c (ASSERT): Likewise.
47367         * tests/test-isnanf.c (ASSERT): Likewise.
47368         * tests/test-isnanl.h (ASSERT): Likewise.
47369         * tests/test-ldexpl.c (ASSERT): Likewise.
47370         * tests/test-linked_list.c (ASSERT): Likewise.
47371         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47372         * tests/test-localename.c (ASSERT): Likewise.
47373         * tests/test-lseek.c (ASSERT): Likewise.
47374         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47375         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47376         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47377         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47378         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47379         * tests/test-mbschr.c (ASSERT): Likewise.
47380         * tests/test-mbscspn.c (ASSERT): Likewise.
47381         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47382         * tests/test-mbspbrk.c (ASSERT): Likewise.
47383         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47384         * tests/test-mbsrchr.c (ASSERT): Likewise.
47385         * tests/test-mbsspn.c (ASSERT): Likewise.
47386         * tests/test-mbsstr1.c (ASSERT): Likewise.
47387         * tests/test-mbsstr2.c (ASSERT): Likewise.
47388         * tests/test-mbsstr3.c (ASSERT): Likewise.
47389         * tests/test-memchr2.c (ASSERT): Likewise.
47390         * tests/test-memmem.c (ASSERT): Likewise.
47391         * tests/test-open.c (ASSERT): Likewise.
47392         * tests/test-printf-frexp.c (ASSERT): Likewise.
47393         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47394         * tests/test-printf-posix.c (ASSERT): Likewise.
47395         * tests/test-quotearg.c (ASSERT): Likewise.
47396         * tests/test-rbtree_list.c (ASSERT): Likewise.
47397         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47398         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47399         * tests/test-round1.c (ASSERT): Likewise.
47400         * tests/test-roundf1.c (ASSERT): Likewise.
47401         * tests/test-roundl.c (ASSERT): Likewise.
47402         * tests/test-signbit.c (ASSERT): Likewise.
47403         * tests/test-sleep.c (ASSERT): Likewise.
47404         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47405         * tests/test-snprintf.c (ASSERT): Likewise.
47406         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47407         * tests/test-stat-time.c (ASSERT): Likewise.
47408         * tests/test-strcasestr.c (ASSERT): Likewise.
47409         * tests/test-strerror.c (ASSERT): Likewise.
47410         * tests/test-striconv.c (ASSERT): Likewise.
47411         * tests/test-striconveh.c (ASSERT): Likewise.
47412         * tests/test-striconveha.c (ASSERT): Likewise.
47413         * tests/test-strsignal.c (ASSERT): Likewise.
47414         * tests/test-strstr.c (ASSERT): Likewise.
47415         * tests/test-strtod.c (ASSERT): Likewise.
47416         * tests/test-trunc1.c (ASSERT): Likewise.
47417         * tests/test-trunc2.c (ASSERT): Likewise.
47418         * tests/test-truncf1.c (ASSERT): Likewise.
47419         * tests/test-truncf2.c (ASSERT): Likewise.
47420         * tests/test-truncl.c (ASSERT): Likewise.
47421         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47422         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47423         * tests/test-vasnprintf.c (ASSERT): Likewise.
47424         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47425         * tests/test-vasprintf.c (ASSERT): Likewise.
47426         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47427         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47428         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47429         * tests/test-vsnprintf.c (ASSERT): Likewise.
47430         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47431         * tests/test-wcwidth.c (ASSERT): Likewise.
47432         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47433         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47434         * tests/test-xvasprintf.c (ASSERT): Likewise.
47435         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47436         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47437         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47438         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47439         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47440         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47441         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47442         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47443         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47444         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47445         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47446         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47447         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47448         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47449         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47450         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47451         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47452         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47453         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47454         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47455         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47456         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47457         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47458         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47459         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47460         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47461         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47462         * tests/unictype/test-combining.c (ASSERT): Likewise.
47463         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47464         * tests/unictype/test-digit.c (ASSERT): Likewise.
47465         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47466         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47467         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47468         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47469         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47470         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47471         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47472         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47473         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47474         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47475         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47476         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47477         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47478         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47479         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47480         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47481         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47482         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47483         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47484         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47485         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47486         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47487         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47488         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47489         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47490         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47491         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47492         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47493         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47494         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47495         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47496         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47497         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47498         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47499         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47500         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47501         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47502         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47503         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47504         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47505         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47506         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47507         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47508         Reported by Eric Blake.
47509
47510 2008-04-11  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/wchar.in.h: Tweak comment.
47513
47514 2008-04-11  Bruno Haible  <bruno@clisp.org>
47515
47516         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47517         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47518         gl_COMMON.
47519         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47520
47521 2008-04-11  Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47524
47525 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47526
47527         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47528         of attempting to use non-existing /dev/*random.  Based on patch
47529         from Adam Strzelecki <ono@java.pl> in
47530         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47531
47532 2008-04-08  Bruno Haible  <bruno@clisp.org>
47533
47534         Add tentative support for emx+gcc.
47535         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47536         * lib/fpurge.c (fpurge): Likewise.
47537         * lib/freadable.c (freadable): Likewise.
47538         * lib/freadahead.c (freadahead): Likewise.
47539         * lib/freading.c (freading): Likewise.
47540         * lib/freadptr.c (freadptr): Likewise.
47541         * lib/freadseek.c (freadptrinc): Likewise.
47542         * lib/fseeko.c (rpl_fseeko): Likewise.
47543         * lib/fseterr.c (fseterr): Likewise.
47544         * lib/fwritable.c (fwritable): Likewise.
47545         * lib/fwriting.c (fwriting): Likewise.
47546         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47547
47548 2008-04-09  Eric Blake  <ebb9@byu.net>
47549
47550         Avoid some autoconf warnings.
47551         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47552         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47553         * m4/afs.m4 (gl_AFS): Likewise.
47554         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47555         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47557         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47558         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47559         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47560         (AC_CHECK_DECLS_ONCE): Likewise.
47561         Rename file...
47562         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47563         gnulib-tool requires autoconf 2.59 or better.
47564         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47565
47566 2008-04-08  Eric Blake  <ebb9@byu.net>
47567
47568         Use 'git describe --match' if present (added in git 1.5.5).
47569         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47570         if possible.
47571
47572 2008-04-08  Bruno Haible  <bruno@clisp.org>
47573
47574         Add tentative support for OpenServer.
47575         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47576         _ptr, _cnt.
47577         * lib/fpurge.c (fpurge): Likewise.
47578         * lib/freadable.c (freadable): Likewise.
47579         * lib/freadahead.c (freadahead): Likewise.
47580         * lib/freading.c (freading): Likewise.
47581         * lib/freadptr.c (freadptr): Likewise.
47582         * lib/freadseek.c (freadptrinc): Likewise.
47583         * lib/fseeko.c (rpl_fseeko): Likewise.
47584         * lib/fseterr.c (fseterr): Likewise.
47585         * lib/fwritable.c (fwritable): Likewise.
47586         * lib/fwriting.c (fwriting): Likewise.
47587         Reported by Roger Cornelius <rac@tenzing.org> and
47588         Brian K. White <brian@aljex.com>.
47589
47590 2008-04-06  Jim Meyering  <meyering@redhat.com>
47591
47592         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47593
47594 2008-04-06  Bruno Haible  <bruno@clisp.org>
47595
47596         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47597         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47598         * tests/test-printf-posix.sh: Likewise.
47599         * tests/test-vfprintf-posix.sh: Likewise.
47600         * tests/test-vprintf-posix.sh: Likewise.
47601         * tests/test-xprintf-posix.sh: Likewise.
47602
47603 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47604
47605         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47606         hide error from 'ls', needed on OS/2.
47607         Report by Elbert Pol <elbert.pol@gmail.com>.
47608
47609 2008-04-04  Eric Blake  <ebb9@byu.net>
47610
47611         Make test-fseeko.c failures meaningful.
47612         * tests/test-fseeko.c: Print line number on failure.
47613         * tests/test-fseek.c: Likewise.
47614         Reported by Nelson H. F. Beebe.
47615
47616         Improve strtod bug detection check.
47617         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47618         required for Solaris 10.
47619         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47620
47621 2008-04-04  Bruno Haible  <bruno@clisp.org>
47622
47623         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47624         by m4/setenv.m4.
47625
47626 2008-04-03  Eric Blake  <ebb9@byu.net>
47627
47628         Ensure sane .version contents.
47629         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47630         version string.
47631         * build-aux/git-version-gen: Improve documentation.
47632
47633         Make GNU make output nicer.
47634         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47635         MAKECMDGOALS to enforce message for all command line targets.  Set
47636         srcdir for use in maint.mk.
47637
47638         Another maintainer tweak.
47639         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47640         a target that regenerates version.
47641
47642 2008-04-03  Jim Meyering  <meyering@redhat.com>
47643
47644         vc-list-files: don't cause coreutils "make po-check" failure
47645         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47646
47647 2008-04-03  Eric Blake  <ebb9@byu.net>
47648
47649         Allow VPATH usage of vc-list-files.
47650         * build-aux/vc-list-files (scriptversion): Add timestamp.
47651         (options): Add --help, --version, -C.
47652         (CVS): Support installed cvsu.
47653
47654 2008-04-02  Bruno Haible  <bruno@clisp.org>
47655
47656         Avoid some "statement with no effect" warnings from gcc.
47657         * tests/test-wctype.c (main): Explicitly ignore unused values.
47658         Reported by Jim Meyering.
47659
47660 2008-04-02  Jim Meyering  <meyering@redhat.com>
47661
47662         Avoid some warnings from "gcc -Wshadow".
47663         * tests/test-frexp.c (exp): Define to a different identifier.
47664         * tests/test-frexpl.c (exp): Likewise.
47665
47666 2008-04-03  Jim Meyering  <meyering@redhat.com>
47667
47668         bootstrap: remove dangling *.[ch] symlinks from lib
47669         * build-aux/bootstrap [dangling symlink removal]: Move find's
47670         -depth option to precede all others, to avoid a warning.
47671         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47672
47673 2008-04-02  Bruno Haible  <bruno@clisp.org>
47674
47675         Avoid some warnings from "gcc -Wshadow".
47676         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47677         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47678         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47679         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47680         Reported by Jim Meyering.
47681
47682 2008-04-01  Bruno Haible  <bruno@clisp.org>
47683
47684         Fix test to work on IRIX 6.5 with cc.
47685         * tests/test-math.c (numeric_equal): New function.
47686         (main): Use it.
47687
47688 2008-04-01  Bruno Haible  <bruno@clisp.org>
47689
47690         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47691
47692 2008-04-01  Bruno Haible  <bruno@clisp.org>
47693
47694         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47695         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47696         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47697         (Depends-on): Remove math.
47698
47699         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47700         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47701         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47702         (Depends-on): Remove math.
47703
47704         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47705         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47706         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47707         (Depends-on): Remove math.
47708         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47709         (Depends-on): Remove math.
47710
47711         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47712         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47713         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47714         (Depends-on): Remove math.
47715         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47716         (Depends-on): Remove math.
47717
47718         * tests/test-round1.c: Include nan.h.
47719         (main): Use NaNd instead of NAN.
47720         * modules/round-tests (Files): Add tests/nan.h.
47721
47722         * tests/test-trunc1.c: Include nan.h.
47723         (main): Use NaNd instead of NAN.
47724         * modules/trunc-tests (Files): Add tests/nan.h.
47725
47726         * tests/test-roundf1.c: Include nan.h.
47727         (main): Use NaNf instead of NAN.
47728         * modules/roundf-tests (Files): Add tests/nan.h.
47729
47730         * tests/test-truncf1.c: Include nan.h.
47731         (main): Use NaNf instead of NAN.
47732         * modules/truncf-tests (Files): Add tests/nan.h.
47733
47734         * tests/test-ceilf1.c: Include nan.h.
47735         (main): Use NaNf instead of NAN.
47736         * modules/ceilf-tests (Files): Add tests/nan.h.
47737
47738         * tests/test-floorf1.c: Include nan.h.
47739         (main): Use NaNf instead of NAN.
47740         * modules/floorf-tests (Files): Add tests/nan.h.
47741
47742         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47743         (main): Use NaNf instead of NAN.
47744         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47745
47746         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47747         (main): Use NaNd instead of NAN.
47748         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47749
47750         * tests/test-frexp.c: Include nan.h.
47751         (main): Use NaNd instead of NAN.
47752         * modules/frexp-tests (Files): Add tests/nan.h.
47753
47754         * lib/isnan.c: Don't include <math.h>.
47755         (FUNC): Don't use NAN macro.
47756         * modules/isnand-nolibm (Depends-on): Remove math.
47757         * modules/isnanf-nolibm (Depends-on): Remove math.
47758         * modules/isnanl (Depends-on): Remove math.
47759         * modules/isnanl-nolibm (Depends-on): Remove math.
47760
47761         * tests/nan.h: New file.
47762
47763 2008-04-01  Eric Blake  <ebb9@byu.net>
47764
47765         Fix typos.
47766         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47767         values to be the right type.
47768
47769         For now, cater to gnulib strtod inaccuracies.
47770         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47771         fractional results.  While not as nice from a QoI perspective, it
47772         is a quicker patch than correctly implementing decimal to binary
47773         rounding.
47774
47775 2008-03-31  Eric Blake  <ebb9@byu.net>
47776
47777         Guarantee a definition of NAN.
47778         * lib/math.in.h (NAN): Define if missing.
47779         * tests/test-math.c (main): Test it.
47780         * doc/posix-headers/math.texi (math.h): Document this.
47781         * lib/isnan.c (rpl_isnand): Use it.
47782         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47783         * tests/test-floorf1.c (NaN): Likewise.
47784         * tests/test-frexp.c (NaN): Likewise.
47785         * tests/test-isnand.c (NaN): Likewise.
47786         * tests/test-isnanf.c (NaN): Likewise.
47787         * tests/test-round1.c (NaN): Likewise.
47788         * tests/test-roundf1.c (NaN): Likewise.
47789         * tests/test-snprintf-posix.h (NaN): Likewise.
47790         * tests/test-sprintf-posix.h (NaN): Likewise.
47791         * tests/test-trunc1.c (NaN): Likewise.
47792         * tests/test-truncf1.c (NaN): Likewise.
47793         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47794         * tests/test-vasprintf-posix.c (NaN): Likewise.
47795         * modules/isnand-nolibm (Depends-on): Add math.
47796         * modules/isnanf-nolibm (Depends-on): Likewise.
47797         * modules/isnanl (Depends-on): Likewise.
47798         * modules/isnanl-nolibm (Depends-on): Likewise.
47799         * modules/snprintf-posix-tests (Depends-on): Likewise.
47800         * modules/sprintf-posix-tests (Depends-on): Likewise.
47801         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47802         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47803         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47804         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47805
47806 2008-03-31  Bruno Haible  <bruno@clisp.org>
47807
47808         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47809         * doc/posix-functions/strtod.texi: Likewise.
47810
47811 2008-03-31  Bruno Haible  <bruno@clisp.org>
47812
47813         * tests/test-strtod.c (main): Don't use C99 syntax.
47814
47815 2008-03-31  Bruno Haible  <bruno@clisp.org>
47816
47817         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47818         Reported by Eric Blake.
47819
47820 2008-03-31  Jim Meyering  <meyering@redhat.com>
47821
47822         Don't compare actual signbit return values.
47823         * tests/test-strtod.c (main): Rather, compare only their
47824         zero/non-zero nature.
47825
47826 2008-03-31  Eric Blake  <ebb9@byu.net>
47827
47828         More strtod documentation.
47829         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47830         failures as distinct bugs.
47831
47832 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47833
47834         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47835         Problem reported by Erik Benada in
47836         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47837
47838 2008-03-30  Bruno Haible  <bruno@clisp.org>
47839
47840         * tests/test-strtod.c: Add comments about which assertion fails on which
47841         platform.
47842         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47843
47844 2008-03-30  Eric Blake  <ebb9@byu.net>
47845
47846         Test signbit behavior on zeros.
47847         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47848         (test_signbitd, test_signbitl): Likewise.
47849
47850         More strtod touchups.
47851         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47852         sign of negative underflow, for now.  Use .5, not .1.
47853         * doc/posix-functions/strtod.texi (strtod): Mention these
47854         limitations.
47855         Reported by Jim Meyering.
47856
47857 2008-03-30  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47860         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47861
47862 2008-03-30  Bruno Haible  <bruno@clisp.org>
47863
47864         Avoid failure when attempting to return empty iconv results on some
47865         platforms.
47866         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47867         allocation, don't report ENOMEM when the resulting string is empty.
47868
47869 2008-03-30  Bruno Haible  <bruno@clisp.org>
47870
47871         Fix buffer overrun.
47872         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47873         Don't consider the width for tmp_length. Check count against tmp_length
47874         before doing the padding. Ensure enough allocation during padding.
47875
47876 2008-03-30  Eric Blake  <ebb9@byu.net>
47877
47878         strtod touchups.
47879         * lib/strtod.c (strtod): Avoid compiler warnings.
47880         Reported by Jim Meyering.
47881
47882 2008-03-30  Bruno Haible  <bruno@clisp.org>
47883
47884         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47885         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47886         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47887         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47888         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47889         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47890         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47891         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47892
47893         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47894         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47895         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47896         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47897         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47898         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47899         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47900         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47901
47902         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47903         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47904         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47905         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47906         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47907         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47908         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47909         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47910
47911         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47912         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47913
47914         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47915         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47916
47917         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47918         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47919
47920         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47922         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47923
47924         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47926         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47927
47928         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47930         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47931
47932         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47934         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47935
47936         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47937         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47938         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47939         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47940         (Depends-on): Add EOVERFLOW.
47941         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47942         (Depends-on): Add EOVERFLOW.
47943         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47944         (Depends-on): Add EOVERFLOW.
47945         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47946         (Depends-on): Add EOVERFLOW.
47947         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47948         (Depends-on): Add EOVERFLOW.
47949         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47950         (Depends-on): Add EOVERFLOW.
47951         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47952         (Depends-on): Add EOVERFLOW.
47953         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47954         (Depends-on): Add EOVERFLOW.
47955
47956         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47958         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47959
47960         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47962         * modules/snprintf (Depends-on): Add EOVERFLOW.
47963
47964         * lib/poll.c (EOVERFLOW): Remove fallback.
47965         * modules/poll (Depends-on): Add EOVERFLOW.
47966
47967         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47968         * modules/getugroups (Depends-on): Add EOVERFLOW.
47969
47970         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47971         * modules/getdelim (Depends-on): Add EOVERFLOW.
47972
47973         * lib/ftell.c (EOVERFLOW): Remove fallback.
47974         * modules/ftell (Depends-on): Add EOVERFLOW.
47975
47976         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47978         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47979
47980         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47981
47982         * modules/EOVERFLOW-tests: New file.
47983         * tests/test-EOVERFLOW.c: New file.
47984
47985         * modules/EOVERFLOW: New file.
47986         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47987
47988 2008-03-30  Bruno Haible  <bruno@clisp.org>
47989
47990         Fix bug introduced on 2007-06-10.
47991         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47992         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47993
47994 2008-03-30  Bruno Haible  <bruno@clisp.org>
47995
47996         Improve freadseek's efficiency after ungetc.
47997         * lib/freadseek.c: Include freadahead.h.
47998         (freadptrinc): New function, extracted from freadseek.
47999         (freadseek): Use it in a loop. Use freadahead to determine the number
48000         of loop iterations.
48001         * modules/freadseek (Depends-on): Add freadahead.
48002         (configure.ac): Require AC_C_INLINE.
48003
48004 2008-03-30  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/freadseek.c (freadseek): Don't ignore the return value of
48007         freadptr.
48008
48009 2008-03-29  Eric Blake  <ebb9@byu.net>
48010
48011         Add hex float support.
48012         * modules/strtod (Depends-on): Add c-ctype.
48013         (Link): Mention POW_LIB.
48014         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48015         whitespace between 'e' and exponent.
48016         * tests/test-strtod.c (main): Enable hex float tests.
48017         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48018         now provides.
48019
48020         Document various strtod bugs, with some fixes.
48021         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48022         "-0x", "inf", "nan", and hex constants.
48023         * doc/posix-functions/atof.texi (atof): Likewise.
48024         * modules/stdlib (Makefile.am): Support strtod.
48025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48026         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48027         detect additional strtod bugs.
48028         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48029         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48030         bool where appropriate.  Parse 'inf' and 'nan'.
48031         * tests/test-strtod.c: New file.
48032         * modules/strtod (Depends-on): Add stdbool, stdlib.
48033         (configure.ac): Turn on module indicator.
48034         * modules/strtod-tests: New module.
48035
48036 2008-03-29  Eric Blake  <ebb9@byu.net>
48037
48038         Fix ftell on mingw.
48039         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48040         * modules/ftell-tests (Depends-on): Add binary-io.
48041         * modules/ftello-tests (Depends-on): Likewise.
48042         * tests/test-ftell.c (main): Enhance test to cover behavior after
48043         ungetc.  Enforce binary mode.
48044         * tests/test-ftello.c (main): Likewise.
48045
48046         Pass test-freadseek on cygwin.
48047         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48048         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48049         ungetc buffer.
48050
48051         * tests/test-fflush2.c (main): Fix typo.
48052
48053 2008-03-29  Bruno Haible  <bruno@clisp.org>
48054
48055         * tests/test-fflush2.c (main): Temporarily disable the contents of
48056         this test.
48057         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48058         Reported by Eric Blake.
48059
48060 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48061
48062         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48063         (GC_SHA224_DIGEST_SIZE): Add.
48064
48065         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48066         (gc_hash_digest_length): Likewise.
48067         (gc_hash_buffer): Likewise.
48068
48069 2008-03-25  Bruno Haible  <bruno@clisp.org>
48070
48071         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48072         detail which gettext release to use.
48073         Reported by Simon Josefsson.
48074
48075 2008-03-26  Jim Meyering  <meyering@redhat.com>
48076
48077         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48078         * modules/gnumakefile (clean-GNUmakefile): Also, use
48079         test ... && ... || : syntax rather than if-then ... fi.
48080
48081         gnumakefile: Don't double-quote-expand $(VPATH) value.
48082         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48083
48084 2008-03-24  Eric Blake  <ebb9@byu.net>
48085
48086         Alter GNUmakefile to install into top directory.
48087         * modules/maintainer-makefile: Split, and add dependency...
48088         * modules/gnumakefile: to this new module.
48089         * build-aux/GNUmakefile: Move...
48090         * top/GNUmakefile: ...here.
48091         * build-aux/maint.mk: Move...
48092         * top/maint.mk: ...here.
48093         * MODULES.html.sh (Support for maintaining...): Document new
48094         module.
48095
48096 2008-03-23  Bruno Haible  <bruno@clisp.org>
48097
48098         * gnulib-tool: New options --vc-files, --no-vc-files.
48099         (func_usage): Document them.
48100         (vc_files): New variable.
48101         (func_import): Consider vc_files.
48102         (func_create_testdir): Set vc_files to empty.
48103         Suggested by Jim Meyering and Karl Berry.
48104
48105 2008-03-23  Bruno Haible  <bruno@clisp.org>
48106
48107         Fix regex compilation error on HP-UX 11.
48108         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48109         * modules/regex (Files): Add m4/mbstate_t.m4.
48110         Reported by Ton Voon <ton.voon@altinity.com>.
48111
48112 2008-03-23  Bruno Haible  <bruno@clisp.org>
48113
48114         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48115
48116 2008-03-23  Eric Blake  <ebb9@byu.net>
48117             Bruno Haible  <bruno@clisp.org>
48118
48119         Install files from top/ in the destination directory.
48120         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48121         augmentation also for the files from top/.
48122         (func_import, func_create_testdir): Rewrite file names:
48123         top/filename -> filename.
48124
48125 2008-03-23  Bruno Haible  <bruno@clisp.org>
48126
48127         Tweak "gnulib --version" output.
48128         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48129
48130 2008-03-23  Bruno Haible  <bruno@clisp.org>
48131
48132         Tweak "gnulib --version" output.
48133         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48134         rather than contents of ChangeLog, when possible.
48135
48136 2008-03-21  Eric Blake  <ebb9@byu.net>
48137
48138         More --version tweaks.
48139         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48140         date of last ChangeLog entry.
48141
48142 2008-03-21  Jim Meyering  <meyering@redhat.com>
48143
48144         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48145
48146 2008-03-20  Eric Blake  <ebb9@byu.net>
48147
48148         VPATH fix.
48149         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48150
48151 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48152
48153         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48154         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48155
48156 2008-03-20  Eric Blake  <ebb9@byu.net>
48157
48158         Sync GNUmakefile with coreutils.
48159         * build-aux/GNUmakefile (have-Makefile): Rename...
48160         (_have-Makefile): ...to this, for namespace consideration.
48161         (GNUmakefile.cfg): Include, if present.
48162         (_autoreconf): Define a default.
48163         (_is-dist-target): New rule for rebuilds to pick up intra-release
48164         version.
48165         (maint-cfg.mk): Rename...
48166         (cfg.mk): ...to this.
48167
48168 2008-03-18  Jim Meyering  <meyering@redhat.com>
48169
48170         New script and module: mktempd
48171         * MODULES.html.sh (maint+release support): Add mktempd.
48172         * build-aux/mktempd: New file.
48173         * modules/mktempd: New file.
48174
48175 2008-03-15  Jim Meyering  <meyering@redhat.com>
48176
48177         Undo last change.
48178         * lib/sha1.c, lib/md5.c: 63 != ~63.
48179         Reported by Andreas Schwab.
48180
48181         sha1.c, md5.c: Hoist a redundant expression.
48182         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48183         "ctx->buflen" only once, before calling *_process_block.
48184         * lib/md5.c (md5_process_bytes): Likewise.
48185
48186 2008-03-14  Eric Blake  <ebb9@byu.net>
48187
48188         Bump copyright year in files generated by gnulib-tool.
48189         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48190         gnulib-tool, rather than hard-coding it.
48191
48192         Fix 'gnulib-tool --version' output to work with git.
48193         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48194         (startup): ...here.
48195         (func_version): Use it to invoke git-version-gen, rather than
48196         relying on CVS keyword expansion.  Modernize wording.
48197         (cvsdatestamp, last_checkin_date, version): Kill unused
48198         variables.
48199
48200 2008-03-12  Jim Meyering  <meyering@redhat.com>
48201
48202         Recognize optional cast of the argument to free.
48203         * build-aux/useless-if-before-free: Update regexps.
48204
48205         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48206
48207 2008-03-11  Bruno Haible  <bruno@clisp.org>
48208
48209         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48210         by a single package.
48211         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48212         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48213         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48214         Reported by Sam Steingold <sds@gnu.org>.
48215
48216 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48217
48218         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48219         repositories.
48220
48221 2008-03-11  Bruno Haible  <bruno@clisp.org>
48222
48223         Avoid conflicts between local macro definitions.
48224         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48225         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48226
48227 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48228             Bruno Haible  <bruno@clisp.org>
48229
48230         Make va_copy work with some version of xlc on AIX 5.1.
48231         * lib/stdarg.in.h: New file.
48232         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48233         On AIX, use a <stdarg.h> file substitute.
48234         * modules/stdarg (Files): Add lib/stdarg.in.h.
48235         (Depends-on): Add include_next.
48236         (Makefile.am): Build a stdarg.h substitute if requested.
48237         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48238
48239 2008-03-10  Bruno Haible  <bruno@clisp.org>
48240
48241         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48243         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48244
48245 2008-03-10  Bruno Haible  <bruno@clisp.org>
48246
48247         * modules/stdlib (Depends-on): Add include_next, remove
48248         absolute-header.
48249
48250 2008-03-09  Bruno Haible  <bruno@clisp.org>
48251
48252         * lib/freadahead.h (freadahead): Document more precisely.
48253         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48254         the sum of both buffer sizes.
48255         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48256         * NEWS: Document the change.
48257
48258 2008-03-09  Bruno Haible  <bruno@clisp.org>
48259
48260         Extend freadptr to return also the buffer size.
48261         * lib/freadptr.h (freadptr): Add sizep argument.
48262         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48263         (freadptr): Add sizep argument. Determine buffer size like freadahead
48264         does.
48265         * tests/test-freadptr.c: Don't include freadahead.h.
48266         (main): Adapt for new calling convention of freadptr.
48267         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48268         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48269         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48270         tests/test-freadptr2.sh.
48271         (Depends): Remove freadahead.
48272         (TESTS): Add test-freadptr2.sh.
48273         (check_PROGRAMS): Add test-freadptr2.
48274
48275 2008-03-09  Bruno Haible  <bruno@clisp.org>
48276
48277         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48278         Report and solution by Simon Josefsson.
48279
48280 2008-03-06  Bruno Haible  <bruno@clisp.org>
48281
48282         Make fflush after ungetc work on BSD platforms.
48283         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48284         * tests/test-fflush2.c: New file.
48285         * tests/test-fflush2.sh: New file.
48286         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48287         tests/test-fflush2.c.
48288         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48289         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48290
48291 2008-03-06  Eric Blake  <ebb9@byu.net>
48292
48293         Likewise for ftello.
48294         * modules/ftello (Dependencies): Add extensions.
48295         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48296
48297 2008-03-06  Bruno Haible  <bruno@clisp.org>
48298
48299         * modules/fseeko (Dependencies): Add extensions.
48300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48301         Needed on glibc systems.
48302
48303 2008-03-06  Bruno Haible  <bruno@clisp.org>
48304
48305         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48306         email address.
48307         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48308
48309 2008-03-06  Bruno Haible  <bruno@clisp.org>
48310
48311         * users.txt: Add libgnupdf.
48312
48313 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48314
48315         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48316         (Header File Substitutes, Function Substitutes,
48317         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48318         (Build robot for gnulib): Fix typo.
48319
48320 2008-03-06  Bruno Haible  <bruno@clisp.org>
48321
48322         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48323         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48324
48325 2008-03-06  Bruno Haible  <bruno@clisp.org>
48326
48327         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48328         * doc/gnulib.texi: Include it.
48329
48330 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48331
48332         * modules/func (License): Change license to unlimited; there was
48333         no LGPL parts in the module anyway.
48334
48335 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48336
48337         * modules/__func__: Renamed to modules/func.
48338         * modules/__func__-tests: Renamed to modules/func-tests.
48339         * tests/test-__func__.c: Renamed to tests/test-func.c.
48340         * m4/__func__.m4: Renamed to m4/func.m4.
48341         * doc/gnulib.texi (__func__): Section renamed to func.
48342         Suggested by Eric Blake <ebb9@byu.net>.
48343
48344 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48345
48346         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48347         about __func__.  Make example self-contained.  Suggested by Eric
48348         Blake <ebb9@byu.net>.
48349
48350         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48351         Suggested by Eric Blake <ebb9@byu.net>.
48352
48353 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48354
48355         * modules/__func__: New file.
48356         * modules/__func__-tests: New file.
48357         * tests/test-__func__.c: New file.
48358         * m4/__func__.m4: New file.
48359         * doc/gnulib.texi (__func__): Document __func__ module.
48360
48361 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48362
48363         * modules/byteswap (License): Re-license as LGPLv2+.
48364
48365 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48366
48367         * doc/Makefile: Add pdf target.
48368
48369 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48370
48371         * modules/inline (License): Use 'unlimited', since there are only
48372         *.m4 files in this module.
48373
48374 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48375             Bruno Haible  <bruno@clisp.org>
48376
48377         Add support for HP C 7.1 on OpenVMS 8.3.
48378         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48379
48380 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48381
48382         Update VMS specifics.
48383         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48384
48385 2008-03-02  Jim Meyering  <meyering@redhat.com>
48386
48387         Remove the last dependency on the "free" module.
48388         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48389         Reported by Bob Proulx.
48390
48391         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48392
48393         Remove useless "if" tests before free.  Deprecate "free" module.
48394         * doc/posix-functions/free.texi: Mention that this
48395         module is no longer useful.
48396         * modules/free (Notice): Say this module is obsolete.
48397         * modules/readutmp (Depends-on): Remove free.
48398         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48399         * lib/putenv.c (putenv): Likewise.
48400         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48401         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48402         * tests/test-c-strcasestr.c (main): Likewise.
48403         * tests/test-c-strstr.c (main): Likewise.
48404         * tests/test-mbscasestr1.c (main): Likewise.
48405         * tests/test-mbscasestr2.c (main): Likewise.
48406         * tests/test-mbsstr1.c (main): Likewise.
48407         * tests/test-mbsstr2.c (main): Likewise.
48408         * tests/test-memmem.c (main): Likewise.
48409         * tests/test-strcasestr.c (main): Likewise.
48410         * tests/test-striconv.c (main): Likewise.
48411         * tests/test-striconveh.c (main): Likewise.
48412         * tests/test-striconveha.c (main): Likewise.
48413         * tests/test-strstr.c (main): Likewise.
48414
48415         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48416
48417         bootstrap: sync from coreutils again
48418         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48419
48420 2008-03-01  Jim Meyering  <meyering@redhat.com>
48421
48422         bootstrap: sync from coreutils
48423         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48424         also when the target doesn't exist.
48425
48426 2008-03-01  Eric Blake  <ebb9@byu.net>
48427
48428         Fix bugs in last patch.
48429         * lib/memchr2.c (memchr2): Fix typo.
48430         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48431         extension.
48432         Reported by Bruce Korb.
48433
48434         New module 'memchr2'.
48435         * modules/memchr2: New file.
48436         * modules/memchr2-tests: Likewise.
48437         * lib/memchr2.h: Likewise.
48438         * lib/memchr2.c: Likewise, based on memchr.c.
48439         * tests/test-memchr2.c: New test.
48440         * MODULES.html.sh (String handling): Add memchr2.
48441
48442 2008-02-29  Bruno Haible  <bruno@clisp.org>
48443
48444         * modules/freadseek-tests: New file.
48445         * tests/test-freadseek.sh: New file.
48446         * tests/test-freadseek.c: New file.
48447
48448         New module 'freadseek'.
48449         * modules/freadseek: New file.
48450         * lib/freadseek.h: New file.
48451         * lib/freadseek.c: New file.
48452         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48453
48454 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48455
48456         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48457         wydawca.
48458
48459         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48460         program_invocation_name and program_invocation_short_name are
48461         present.
48462
48463 2008-02-28  Bruno Haible  <bruno@clisp.org>
48464
48465         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48466         * tests/test-freadptr.sh: Also test non-seekable stdin.
48467
48468 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48469
48470         * build-aux/bootstrap (source_base, m4_base)
48471         (doc_base, tests_base): New variables.
48472         (gnulib_tool_options): Do not hardcode base directories, use
48473         the above variables instead.
48474
48475 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48476
48477         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48478
48479 2008-02-28  Bruno Haible  <bruno@clisp.org>
48480
48481         * modules/freadptr-tests: New file.
48482         * tests/test-freadptr.sh: New file.
48483         * tests/test-freadptr.c: New file.
48484
48485         New module 'freadptr'.
48486         * modules/freadptr: New file.
48487         * lib/freadptr.h: New file.
48488         * lib/freadptr.c: New file.
48489         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48490
48491 2008-02-26  Karl Berry  <karl@freefriends.org>
48492
48493         Sync from Libtool:
48494         * libltdl/argz.c (argz_add, argz_count): New functions.
48495         * libltdl/argz.in.h: Declare them.
48496         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48497
48498 2008-02-22  Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48501         is a pointer type.  Needed for HP-UX 10.
48502         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48503         * doc/posix-functions/gmtime_r.texi: Likewise.
48504         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48505
48506 2008-02-24  Bruno Haible  <bruno@clisp.org>
48507
48508         * modules/environ-tests: New file.
48509         * tests/test-environ.c: New file.
48510
48511         New module 'environ'.
48512         * modules/environ: New file.
48513         * lib/unistd.in.h (environ): New declaration.
48514         * m4/environ.m4: New file.
48515         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48516         after use.
48517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48518         HAVE_DECL_ENVIRON.
48519         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48520         HAVE_DECL_ENVIRON.
48521         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48522         wrong claim that 'environ' is missing on some systems.
48523         * modules/execute (Depends-on): Add environ.
48524         * lib/execute.c (environ): Remove fallback declaration.
48525         * modules/pipe (Depends-on): Add environ.
48526         * lib/pipe.c (environ): Remove fallback declaration.
48527         * modules/setenv (Depends-on): Add environ.
48528         * lib/setenv.c (environ): Remove fallback declaration.
48529         * modules/unsetenv (Depends-on): Add environ.
48530         * lib/unsetenv.c (environ): Remove fallback declaration.
48531         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48532         m4/environ.m4.
48533         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48534         (gl_PREREQ_UNSETENV): Likewise.
48535
48536 2008-02-24  Bruno Haible  <bruno@clisp.org>
48537
48538         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48539
48540 2008-02-20  Bob Proulx  <bob@proulx.com>
48541
48542         Enable use of older two part flavor 'git describe'.
48543         * build-aux/git-version-gen: If using the older two part flavor of
48544         git version then recreate the third part now present in the
48545         newer three part flavor of git describe.
48546
48547 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48548
48549         * lib/fts.c (fts_build): Typo correction to comment.
48550
48551 2008-02-17  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48554         generating no-op conflicts.
48555
48556 2008-02-17  Bruno Haible  <bruno@clisp.org>
48557
48558         Speed up by 10%.
48559         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48560         result_entries, rather than an index-based loop.
48561
48562 2008-02-17  Bruno Haible  <bruno@clisp.org>
48563
48564         Speed up by 25%.
48565         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48566         'hashcode_cached'.
48567         (entry_create): New function.
48568         (entry_hashcode): Use the cached hashcode if possible.
48569         (read_changelog_file, try_split_merged_entry): Use entry_create.
48570
48571 2008-02-17  Bruno Haible  <bruno@clisp.org>
48572
48573         Speed up from O(n^2) to O(n) for long ChangeLog files.
48574         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48575         (read_changelog_file): Change implementation of entries_reversed list
48576         to rbtreehash.
48577         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48578
48579 2008-02-17  Bruno Haible  <bruno@clisp.org>
48580
48581         New option --split-merged-entry.
48582         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48583         (find_paragraph_end, try_split_merged_entry): New functions.
48584         (long_options): Add option --split-merged-entry.
48585         (usage): Document option --split-merged-entry.
48586         (main): Implement option --split-merged-entry.
48587         Reported by Eric Blake.
48588
48589 2008-02-17  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/git-merge-changelog.c: Include c-strstr.h.
48592         (main): Support the "git pull --rebase" situation.
48593         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48594         Reported by Eric Blake.
48595
48596 2008-02-16  Eric Blake  <ebb9@byu.net>
48597
48598         Avoid doubling \ in common case of "c-maybe" quoting style.
48599         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48600         eliding outer quotes.
48601         * lib/quotearg.h: Document this.
48602         * tests/test-quotearg.c (result_strings, inputs, results_g)
48603         (flag_results, locale_results): Test it by adding a new string to
48604         each test group.
48605         (compare_strings): Test new string.
48606
48607 2008-02-13  Eric Blake  <ebb9@byu.net>
48608
48609         Avoid trigraph quoting in default output.
48610         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48611         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48612         unless explicitly requested.
48613         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48614
48615 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48616
48617         Don't rely on signed integer overflowing to negative value.
48618         * lib/getugroups.c (getugroups): Include <limits.h>.
48619         Instead, compare against INT_MAX, and increment only if the test passes.
48620
48621 2008-02-13  Jim Meyering  <meyering@redhat.com>
48622         and Eric Blake  <ebb9@byu.net>
48623
48624         Avoid shadowing warning and compile errors on Linux.
48625         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48626         forwarding macros on Linux.
48627         (dcgettext): Define a stub, for Linux.
48628         (results_g, main): Avoid warnings.
48629
48630 2008-02-12  Eric Blake  <ebb9@byu.net>
48631
48632         Silence warning in last patch.
48633         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48634
48635         Quotearg part 4: add tests, fix c-maybe colon quoting.
48636         * lib/quotearg.h: Improve documentation.
48637         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48638         escapes when adding outer quotes.  When quoting trigraphs, use
48639         valid C notation.  When quoting NUL, omit extra characters if next
48640         character is not digit.  Alter prototype.
48641         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48642         callers.
48643         * modules/quotearg-tests: New module.
48644         * tests/test-quotearg.c: New test.
48645
48646 2008-02-07  Eric Blake  <ebb9@byu.net>
48647
48648         Quotearg part 3: add flag to control outer quote elision.
48649         * lib/quotearg.h (c_maybe_quoting_style): New style.
48650         (enum quoting_flags): Better documentation of flags.
48651         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48652         c-maybe style.
48653         (quotearg_buffer_restyled): Handle new flag to elide outer
48654         quotes.
48655
48656         Quotearg part 2: add flag that can control NUL elision.
48657         * lib/quotearg.h (set_quoting_flags): New prototype.
48658         * lib/quotearg.c (struct quoting_options): Add flag field.
48659         (set_quoting_flags): New function.
48660         (quotearg_buffer_restyled): Add flags parameter.
48661         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48662         (quotearg_n_options): Set the flag, since length cannot be
48663         returned.
48664         (quoting_options_from_style): Default flags correctly.
48665
48666         Quotearg part 1: more wrappers, restore quotearg_char state.
48667         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48668         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48669         (quotearg_colon_mem): New wrappers.
48670         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48671         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48672         functions.
48673         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48674         (quotearg_colon_mem): New functions.
48675
48676 2008-02-11  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48679         library in the current directory: it does not work with parallel make.
48680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48681
48682 2008-02-11  Bruno Haible  <bruno@clisp.org>
48683
48684         * .gitattributes: New file.
48685
48686 2008-02-11  Jim Meyering  <meyering@redhat.com>
48687
48688         useless-if-before-free: Fix reversed exit values.
48689         * build-aux/useless-if-before-free: Use correct values
48690         for EXIT_MATCH and EXIT_NO_MATCH.
48691
48692         * build-aux/useless-if-before-free: Close stdout carefully.
48693
48694 2008-02-10  Bruno Haible  <bruno@clisp.org>
48695
48696         New module 'git-merge-changelog'.
48697         * modules/git-merge-changelog: New file.
48698         * lib/git-merge-changelog.c: New file.
48699
48700 2008-02-10  Jim Meyering  <meyering@redhat.com>
48701
48702         useless-if-before-free: New option: --list (-l).
48703
48704         useless-if-before-free: Don't exit immediately upon open failure.
48705         * build-aux/useless-if-before-free: Exit 2 for errors.
48706         Upon failure to open a file, don't exit immediately.
48707         Rather, just warn and continue with any remaining files.
48708
48709 2008-02-10  Bruno Haible  <bruno@clisp.org>
48710
48711         New abstract list operation 'node_set_value'.
48712         * lib/gl_list.h (gl_list_node_set_value): New function.
48713         (struct gl_list_implementation): New field node_set_value.
48714         * lib/gl_list.c (gl_list_node_set_value): New function.
48715         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48716         (gl_array_list_implementation): Update.
48717         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48718         (gl_carray_list_implementation): Update.
48719         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48720         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48721         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48722         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48723         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48724         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48725         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48726         Update.
48727         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48728         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48729         (gl_sublist_list_implementation): Update.
48730
48731 2008-02-10  Bruno Haible  <bruno@clisp.org>
48732
48733         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48734         Needed when ELEMENT is #defined to 'some_type *'.
48735
48736 2008-02-10  Jim Meyering  <meyering@redhat.com>
48737
48738         New script and module: useless-if-before-free
48739         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48740         * build-aux/useless-if-before-free: New file.
48741         * modules/useless-if-before-free: New file.
48742
48743         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48744
48745         xstrtol_error: Fix typo.
48746         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48747         s/exit_failure/exit_status/.
48748
48749 2008-02-09  Jim Meyering  <meyering@redhat.com>
48750
48751         New script and module: gitlog-to-changelog
48752         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48753         * modules/gitlog-to-changelog: New file.
48754         * build-aux/gitlog-to-changelog: New file.
48755
48756 2008-02-08  Jim Meyering  <meyering@redhat.com>
48757
48758         Avoid two "parameter unused" warnings.
48759         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48760         Mark "st" as used.
48761
48762         Use "git COMMAND", not "git-COMMAND".
48763         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48764         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48765         * build-aux/git-version-gen: Use "git status", not "git-status".
48766
48767 2008-02-07  Bruno Haible  <bruno@clisp.org>
48768
48769         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48770         Avoids a crash on Windows Vista.
48771         Reported by Adam Strzelecki <ono@java.pl> via
48772         Simon Josefsson <simon@josefsson.org>.
48773
48774 2008-02-06  Bruno Haible  <bruno@clisp.org>
48775
48776         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48777         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48778         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48780         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48782         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48783         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48784         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48788         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48791         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48792         left-adjust flag.
48793         * tests/test-snprintf-posix.h (test_function): Likewise.
48794         * tests/test-sprintf-posix.h (test_function): Likewise.
48795         * tests/test-vasprintf-posix.c (test_function): Likewise.
48796         * doc/posix-functions/fprintf.texi: Update.
48797         * doc/posix-functions/printf.texi: Update.
48798         * doc/posix-functions/snprintf.texi: Update.
48799         * doc/posix-functions/sprintf.texi: Update.
48800         * doc/posix-functions/vfprintf.texi: Update.
48801         * doc/posix-functions/vprintf.texi: Update.
48802         * doc/posix-functions/vsnprintf.texi: Update.
48803         * doc/posix-functions/vsprintf.texi: Update.
48804         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48805
48806 2008-02-06  Bruno Haible  <bruno@clisp.org>
48807
48808         Fix bug introduced on 2008-01-26.
48809         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48810
48811 2008-02-06  Bruno Haible  <bruno@clisp.org>
48812
48813         Fix bug introduced on 2007-06-10.
48814         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48815         !NEED_PRINTF_FLAG_ZERO.
48816
48817 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48818
48819         getloadavg: use libperfstat on AIX5
48820         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48821
48822 2008-02-03  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/diffseq.h: Add comments about required #includes.
48825         Reported by Michael Biggs <gnulib@doubleplum.net>.
48826
48827 2008-02-01  Bruno Haible  <bruno@clisp.org>
48828
48829         * users.txt: Add gnuit.
48830
48831 2008-01-31  Bruno Haible  <bruno@clisp.org>
48832
48833         * lib/md4.c (set_uint32): Mark as inline.
48834         * lib/md5.c (set_uint32): Likewise.
48835         * lib/sha1.c (set_uint32): Likewise.
48836         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48837         * m4/md5.m4 (gl_MD5): Likewise.
48838         * m4/sha1.m4 (gl_SHA1): Likewise.
48839
48840 2008-01-31  Jim Meyering  <meyering@redhat.com>
48841
48842         Use "sizeof VAR", rather than a literal "4".
48843         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48844         * lib/md4.c (md4_read_ctx): Likewise.
48845         * lib/sha1.c (sha1_read_ctx): Likewise.
48846
48847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48848
48849         * tests/test-sha1.c: New file, based on test-md5.c.
48850
48851         * modules/crypto/sha1-tests: New file.
48852
48853 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48854
48855         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48856
48857 2008-01-31  Jim Meyering  <meyering@redhat.com>
48858
48859         Prefer "sizeof v" over the equivalent "4".
48860         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48861         * lib/md5.c (set_uint32): Likewise.
48862         * lib/sha1.c (set_uint32): Likewise.
48863
48864 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48865
48866         * lib/sha1.c (set_uint32): Mark function as static.
48867
48868 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48869
48870         md2: clarify comments to say that alignment is not required.
48871         * lib/md2.h: Remove warning about alignment in comment.
48872         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48873         never been required.
48874
48875 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48876
48877         md4: adapt alignment constraint fix from sha1.
48878         * lib/md4.c (set_uint32): New function, from sha1.c
48879         (md4_read_ctx): Use it.
48880         (md4_finish_ctx): Doc fix.
48881         * lib/md4.h: Doc fix.
48882
48883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48884
48885         md5: adapt alignment constraint fix from sha1.
48886         * lib/md5.c (set_uint32): New function, from sha1.c
48887         (md5_read_ctx): Use it.
48888         (md5_finish_ctx): Doc fix.
48889         * lib/md5.h: Doc fix.
48890
48891 2008-01-30  Peter Palfrader  <weasel@debian.org>
48892
48893         sha1: remove the result buffer alignment constraint
48894         * lib/sha1.c (set_uint32): New function.
48895         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48896         constraint.
48897         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48898         * lib/sha1.h: Likewise.
48899
48900 2008-01-30  Andreas Schwab  <schwab@suse.de>
48901             Bruno Haible  <bruno@clisp.org>
48902
48903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48904         correct definition of LDBL_MIN_EXP.
48905
48906 2008-01-30  Karl Berry  <karl@gnu.org>
48907
48908         * config/srclist-update: try to preserve x bit on updates.
48909         * config/srclistvars.sh: update for karl.
48910
48911 2008-01-29  Jim Meyering  <meyering@redhat.com>
48912
48913         vasnprintf.c: Avoid warning about unused label
48914         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48915         "overflow" label definition and associated code with the
48916         same cpp condition that guards the sole use of that label.
48917
48918 2008-01-26  Bruno Haible  <bruno@clisp.org>
48919
48920         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48921         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48922         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48923         * lib/isnanl-nolibm.h (isnanl): Likewise.
48924         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48925
48926 2008-01-26  Bruno Haible  <bruno@clisp.org>
48927
48928         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48929         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48930
48931 2008-01-26  Bruno Haible  <bruno@clisp.org>
48932
48933         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48934         GCC >= 4.0 built-in.
48935         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48936
48937 2008-01-26  Bruno Haible  <bruno@clisp.org>
48938
48939         Rename isnan, applicable to 'double' only, to isnand.
48940         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48941         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48942         (configure.ac): Update.
48943         (Include): Replace "isnan.h" with "isnand.h".
48944         * m4/isnand.m4: Renamed from m4/isnan.m4.
48945         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48946         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48947         instead of isnan.c.
48948         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48949         instead of HAVE_ISNAN_IN_LIBC.
48950         (isnand): Renamed from isnan.
48951         * lib/isnand.c: New file.
48952         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48953         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48954         (Makefile.am): Update.
48955         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48956         Include isnand.h instead of isnan.h.
48957         (main): Test isnand instead of isnan.
48958         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48959         isnan-nolibm.
48960         * modules/frexp (Depends-on): Likewise.
48961         * modules/frexp-tests (Depends-on): Likewise.
48962         * modules/frexp-nolibm (Depends-on): Likewise.
48963         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48964         * modules/isfinite (Depends-on): Likewise.
48965         * modules/round-tests (Depends-on): Likewise.
48966         * modules/signbit (Depends-on): Likewise.
48967         * modules/signbit-tests (Depends-on): Likewise.
48968         * modules/snprintf-posix (Depends-on): Likewise.
48969         * modules/sprintf-posix (Depends-on): Likewise.
48970         * modules/trunc-tests (Depends-on): Likewise.
48971         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48973         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48977         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48978         * modules/vasnprintf-posix (Depends-on): Likewise.
48979         * modules/vasprintf-posix (Depends-on): Likewise.
48980         * modules/vfprintf-posix (Depends-on): Likewise.
48981         * modules/vsnprintf-posix (Depends-on): Likewise.
48982         * modules/vsprintf-posix (Depends-on): Likewise.
48983         * lib/frexp.c: Include isnand.h instead of isnan.h.
48984         (ISNAN): Set to isnand instead of isnan.
48985         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48986         (gl_isfinited): Use isnand instead of isnan.
48987         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48988         (gl_signbitd): Use isnand instead of isnan.
48989         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48990         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48991         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48992         (main): Use isnand instead of isnan.
48993         * tests/test-round1.c: Include isnand.h.
48994         (main): Use isnand instead of isnan.
48995         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48996         (ISNAN): Set to isnand instead of isnan.
48997         * tests/test-trunc1.c: Include isnand.h.
48998         (main): Use isnand instead of isnan.
48999         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49000         (equal): Use isnand instead of isnan.
49001         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49002         isnand-nolibm.
49003         * NEWS: Mention the change.
49004
49005 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49006             Bruno Haible  <bruno@clisp.org>
49007
49008         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49009         the GCC builtins for signbits are present and set
49010         REPLACE_SIGNBIT_USING_GCC if so.
49011         * lib/math.in.h (signbit): Define using GCC builtins if
49012         REPLACE_SIGNBIT_USING_GCC is set.
49013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49014         REPLACE_SIGNBIT_USING_GCC.
49015         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49016
49017 2008-01-25  Jim Meyering  <meyering@redhat.com>
49018
49019         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49020         * lib/poll.c: Include <config.h>, not "config.h".
49021         * tests/test-getaddrinfo.c: Likewise.
49022
49023 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49024
49025         * modules/sockets-tests: New file.
49026
49027 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49028
49029         * modules/sockets: New module, can be used to call WSA_Startup and
49030         WSA_Cleanup when needed.
49031
49032         * lib/sockets.h, lib/sockets.c: New files.
49033
49034         * m4/sockets.m4: New file.
49035
49036         * tests/test-sockets.c: New file.
49037
49038 2008-01-19  Bruno Haible  <bruno@clisp.org>
49039
49040         * doc/posix-headers: Renamed from doc/headers.
49041         * doc/posix-functions: Renamed from doc/functions.
49042         * doc/gnulib.texi: Update.
49043
49044 2008-01-19  Bruno Haible  <bruno@clisp.org>
49045
49046         * doc/glibc-functions/strcasestr.texi: Include contents of
49047         doc/functions/strcasestr.texi, fixing the list of platforms.
49048         * doc/functions/strcasestr.texi: Remove file.
49049
49050 2008-01-19  Bruno Haible  <bruno@clisp.org>
49051
49052         * doc/glibc-functions/memmem.texi: Include contents of
49053         doc/functions/memmem.texi.
49054         * doc/functions/memmem.texi: Remove file.
49055
49056 2008-01-18  Bruno Haible  <bruno@clisp.org>
49057
49058         * doc/glibc-functions/*.texi: New files.
49059         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49060         to use the new files.
49061
49062 2008-01-17  Bruno Haible  <bruno@clisp.org>
49063
49064         * tests/test-gethostname.c (main): Fix printf statement.
49065
49066 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49067
49068         * modules/gethostname-tests: New file.
49069
49070         * tests/test-gethostname.c: New file.
49071
49072 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49073
49074         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49075         used by the UNAME case.  Reported by Bruno Haible
49076         <bruno@clisp.org>.
49077
49078 2008-01-17  Eric Blake  <ebb9@byu.net>
49079
49080         Convert c-strcasestr to be more efficient.
49081         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49082         (Depends-on): Add c-strcase, remove malloca, strnlen.
49083         * tests/test-c-strcasestr.c (main): Enhance test.
49084         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49085
49086 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49087
49088         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49089         Use it in creating po/Makevars.
49090
49091 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49092
49093         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49094         Applications that requires it should initialize libgcrypt
49095         manually.
49096
49097 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49098
49099         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49100
49101 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49102
49103         Fix problem with getdate on mingw32 reported by Simon Josefsson
49104         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49105         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49106         tzname", when deciding whether to declare tzname.
49107         * lib/strftime.c (tzname): Likewise.
49108
49109 2008-01-15  Bruno Haible  <bruno@clisp.org>
49110
49111         Work around a MacOS X 10.5 bug in frexpl().
49112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49113         * doc/functions/frexpl.texi: Document the bug.
49114         Reported by Elias Pipping <pipping@gentoo.org>.
49115
49116 2008-01-14  Eric Blake  <ebb9@byu.net>
49117
49118         Touch up previous patch.
49119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49120         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49121
49122         Convert strcasestr module to use Two-Way algorithm.
49123         * modules/strcasestr-simple: New module, based on the old
49124         strcasestr, but with Two-Way rather than KMP.
49125         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49126         * lib/string.in.h (rpl_strcasestr): Declare.
49127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49128         performance.
49129         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49130         * modules/string (Makefile.am): Support strcasestr.
49131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49132         * modules/strcasestr-tests (Depends-on): Check for alarm.
49133         * tests/test-strcasestr.c: Augment test.
49134         * lib/str-two-way.h: Clean up stray macro.
49135         * NEWS: Document new module.
49136         * MODULES.html.sh (string handling): Likewise.
49137         * doc/functions/strcasestr.texi: New file.
49138         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49139         here, since it is not a POSIX function.
49140
49141 2008-01-14  Colin Watson  <cjwatson@debian.org>
49142             Bruno Haible  <bruno@clisp.org>
49143
49144         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49145         works fine; if not, set REPLACE_STRSIGNAL.
49146         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49148         REPLACE_STRSIGNAL.
49149         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49150         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49151         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49152
49153 2008-01-14  Bruno Haible  <bruno@clisp.org>
49154
49155         * modules/strsignal (Include): Change to <string.h>.
49156
49157 2008-01-14  Colin Watson  <cjwatson@debian.org>
49158
49159         * modules/argp (Notice): Add a notice recommending to change
49160         XGETTEXT_OPTIONS.
49161         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49162
49163 2008-01-13  Colin Watson  <cjwatson@debian.org>
49164
49165         * modules/strsignal-tests: New file.
49166         * tests/test-strsignal.c: New file.
49167
49168         * lib/strsignal.c: New file, from glibc with modifications.
49169         * lib/siglist.h: New file, from glibc with modifications.
49170         * lib/string.in.h (strsignal): New declaration.
49171         * m4/strsignal.m4: New file.
49172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49173         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49174         * modules/strsignal: New file.
49175         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49176         HAVE_DECL_STRSIGNAL.
49177
49178 2008-01-13  Bruno Haible  <bruno@clisp.org>
49179
49180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49181         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49184
49185 2008-01-13  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49188         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49189         * lib/argp.h (__attribute__): Likewise.
49190         * lib/c-stack.c (__attribute__): Likewise.
49191         * lib/error.h (__attribute__): Likewise.
49192         * lib/fts.c (__attribute__): Likewise.
49193         * lib/openat.h (__attribute__): Likewise.
49194         * lib/stdio.in.h (__attribute__): Likewise.
49195         * lib/string.in.h (__attribute__): Likewise.
49196         * lib/utimens.c (__attribute__): Likewise.
49197         * lib/vasnprintf.h (__attribute__): Likewise.
49198         * lib/xalloc.h (__attribute__): Likewise.
49199         * lib/xprintf.h (__attribute__): Likewise.
49200         * lib/xstrtol.h (__attribute__): Likewise.
49201         * lib/xvasprintf.h (__attribute__): Likewise.
49202
49203 2008-01-12  Bruno Haible  <bruno@clisp.org>
49204
49205         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49206         * doc/glibc-headers/a.out.texi: New file.
49207         * doc/glibc-headers/aliases.texi: New file.
49208         * doc/glibc-headers/alloca.texi: New file.
49209         * doc/glibc-headers/ar.texi: New file.
49210         * doc/glibc-headers/argp.texi: New file.
49211         * doc/glibc-headers/argz.texi: New file.
49212         * doc/glibc-headers/byteswap.texi: New file.
49213         * doc/glibc-headers/crypt.texi: New file.
49214         * doc/glibc-headers/endian.texi: New file.
49215         * doc/glibc-headers/envz.texi: New file.
49216         * doc/glibc-headers/err.texi: New file.
49217         * doc/glibc-headers/error.texi: New file.
49218         * doc/glibc-headers/execinfo.texi: New file.
49219         * doc/glibc-headers/fpu_control.texi: New file.
49220         * doc/glibc-headers/fstab.texi: New file.
49221         * doc/glibc-headers/fts.texi: New file.
49222         * doc/glibc-headers/getopt.texi: New file.
49223         * doc/glibc-headers/ieee754.texi: New file.
49224         * doc/glibc-headers/ifaddrs.texi: New file.
49225         * doc/glibc-headers/libintl.texi: New file.
49226         * doc/glibc-headers/mcheck.texi: New file.
49227         * doc/glibc-headers/mntent.texi: New file.
49228         * doc/glibc-headers/obstack.texi: New file.
49229         * doc/glibc-headers/paths.texi: New file.
49230         * doc/glibc-headers/printf.texi: New file.
49231         * doc/glibc-headers/pty.texi: New file.
49232         * doc/glibc-headers/resolv.texi: New file.
49233         * doc/glibc-headers/shadow.texi: New file.
49234         * doc/glibc-headers/sysexits.texi: New file.
49235         * doc/glibc-headers/ttyent.texi: New file.
49236
49237 2008-01-12  Jim Meyering  <meyering@redhat.com>
49238
49239         announce-gen: emit Gnulib's git-based version string.
49240         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49241         New option --gnulib-version=V, where V is expected to be
49242         the output of running git describe in the gnulib directory.
49243         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49244         not useful, and plan to stop publishing an xdelta file with each
49245         coreutils release.
49246
49247         * build-aux/announce-gen: Also check for lzma-compressed files.
49248
49249 2008-01-11  Bruno Haible  <bruno@clisp.org>
49250
49251         * tests/test-memmem.c (main): Increase maximum allowed time.
49252         * tests/test-strstr.c (main): Likewise.
49253
49254 2008-01-11  Bruno Haible  <bruno@clisp.org>
49255
49256         * doc/functions/memmem.texi: Add more precisions about platforms.
49257         * doc/functions/strstr.texi: Likewise.
49258
49259 2008-01-10  Eric Blake  <ebb9@byu.net>
49260
49261         * m4/strstr.m4: Delete cruft from copy-n-paste.
49262         Reported by Bruno Haible.
49263
49264 2008-01-10  Bruno Haible  <bruno@clisp.org>
49265
49266         Make c-strstr rely on strstr.
49267         * lib/c-strstr.c: Don't include str-kmp.h.
49268         (c_strstr): Define in terms of strstr.
49269         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49270         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49271
49272 2008-01-10  Bruno Haible  <bruno@clisp.org>
49273
49274         * doc/gnulib.texi (String Functions in C Locale): New section.
49275         * doc/c-ctype.texi: New file.
49276         * doc/c-strcase.texi: New file.
49277         * doc/c-strcaseeq.texi: New file.
49278         * doc/c-strcasestr.texi: New file.
49279         * doc/c-strstr.texi: New file.
49280         * doc/c-strtod.texi: New file.
49281         * doc/c-strtold.texi: New file.
49282
49283 2008-01-10  Eric Blake  <ebb9@byu.net>
49284
49285         * lib/relocatable.h: Fix a comment.
49286
49287 2008-01-10  Eric Blake  <ebb9@byu.net>
49288
49289         Share two-way algorithm.
49290         * lib/str-two-way.h: New file, merged from...
49291         * lib/memmem.c: ...here...
49292         * lib/strstr.c: ...and here.
49293         * modules/memmem (Files): Use it.
49294         * modules/strstr (Files): Likewise.
49295
49296         Avoid quadratic strstr implementations.
49297         * lib/strstr.c: New file.
49298         * m4/strstr.m4: Likewise.
49299         * modules/strstr: Likewise.
49300         * modules/strstr-tests: Likewise.
49301         * tests/test-strstr.c: Likewise.
49302         * lib/string.in.h (rpl_strstr): Declare.
49303         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49305         * modules/string (Makefile.am): Likewise.
49306         * MODULES.html.sh (string handling): Mention new module.
49307         * doc/functions/strstr.texi (strstr): Document the bug.
49308
49309 2008-01-10  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/relocatable.h (relocate): State whether result is freshly
49312         allocated or not.
49313         * lib/relocatable.c (relocate): Return a freshly allocated string
49314         instead of a pointer to a privately held string.
49315         Reported by Sylvain Beucler <beuc@gnu.org>.
49316
49317 2008-01-10  Colin Watson  <cjwatson@debian.org>
49318
49319         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49320         s/S_ISNLK/S_ISLNK/.
49321
49322 2008-01-09  Bruno Haible  <bruno@clisp.org>
49323
49324         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49325         and other files.
49326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49327         if it's only a guess.
49328         * modules/memmem: Simplify by depending on memmem-simple.
49329
49330 2008-01-09  Bruno Haible  <bruno@clisp.org>
49331
49332         Work around OpenBSD 4.0 tdelete() bug.
49333         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49334         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49335         macros and don't redefine the enum values.
49336         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49337         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49338         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49339
49340 2008-01-09  Bruno Haible  <bruno@clisp.org>
49341
49342         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49343         (main): Don't perform the tests if setlocale did not install a UTF-8
49344         locale. Needed on OpenBSD 4.0.
49345         * modules/wcwidth-tests (Depends-on): Add localcharset.
49346
49347 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49350         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49351         * NEWS: announce this.
49352         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49353
49354 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49355         and Eric Blake  <ebb9@byu.net>
49356
49357         Add memmem-simple module.
49358         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49359         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49360         * modules/memmem-simple: New file.
49361         * modules/memmem (Description): Tweak.
49362         * MODULES.html.sh (string handling): Mention new module.
49363         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49364         addressed by memmem-simple.
49365         * NEWS: Document the difference.
49366
49367 2008-01-09  Eric Blake  <ebb9@byu.net>
49368
49369         Give gcc some memmem optimization hints.
49370         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49371         (strcasestr): Declare as pure.
49372         * modules/memmem (Maintainer): Claim my implementation.
49373
49374 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49375
49376         Support AIX 6.1 and higher.
49377         * build-aux/config.libpath: Likewise.
49378         * build-aux/config.rpath: Likewise.
49379
49380 2008-01-08  Jim Meyering  <meyering@redhat.com>
49381             Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49384         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49385         Reported by Peter Fales in
49386         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49387
49388 2008-01-08  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/unictype/category-of (Depends-on): Add
49391         unictype/category-none.
49392         * modules/unictype/category-and-tests (Depends-on): Add
49393         unictype/category-{L,N,Lu,Nd}.
49394         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49395         * modules/unictype/category-or-tests (Depends-on): Add
49396         unictype/category-{L,N}.
49397         * modules/unictype/category-name-tests (Depends-on): Add
49398         unictype/category-{Z,Nl}.
49399         Reported by Simon Josefsson.
49400
49401 2008-01-08  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49404         convention better.
49405         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49406         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49407         Reported by Peter Miller <millerp@canb.auug.org.au>.
49408
49409 2008-01-08  Eric Blake  <ebb9@byu.net>
49410
49411         Rewrite memmem to guarantee linear complexity without malloc.
49412         * lib/memmem.c (memmem): Use Two-Way rather than
49413         Knuth-Morris-Pratt, to allow O(1) space usage.
49414         (critical_factorization, two_way_short_needle)
49415         (two_way_long_needle): New functions.
49416         (knuth_morris_pratt): Delete.
49417         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49418         Add stdint.
49419         * tests/test-memmem.c (main): Add tests for periodic needle and
49420         sublinear performance.
49421         * doc/functions/memmem.texi (memmem): Document other deficiencies
49422         in cygwin and older glibc.
49423
49424 2008-01-08  Bruno Haible  <bruno@clisp.org>
49425
49426         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49427         augmentation.
49428
49429 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49430
49431         Add a configure time option: --disable-acl.
49432         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49433         AC_ARG_ENABLE(acl).
49434
49435 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49436
49437         * tests/test-localename.c: Don't include obsolete "setenv.h".
49438
49439         * modules/localename-tests (Depends-on): Need unsetenv.
49440
49441 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49442
49443         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49444
49445 2008-01-06  Colin Watson  <cjwatson@debian.org>
49446
49447         * users.txt: Add man-db.
49448
49449 2008-01-07  Bruno Haible  <bruno@clisp.org>
49450
49451         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49452         previous section name.
49453
49454 2008-01-07  Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/progname.c (set_program_name): Don't strip off a leading
49457         "lt-" prefix outside a .libs directory.
49458         Suggested by Paul Eggert.
49459
49460 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49461             Bruno Haible  <bruno@clisp.org>
49462
49463         Improve memory cleanup in 'relocatable' module.
49464         * lib/relocatable.h (compute_curr_prefix): Change return type to
49465         'char *'.
49466         * lib/relocatable.c (compute_curr_prefix): Change return type to
49467         'char *'. Free curr_installdir after use.
49468         (relocate): Free curr_prefix_better after use.
49469         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49470
49471 2008-01-01  Bruno Haible  <bruno@clisp.org>
49472
49473         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49474         failure on older glibc systems.
49475         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49476
49477 2008-01-05  Eric Blake  <ebb9@byu.net>
49478
49479         Avoid quadratic system memmem.
49480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49481         Reported by Ralf Wildenhues.
49482
49483         Fix memmem test for mingw.
49484         * modules/memmem-tests (configure.ac): Check for alarm.
49485         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49486         it.
49487         * doc/functions/memmem.texi: New file.
49488         * doc/gnulib.texi (Function Substitutes): Add memmem.
49489         Reported by Bruno Haible.
49490
49491 2008-01-04  Bruno Haible  <bruno@clisp.org>
49492
49493         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49494         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49495         gl_HEADER_STRING_H_DEFAULTS.
49496
49497 2008-01-04  Eric Blake  <ebb9@byu.net>
49498
49499         Shorten duration of memmem test.
49500         * tests/test-memmem.c (main): Use alarm to declare failure if test
49501         is taking too long.
49502         Reported by Ralf Wildenhues.
49503
49504 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49505
49506         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49507         string, needed by strerror.
49508
49509 2008-01-03  Colin Watson  <cjwatson@debian.org>
49510             Bruno Haible  <bruno@clisp.org>
49511
49512         * doc/gnulib-tool.texi (Localization): New section.
49513
49514 2008-01-02  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49517         variables to 'unsigned char *' type.
49518         Reported by Paul Eggert.
49519
49520 2008-01-02  Jim Meyering  <jim@meyering.net>
49521
49522         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49523
49524 2007-12-31  Jim Meyering  <jim@meyering.net>
49525
49526         Avoid use of private FTS type name.
49527         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49528
49529 2007-12-30  Karl Berry  <karl@gnu.org>
49530
49531         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49532         work around defect in Texinfo and/or the standalone Info browser.
49533
49534 2007-12-30  Bruno Haible  <bruno@clisp.org>
49535
49536         Unify 5 copies of the KMP code.
49537         * lib/str-kmp.h: New file.
49538         * lib/c-strcasestr.c: Include str-kmp.h.
49539         (knuth_morris_pratt): Remove function.
49540         (c_strcasestr): Update.
49541         * lib/c-strstr.c: Include str-kmp.h.
49542         (knuth_morris_pratt): Remove function.
49543         (c_strcasestr): Update.
49544         * lib/mbscasestr.c: Include str-kmp.h.
49545         (knuth_morris_pratt_unibyte): Remove function.
49546         * lib/mbsstr.c: Include str-kmp.h.
49547         (knuth_morris_pratt_unibyte): Remove function.
49548         * lib/strcasestr.c: Include str-kmp.h.
49549         (knuth_morris_pratt): Remove function.
49550         (strcasestr): Update.
49551         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49552         * modules/c-strstr (Files): Likewise.
49553         * modules/mbscasestr (Files): Likewise.
49554         * modules/mbsstr (Files): Likewise.
49555         * modules/strcasestr (Files): Likewise.
49556         Suggested by Paul Eggert.
49557
49558 2007-12-30  Bruno Haible  <bruno@clisp.org>
49559
49560         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49561         defined.
49562
49563 2007-12-30  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/xmalloca.h: Include xalloc.h.
49566         (xnmalloca): New macro.
49567
49568 2007-12-30  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/malloca.h (nmalloca): New macro.
49571         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49572         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49573         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49574         knuth_morris_pratt_multibyte): Likewise.
49575         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49576         knuth_morris_pratt_multibyte): Likewise.
49577         * lib/memmem.c (knuth_morris_pratt): Likewise.
49578         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49579
49580 2007-12-25  Bruno Haible  <bruno@clisp.org>
49581
49582         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49583         * lib/glob.c: Don't include openat.h.
49584         (link_exists2_p): Add back the code that deals with the
49585         !GLOB_ALTDIRFUNC case.
49586         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49587         let it do the filename concatenation.
49588         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49589         * modules/glob (Depends-on): Remove openat.
49590
49591 2007-12-31  Bruno Haible  <bruno@clisp.org>
49592
49593         * modules/dirfd (License): Change to LGPLv2+.
49594         Approved by Jim Meyering.
49595
49596 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49597
49598         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49599         when multiplying M by sizeof (size_t).
49600
49601 2007-12-10  Martin Lambers  <marlam@marlam.de>
49602
49603         Override getpagesize on mingw.
49604         * lib/getpagesize.c: New file.
49605         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49606         * modules/getpagesize (Files): Add lib/getpagesize.c.
49607         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49609         REPLACE_GETPAGESIZE.
49610         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49611
49612 2007-12-25  Bruno Haible  <bruno@clisp.org>
49613
49614         * modules/localcharset (Notice): New field.
49615         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49616         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49617
49618 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49619             Bruno Haible  <bruno@clisp.org>
49620
49621         Avoid using the syntax symbol() in formatted documentation.
49622         * MODULES.html.sh (func_module): When replacing symbol() with a
49623         hyperlink, remove the parentheses. Show an error if some remain.
49624         Recognize and render the '...' syntax.
49625         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49626         Rework. Add paragraph about GCC's inlining.
49627         * doc/alloca.texi: Likewise.
49628         * doc/error.texi: Remove parentheses from symbol reference.
49629         * doc/gnulib-intro.texi: Likewise.
49630         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49631         * modules/fnmatch (Description): Reword to say "the ... function".
49632         * modules/full-read (Description): Likewise.
49633         * modules/full-write (Description): Likewise.
49634         * modules/safe-read (Description): Likewise.
49635         * modules/safe-write (Description): Likewise.
49636         * modules/strchrnul (Description): Likewise.
49637         * modules/trim (Description): Likewise.
49638         * modules/error (Description): Remove parentheses from symbol
49639         references.
49640         * modules/verror (Description): Likewise.
49641         Reported by Karl Berry.
49642
49643 2007-12-25  Bruno Haible  <bruno@clisp.org>
49644
49645         Fixup after 2007-10-16 commit.
49646         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49647
49648 2007-12-24  Bruno Haible  <bruno@clisp.org>
49649
49650         Make --enable-relocatable work with DESTDIR.
49651         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49652         to compute installdir from destprog.
49653         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49654         also set the RELOC_DESTDIR variable.
49655         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49656
49657 2007-12-24  Bruno Haible  <bruno@clisp.org>
49658
49659         Fix link error due to xalloc_die().
49660         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49661         of xreadlink.
49662         * lib/relocwrapper.c: Update comments.
49663         * build-aux/install-reloc: Remove xreadlink.c from file list.
49664         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49665         xreadlink.c.
49666         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49667
49668 2007-12-24  Bruno Haible  <bruno@clisp.org>
49669
49670         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49671         * lib/setenv.h: Remove file.
49672         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49673         lib/setenv.h.
49674         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49675         (Depends-on): Add stdlib.
49676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49677         gl_FUNC_UNSETENV.
49678         (Include): Replace setenv.h with <stdlib.h>.
49679         * modules/unsetenv: New file.
49680         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49681         * lib/unsetenv.c: Include <stdlib.h> first.
49682         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49683         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49684         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49685         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49686         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49687         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49689         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49690         * doc/functions/unsetenv.texi: Update.
49691         * modules/xsetenv (Depends-on): Add unsetenv.
49692         * modules/getdate (Depends-on): Likewise.
49693         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49694         * lib/xsetenv.c: Don't include setenv.h.
49695         * lib/getdate.y: Likewise.
49696         * lib/relocwrapper.c: Likewise.
49697         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49698         (Depends-on): Add stdlib.
49699         * NEWS: Mention the changes.
49700         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49701
49702 2007-12-23  Bruno Haible  <bruno@clisp.org>
49703
49704         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49705         indentation.
49706
49707 2007-12-23  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/c-strcasestr.c: Add more comments.
49710         * lib/c-strstr.c: Likewise.
49711         * lib/mbscasestr.c: Likewise.
49712         * lib/mbsstr.c: Likewise.
49713         * lib/strcasestr.c: Likewise.
49714         * lib/memmem.c: Likewise.
49715
49716 2007-12-23  Bruno Haible  <bruno@clisp.org>
49717
49718         * tests/test-memmem.c: Include <string.h> first.
49719
49720 2007-12-22  Bruno Haible  <bruno@clisp.org>
49721
49722         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49723         the contents of $testsbase.
49724         Reported by Ralf Wildenhues.
49725
49726 2007-12-22  Bruno Haible  <bruno@clisp.org>
49727
49728         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49729         two variables local_ldadd_before, local_ldadd_last.
49730
49731 2007-12-20  Eric Blake  <ebb9@byu.net>
49732
49733         Work around circular library issue when cross-compiling.
49734         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49735         that progname.o does not need to pull in rpl_memcmp.
49736
49737 2007-12-19  Eric Blake  <ebb9@byu.net>
49738
49739         Fix memmem to avoid O(n^2) worst-case complexity.
49740         * lib/memmem.c (knuth_morris_pratt): New function.
49741         (memmem): Use it if first few naive iterations fail.
49742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49743         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49744         * modules/memchr (License): Likewise.
49745         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49746         malloca.
49747         * tests/test-memmem.c: Rewrite, borrowing ideas from
49748         test-mbsstr1.c; the old version wouldn't even compile!
49749         * modules/memmem-tests: New file.
49750         * lib/string.in.h (rpl_memmem): Add declaration.
49751         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49753         REPLACE_MEMMEM.
49754
49755 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49758         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49759         before any system include files, and undef after them all.  This
49760         should fix a problem on VMS reported by John E. Malmberg in
49761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49762
49763 2007-12-17  Eric Blake  <ebb9@byu.net>
49764
49765         Revert addition of verify, for BSD/OS.
49766         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49767         can't handle large files, for the sake of obsolete platforms.
49768         * modules/fseeko (Depends-on): Remove verify.
49769         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49770         * doc/functions/ftello.texi (ftello): Likewise.
49771         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49772         Reported by Larry Jones.
49773
49774 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49775
49776         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49777         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49778
49779 2007-12-17  Jim Meyering  <meyering@redhat.com>
49780
49781         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49782         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49783         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49784         * modules/getcwd (Depends-on): Add openat.
49785         Reported by Petr Salinger.
49786
49787 2007-12-17  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49790         avoid a segmentation fault of the configure test on x86_64 systems.
49791
49792 2007-12-15  Jim Meyering  <meyering@redhat.com>
49793
49794         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49795
49796 2007-12-13  Eric Blake  <ebb9@byu.net>
49797
49798         Another fseek test.
49799         * tests/test-fseek.c (main): Also test ungetc handling.
49800         * tests/test-fseeko.c (main): Likewise.
49801         * modules/fseeko (Depends-on): Add verify.
49802         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49803         large.
49804         Reported by Larry Jones.
49805
49806         Fix fseeko on mingw.
49807         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49808         seek.
49809
49810         Beef up fseek tests.
49811         * tests/test-fseek.c (main): Also test eof handling.
49812         * tests/test-fseeko.c (main): Likewise.
49813         Reported by Larry Jones.
49814
49815 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49816
49817         Fix fseeko on BSD-based platforms.
49818         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49819         successful seek.
49820
49821 2007-12-12  Eric Blake  <ebb9@byu.net>
49822
49823         Allow circular dependency of separate libtests.a
49824         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49825         when use_libtests.
49826
49827 2007-12-11  Eric Blake  <ebb9@byu.net>
49828
49829         Fix bug with -0.0L in previous patch.
49830         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49831         * tests/test-isnan.c (main): Also test on zeroes.
49832         * tests/test-isnanf.c (main): Likewise.
49833         * tests/test-isnanl.h (main): Likewise.
49834
49835         Detect pseudo-denormals on x86 even when cross-compiling.
49836         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49837         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49838         invalid bit patterns that happen to satisfy ==.
49839
49840         Avoid link failures with separate libtests.a.
49841         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49842         last, to satisfy circular dependencies.
49843
49844 2007-12-11  Eric Blake  <ebb9@byu.net>
49845         and Bruno Haible  <bruno@clisp.org>
49846
49847         Fix OpenBSD 4.0 <float.h> handling of long double.
49848         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49849         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49850         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49851
49852 2007-12-11  Jim Meyering  <meyering@redhat.com>
49853
49854         * users.txt: Add libvirt.
49855
49856         Support versions of autoconf prior to 2.59c.
49857         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49858         if it is not already defined.
49859
49860 2007-12-09  Bruno Haible  <bruno@clisp.org>
49861
49862         Let 'gnulib-tool --import' collect sources needed for the tests in
49863         tests/ rather than in lib/.
49864         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49865         argument. If true, add rules to generate libtests.a, and put libtests.a
49866         into $(LDADD). Consider source files in subdirectories and set
49867         uses_subdirs.
49868         (func_emit_initmacro_start, func_emit_initmacro_end,
49869         func_emit_initmacro_done): Pass all arguments explicitly.
49870         (func_import): Determine two module lists main_modules,
49871         testsrelated_modules. Determine use_libtests. Determine two variables
49872         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49873         instead of just sed_transform_lib_file. Determine two variables
49874         main_files and testsrelated_files. Compute 'files' as the union of
49875         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49876         func_add_or_update. In the generated gnulib-comp.m4, collect the
49877         object files for tests/ in different variables than those for lib/.
49878         Substitute LIBTESTS_LIBDEPS.
49879         (func_create_testdir): Combine the uses_subdirs results from
49880         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49881
49882 2007-12-09  Bruno Haible  <bruno@clisp.org>
49883
49884         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49885         the build-aux directory.
49886
49887 2007-12-09  Bruno Haible  <bruno@clisp.org>
49888
49889         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49890         introduced on 2006-09-09.
49891
49892 2007-12-07  Jim Meyering  <meyering@redhat.com>
49893
49894         Let these macros work also with autoconf-2.59.
49895         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49896         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49897         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49898
49899 2007-12-06  Jim Meyering  <meyering@redhat.com>
49900
49901         Avoid a configure-time syntax error in gl_FUNC_ACL.
49902         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49903         function in each branch, before testing the cache variable.
49904
49905 2007-12-04  Eric Blake  <ebb9@byu.net>
49906
49907         Make scripts executable.
49908         * build-aux/config.guess: Add execute permissions.
49909         * build-aux/config.sub: Likewise.
49910         * build-aux/gendocs.sh: Likewise.
49911
49912         Fix frexp on mingw.
49913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49914         cross-compiling.
49915         * doc/functions/frexp.texi (frexp): Document the bug.
49916
49917         Make cygwin fseeko check more reliable.
49918         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49919         version numbers, rather than unrelated feature check.
49920         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49921         * doc/functions/ftello.texi (ftello): Likewise.
49922         Reported by Bruno Haible.
49923
49924         * m4/strerror.m4: Bump version number.
49925
49926 2007-12-03  Bruno Haible  <bruno@clisp.org>
49927
49928         * doc/functions/mprotect.texi: Mention the mingw problem.
49929
49930 2007-12-03  Eric Blake  <ebb9@byu.net>
49931
49932         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49933         REPLACE_STRERROR is initialized before this macro.
49934
49935 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49936
49937         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49938         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49939         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49940         put -lsec in even for programs other than 'ls'.  This fixes a problem
49941         for gettext reported by Bruno Haible in
49942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49943         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49944         Add support for Solaris 10.  This isn't efficient, but should get the
49945         job done for now.
49946
49947 2007-12-03  James Youngman  <jay@gnu.org>
49948
49949         * doc/regexprops-generic.texi: change "an close-group" to "a
49950         close-group" and "illegal" to "not allowed".
49951
49952 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49953
49954         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49955         pr_byname.h. Needed for the rare case when the maintainer has done
49956         "make maintainer-clean" in the source directory and then attempts a
49957         build outside the source directory.
49958         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49959         scripts_byname.h.
49960
49961 2007-12-02  Martin Lambers <marlam@marlam.de>
49962             Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/getpagesize.h: Remove file.
49965         * lib/unistd.in.h: Include declaration of getpagesize here.
49966         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49967         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49968         HAVE_SYS_PARAM_H.
49969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49970         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49971         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49972         (Depends-on): Add unistd.
49973         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49974         (Include): Use <unistd.h> instead of getpagesize.h.
49975         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49976         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49977         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49978         gl_GETPAGESIZE invocation, already handled by module dependency.
49979         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49980
49981 2007-12-02  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/strings-tests: New file.
49984         * tests/test-strings.c: New file.
49985
49986         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49987         * lib/strings.in.h: New file.
49988         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49989         * m4/strings_h.m4: New file.
49990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49991         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49992         * modules/strings: New file.
49993         * modules/string (Makefile.am): Update.
49994         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49995         Reported by Karl Berry.
49996
49997 2007-12-01  Eric Blake  <ebb9@byu.net>
49998
49999         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50000         accomodate fix in cygwin 1.5.25.
50001
50002 2007-12-01  Jim Meyering  <meyering@redhat.com>
50003
50004         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50005         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50006         that would inhibit utf8-optimization of a regexp containing line-
50007         or buffer-anchors, e.g., `^', `$'.
50008
50009 2007-11-30  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50012         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50013         glthread_recursive_lock_init.
50014         * lib/lock.c (glthread_recursive_lock_init)
50015         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50016         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50017
50018 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50019
50020         New function qset_acl, like set_acl but with syscall semantics.
50021         * lib/acl.h (qset_acl): New decl.
50022         * lib/acl.c (qset_acl): New function.
50023         (set_acl): Use new function.  Use more-consistent diagnostics.
50024
50025 2007-11-28  Jim Meyering  <meyering@redhat.com>
50026
50027         * modules/physmem (License): Change from GPL to LGPLv2+.
50028
50029 2007-11-26  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50032         'long double' type has excess precision.
50033         Reported by Jim Meyering in
50034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50035
50036 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50037
50038         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50039         Sync from <http://gnu.org/licenses>.
50040         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50041         with license text from same location.
50042         * doc/maintain.texi, doc/standards.texi:  Sync from
50043         <http://savannah.gnu.org/projects/gnustandards>.
50044
50045 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50046         and Jim Meyering  <meyering@redhat.com>
50047
50048         Adjust getdate' grammar to accept a slightly more regular language.
50049         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50050         Before, the former was rejected.
50051         * lib/getdate.y (digits_to_date_time): New function, factored
50052         out of ...
50053         (number): ...here.  Just call digits_to_date_time.
50054         (hybrid): New non-terminal to handle an <unsigned number,
50055         signed relative offset> sequence consistently.
50056
50057 2007-11-18  Jim Meyering  <meyering@redhat.com>
50058
50059         Pull my changes from coreutils:
50060         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50061         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50062         use of $gnulib_tool_option_extras, so that it's separated from the
50063         preceding argument.
50064
50065         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50066         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50067         parent destination directories before copying a file into place.
50068
50069 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50070
50071         bootstrap: work also with 4-argument variant of AC_INIT
50072         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50073
50074 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50075
50076         Port test-getaddrinfo to Solaris.
50077         Problem reported by Bruno Haible in
50078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50079         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50080         explanation of setting 'hints'.
50081         Don't reject an implementation merely because it returns EAI_SERVICE.
50082         (EAI_SERVICE): Define to 0 if not defined.
50083
50084 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50085
50086         The license of gnu-make and posix-shell is now "GPLed build tool".
50087         * modules/gnu-make (License): Likewise.
50088         * modules/posix-shell (License): Likewise.
50089
50090         New module posix-shell, for determining a POSIX shell
50091         or perhaps something that is close enough to a POSIX shell.
50092         * m4/posix-shell.m4: New file.
50093         * modules/posix-shell: New file.
50094
50095         * MODULES.html.sh: Mention new module.
50096
50097         New module gnu-make, for determining whether we're using GNU Make.
50098         * m4/gnu-make.m4: New file.
50099         * modules/gnu-make: New file.
50100         * MODULES.html.sh: Mention new module.
50101
50102 2007-11-14  Jim Meyering  <meyering@redhat.com>
50103
50104         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50105         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50106         use this macro to create a function _definition_.
50107         Remove useless "#undef ARGMATCH_DIE".
50108
50109 2007-11-14  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/config.charset: Update for OpenBSD 4.1.
50112         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50113
50114 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50115
50116         Document 64-bit #if problems in stdint.texi.
50117         * doc/headers/stdint.texi (stdint.h): Mention problems with
50118         64-bit-#if, and how to work around them.
50119
50120         Don't insist on 'long long int' support in the preprocessor.  It
50121         breaks too many things.  For example, PRIdMAX still uses a 'long
50122         long int' format with the latest Sun compiler, even though
50123         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50124         preprocessor problem.  This causes the latest coreutils to dump
50125         core on Solaris 10 sparc with the Sun C compiler.
50126         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50127         the troublesome expressions at configure-time, not at #if-time.
50128         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50129         preprocessor.
50130         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50131         compile-time C checks, done at 'configure'-time.
50132         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50133         * modules/inttypes (Makefile): Substitute the new symbols that
50134         gl_INTTYPES_H now generates.
50135         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50136
50137 2007-11-12  Bruno Haible  <bruno@clisp.org>
50138
50139         Tests for Unicode character classification functions.
50140
50141         * modules/unictype/bidicategory-byname-tests: New file.
50142         * modules/unictype/bidicategory-name-tests: New file.
50143         * modules/unictype/bidicategory-of-tests: New file.
50144         * modules/unictype/bidicategory-test-tests: New file.
50145         * modules/unictype/block-list-tests: New file.
50146         * modules/unictype/block-of-tests: New file.
50147         * modules/unictype/block-test-tests: New file.
50148         * modules/unictype/category-C-tests: New file.
50149         * modules/unictype/category-Cc-tests: New file.
50150         * modules/unictype/category-Cf-tests: New file.
50151         * modules/unictype/category-Cn-tests: New file.
50152         * modules/unictype/category-Co-tests: New file.
50153         * modules/unictype/category-Cs-tests: New file.
50154         * modules/unictype/category-L-tests: New file.
50155         * modules/unictype/category-Ll-tests: New file.
50156         * modules/unictype/category-Lm-tests: New file.
50157         * modules/unictype/category-Lo-tests: New file.
50158         * modules/unictype/category-Lt-tests: New file.
50159         * modules/unictype/category-Lu-tests: New file.
50160         * modules/unictype/category-M-tests: New file.
50161         * modules/unictype/category-Mc-tests: New file.
50162         * modules/unictype/category-Me-tests: New file.
50163         * modules/unictype/category-Mn-tests: New file.
50164         * modules/unictype/category-N-tests: New file.
50165         * modules/unictype/category-Nd-tests: New file.
50166         * modules/unictype/category-Nl-tests: New file.
50167         * modules/unictype/category-No-tests: New file.
50168         * modules/unictype/category-P-tests: New file.
50169         * modules/unictype/category-Pc-tests: New file.
50170         * modules/unictype/category-Pd-tests: New file.
50171         * modules/unictype/category-Pe-tests: New file.
50172         * modules/unictype/category-Pf-tests: New file.
50173         * modules/unictype/category-Pi-tests: New file.
50174         * modules/unictype/category-Po-tests: New file.
50175         * modules/unictype/category-Ps-tests: New file.
50176         * modules/unictype/category-S-tests: New file.
50177         * modules/unictype/category-Sc-tests: New file.
50178         * modules/unictype/category-Sk-tests: New file.
50179         * modules/unictype/category-Sm-tests: New file.
50180         * modules/unictype/category-So-tests: New file.
50181         * modules/unictype/category-Z-tests: New file.
50182         * modules/unictype/category-Zl-tests: New file.
50183         * modules/unictype/category-Zp-tests: New file.
50184         * modules/unictype/category-Zs-tests: New file.
50185         * modules/unictype/category-and-not-tests: New file.
50186         * modules/unictype/category-and-tests: New file.
50187         * modules/unictype/category-byname-tests: New file.
50188         * modules/unictype/category-name-tests: New file.
50189         * modules/unictype/category-none-tests: New file.
50190         * modules/unictype/category-of-tests: New file.
50191         * modules/unictype/category-or-tests: New file.
50192         * modules/unictype/category-test-withtable-tests: New file.
50193         * modules/unictype/combining-class-tests: New file.
50194         * modules/unictype/ctype-alnum-tests: New file.
50195         * modules/unictype/ctype-alpha-tests: New file.
50196         * modules/unictype/ctype-blank-tests: New file.
50197         * modules/unictype/ctype-cntrl-tests: New file.
50198         * modules/unictype/ctype-digit-tests: New file.
50199         * modules/unictype/ctype-graph-tests: New file.
50200         * modules/unictype/ctype-lower-tests: New file.
50201         * modules/unictype/ctype-print-tests: New file.
50202         * modules/unictype/ctype-punct-tests: New file.
50203         * modules/unictype/ctype-space-tests: New file.
50204         * modules/unictype/ctype-upper-tests: New file.
50205         * modules/unictype/ctype-xdigit-tests: New file.
50206         * modules/unictype/decimal-digit-tests: New file.
50207         * modules/unictype/digit-tests: New file.
50208         * modules/unictype/mirror-tests: New file.
50209         * modules/unictype/numeric-tests: New file.
50210         * modules/unictype/property-alphabetic-tests: New file.
50211         * modules/unictype/property-ascii-hex-digit-tests: New file.
50212         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50213         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50214         * modules/unictype/property-bidi-block-separator-tests: New file.
50215         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50216         * modules/unictype/property-bidi-common-separator-tests: New file.
50217         * modules/unictype/property-bidi-control-tests: New file.
50218         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50219         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50220         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50221         * modules/unictype/property-bidi-european-digit-tests: New file.
50222         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50223         * modules/unictype/property-bidi-left-to-right-tests: New file.
50224         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50225         * modules/unictype/property-bidi-other-neutral-tests: New file.
50226         * modules/unictype/property-bidi-pdf-tests: New file.
50227         * modules/unictype/property-bidi-segment-separator-tests: New file.
50228         * modules/unictype/property-bidi-whitespace-tests: New file.
50229         * modules/unictype/property-byname-tests: New file.
50230         * modules/unictype/property-combining-tests: New file.
50231         * modules/unictype/property-composite-tests: New file.
50232         * modules/unictype/property-currency-symbol-tests: New file.
50233         * modules/unictype/property-dash-tests: New file.
50234         * modules/unictype/property-decimal-digit-tests: New file.
50235         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50236         * modules/unictype/property-deprecated-tests: New file.
50237         * modules/unictype/property-diacritic-tests: New file.
50238         * modules/unictype/property-extender-tests: New file.
50239         * modules/unictype/property-format-control-tests: New file.
50240         * modules/unictype/property-grapheme-base-tests: New file.
50241         * modules/unictype/property-grapheme-extend-tests: New file.
50242         * modules/unictype/property-grapheme-link-tests: New file.
50243         * modules/unictype/property-hex-digit-tests: New file.
50244         * modules/unictype/property-hyphen-tests: New file.
50245         * modules/unictype/property-id-continue-tests: New file.
50246         * modules/unictype/property-id-start-tests: New file.
50247         * modules/unictype/property-ideographic-tests: New file.
50248         * modules/unictype/property-ids-binary-operator-tests: New file.
50249         * modules/unictype/property-ids-trinary-operator-tests: New file.
50250         * modules/unictype/property-ignorable-control-tests: New file.
50251         * modules/unictype/property-iso-control-tests: New file.
50252         * modules/unictype/property-join-control-tests: New file.
50253         * modules/unictype/property-left-of-pair-tests: New file.
50254         * modules/unictype/property-line-separator-tests: New file.
50255         * modules/unictype/property-logical-order-exception-tests: New file.
50256         * modules/unictype/property-lowercase-tests: New file.
50257         * modules/unictype/property-math-tests: New file.
50258         * modules/unictype/property-non-break-tests: New file.
50259         * modules/unictype/property-not-a-character-tests: New file.
50260         * modules/unictype/property-numeric-tests: New file.
50261         * modules/unictype/property-other-alphabetic-tests: New file.
50262         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50263         * modules/unictype/property-other-grapheme-extend-tests: New file.
50264         * modules/unictype/property-other-id-continue-tests: New file.
50265         * modules/unictype/property-other-id-start-tests: New file.
50266         * modules/unictype/property-other-lowercase-tests: New file.
50267         * modules/unictype/property-other-math-tests: New file.
50268         * modules/unictype/property-other-uppercase-tests: New file.
50269         * modules/unictype/property-paired-punctuation-tests: New file.
50270         * modules/unictype/property-paragraph-separator-tests: New file.
50271         * modules/unictype/property-pattern-syntax-tests: New file.
50272         * modules/unictype/property-pattern-white-space-tests: New file.
50273         * modules/unictype/property-private-use-tests: New file.
50274         * modules/unictype/property-punctuation-tests: New file.
50275         * modules/unictype/property-quotation-mark-tests: New file.
50276         * modules/unictype/property-radical-tests: New file.
50277         * modules/unictype/property-sentence-terminal-tests: New file.
50278         * modules/unictype/property-soft-dotted-tests: New file.
50279         * modules/unictype/property-space-tests: New file.
50280         * modules/unictype/property-terminal-punctuation-tests: New file.
50281         * modules/unictype/property-test-tests: New file.
50282         * modules/unictype/property-titlecase-tests: New file.
50283         * modules/unictype/property-unassigned-code-value-tests: New file.
50284         * modules/unictype/property-unified-ideograph-tests: New file.
50285         * modules/unictype/property-uppercase-tests: New file.
50286         * modules/unictype/property-variation-selector-tests: New file.
50287         * modules/unictype/property-white-space-tests: New file.
50288         * modules/unictype/property-xid-continue-tests: New file.
50289         * modules/unictype/property-xid-start-tests: New file.
50290         * modules/unictype/property-zero-width-tests: New file.
50291         * modules/unictype/scripts-tests: New file.
50292         * modules/unictype/syntax-c-ident-tests: New file.
50293         * modules/unictype/syntax-c-whitespace-tests: New file.
50294         * modules/unictype/syntax-java-ident-tests: New file.
50295         * modules/unictype/syntax-java-whitespace-tests: New file.
50296         * tests/unictype/test-bidi_byname.c: New file.
50297         * tests/unictype/test-bidi_name.c: New file.
50298         * tests/unictype/test-bidi_of.c: New file.
50299         * tests/unictype/test-bidi_test.c: New file.
50300         * tests/unictype/test-block_list.c: New file.
50301         * tests/unictype/test-block_of.c: New file.
50302         * tests/unictype/test-block_test.c: New file.
50303         * tests/unictype/test-categ_and.c: New file.
50304         * tests/unictype/test-categ_and_not.c: New file.
50305         * tests/unictype/test-categ_byname.c: New file.
50306         * tests/unictype/test-categ_name.c: New file.
50307         * tests/unictype/test-categ_none.c: New file.
50308         * tests/unictype/test-categ_of.c: New file.
50309         * tests/unictype/test-categ_or.c: New file.
50310         * tests/unictype/test-categ_test_withtable.c: New file.
50311         * tests/unictype/test-combining.c: New file.
50312         * tests/unictype/test-decdigit.c: New file.
50313         * tests/unictype/test-digit.c: New file.
50314         * tests/unictype/test-mirror.c: New file.
50315         * tests/unictype/test-numeric.c: New file.
50316         * tests/unictype/test-pr_byname.c: New file.
50317         * tests/unictype/test-pr_test.c: New file.
50318         * tests/unictype/test-predicate-part1.h: New file.
50319         * tests/unictype/test-predicate-part2.h: New file.
50320         * tests/unictype/test-scripts.c: New file.
50321         * tests/unictype/test-sy_c_ident.c: New file.
50322         * tests/unictype/test-sy_java_ident.c: New file.
50323
50324         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50325         for Unicode 5.0.0.
50326         * tests/unictype/test-categ_Cc.c: Likewise.
50327         * tests/unictype/test-categ_Cf.c: Likewise.
50328         * tests/unictype/test-categ_Cn.c: Likewise.
50329         * tests/unictype/test-categ_Co.c: Likewise.
50330         * tests/unictype/test-categ_Cs.c: Likewise.
50331         * tests/unictype/test-categ_L.c: Likewise.
50332         * tests/unictype/test-categ_Ll.c: Likewise.
50333         * tests/unictype/test-categ_Lm.c: Likewise.
50334         * tests/unictype/test-categ_Lo.c: Likewise.
50335         * tests/unictype/test-categ_Lt.c: Likewise.
50336         * tests/unictype/test-categ_Lu.c: Likewise.
50337         * tests/unictype/test-categ_M.c: Likewise.
50338         * tests/unictype/test-categ_Mc.c: Likewise.
50339         * tests/unictype/test-categ_Me.c: Likewise.
50340         * tests/unictype/test-categ_Mn.c: Likewise.
50341         * tests/unictype/test-categ_N.c: Likewise.
50342         * tests/unictype/test-categ_Nd.c: Likewise.
50343         * tests/unictype/test-categ_Nl.c: Likewise.
50344         * tests/unictype/test-categ_No.c: Likewise.
50345         * tests/unictype/test-categ_P.c: Likewise.
50346         * tests/unictype/test-categ_Pc.c: Likewise.
50347         * tests/unictype/test-categ_Pd.c: Likewise.
50348         * tests/unictype/test-categ_Pe.c: Likewise.
50349         * tests/unictype/test-categ_Pf.c: Likewise.
50350         * tests/unictype/test-categ_Pi.c: Likewise.
50351         * tests/unictype/test-categ_Po.c: Likewise.
50352         * tests/unictype/test-categ_Ps.c: Likewise.
50353         * tests/unictype/test-categ_S.c: Likewise.
50354         * tests/unictype/test-categ_Sc.c: Likewise.
50355         * tests/unictype/test-categ_Sk.c: Likewise.
50356         * tests/unictype/test-categ_Sm.c: Likewise.
50357         * tests/unictype/test-categ_So.c: Likewise.
50358         * tests/unictype/test-categ_Z.c: Likewise.
50359         * tests/unictype/test-categ_Zl.c: Likewise.
50360         * tests/unictype/test-categ_Zp.c: Likewise.
50361         * tests/unictype/test-categ_Zs.c: Likewise.
50362         * tests/unictype/test-ctype_alnum.c: Likewise.
50363         * tests/unictype/test-ctype_alpha.c: Likewise.
50364         * tests/unictype/test-ctype_blank.c: Likewise.
50365         * tests/unictype/test-ctype_cntrl.c: Likewise.
50366         * tests/unictype/test-ctype_digit.c: Likewise.
50367         * tests/unictype/test-ctype_graph.c: Likewise.
50368         * tests/unictype/test-ctype_lower.c: Likewise.
50369         * tests/unictype/test-ctype_print.c: Likewise.
50370         * tests/unictype/test-ctype_punct.c: Likewise.
50371         * tests/unictype/test-ctype_space.c: Likewise.
50372         * tests/unictype/test-ctype_upper.c: Likewise.
50373         * tests/unictype/test-ctype_xdigit.c: Likewise.
50374         * tests/unictype/test-decdigit.h: Likewise.
50375         * tests/unictype/test-digit.h: Likewise.
50376         * tests/unictype/test-numeric.h: Likewise.
50377         * tests/unictype/test-pr_alphabetic.c: Likewise.
50378         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50379         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50380         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50381         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50382         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50383         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50384         * tests/unictype/test-pr_bidi_control.c: Likewise.
50385         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50386         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50387         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50388         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50389         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50390         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50391         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50392         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50393         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50394         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50395         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50396         * tests/unictype/test-pr_combining.c: Likewise.
50397         * tests/unictype/test-pr_composite.c: Likewise.
50398         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50399         * tests/unictype/test-pr_dash.c: Likewise.
50400         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50401         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50402         * tests/unictype/test-pr_deprecated.c: Likewise.
50403         * tests/unictype/test-pr_diacritic.c: Likewise.
50404         * tests/unictype/test-pr_extender.c: Likewise.
50405         * tests/unictype/test-pr_format_control.c: Likewise.
50406         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50407         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50408         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50409         * tests/unictype/test-pr_hex_digit.c: Likewise.
50410         * tests/unictype/test-pr_hyphen.c: Likewise.
50411         * tests/unictype/test-pr_id_continue.c: Likewise.
50412         * tests/unictype/test-pr_id_start.c: Likewise.
50413         * tests/unictype/test-pr_ideographic.c: Likewise.
50414         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50415         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50416         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50417         * tests/unictype/test-pr_iso_control.c: Likewise.
50418         * tests/unictype/test-pr_join_control.c: Likewise.
50419         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50420         * tests/unictype/test-pr_line_separator.c: Likewise.
50421         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50422         * tests/unictype/test-pr_lowercase.c: Likewise.
50423         * tests/unictype/test-pr_math.c: Likewise.
50424         * tests/unictype/test-pr_non_break.c: Likewise.
50425         * tests/unictype/test-pr_not_a_character.c: Likewise.
50426         * tests/unictype/test-pr_numeric.c: Likewise.
50427         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50428         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50429         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50430         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50431         * tests/unictype/test-pr_other_id_start.c: Likewise.
50432         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50433         * tests/unictype/test-pr_other_math.c: Likewise.
50434         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50435         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50436         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50437         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50438         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50439         * tests/unictype/test-pr_private_use.c: Likewise.
50440         * tests/unictype/test-pr_punctuation.c: Likewise.
50441         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50442         * tests/unictype/test-pr_radical.c: Likewise.
50443         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50444         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50445         * tests/unictype/test-pr_space.c: Likewise.
50446         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50447         * tests/unictype/test-pr_titlecase.c: Likewise.
50448         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50449         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50450         * tests/unictype/test-pr_uppercase.c: Likewise.
50451         * tests/unictype/test-pr_variation_selector.c: Likewise.
50452         * tests/unictype/test-pr_white_space.c: Likewise.
50453         * tests/unictype/test-pr_xid_continue.c: Likewise.
50454         * tests/unictype/test-pr_xid_start.c: Likewise.
50455         * tests/unictype/test-pr_zero_width.c: Likewise.
50456         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50457         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50458
50459 2007-11-12  Bruno Haible  <bruno@clisp.org>
50460
50461         Unicode character classification functions.
50462         * lib/unictype.h: New file.
50463         * modules/unictype/base: New file.
50464         * modules/unictype/category-L: New file.
50465         * modules/unictype/category-Lu: New file.
50466         * modules/unictype/category-Ll: New file.
50467         * modules/unictype/category-Lt: New file.
50468         * modules/unictype/category-Lm: New file.
50469         * modules/unictype/category-Lo: New file.
50470         * modules/unictype/category-M: New file.
50471         * modules/unictype/category-Mn: New file.
50472         * modules/unictype/category-Mc: New file.
50473         * modules/unictype/category-Me: New file.
50474         * modules/unictype/category-N: New file.
50475         * modules/unictype/category-Nd: New file.
50476         * modules/unictype/category-Nl: New file.
50477         * modules/unictype/category-No: New file.
50478         * modules/unictype/category-P: New file.
50479         * modules/unictype/category-Pc: New file.
50480         * modules/unictype/category-Pd: New file.
50481         * modules/unictype/category-Ps: New file.
50482         * modules/unictype/category-Pe: New file.
50483         * modules/unictype/category-Pi: New file.
50484         * modules/unictype/category-Pf: New file.
50485         * modules/unictype/category-Po: New file.
50486         * modules/unictype/category-S: New file.
50487         * modules/unictype/category-Sm: New file.
50488         * modules/unictype/category-Sc: New file.
50489         * modules/unictype/category-Sk: New file.
50490         * modules/unictype/category-So: New file.
50491         * modules/unictype/category-Z: New file.
50492         * modules/unictype/category-Zs: New file.
50493         * modules/unictype/category-Zl: New file.
50494         * modules/unictype/category-Zp: New file.
50495         * modules/unictype/category-C: New file.
50496         * modules/unictype/category-Cc: New file.
50497         * modules/unictype/category-Cf: New file.
50498         * modules/unictype/category-Cs: New file.
50499         * modules/unictype/category-Co: New file.
50500         * modules/unictype/category-Cn: New file.
50501         * modules/unictype/category-or: New file.
50502         * modules/unictype/category-of: New file.
50503         * modules/unictype/category-test: New file.
50504         * modules/unictype/category-test-withtable: New file.
50505         * modules/unictype/category-byname: New file.
50506         * modules/unictype/category-none: New file.
50507         * modules/unictype/category-and: New file.
50508         * modules/unictype/category-and-not: New file.
50509         * modules/unictype/category-name: New file.
50510         * modules/unictype/combining-class: New file.
50511         * modules/unictype/category-all: New file.
50512         * modules/unictype/bidicategory-all: New file.
50513         * modules/unictype/bidicategory-byname: New file.
50514         * modules/unictype/bidicategory-name: New file.
50515         * modules/unictype/bidicategory-of: New file.
50516         * modules/unictype/bidicategory-test: New file.
50517         * modules/unictype/decimal-digit: New file.
50518         * modules/unictype/digit: New file.
50519         * modules/unictype/numeric: New file.
50520         * modules/unictype/mirror: New file.
50521         * modules/unictype/property-white-space: New file.
50522         * modules/unictype/property-alphabetic: New file.
50523         * modules/unictype/property-other-alphabetic: New file.
50524         * modules/unictype/property-not-a-character: New file.
50525         * modules/unictype/property-default-ignorable-code-point: New file.
50526         * modules/unictype/property-other-default-ignorable-code-point: New
50527         file.
50528         * modules/unictype/property-deprecated: New file.
50529         * modules/unictype/property-logical-order-exception: New file.
50530         * modules/unictype/property-variation-selector: New file.
50531         * modules/unictype/property-private-use: New file.
50532         * modules/unictype/property-unassigned-code-value: New file.
50533         * modules/unictype/property-uppercase: New file.
50534         * modules/unictype/property-other-uppercase: New file.
50535         * modules/unictype/property-lowercase: New file.
50536         * modules/unictype/property-other-lowercase: New file.
50537         * modules/unictype/property-titlecase: New file.
50538         * modules/unictype/property-soft-dotted: New file.
50539         * modules/unictype/property-id-start: New file.
50540         * modules/unictype/property-other-id-start: New file.
50541         * modules/unictype/property-id-continue: New file.
50542         * modules/unictype/property-other-id-continue: New file.
50543         * modules/unictype/property-xid-start: New file.
50544         * modules/unictype/property-xid-continue: New file.
50545         * modules/unictype/property-pattern-white-space: New file.
50546         * modules/unictype/property-pattern-syntax: New file.
50547         * modules/unictype/property-join-control: New file.
50548         * modules/unictype/property-grapheme-base: New file.
50549         * modules/unictype/property-grapheme-extend: New file.
50550         * modules/unictype/property-other-grapheme-extend: New file.
50551         * modules/unictype/property-grapheme-link: New file.
50552         * modules/unictype/property-bidi-control: New file.
50553         * modules/unictype/property-bidi-left-to-right: New file.
50554         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50555         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50556         * modules/unictype/property-bidi-european-digit: New file.
50557         * modules/unictype/property-bidi-eur-num-separator: New file.
50558         * modules/unictype/property-bidi-eur-num-terminator: New file.
50559         * modules/unictype/property-bidi-arabic-digit: New file.
50560         * modules/unictype/property-bidi-common-separator: New file.
50561         * modules/unictype/property-bidi-block-separator: New file.
50562         * modules/unictype/property-bidi-segment-separator: New file.
50563         * modules/unictype/property-bidi-whitespace: New file.
50564         * modules/unictype/property-bidi-non-spacing-mark: New file.
50565         * modules/unictype/property-bidi-boundary-neutral: New file.
50566         * modules/unictype/property-bidi-pdf: New file.
50567         * modules/unictype/property-bidi-embedding-or-override: New file.
50568         * modules/unictype/property-bidi-other-neutral: New file.
50569         * modules/unictype/property-hex-digit: New file.
50570         * modules/unictype/property-ascii-hex-digit: New file.
50571         * modules/unictype/property-ideographic: New file.
50572         * modules/unictype/property-unified-ideograph: New file.
50573         * modules/unictype/property-radical: New file.
50574         * modules/unictype/property-ids-binary-operator: New file.
50575         * modules/unictype/property-ids-trinary-operator: New file.
50576         * modules/unictype/property-zero-width: New file.
50577         * modules/unictype/property-space: New file.
50578         * modules/unictype/property-non-break: New file.
50579         * modules/unictype/property-iso-control: New file.
50580         * modules/unictype/property-format-control: New file.
50581         * modules/unictype/property-dash: New file.
50582         * modules/unictype/property-hyphen: New file.
50583         * modules/unictype/property-punctuation: New file.
50584         * modules/unictype/property-line-separator: New file.
50585         * modules/unictype/property-paragraph-separator: New file.
50586         * modules/unictype/property-quotation-mark: New file.
50587         * modules/unictype/property-sentence-terminal: New file.
50588         * modules/unictype/property-terminal-punctuation: New file.
50589         * modules/unictype/property-currency-symbol: New file.
50590         * modules/unictype/property-math: New file.
50591         * modules/unictype/property-other-math: New file.
50592         * modules/unictype/property-paired-punctuation: New file.
50593         * modules/unictype/property-left-of-pair: New file.
50594         * modules/unictype/property-combining: New file.
50595         * modules/unictype/property-composite: New file.
50596         * modules/unictype/property-decimal-digit: New file.
50597         * modules/unictype/property-numeric: New file.
50598         * modules/unictype/property-diacritic: New file.
50599         * modules/unictype/property-extender: New file.
50600         * modules/unictype/property-ignorable-control: New file.
50601         * modules/unictype/property-test: New file.
50602         * modules/unictype/property-byname: New file.
50603         * modules/unictype/property-all: New file.
50604         * modules/unictype/scripts: New file.
50605         * modules/unictype/scripts-all: New file.
50606         * modules/unictype/block-of: New file.
50607         * modules/unictype/block-test: New file.
50608         * modules/unictype/block-list: New file.
50609         * modules/unictype/block-all: New file.
50610         * modules/unictype/syntax-c-whitespace: New file.
50611         * modules/unictype/syntax-java-whitespace: New file.
50612         * modules/unictype/syntax-c-ident: New file.
50613         * modules/unictype/syntax-java-ident: New file.
50614         * modules/unictype/ctype-alnum: New file.
50615         * modules/unictype/ctype-alpha: New file.
50616         * modules/unictype/ctype-cntrl: New file.
50617         * modules/unictype/ctype-digit: New file.
50618         * modules/unictype/ctype-graph: New file.
50619         * modules/unictype/ctype-lower: New file.
50620         * modules/unictype/ctype-print: New file.
50621         * modules/unictype/ctype-punct: New file.
50622         * modules/unictype/ctype-space: New file.
50623         * modules/unictype/ctype-upper: New file.
50624         * modules/unictype/ctype-xdigit: New file.
50625         * modules/unictype/ctype-blank: New file.
50626         * lib/unictype/bidi_byname.c: New file.
50627         * lib/unictype/bidi_name.c: New file.
50628         * lib/unictype/bidi_of.c: New file.
50629         * lib/unictype/bidi_test.c: New file.
50630         * lib/unictype/bitmap.h: New file.
50631         * lib/unictype/block_test.c: New file.
50632         * lib/unictype/blocks.c: New file.
50633         * lib/unictype/categ_C.c: New file.
50634         * lib/unictype/categ_Cc.c: New file.
50635         * lib/unictype/categ_Cf.c: New file.
50636         * lib/unictype/categ_Cn.c: New file.
50637         * lib/unictype/categ_Co.c: New file.
50638         * lib/unictype/categ_Cs.c: New file.
50639         * lib/unictype/categ_L.c: New file.
50640         * lib/unictype/categ_Ll.c: New file.
50641         * lib/unictype/categ_Lm.c: New file.
50642         * lib/unictype/categ_Lo.c: New file.
50643         * lib/unictype/categ_Lt.c: New file.
50644         * lib/unictype/categ_Lu.c: New file.
50645         * lib/unictype/categ_M.c: New file.
50646         * lib/unictype/categ_Mc.c: New file.
50647         * lib/unictype/categ_Me.c: New file.
50648         * lib/unictype/categ_Mn.c: New file.
50649         * lib/unictype/categ_N.c: New file.
50650         * lib/unictype/categ_Nd.c: New file.
50651         * lib/unictype/categ_Nl.c: New file.
50652         * lib/unictype/categ_No.c: New file.
50653         * lib/unictype/categ_P.c: New file.
50654         * lib/unictype/categ_Pc.c: New file.
50655         * lib/unictype/categ_Pd.c: New file.
50656         * lib/unictype/categ_Pe.c: New file.
50657         * lib/unictype/categ_Pf.c: New file.
50658         * lib/unictype/categ_Pi.c: New file.
50659         * lib/unictype/categ_Po.c: New file.
50660         * lib/unictype/categ_Ps.c: New file.
50661         * lib/unictype/categ_S.c: New file.
50662         * lib/unictype/categ_Sc.c: New file.
50663         * lib/unictype/categ_Sk.c: New file.
50664         * lib/unictype/categ_Sm.c: New file.
50665         * lib/unictype/categ_So.c: New file.
50666         * lib/unictype/categ_Z.c: New file.
50667         * lib/unictype/categ_Zl.c: New file.
50668         * lib/unictype/categ_Zp.c: New file.
50669         * lib/unictype/categ_Zs.c: New file.
50670         * lib/unictype/categ_and.c: New file.
50671         * lib/unictype/categ_and_not.c: New file.
50672         * lib/unictype/categ_byname.c: New file.
50673         * lib/unictype/categ_name.c: New file.
50674         * lib/unictype/categ_none.c: New file.
50675         * lib/unictype/categ_of.c: New file.
50676         * lib/unictype/categ_or.c: New file.
50677         * lib/unictype/categ_test.c: New file.
50678         * lib/unictype/combining.c: New file.
50679         * lib/unictype/ctype_alnum.c: New file.
50680         * lib/unictype/ctype_alpha.c: New file.
50681         * lib/unictype/ctype_blank.c: New file.
50682         * lib/unictype/ctype_cntrl.c: New file.
50683         * lib/unictype/ctype_digit.c: New file.
50684         * lib/unictype/ctype_graph.c: New file.
50685         * lib/unictype/ctype_lower.c: New file.
50686         * lib/unictype/ctype_print.c: New file.
50687         * lib/unictype/ctype_punct.c: New file.
50688         * lib/unictype/ctype_space.c: New file.
50689         * lib/unictype/ctype_upper.c: New file.
50690         * lib/unictype/ctype_xdigit.c: New file.
50691         * lib/unictype/decdigit.c: New file.
50692         * lib/unictype/digit.c: New file.
50693         * lib/unictype/identsyntaxmap.h: New file.
50694         * lib/unictype/mirror.c: New file.
50695         * lib/unictype/numeric.c: New file.
50696         * lib/unictype/pr_alphabetic.c: New file.
50697         * lib/unictype/pr_ascii_hex_digit.c: New file.
50698         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50699         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50700         * lib/unictype/pr_bidi_block_separator.c: New file.
50701         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50702         * lib/unictype/pr_bidi_common_separator.c: New file.
50703         * lib/unictype/pr_bidi_control.c: New file.
50704         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50705         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50706         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50707         * lib/unictype/pr_bidi_european_digit.c: New file.
50708         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50709         * lib/unictype/pr_bidi_left_to_right.c: New file.
50710         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50711         * lib/unictype/pr_bidi_other_neutral.c: New file.
50712         * lib/unictype/pr_bidi_pdf.c: New file.
50713         * lib/unictype/pr_bidi_segment_separator.c: New file.
50714         * lib/unictype/pr_bidi_whitespace.c: New file.
50715         * lib/unictype/pr_byname.c: New file.
50716         * lib/unictype/pr_byname.gperf: New file.
50717         * lib/unictype/pr_combining.c: New file.
50718         * lib/unictype/pr_composite.c: New file.
50719         * lib/unictype/pr_currency_symbol.c: New file.
50720         * lib/unictype/pr_dash.c: New file.
50721         * lib/unictype/pr_decimal_digit.c: New file.
50722         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50723         * lib/unictype/pr_deprecated.c: New file.
50724         * lib/unictype/pr_diacritic.c: New file.
50725         * lib/unictype/pr_extender.c: New file.
50726         * lib/unictype/pr_format_control.c: New file.
50727         * lib/unictype/pr_grapheme_base.c: New file.
50728         * lib/unictype/pr_grapheme_extend.c: New file.
50729         * lib/unictype/pr_grapheme_link.c: New file.
50730         * lib/unictype/pr_hex_digit.c: New file.
50731         * lib/unictype/pr_hyphen.c: New file.
50732         * lib/unictype/pr_id_continue.c: New file.
50733         * lib/unictype/pr_id_start.c: New file.
50734         * lib/unictype/pr_ideographic.c: New file.
50735         * lib/unictype/pr_ids_binary_operator.c: New file.
50736         * lib/unictype/pr_ids_trinary_operator.c: New file.
50737         * lib/unictype/pr_ignorable_control.c: New file.
50738         * lib/unictype/pr_iso_control.c: New file.
50739         * lib/unictype/pr_join_control.c: New file.
50740         * lib/unictype/pr_left_of_pair.c: New file.
50741         * lib/unictype/pr_line_separator.c: New file.
50742         * lib/unictype/pr_logical_order_exception.c: New file.
50743         * lib/unictype/pr_lowercase.c: New file.
50744         * lib/unictype/pr_math.c: New file.
50745         * lib/unictype/pr_non_break.c: New file.
50746         * lib/unictype/pr_not_a_character.c: New file.
50747         * lib/unictype/pr_numeric.c: New file.
50748         * lib/unictype/pr_other_alphabetic.c: New file.
50749         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50750         * lib/unictype/pr_other_grapheme_extend.c: New file.
50751         * lib/unictype/pr_other_id_continue.c: New file.
50752         * lib/unictype/pr_other_id_start.c: New file.
50753         * lib/unictype/pr_other_lowercase.c: New file.
50754         * lib/unictype/pr_other_math.c: New file.
50755         * lib/unictype/pr_other_uppercase.c: New file.
50756         * lib/unictype/pr_paired_punctuation.c: New file.
50757         * lib/unictype/pr_paragraph_separator.c: New file.
50758         * lib/unictype/pr_pattern_syntax.c: New file.
50759         * lib/unictype/pr_pattern_white_space.c: New file.
50760         * lib/unictype/pr_private_use.c: New file.
50761         * lib/unictype/pr_punctuation.c: New file.
50762         * lib/unictype/pr_quotation_mark.c: New file.
50763         * lib/unictype/pr_radical.c: New file.
50764         * lib/unictype/pr_sentence_terminal.c: New file.
50765         * lib/unictype/pr_soft_dotted.c: New file.
50766         * lib/unictype/pr_space.c: New file.
50767         * lib/unictype/pr_terminal_punctuation.c: New file.
50768         * lib/unictype/pr_test.c: New file.
50769         * lib/unictype/pr_titlecase.c: New file.
50770         * lib/unictype/pr_unassigned_code_value.c: New file.
50771         * lib/unictype/pr_unified_ideograph.c: New file.
50772         * lib/unictype/pr_uppercase.c: New file.
50773         * lib/unictype/pr_variation_selector.c: New file.
50774         * lib/unictype/pr_white_space.c: New file.
50775         * lib/unictype/pr_xid_continue.c: New file.
50776         * lib/unictype/pr_xid_start.c: New file.
50777         * lib/unictype/pr_zero_width.c: New file.
50778         * lib/unictype/scripts.c: New file.
50779         * lib/unictype/sy_c_ident.c: New file.
50780         * lib/unictype/sy_c_whitespace.c: New file.
50781         * lib/unictype/sy_java_ident.c: New file.
50782         * lib/unictype/sy_java_whitespace.c: New file.
50783
50784         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50785         Unicode 5.0.0.
50786         * lib/unictype/blocks.h: Likewise.
50787         * lib/unictype/categ_C.h: Likewise.
50788         * lib/unictype/categ_Cc.h: Likewise.
50789         * lib/unictype/categ_Cf.h: Likewise.
50790         * lib/unictype/categ_Cn.h: Likewise.
50791         * lib/unictype/categ_Co.h: Likewise.
50792         * lib/unictype/categ_Cs.h: Likewise.
50793         * lib/unictype/categ_L.h: Likewise.
50794         * lib/unictype/categ_Ll.h: Likewise.
50795         * lib/unictype/categ_Lm.h: Likewise.
50796         * lib/unictype/categ_Lo.h: Likewise.
50797         * lib/unictype/categ_Lt.h: Likewise.
50798         * lib/unictype/categ_Lu.h: Likewise.
50799         * lib/unictype/categ_M.h: Likewise.
50800         * lib/unictype/categ_Mc.h: Likewise.
50801         * lib/unictype/categ_Me.h: Likewise.
50802         * lib/unictype/categ_Mn.h: Likewise.
50803         * lib/unictype/categ_N.h: Likewise.
50804         * lib/unictype/categ_Nd.h: Likewise.
50805         * lib/unictype/categ_Nl.h: Likewise.
50806         * lib/unictype/categ_No.h: Likewise.
50807         * lib/unictype/categ_P.h: Likewise.
50808         * lib/unictype/categ_Pc.h: Likewise.
50809         * lib/unictype/categ_Pd.h: Likewise.
50810         * lib/unictype/categ_Pe.h: Likewise.
50811         * lib/unictype/categ_Pf.h: Likewise.
50812         * lib/unictype/categ_Pi.h: Likewise.
50813         * lib/unictype/categ_Po.h: Likewise.
50814         * lib/unictype/categ_Ps.h: Likewise.
50815         * lib/unictype/categ_S.h: Likewise.
50816         * lib/unictype/categ_Sc.h: Likewise.
50817         * lib/unictype/categ_Sk.h: Likewise.
50818         * lib/unictype/categ_Sm.h: Likewise.
50819         * lib/unictype/categ_So.h: Likewise.
50820         * lib/unictype/categ_Z.h: Likewise.
50821         * lib/unictype/categ_Zl.h: Likewise.
50822         * lib/unictype/categ_Zp.h: Likewise.
50823         * lib/unictype/categ_Zs.h: Likewise.
50824         * lib/unictype/categ_of.h: Likewise.
50825         * lib/unictype/combining.h: Likewise.
50826         * lib/unictype/ctype_alnum.h: Likewise.
50827         * lib/unictype/ctype_alpha.h: Likewise.
50828         * lib/unictype/ctype_blank.h: Likewise.
50829         * lib/unictype/ctype_cntrl.h: Likewise.
50830         * lib/unictype/ctype_digit.h: Likewise.
50831         * lib/unictype/ctype_graph.h: Likewise.
50832         * lib/unictype/ctype_lower.h: Likewise.
50833         * lib/unictype/ctype_print.h: Likewise.
50834         * lib/unictype/ctype_punct.h: Likewise.
50835         * lib/unictype/ctype_space.h: Likewise.
50836         * lib/unictype/ctype_upper.h: Likewise.
50837         * lib/unictype/ctype_xdigit.h: Likewise.
50838         * lib/unictype/decdigit.h: Likewise.
50839         * lib/unictype/digit.h: Likewise.
50840         * lib/unictype/mirror.h: Likewise.
50841         * lib/unictype/numeric.h: Likewise.
50842         * lib/unictype/pr_alphabetic.h: Likewise.
50843         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50844         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50845         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50846         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50847         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50848         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50849         * lib/unictype/pr_bidi_control.h: Likewise.
50850         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50851         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50852         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50853         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50854         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50855         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50856         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50857         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50858         * lib/unictype/pr_bidi_pdf.h: Likewise.
50859         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50860         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50861         * lib/unictype/pr_combining.h: Likewise.
50862         * lib/unictype/pr_composite.h: Likewise.
50863         * lib/unictype/pr_currency_symbol.h: Likewise.
50864         * lib/unictype/pr_dash.h: Likewise.
50865         * lib/unictype/pr_decimal_digit.h: Likewise.
50866         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50867         * lib/unictype/pr_deprecated.h: Likewise.
50868         * lib/unictype/pr_diacritic.h: Likewise.
50869         * lib/unictype/pr_extender.h: Likewise.
50870         * lib/unictype/pr_format_control.h: Likewise.
50871         * lib/unictype/pr_grapheme_base.h: Likewise.
50872         * lib/unictype/pr_grapheme_extend.h: Likewise.
50873         * lib/unictype/pr_grapheme_link.h: Likewise.
50874         * lib/unictype/pr_hex_digit.h: Likewise.
50875         * lib/unictype/pr_hyphen.h: Likewise.
50876         * lib/unictype/pr_id_continue.h: Likewise.
50877         * lib/unictype/pr_id_start.h: Likewise.
50878         * lib/unictype/pr_ideographic.h: Likewise.
50879         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50880         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50881         * lib/unictype/pr_ignorable_control.h: Likewise.
50882         * lib/unictype/pr_iso_control.h: Likewise.
50883         * lib/unictype/pr_join_control.h: Likewise.
50884         * lib/unictype/pr_left_of_pair.h: Likewise.
50885         * lib/unictype/pr_line_separator.h: Likewise.
50886         * lib/unictype/pr_logical_order_exception.h: Likewise.
50887         * lib/unictype/pr_lowercase.h: Likewise.
50888         * lib/unictype/pr_math.h: Likewise.
50889         * lib/unictype/pr_non_break.h: Likewise.
50890         * lib/unictype/pr_not_a_character.h: Likewise.
50891         * lib/unictype/pr_numeric.h: Likewise.
50892         * lib/unictype/pr_other_alphabetic.h: Likewise.
50893         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50894         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50895         * lib/unictype/pr_other_id_continue.h: Likewise.
50896         * lib/unictype/pr_other_id_start.h: Likewise.
50897         * lib/unictype/pr_other_lowercase.h: Likewise.
50898         * lib/unictype/pr_other_math.h: Likewise.
50899         * lib/unictype/pr_other_uppercase.h: Likewise.
50900         * lib/unictype/pr_paired_punctuation.h: Likewise.
50901         * lib/unictype/pr_paragraph_separator.h: Likewise.
50902         * lib/unictype/pr_pattern_syntax.h: Likewise.
50903         * lib/unictype/pr_pattern_white_space.h: Likewise.
50904         * lib/unictype/pr_private_use.h: Likewise.
50905         * lib/unictype/pr_punctuation.h: Likewise.
50906         * lib/unictype/pr_quotation_mark.h: Likewise.
50907         * lib/unictype/pr_radical.h: Likewise.
50908         * lib/unictype/pr_sentence_terminal.h: Likewise.
50909         * lib/unictype/pr_soft_dotted.h: Likewise.
50910         * lib/unictype/pr_space.h: Likewise.
50911         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50912         * lib/unictype/pr_titlecase.h: Likewise.
50913         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50914         * lib/unictype/pr_unified_ideograph.h: Likewise.
50915         * lib/unictype/pr_uppercase.h: Likewise.
50916         * lib/unictype/pr_variation_selector.h: Likewise.
50917         * lib/unictype/pr_white_space.h: Likewise.
50918         * lib/unictype/pr_xid_continue.h: Likewise.
50919         * lib/unictype/pr_xid_start.h: Likewise.
50920         * lib/unictype/pr_zero_width.h: Likewise.
50921         * lib/unictype/scripts.h: Likewise.
50922         * lib/unictype/scripts_byname.gperf: Likewise.
50923         * lib/unictype/sy_c_ident.h: Likewise.
50924         * lib/unictype/sy_c_whitespace.h: Likewise.
50925         * lib/unictype/sy_java_ident.h: Likewise.
50926         * lib/unictype/sy_java_whitespace.h: Likewise.
50927
50928         * lib/unictype/Makefile: New file.
50929         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50930         glibc.
50931         * lib/unictype/3level.h: New file, copied from glibc.
50932         * lib/unictype/3levelbit.h: New file.
50933
50934 2007-11-11  Bruno Haible  <bruno@clisp.org>
50935
50936         * modules/gperf: New file.
50937         * modules/iconv_open (Depends-on): Add it.
50938         (Makefile.am): Remove the GPERF definition.
50939
50940 2007-11-11  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50943         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50944
50945 2007-11-11  Bruno Haible  <bruno@clisp.org>
50946
50947         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50948         (usage): Remove function.
50949
50950 2007-11-11  Bruno Haible  <bruno@clisp.org>
50951
50952         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50953         gl_FUNC_CEILF_LIBS.
50954         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50955         gl_FUNC_CEIL_LIBS.
50956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50957         gl_FUNC_CEILL_LIBS.
50958         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50959         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50960         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50961
50962 2007-11-11  Bruno Haible  <bruno@clisp.org>
50963
50964         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50965         roundf were declared but do not exist on functions.
50966         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50967         roundl were declared but do not exist on functions.
50968         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50969         HAVE_FLOORL_AND_CEILL, respectively.
50970         Needed for Sun C on Solaris 10.
50971
50972 2007-11-11  Bruno Haible  <bruno@clisp.org>
50973
50974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50975         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50976         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50977         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50979         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50980         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50981         HAVE_DECL_ROUNDF.
50982         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50983         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50985         of HAVE_DECL_ROUND*.
50986         * modules/math (Makefile.am): Update.
50987
50988 2007-11-10  Bruno Haible  <bruno@clisp.org>
50989
50990         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50991         ptrdiff_t as m4/intl.m4.
50992
50993 2007-11-10  Jim Meyering  <meyering@redhat.com>
50994
50995         Avoid link failure for the argmatch test.
50996         * tests/test-argmatch.c (usage): Define function to avoid a link
50997         failure: argmatch_die requires a usage function.
50998
50999 2007-11-09  Bruno Haible  <bruno@clisp.org>
51000
51001         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51002         * doc/functions/vsnprintf.texi: Likewise.
51003         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51004         with a size argument < 2.
51005
51006 2007-11-09  Bruno Haible  <bruno@clisp.org>
51007
51008         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51009         buffer. Fixes an inefficiency introduced on 2007-11-03.
51010
51011 2007-11-09  Bruno Haible  <bruno@clisp.org>
51012
51013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51014         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51015
51016 2007-11-08  Jim Meyering  <meyering@redhat.com>
51017
51018         Change cache variable name prefix "jm_" to "gl_" everywhere.
51019         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51020         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51021         * m4/uptime.m4: s/gl_/jm_/
51022
51023 2007-11-07  Bruno Haible  <bruno@clisp.org>
51024
51025         Update to GNU gettext 0.17.
51026         * m4/intl.m4: Update to GNU gettext 0.17.
51027         * m4/po.m4: Likewise.
51028         * modules/gettext (Files): Remove m4/ulonglong.m4.
51029         (configure.ac): Require gettext infrastructure from version 0.17.
51030
51031 2007-11-06  Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51034         symbolic values are not defined in a public header.
51035         * lib/freadable.c (freadable) [QNX]: Likewise.
51036         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51037         * lib/freading.c (freading) [QNX]: Likewise.
51038         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51039         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51040         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51041         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51042         Reported by Alain Magloire.
51043
51044         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51045
51046 2007-11-05  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51049         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51050         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51051         Reported by Eric Blake.
51052
51053 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51054             Bruno Haible  <bruno@clisp.org>
51055
51056         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51057         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51058         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51059         (malloc): Undefine also before including <stdlib.h>.
51060         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51061         Needed on OSF/1 4.0.
51062
51063 2007-11-05  Jim Meyering  <meyering@redhat.com>
51064
51065         git-version-gen: sync from coreutils.
51066         * build-aux/git-version-gen: Add comments.
51067         Change the first '-' to '.' in the snapshot version string,
51068         e.g., 6.9-377-08144 -> 6.9.377-08144
51069         Remove first parameter.
51070         Don't declare a version "-dirty" merely because a time
51071         stamp has changed.
51072
51073 2007-11-04  Bruno Haible  <bruno@clisp.org>
51074
51075         * lib/lock.h: Protect all macro definitions containing an 'if'
51076         statement through a "do { ... } while (0)".
51077         * lib/tls.h: Likewise.
51078
51079 2007-11-04  Bruno Haible  <bruno@clisp.org>
51080
51081         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51082
51083 2007-11-04  Bruno Haible  <bruno@clisp.org>
51084
51085         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51086         * modules/fprintf-posix (Depends-on): Add nocrash.
51087         * modules/snprintf-posix (Depends-on): Likewise.
51088         * modules/sprintf-posix (Depends-on): Likewise.
51089         * modules/vasnprintf-posix (Depends-on): Likewise.
51090         * modules/vasprintf-posix (Depends-on): Likewise.
51091         * modules/vfprintf-posix (Depends-on): Likewise.
51092         * modules/vsnprintf-posix (Depends-on): Likewise.
51093         * modules/vsprintf-posix (Depends-on): Likewise.
51094         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51095         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51096         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51097         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51098         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51099         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51100         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51101
51102 2007-11-04  Bruno Haible  <bruno@clisp.org>
51103
51104         * modules/nocrash: New file.
51105         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51106         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51107
51108 2007-11-04  Bruno Haible  <bruno@clisp.org>
51109
51110         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51111         precision handling.
51112         * tests/test-vasprintf-posix.c (test_function): Likewise.
51113         * tests/test-snprintf-posix.h (test_function): Likewise.
51114         * tests/test-sprintf-posix.h (test_function): Likewise.
51115
51116         Fix *printf behaviour for large precisions on mingw and BeOS.
51117         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51118         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51120         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51122         gl_PRINTF_PRECISION and test its result. Invoke
51123         gl_PREREQ_VASNPRINTF_PRECISION.
51124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51131         * doc/functions/fprintf.texi: Update.
51132         * doc/functions/printf.texi: Update.
51133         * doc/functions/snprintf.texi: Update.
51134         * doc/functions/sprintf.texi: Update.
51135         * doc/functions/vfprintf.texi: Update.
51136         * doc/functions/vprintf.texi: Update.
51137         * doc/functions/vsnprintf.texi: Update.
51138         * doc/functions/vsprintf.texi: Update.
51139
51140 2007-11-04  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51143
51144 2007-11-04  Bruno Haible  <bruno@clisp.org>
51145
51146         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51147         Reported by Sylvain Beucler <beuc@gnu.org>.
51148
51149 2007-11-03  Bruno Haible  <bruno@clisp.org>
51150
51151         * tests/test-fprintf-posix2.sh: New file.
51152         * tests/test-fprintf-posix2.c: New file.
51153         * modules/fprintf-posix-tests (Files): Add them.
51154         (TESTS): Add test-fprintf-posix2.sh.
51155         (configure.ac): Check for getrlimit and setrlimit.
51156         (check_PROGRAMS): Add test-fprintf-posix2.
51157
51158         * tests/test-printf-posix2.sh: New file.
51159         * tests/test-printf-posix2.c: New file.
51160         * modules/printf-posix-tests (Files): Add them.
51161         (TESTS): Add test-printf-posix2.sh.
51162         (configure.ac): Check for getrlimit and setrlimit.
51163         (check_PROGRAMS): Add test-printf-posix2.
51164
51165         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51166         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51167         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51168         (decode_double): New function, copied from decode_long_double.
51169         (scale10_round_decimal_decoded): New function, extracted from
51170         scale10_round_decimal_long_double.
51171         (scale10_round_decimal_long_double): Use it.
51172         (scale10_round_decimal_double): New function.
51173         (floorlog10): New function.
51174         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51176         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51178         gl_PRINTF_ENOMEM and test its result. Invoke
51179         gl_PREREQ_VASNPRINTF_ENOMEM.
51180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51187         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51188         * modules/snprintf-posix (Depends-on): Likewise.
51189         * modules/sprintf-posix (Depends-on): Likewise.
51190         * modules/vasnprintf-posix (Depends-on): Likewise.
51191         * modules/vasprintf-posix (Depends-on): Likewise.
51192         * modules/vfprintf-posix (Depends-on): Likewise.
51193         * modules/vsnprintf-posix (Depends-on): Likewise.
51194         * modules/vsprintf-posix (Depends-on): Likewise.
51195         * doc/functions/fprintf.texi: Update.
51196         * doc/functions/printf.texi: Update.
51197         * doc/functions/snprintf.texi: Update.
51198         * doc/functions/sprintf.texi: Update.
51199         * doc/functions/vfprintf.texi: Update.
51200         * doc/functions/vprintf.texi: Update.
51201         * doc/functions/vsnprintf.texi: Update.
51202         * doc/functions/vsprintf.texi: Update.
51203
51204 2007-11-03  Bruno Haible  <bruno@clisp.org>
51205
51206         * modules/frexp-nolibm-tests: New file.
51207
51208         * modules/frexp-nolibm: New file.
51209         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51210
51211 2007-11-03  Bruno Haible  <bruno@clisp.org>
51212
51213         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51214         value is C99 compliant.
51215         Needed for OSF/1 5.1.
51216
51217 2007-11-03  Bruno Haible  <bruno@clisp.org>
51218
51219         Fix out-of-memory handling of vasnprintf.
51220         * lib/printf-parse.c: Include <errno.h>.
51221         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51222         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51223         is already set.
51224
51225 2007-11-02  Eric Blake  <ebb9@byu.net>
51226
51227         Fix tests on cygwin.
51228         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51229
51230 2007-11-01  Bruno Haible  <bruno@clisp.org>
51231
51232         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51233         warning.
51234         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51235         needed for POSIX compatibility.
51236
51237 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51240         for compatibility with GNU.
51241
51242 2007-11-01  Bruno Haible  <bruno@clisp.org>
51243
51244         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51245         (putenv): Renamed from rpl_putenv. Change argument type from
51246         'const char *' to 'char *'.
51247         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51248         of defining putenv in config.h, just set REPLACE_PUTENV.
51249         * modules/putenv (Depends-on): Add stdlib.
51250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51251         (Include): Use <stdlib.h>.
51252         * lib/stdlib.in.h (putenv): New declaration.
51253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51254         REPLACE_PUTENV.
51255         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51256         REPLACE_PUTENV.
51257         Needed for MacOS X 10.5.0.
51258         Reported by Peter O'Gorman <peter@pogma.com>.
51259
51260 2007-11-01  Jim Meyering  <meyering@redhat.com>
51261
51262         Treat an empty date string exactly like "0".
51263         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51264         if the remaining date string (to be parsed) is empty, use "0".
51265         Reported by Mischa Molhoek and discussed in this thread:
51266         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51267
51268 2007-10-31  Bruno Haible  <bruno@clisp.org>
51269
51270         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51271         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51272         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51273         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51274         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51275         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51276
51277 2007-10-31  Bruno Haible  <bruno@clisp.org>
51278
51279         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51280         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51281         (AC_TYPE_LONG_LONG_INT): Use it.
51282         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51283         it as well.
51284         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51285         to m4/longlong.m4.
51286         * modules/stdint (Files): Remove m4/ulonglong.m4.
51287         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51288         m4/ulonglong.m4.
51289         * modules/strtoumax (Files): Likewise.
51290
51291 2007-10-30  Bruno Haible  <bruno@clisp.org>
51292
51293         * modules/xvasprintf-posix: New file.
51294         Suggested by Eric Blake.
51295
51296 2007-10-30  Bruno Haible  <bruno@clisp.org>
51297
51298         * modules/xprintf-posix-tests: New file.
51299         * tests/test-xprintf-posix.sh: New file.
51300         * tests/test-xprintf-posix.c: New file.
51301         * tests/test-xfprintf-posix.c: New file.
51302
51303         * modules/xprintf-posix: New file.
51304
51305 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51306
51307         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51308         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51309         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51310
51311 2007-10-29  Bruno Haible  <bruno@clisp.org>
51312
51313         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51314         contain the special marker '_cv_'.
51315         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51316         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51317         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51318         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51319         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51320         Reported by Ralf Wildenhues.
51321
51322 2007-10-29  Bruno Haible  <bruno@clisp.org>
51323
51324         * gnulib-tool (func_import): When --lgpl is not specified, set
51325         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51326         GPLv3.
51327         Reported by Simon Josefsson.
51328
51329 2007-10-28  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51332         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51333         HAVE_DECL_ISFINITE.
51334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51335         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51336         HAVE_DECL_ISFINITE.
51337
51338 2007-10-28  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51341         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51342
51343 2007-10-28  Bruno Haible  <bruno@clisp.org>
51344
51345         Fix link errors with Sun C 5.0 on Solaris 10.
51346         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51347         function is declared but not present in the compiler's libm.
51348         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51349         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51350         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51351         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51352         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51353         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51354         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51356         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51357         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51358         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51359         HAVE_DECL_FLOORL.
51360
51361 2007-10-28  Bruno Haible  <bruno@clisp.org>
51362
51363         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51364         gl_FUNC_FLOORL. Cache the result.
51365         (gl_FUNC_FLOORL): Use it.
51366         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51367         gl_FUNC_CEILL. Cache the result.
51368         (gl_FUNC_CEILL): Use it.
51369
51370         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51371         gl_FUNC_FLOOR. Cache the result.
51372         (gl_FUNC_FLOOR): Use it.
51373         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51374         gl_FUNC_CEIL. Cache the result.
51375         (gl_FUNC_CEIL): Use it.
51376
51377         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51378         gl_FUNC_FLOORF. Cache the result.
51379         (gl_FUNC_FLOORF): Use it.
51380         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51381         gl_FUNC_CEILF. Cache the result.
51382         (gl_FUNC_CEILF): Use it.
51383
51384 2007-10-28  Bruno Haible  <bruno@clisp.org>
51385
51386         * gnulib-tool: Allow specifying the LGPL version number through
51387         --lgpl=2 or --lgpl=3.
51388         (func_usage): Document --lgpl with argument.
51389         Handle --lgpl=... arguments.
51390         (func_import): Recognize also gl_LGPL calls with an argument. When
51391         --lgpl=2 is used and the module's license is just LGPL, report an
51392         error. Set sed_transform_lib_file according to the lgpl variable. In
51393         the generated files, use --lgpl or gl_LGPL invocations with argument,
51394         if necessary.
51395         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51396         an LGPv2+ license.
51397         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51398         gl_LGPL macro.
51399
51400 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51401             Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51404         (u16_uctomb_aux): Likewise.
51405         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51406         !HAVE_INLINE.
51407         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51408
51409 2007-10-28  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51412         Invoke AM_GETTEXT_OPTION if it exists.
51413         * modules/vasprintf: Likewise.
51414         * modules/verror: Likewise.
51415         * modules/xprintf: Likewise.
51416         * modules/xvasprintf: Likewise.
51417
51418 2007-10-27  Ben Pfaff  <blp@gnu.org>
51419
51420         * lib/math.in.h: Define isfinite macro and prototypes for
51421         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51422         implementations.
51423         * m4/math_h.m4: New substitutions for isfinite module.
51424         * lib/isfinite.c: New file.
51425         * m4/isfinite.m4: New file.
51426         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51427         * modules/isfinite: New file.
51428         * modules/isfinite-tests: New file.
51429         * tests/tests-isfinite.c: New file.
51430         * doc/functions/isfinite.texi: Mention isfinite module.
51431         * MODULES.html.sh: Mention new module.
51432
51433 2007-10-27  Ben Pfaff  <blp@gnu.org>
51434
51435         Ralf Wildenhues reported that Tru64 4.0D declares the round
51436         functions but does not have definitions.
51437         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51438         cannot be found in any library, set the output variable to
51439         "missing" instead of "".
51440         * m4/round.m4: Also use our substitute if we cannot find round in
51441         any library, even if it is declared.
51442         * m4/roundf.m4: Likewise for roundf.
51443         * m4/roundl.m4: Likewise for roundl.
51444         * lib/math.in.h: Undefine roundf, round, roundl before defining
51445         their replacements, to allow for hypothetical systems where these
51446         may be defined as macros but not available in libraries.
51447
51448 2007-10-27  Bruno Haible  <bruno@clisp.org>
51449
51450         * doc/gnulib.texi: Invoke @firstparagraphindent.
51451         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51452         changes in gnulib.
51453         (Source changes): New section.
51454
51455 2007-10-26  Bruno Haible  <bruno@clisp.org>
51456
51457         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51458         borrowed from autoconf.
51459
51460 2007-10-26  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51463         strerror returned the empty string. Needed on HP-UX 11.00.
51464
51465 2007-10-24  Micah Cowan  <micah@cowan.name>
51466
51467         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51468         * build-aux/bootstrap: Remove support for now-unnecessary option,
51469         --cvs-user, and envvars CVS_USER, CVS_RSH.
51470
51471 2007-10-24  Jim Meyering  <meyering@redhat.com>
51472
51473         Avoid diagnostics from sha1sum when there is no cached checksum.
51474         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51475         if the po.s1 file hasn't been created yet.
51476
51477         * build-aux/bootstrap: Sync from coreutils:
51478         2007-10-24  Jim Meyering  <meyering@redhat.com>
51479         Get gnulib from the git repository, not from an obsolete cvs one.
51480         * build-aux/bootstrap: Suggestion from Micah Cowan.
51481         2007-10-04  Jim Meyering  <jim@meyering.net>
51482         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51483         (update_po_files): Work also when there are no .po files in po/.
51484
51485 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51486
51487         * README: Append ".git" to git and cg examples.
51488         Problem reported by Benoit Sigoure.
51489
51490 2007-10-23  Micah Cowan  <micah@cowan.name>
51491
51492         * users.txt: Add wget.
51493
51494 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51495
51496         Fix linking of some unistdio tests on FreeBSD.
51497         * modules/unistdio/u16-vsnprintf-tests
51498         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51499         * modules/unistdio/u16-vsprintf-tests
51500         (test_u16_vsnprintf1_LDADD): Likewise.
51501         * modules/unistdio/u32-vsnprintf-tests
51502         (test_u32_vsnprintf1_LDADD): Likewise.
51503         * modules/unistdio/u32-vsprintf-tests
51504         (test_u32_vsprintf1_LDADD): Likewise.
51505         * modules/unistdio/u8-vsnprintf-tests
51506         (test_u8_vsnprintf1_LDADD): Likewise.
51507         * modules/unistdio/u8-vsprintf-tests
51508         (test_u8_vsprintf1_LDADD): Likewise.
51509         * modules/unistdio/ulc-vsnprintf-tests
51510         (test_ulc_vsnprintf1_LDADD): Likewise.
51511         * modules/unistdio/ulc-vsprintf-tests
51512         (test_ulc_vsprintf1_LDADD): Likewise.
51513
51514         Fix linking of some uniconv tests on FreeBSD.
51515         * modules/uniconv/u16-conv-from-enc-tests
51516         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51517         * modules/uniconv/u16-conv-to-enc-tests
51518         (test_u16_conv_to_enc_LDADD): Likewise.
51519         * modules/uniconv/u16-strconv-from-enc-tests
51520         (test_u16_strconv_from_enc_LDADD): Likewise.
51521         * modules/uniconv/u16-strconv-to-enc-tests
51522         (test_u16_strconv_to_enc_LDADD): Likewise.
51523         * modules/uniconv/u32-conv-from-enc-tests
51524         (test_u32_conv_from_enc_LDADD): Likewise.
51525         * modules/uniconv/u32-conv-to-enc-tests
51526         (test_u32_conv_to_enc_LDADD): Likewise.
51527         * modules/uniconv/u32-strconv-from-enc-tests
51528         (test_u32_strconv_from_enc_LDADD): Likewise.
51529         * modules/uniconv/u32-strconv-to-enc-tests
51530         (test_u32_strconv_to_enc_LDADD): Likewise.
51531         * modules/uniconv/u8-conv-from-enc-tests
51532         (test_u8_conv_from_enc_LDADD): Likewise.
51533         * modules/uniconv/u8-conv-to-enc-tests
51534         (test_u8_conv_to_enc_LDADD): Likewise.
51535         * modules/uniconv/u8-strconv-from-enc-tests
51536         (test_u8_strconv_from_enc_LDADD): Likewise.
51537         * modules/uniconv/u8-strconv-to-enc-tests
51538         (test_u8_strconv_to_enc_LDADD): Likewise.
51539
51540 2007-10-22  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51543         size.
51544
51545 2007-10-22  Eric Blake  <ebb9@byu.net>
51546
51547         Tweak x*printf documentation.
51548         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51549         variable name and comments.
51550         Suggested by Bruno Haible.
51551
51552 2007-10-22  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/acl.c (copy_acl): Fix file name in comment.
51555
51556 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         Fix Tru64 problem with stdbool.h.
51559         * lib/stdbool.in.h (false, true):
51560         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51561         Don't declare as an enum in this situation; it runs afoul of Tru64.
51562         Problem reported by Steven M. Schweda in
51563         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51564
51565 2007-10-22  Eric Blake  <ebb9@byu.net>
51566
51567         Also wrap vf?printf.
51568         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51569         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51570         (xvprintf, xvfprintf): New functions.
51571
51572 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51573
51574         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51575         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51576
51577         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51578         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51579
51580 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51581
51582         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51583         by Bruno Haible.
51584
51585 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51586
51587         * lib/getloadavg.c
51588         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51589         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51590
51591         * tests/test-i-ring.c: Work for C89.
51592
51593 2007-10-22  Bruno Haible  <bruno@clisp.org>
51594
51595         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51596         -1u, in preprocessor expression, so that we don't test for the bug
51597         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51599
51600 2007-10-22  Eric Blake  <ebb9@byu.net>
51601
51602         * tests/test-yesno.sh: Silence stderr during test.
51603
51604 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51605
51606         * modules/crypto/gc-camellia: New file.
51607
51608         * m4/gc-camellia.m4: New file.
51609
51610         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51611
51612         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51613
51614 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51615
51616         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51617         --help to stdout.  Reported by sms@antinode.org (Steven
51618         M. Schweda).
51619
51620 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51621
51622         * users.txt: Fix link to libksba.
51623
51624 2007-10-21  Ben Pfaff  <blp@gnu.org>
51625
51626         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51627         round.c roundf implementation that depends on floorf and ceilf to
51628         be tested unconditionally.
51629
51630 2007-10-21  Ben Pfaff  <blp@gnu.org>
51631
51632         * m4/check-libm-func.m4: Removed.
51633         * m4/check-math-lib.m4: New file.
51634         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51635         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51636         definition and lack of AC_LIBOBJ([roundf]).
51637         * m4/roundl.m4: Ditto, and similarly for roundl.
51638         * modules/round: Reference new m4 file.
51639         * modules/roundf: Ditto.
51640         * modules/roundl: Ditto.
51641         * tests/test-round2.c (main): Use ROUND instead of round.
51642         Bug report from Bruno Haible.
51643
51644 2007-10-21  Bruno Haible  <bruno@clisp.org>
51645
51646         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51647         context.
51648
51649 2007-10-21  Bruno Haible  <bruno@clisp.org>
51650
51651         * tests/test-wcwidth.c (main): Allow negative result for some control
51652         characters.
51653
51654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51655         Needed on OSF/1 5.1.
51656
51657 2007-10-21  Bruno Haible  <bruno@clisp.org>
51658
51659         * tests/test-floorf1.c: Include isnanf.h.
51660         (main): Use isnanf() instead of isnan().
51661         * tests/test-ceilf1.c: Include isnanf.h.
51662         (main): Use isnanf() instead of isnan().
51663         * tests/test-truncf1.c: Include isnanf.h.
51664         (main): Use isnanf() instead of isnan().
51665         * tests/test-roundf1.c: Include isnanf.h.
51666         (main): Use isnanf() instead of isnan().
51667
51668 2007-10-21  Eric Blake  <ebb9@byu.net>
51669
51670         * users.txt: Update URL for m4.
51671
51672 2007-10-21  Bruno Haible  <bruno@clisp.org>
51673
51674         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51675
51676 2007-10-21  Bruno Haible  <bruno@clisp.org>
51677
51678         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51679         Git's management files if the CVS files are not present.
51680
51681 2007-10-20  Bruno Haible  <bruno@clisp.org>
51682
51683         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51684         gcc-3.4.x.
51685
51686 2007-10-20  Ben Pfaff  <blp@gnu.org>
51687
51688         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51689         implementations.
51690         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51691         * lib/round.c: New file.
51692         * lib/roundf.c: New file.
51693         * lib/roundl.c: New file.
51694         * m4/round.m4: New file.
51695         * m4/roundf.m4: New file.
51696         * m4/roundl.m4: New file.
51697         * m4/check-libm-func-m4: New file.
51698         * modules/math: Replace round, roundf, roundl related @VARS@ in
51699         math.in.h.
51700         * modules/round: New file.
51701         * modules/round-tests: New file.
51702         * modules/roundf: New file.
51703         * modules/roundf-tests: New file.
51704         * modules/roundl: New file.
51705         * modules/roundl-tests: New file.
51706         * tests/test-round1.c: New file.
51707         * tests/test-round2.c: New file.
51708         * tests/test-roundf1.c: New file.
51709         * tests/test-roundf2.c: New file.
51710         * tests/test-roundl.c: New file.
51711         * doc/functions/round.texi: Mention round module.
51712         * doc/functions/roundf.texi: Mention roundf module.
51713         * doc/functions/roundl.texi: Mention roundl module.
51714         * MODULES.html.sh: Mention new modules.
51715         Thanks to Bruno Haible for suggestions.
51716
51717 2007-10-20  Jim Meyering  <meyering@redhat.com>
51718
51719         * lib/xprintf.c: Include <config.h> unconditionally.
51720
51721         Change xprintf's license to GPL.
51722         * modules/xprintf (License): s/LGPL/GPL/, since this module
51723         depends on modules (exit and exitfail) which are GPL.
51724         Suggestion from Bruno Haible.
51725
51726         xprintf fixes.
51727         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51728         Use a clearer diagnostic.
51729         Patch from Bruno Haible.
51730
51731 2007-10-20  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51734         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51736
51737 2007-10-20  Bruno Haible  <bruno@clisp.org>
51738
51739         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51740         precision in the comparison result > x - 1 or similar.
51741         * tests/test-ceilf2.c (correct_result_p): Likewise.
51742         * tests/test-truncf2.c (correct_result_p): Likewise.
51743         * tests/test-trunc2.c (correct_result_p): Likewise.
51744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51745
51746 2007-10-20  Bruno Haible  <bruno@clisp.org>
51747
51748         * modules/ceil: New file.
51749         * m4/ceil.m4: New file.
51750         * doc/functions/ceil.texi: Mention the 'ceil' module.
51751
51752 2007-10-20  Bruno Haible  <bruno@clisp.org>
51753
51754         * modules/floor: New file.
51755         * m4/floor.m4: New file.
51756         * doc/functions/floor.texi: Mention the 'floor' module.
51757
51758 2007-10-20  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51761         of %a.
51762         * modules/floorf-tests (Depends-on): Likewise.
51763         * modules/truncf-tests (Depends-on): Likewise.
51764         * modules/trunc-tests (Depends-on): Likewise.
51765         Reported by Ben Pfaff.
51766
51767 2007-10-19  Jim Meyering  <meyering@redhat.com>
51768
51769         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51770         Don't bother testing specific errno values.  Just test ferror.
51771
51772         New module: xprintf
51773         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51774
51775 2007-10-19  Bruno Haible  <bruno@clisp.org>
51776
51777         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51778         syntax.
51779         * modules/javaexec (Makefile.am): Likewise.
51780         * modules/relocatable-prog (Makefile.am): Likewise.
51781         Suggested by Jim Meyering.
51782
51783 2007-10-18  Bruno Haible  <bruno@clisp.org>
51784
51785         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51786         Reported by Jim Meyering.
51787
51788 2007-10-18  Eric Blake  <ebb9@byu.net>
51789
51790         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51791
51792 2007-10-18  Bruno Haible  <bruno@clisp.org>
51793
51794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51795         the format string into writable memory. Needed in Fortify conditions.
51796
51797 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51798             Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51801         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51802         * modules/trim (Depends-on): Add mbchar.
51803         (configure.ac): Add gl_FUNC_MBRTOWC.
51804         (Makefile.am): Augment lib_SOURCES.
51805
51806 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         Modify glob.c to use fstatat and dirfd, to simplify it.
51809         Suggested by Eric Blake.
51810         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51811         Don't include <stdbool.h>; not used.
51812         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51813         (link_exists_p): Simplify implementation, since we can now assume
51814         dirfd and fstatat.
51815         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51816
51817 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51818
51819         * gnulib-tool (func_get_dependencies): Fix sed script to
51820         match only tests.
51821
51822 2007-10-17  Bruno Haible  <bruno@clisp.org>
51823
51824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51825         allow locale names without encoding suffix.
51826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51828
51829 2007-10-16  Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51832         * lib/getgroups.c (getgroups): Likewise.
51833         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51834
51835 2007-10-16  Bruno Haible  <bruno@clisp.org>
51836
51837         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51838         * modules/malloc-posix (License): Likewise.
51839         * modules/realloc-posix (License): Likewise.
51840         * modules/calloc-posix (License): Likewise.
51841         * modules/intprops (License): Change from GPL to LGPL, with
51842         Paul Eggert's approval.
51843
51844 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         Merge glibc changes into lib/glob.c.
51847
51848         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51849         2007-10-15 04:59:03 UTC.  Here are the changes:
51850
51851         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51852
51853         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51854
51855         * lib/glob.c: Add some branch prediction throughout.
51856
51857         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51858
51859         [BZ #5103]
51860         * lib/glob.c (glob): Recognize patterns starting \/.
51861
51862         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51863
51864         [BZ #3996]
51865         * lib/glob.c (attribute_hidden): Define if not defined.
51866         (glob): Unescape dirname, filename or username when needed and not
51867         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51868         is NULL.  Handle unescaped [ in pattern without closing ].
51869         Don't pass GLOB_CHECK down to recursive glob for directories.
51870         (__glob_pattern_type): New function.
51871         (__glob_pattern_p): Implement using __glob_pattern_type.
51872         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51873         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51874         Remove unreachable code.
51875
51876         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51877
51878         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51879         explain why there are no leaks.
51880
51881         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51882
51883         [BZ #3253]
51884         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51885         time, rather allocate increasingly bigger arrays of pointers, if
51886         possible with alloca, if too large with malloc.
51887
51888 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51891         Problem reported by H.Merijn Brand in
51892         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51893         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51894         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51895
51896 2007-10-15  Bruno Haible  <bruno@clisp.org>
51897
51898         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51899         with explicit rpl_ prefix.
51900         * lib/fopen.c (fopen): Likewise.
51901         * lib/freopen.c (freopen): Likewise.
51902         * lib/iconv.c (iconv): Likewise.
51903         * lib/iconv_close.c (iconv_close): Likewise.
51904
51905 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51906
51907         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51908
51909 2007-10-15  Bruno Haible  <bruno@clisp.org>
51910
51911         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51912         <stddef.h> instead of <stdlib.h> since we only need NULL.
51913         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51914
51915 2007-10-15  Bruno Haible  <bruno@clisp.org>
51916
51917         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51918         Replace paragraph talking about LIBOBJS.
51919         Reported by Colin Watson <cjwatson@debian.org>.
51920
51921 2007-10-15  Bruno Haible  <bruno@clisp.org>
51922
51923         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51924         <stdlib.h> before using NULL.
51925
51926 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51927
51928         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51929         Reported by Albert Chin <china@thewrittenword.com>.
51930
51931 2007-10-14  Bruno Haible  <bruno@clisp.org>
51932
51933         * modules/iconv_open-utf-tests: New file.
51934         * tests/test-iconv-utf.c: New file.
51935
51936         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51937         * modules/iconv_open-utf: New file.
51938         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51939         (iconv, iconv_close): New declarations.
51940         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51941         be defined.
51942         (iconv_open): Add special handling of conversion between UTF-8 and
51943         UTF-{16,32}{BE,LE}.
51944         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51945         * lib/iconv_close.c: New file.
51946         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51947         gl_FUNC_ICONV_OPEN.
51948         (gl_FUNC_ICONV_OPEN): Use it.
51949         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51950         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51951         and REPLACE_ICONV_UTF.
51952         * modules/iconv_open (Depends-on): Add c-strcase.
51953         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51954         ICONV_CONST.
51955         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51956
51957 2007-10-13  Albert Chin  <china@thewrittenword.com>
51958             Bruno Haible  <bruno@clisp.org>
51959
51960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51961         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51962
51963 2007-10-13  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51966         defined, use the ISO C99 inline semantics.
51967         * lib/argp.h (ARGP_EI): Likewise.
51968
51969 2007-10-13  Bruno Haible  <bruno@clisp.org>
51970
51971         Handle 'inline' change in gcc 4.3.0.
51972         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51973         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51974         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51975         argp_fmtstream_point): Disable 'extern' declaration if the function
51976         definition is going to be provided inline.
51977         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51978         semantics, not the ISO C99 inline semantics.
51979         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51980         'extern' declaration if the function definition is going to be provided
51981         inline.
51982         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51983         the GNU C inline semantics, not the ISO C99 inline semantics. With
51984         GCC 4.2, avoid a warning.
51985
51986 2007-10-13  Bruno Haible  <bruno@clisp.org>
51987
51988         * lib/freading.h (freading): Enable the use of __freading for
51989         glibc >= 2.7.
51990         * lib/freading.c (freading): Likewise.
51991
51992 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51993
51994         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51995         "warning: C99 inline functions are not supported; using GNU89".
51996
51997 2007-10-12  Bruno Haible  <bruno@clisp.org>
51998
51999         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52000         of 2.
52001         * tests/test-ceilf2.c: New file.
52002         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52003
52004         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52005         * modules/ceilf-tests: Update.
52006
52007 2007-10-12  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52010         of 2.
52011         * tests/test-floorf2.c: New file.
52012         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52013
52014         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52015         * modules/floorf-tests: Update.
52016
52017 2007-10-12  Bruno Haible  <bruno@clisp.org>
52018
52019         * tests/test-trunc2.c: New file.
52020         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52021
52022         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52023         * modules/trunc-tests: Update.
52024
52025 2007-10-12  Bruno Haible  <bruno@clisp.org>
52026
52027         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52028         of 2.
52029         * tests/test-truncf2.c: New file.
52030         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52031
52032         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52033         * modules/truncf-tests: Update.
52034
52035 2007-10-11  Eric Blake  <ebb9@byu.net>
52036
52037         Don't claim strerror is broken on Interix.
52038         * doc/functions/strerror.texi (strerror): Known broken systems are
52039         now Solaris 8, and not Interix.
52040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52041         Interix on cross-compile.
52042         Reported by Martin Koeppe in
52043         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52044
52045 2007-10-11  Bruno Haible  <bruno@clisp.org>
52046
52047         * modules/i-ring-tests: New file.
52048         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52049         instead of assert.
52050
52051 2007-10-11  Bruno Haible  <bruno@clisp.org>
52052
52053         * modules/filenamecat-tests: New file.
52054         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52055         * lib/filenamecat.c: Remove test code.
52056
52057 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52060
52061         * lib/strerror.c: Include <string.h> always, to test interface,
52062         and to remove the need for the dummy.
52063         Include intprops.h to compute width instead of doing it ourselves
52064         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52065         (strerror): Define it to return NULL if there's no system strerror.
52066         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52067         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52068         ancient pre-strerror Unix systems well any more.  Saying "unknown
52069         system error" is enough.
52070         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52071         simpler strerror.c implementation.
52072         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52073         Simplify the tests to reflect the simpler strerror implementation.
52074         * modules/strerror (Depends-on): Add intprops.
52075
52076 2007-10-09  Eric Blake  <ebb9@byu.net>
52077
52078         Silence test-fpending.
52079         * modules/fpending-tests (Files): Add wrapper script.
52080         * tests/test-fpending.sh: New file.
52081
52082 2007-10-09  Bruno Haible  <bruno@clisp.org>
52083
52084         * MODULES.html.sh (func_module): Don't create a hyperlink for
52085         function names like 'printf_frexp'.
52086         (Misc): Add crc, memxor.
52087         (Characteristics of floating types): New section.
52088         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52089         isnanf-nolibm, signbit, trunc, truncf, truncl.
52090         (Enhancements for ISO C 99 functions): New subsection Input/output.
52091         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52092         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52093         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52094         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52095         (Enhancements for POSIX:2001 functions): Add chdir-long.
52096         (File system functions): Add areadlink, chdir-safer, read-file.
52097         Remove cycle-check.
52098         (File system as inode set): New section.
52099         (Date and time): Add gethrxtime.
52100         (Multithreading): Add openmp.
52101         (Internationalization functions): Add localename.
52102         (Unicode string functions): Add unistr/u*-mbsnlen.
52103         (Support for maintaining and releasing projects): Add git-version-gen.
52104         (Lone files): Remove directories.
52105
52106 2007-10-08  Ben Pfaff  <blp@gnu.org>
52107
52108         * lib/xmalloca.h: Fix typo in comment.
52109
52110 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52113         when avoiding problems with integer overflow.  Use a portable test
52114         instead.
52115
52116 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52117
52118         * modules/dummy (License): Change to LGPLv2+.
52119         * modules/float (License): Likewise
52120         * modules/realloc (License): Likewise
52121         * modules/stdlib (License): Likewise
52122
52123 2007-10-07  Bruno Haible  <bruno@clisp.org>
52124
52125         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52126         * floor.c (TWO_MANT_DIG): Likewise.
52127         * ceil.c (TWO_MANT_DIG): Likewise.
52128         Reported by Ben Pfaff.
52129
52130 2007-10-07  Bruno Haible  <bruno@clisp.org>
52131
52132         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52133         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52134         * lib/frexp.c (FUNC): Likewise.
52135         * lib/printf-frexp.h (printf_frexp): Likewise.
52136         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52137         * lib/printf-frexp.c (FUNC): Likewise.
52138         Suggested by Jim Meyering.
52139
52140 2007-10-07  Jim Meyering  <meyering@redhat.com>
52141
52142         Make xnanosleep's integer overflow test more robust.
52143         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52144         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52145
52146 2007-10-07  Bruno Haible  <bruno@clisp.org>
52147
52148         * NEWS: Mention the license change.
52149
52150         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52151         abbreviations in the modules files.
52152
52153         Change copyright notice from GPLv2+ to GPLv3+.
52154         * README: Change copyright notice.
52155         * MODULES.html.sh: Likewise.
52156         * build-aux/bootstrap.conf: Likewise.
52157         * build-aux/config.libpath: Likewise.
52158         * build-aux/csharpcomp.sh.in: Likewise.
52159         * build-aux/csharpexec.sh.in: Likewise.
52160         * build-aux/install-reloc: Likewise.
52161         * build-aux/javacomp.sh.in: Likewise.
52162         * build-aux/javaexec.sh.in: Likewise.
52163         * build-aux/ldd.sh.in: Likewise.
52164         * build-aux/reloc-ldflags: Likewise.
52165         * build-aux/relocatable.sh.in: Likewise.
52166         * build-aux/x-to-1.in: Likewise.
52167         * check-module: Likewise.
52168         * config/srclistvars.sh: Likewise.
52169         * gnulib-tool: Likewise.
52170         * lib/acl-internal.h: Likewise.
52171         * lib/acl.c: Likewise.
52172         * lib/acl.h: Likewise.
52173         * lib/acl_entries.c: Likewise.
52174         * lib/areadlink-with-size.c: Likewise.
52175         * lib/areadlink.c: Likewise.
52176         * lib/areadlink.h: Likewise.
52177         * lib/argmatch.c: Likewise.
52178         * lib/argmatch.h: Likewise.
52179         * lib/argp-ba.c: Likewise.
52180         * lib/argp-eexst.c: Likewise.
52181         * lib/argp-fmtstream.c: Likewise.
52182         * lib/argp-fmtstream.h: Likewise.
52183         * lib/argp-fs-xinl.c: Likewise.
52184         * lib/argp-help.c: Likewise.
52185         * lib/argp-namefrob.h: Likewise.
52186         * lib/argp-parse.c: Likewise.
52187         * lib/argp-pin.c: Likewise.
52188         * lib/argp-pv.c: Likewise.
52189         * lib/argp-pvh.c: Likewise.
52190         * lib/argp-xinl.c: Likewise.
52191         * lib/argp.h: Likewise.
52192         * lib/at-func.c: Likewise.
52193         * lib/atanl.c: Likewise.
52194         * lib/backupfile.c: Likewise.
52195         * lib/backupfile.h: Likewise.
52196         * lib/basename.c: Likewise.
52197         * lib/binary-io.h: Likewise.
52198         * lib/byteswap.in.h: Likewise.
52199         * lib/c-stack.c: Likewise.
52200         * lib/c-stack.h: Likewise.
52201         * lib/c-strcasestr.c: Likewise.
52202         * lib/c-strcasestr.h: Likewise.
52203         * lib/c-strstr.c: Likewise.
52204         * lib/c-strstr.h: Likewise.
52205         * lib/c-strtod.c: Likewise.
52206         * lib/calloc.c: Likewise.
52207         * lib/canon-host.c: Likewise.
52208         * lib/canon-host.h: Likewise.
52209         * lib/canonicalize-lgpl.c: Likewise.
52210         * lib/canonicalize.c: Likewise.
52211         * lib/canonicalize.h: Likewise.
52212         * lib/ceil.c: Likewise.
52213         * lib/ceilf.c: Likewise.
52214         * lib/ceill.c: Likewise.
52215         * lib/chdir-long.c: Likewise.
52216         * lib/chdir-long.h: Likewise.
52217         * lib/chdir-safer.c: Likewise.
52218         * lib/chdir-safer.h: Likewise.
52219         * lib/chown.c: Likewise.
52220         * lib/classpath.c: Likewise.
52221         * lib/classpath.h: Likewise.
52222         * lib/clean-temp.c: Likewise.
52223         * lib/clean-temp.h: Likewise.
52224         * lib/cloexec.c: Likewise.
52225         * lib/close-stream.c: Likewise.
52226         * lib/closein.c: Likewise.
52227         * lib/closein.h: Likewise.
52228         * lib/closeout.c: Likewise.
52229         * lib/closeout.h: Likewise.
52230         * lib/concat-filename.c: Likewise.
52231         * lib/copy-file.c: Likewise.
52232         * lib/copy-file.h: Likewise.
52233         * lib/count-one-bits.h: Likewise.
52234         * lib/crc.c: Likewise.
52235         * lib/crc.h: Likewise.
52236         * lib/creat-safer.c: Likewise.
52237         * lib/csharpcomp.c: Likewise.
52238         * lib/csharpcomp.h: Likewise.
52239         * lib/csharpexec.c: Likewise.
52240         * lib/csharpexec.h: Likewise.
52241         * lib/cycle-check.c: Likewise.
52242         * lib/cycle-check.h: Likewise.
52243         * lib/diacrit.c: Likewise.
52244         * lib/diacrit.h: Likewise.
52245         * lib/diffseq.h: Likewise.
52246         * lib/dirchownmod.c: Likewise.
52247         * lib/dirent.in.h: Likewise.
52248         * lib/dirfd.c: Likewise.
52249         * lib/dirfd.h: Likewise.
52250         * lib/dirname.c: Likewise.
52251         * lib/dirname.h: Likewise.
52252         * lib/dummy.c: Likewise.
52253         * lib/dup-safer.c: Likewise.
52254         * lib/dup2.c: Likewise.
52255         * lib/eealloc.h: Likewise.
52256         * lib/error.c: Likewise.
52257         * lib/error.h: Likewise.
52258         * lib/euidaccess.c: Likewise.
52259         * lib/exclude.c: Likewise.
52260         * lib/exclude.h: Likewise.
52261         * lib/execute.c: Likewise.
52262         * lib/execute.h: Likewise.
52263         * lib/exitfail.c: Likewise.
52264         * lib/exitfail.h: Likewise.
52265         * lib/expl.c: Likewise.
52266         * lib/fatal-signal.c: Likewise.
52267         * lib/fatal-signal.h: Likewise.
52268         * lib/fbufmode.c: Likewise.
52269         * lib/fbufmode.h: Likewise.
52270         * lib/fchdir.c: Likewise.
52271         * lib/fchmodat.c: Likewise.
52272         * lib/fchownat.c: Likewise.
52273         * lib/fcntl--.h: Likewise.
52274         * lib/fcntl-safer.h: Likewise.
52275         * lib/fcntl.in.h: Likewise.
52276         * lib/fd-safer.c: Likewise.
52277         * lib/fflush.c: Likewise.
52278         * lib/file-has-acl.c: Likewise.
52279         * lib/file-set.c: Likewise.
52280         * lib/file-type.c: Likewise.
52281         * lib/file-type.h: Likewise.
52282         * lib/fileblocks.c: Likewise.
52283         * lib/filemode.c: Likewise.
52284         * lib/filemode.h: Likewise.
52285         * lib/filename.h: Likewise.
52286         * lib/filenamecat.c: Likewise.
52287         * lib/filenamecat.h: Likewise.
52288         * lib/findprog.c: Likewise.
52289         * lib/findprog.h: Likewise.
52290         * lib/float.in.h: Likewise.
52291         * lib/floor.c: Likewise.
52292         * lib/floorf.c: Likewise.
52293         * lib/floorl.c: Likewise.
52294         * lib/fopen-safer.c: Likewise.
52295         * lib/fopen.c: Likewise.
52296         * lib/fpending.c: Likewise.
52297         * lib/fpending.h: Likewise.
52298         * lib/fprintf.c: Likewise.
52299         * lib/fprintftime.h: Likewise.
52300         * lib/fpucw.h: Likewise.
52301         * lib/fpurge.c: Likewise.
52302         * lib/fpurge.h: Likewise.
52303         * lib/freadable.c: Likewise.
52304         * lib/freadable.h: Likewise.
52305         * lib/freadahead.c: Likewise.
52306         * lib/freadahead.h: Likewise.
52307         * lib/freading.c: Likewise.
52308         * lib/freading.h: Likewise.
52309         * lib/free.c: Likewise.
52310         * lib/freopen.c: Likewise.
52311         * lib/frexp.c: Likewise.
52312         * lib/frexpl.c: Likewise.
52313         * lib/fseek.c: Likewise.
52314         * lib/fseterr.c: Likewise.
52315         * lib/fseterr.h: Likewise.
52316         * lib/fstatat.c: Likewise.
52317         * lib/fstrcmp.c: Likewise.
52318         * lib/fstrcmp.h: Likewise.
52319         * lib/fsusage.c: Likewise.
52320         * lib/fsusage.h: Likewise.
52321         * lib/ftell.c: Likewise.
52322         * lib/ftello.c: Likewise.
52323         * lib/fts-cycle.c: Likewise.
52324         * lib/fts.c: Likewise.
52325         * lib/fts_.h: Likewise.
52326         * lib/full-read.c: Likewise.
52327         * lib/full-read.h: Likewise.
52328         * lib/full-write.c: Likewise.
52329         * lib/full-write.h: Likewise.
52330         * lib/fwritable.c: Likewise.
52331         * lib/fwritable.h: Likewise.
52332         * lib/fwriteerror.c: Likewise.
52333         * lib/fwriteerror.h: Likewise.
52334         * lib/fwriting.c: Likewise.
52335         * lib/fwriting.h: Likewise.
52336         * lib/gcd.c: Likewise.
52337         * lib/gcd.h: Likewise.
52338         * lib/getcwd.c: Likewise.
52339         * lib/getdate.h: Likewise.
52340         * lib/getdate.y: Likewise.
52341         * lib/getdomainname.c: Likewise.
52342         * lib/getdomainname.h: Likewise.
52343         * lib/getgroups.c: Likewise.
52344         * lib/gethostname.c: Likewise.
52345         * lib/gethrxtime.c: Likewise.
52346         * lib/gethrxtime.h: Likewise.
52347         * lib/getloadavg.c: Likewise.
52348         * lib/getndelim2.c: Likewise.
52349         * lib/getndelim2.h: Likewise.
52350         * lib/getnline.c: Likewise.
52351         * lib/getnline.h: Likewise.
52352         * lib/getopt.c: Likewise.
52353         * lib/getopt.in.h: Likewise.
52354         * lib/getopt1.c: Likewise.
52355         * lib/getopt_int.h: Likewise.
52356         * lib/getpagesize.h: Likewise.
52357         * lib/getsubopt.c: Likewise.
52358         * lib/gettime.c: Likewise.
52359         * lib/getugroups.c: Likewise.
52360         * lib/getugroups.h: Likewise.
52361         * lib/getusershell.c: Likewise.
52362         * lib/gl_anyavltree_list1.h: Likewise.
52363         * lib/gl_anyavltree_list2.h: Likewise.
52364         * lib/gl_anyhash_list1.h: Likewise.
52365         * lib/gl_anyhash_list2.h: Likewise.
52366         * lib/gl_anylinked_list1.h: Likewise.
52367         * lib/gl_anylinked_list2.h: Likewise.
52368         * lib/gl_anyrbtree_list1.h: Likewise.
52369         * lib/gl_anyrbtree_list2.h: Likewise.
52370         * lib/gl_anytree_list1.h: Likewise.
52371         * lib/gl_anytree_list2.h: Likewise.
52372         * lib/gl_anytree_oset.h: Likewise.
52373         * lib/gl_anytreehash_list1.h: Likewise.
52374         * lib/gl_anytreehash_list2.h: Likewise.
52375         * lib/gl_array_list.c: Likewise.
52376         * lib/gl_array_list.h: Likewise.
52377         * lib/gl_array_oset.c: Likewise.
52378         * lib/gl_array_oset.h: Likewise.
52379         * lib/gl_avltree_list.c: Likewise.
52380         * lib/gl_avltree_list.h: Likewise.
52381         * lib/gl_avltree_oset.c: Likewise.
52382         * lib/gl_avltree_oset.h: Likewise.
52383         * lib/gl_avltreehash_list.c: Likewise.
52384         * lib/gl_avltreehash_list.h: Likewise.
52385         * lib/gl_carray_list.c: Likewise.
52386         * lib/gl_carray_list.h: Likewise.
52387         * lib/gl_linked_list.c: Likewise.
52388         * lib/gl_linked_list.h: Likewise.
52389         * lib/gl_linkedhash_list.c: Likewise.
52390         * lib/gl_linkedhash_list.h: Likewise.
52391         * lib/gl_list.c: Likewise.
52392         * lib/gl_list.h: Likewise.
52393         * lib/gl_oset.c: Likewise.
52394         * lib/gl_oset.h: Likewise.
52395         * lib/gl_rbtree_list.c: Likewise.
52396         * lib/gl_rbtree_list.h: Likewise.
52397         * lib/gl_rbtree_oset.c: Likewise.
52398         * lib/gl_rbtree_oset.h: Likewise.
52399         * lib/gl_rbtreehash_list.c: Likewise.
52400         * lib/gl_rbtreehash_list.h: Likewise.
52401         * lib/gl_sublist.c: Likewise.
52402         * lib/gl_sublist.h: Likewise.
52403         * lib/group-member.c: Likewise.
52404         * lib/group-member.h: Likewise.
52405         * lib/hard-locale.c: Likewise.
52406         * lib/hard-locale.h: Likewise.
52407         * lib/hash-pjw.c: Likewise.
52408         * lib/hash-pjw.h: Likewise.
52409         * lib/hash-triple.c: Likewise.
52410         * lib/hash.c: Likewise.
52411         * lib/hash.h: Likewise.
52412         * lib/human.c: Likewise.
52413         * lib/human.h: Likewise.
52414         * lib/i-ring.c: Likewise.
52415         * lib/i-ring.h: Likewise.
52416         * lib/idcache.c: Likewise.
52417         * lib/imaxabs.c: Likewise.
52418         * lib/imaxdiv.c: Likewise.
52419         * lib/inet_pton.c: Likewise.
52420         * lib/inet_pton.h: Likewise.
52421         * lib/intprops.h: Likewise.
52422         * lib/inttostr.c: Likewise.
52423         * lib/inttostr.h: Likewise.
52424         * lib/inttypes.in.h: Likewise.
52425         * lib/isapipe.c: Likewise.
52426         * lib/isdir.c: Likewise.
52427         * lib/isnan.c: Likewise.
52428         * lib/isnan.h: Likewise.
52429         * lib/isnanf.c: Likewise.
52430         * lib/isnanf.h: Likewise.
52431         * lib/isnanl-nolibm.h: Likewise.
52432         * lib/isnanl.c: Likewise.
52433         * lib/isnanl.h: Likewise.
52434         * lib/javacomp.c: Likewise.
52435         * lib/javacomp.h: Likewise.
52436         * lib/javaexec.c: Likewise.
52437         * lib/javaexec.h: Likewise.
52438         * lib/javaversion.c: Likewise.
52439         * lib/javaversion.h: Likewise.
52440         * lib/javaversion.java: Likewise.
52441         * lib/lbrkprop.h: Likewise.
52442         * lib/lchmod.h: Likewise.
52443         * lib/lchown.c: Likewise.
52444         * lib/ldexpl.c: Likewise.
52445         * lib/linebreak.c: Likewise.
52446         * lib/linebreak.h: Likewise.
52447         * lib/linebuffer.c: Likewise.
52448         * lib/linebuffer.h: Likewise.
52449         * lib/locale.in.h: Likewise.
52450         * lib/logl.c: Likewise.
52451         * lib/long-options.c: Likewise.
52452         * lib/long-options.h: Likewise.
52453         * lib/lstat.c: Likewise.
52454         * lib/lstat.h: Likewise.
52455         * lib/math.in.h: Likewise.
52456         * lib/mbchar.c: Likewise.
52457         * lib/mbchar.h: Likewise.
52458         * lib/mbfile.h: Likewise.
52459         * lib/mbiter.h: Likewise.
52460         * lib/mbscasecmp.c: Likewise.
52461         * lib/mbscasestr.c: Likewise.
52462         * lib/mbschr.c: Likewise.
52463         * lib/mbscspn.c: Likewise.
52464         * lib/mbslen.c: Likewise.
52465         * lib/mbsncasecmp.c: Likewise.
52466         * lib/mbsnlen.c: Likewise.
52467         * lib/mbspbrk.c: Likewise.
52468         * lib/mbspcasecmp.c: Likewise.
52469         * lib/mbsrchr.c: Likewise.
52470         * lib/mbssep.c: Likewise.
52471         * lib/mbsspn.c: Likewise.
52472         * lib/mbsstr.c: Likewise.
52473         * lib/mbstok_r.c: Likewise.
52474         * lib/mbswidth.c: Likewise.
52475         * lib/mbswidth.h: Likewise.
52476         * lib/mbuiter.h: Likewise.
52477         * lib/memcasecmp.c: Likewise.
52478         * lib/memcasecmp.h: Likewise.
52479         * lib/memchr.c: Likewise.
52480         * lib/memcmp.c: Likewise.
52481         * lib/memcoll.c: Likewise.
52482         * lib/memcoll.h: Likewise.
52483         * lib/memcpy.c: Likewise.
52484         * lib/memrchr.c: Likewise.
52485         * lib/mkancesdirs.c: Likewise.
52486         * lib/mkdir-p.c: Likewise.
52487         * lib/mkdir-p.h: Likewise.
52488         * lib/mkdir.c: Likewise.
52489         * lib/mkdirat.c: Likewise.
52490         * lib/mkdtemp.c: Likewise.
52491         * lib/mkstemp-safer.c: Likewise.
52492         * lib/mkstemp.c: Likewise.
52493         * lib/modechange.c: Likewise.
52494         * lib/modechange.h: Likewise.
52495         * lib/mountlist.c: Likewise.
52496         * lib/mountlist.h: Likewise.
52497         * lib/mpsort.c: Likewise.
52498         * lib/nanosleep.c: Likewise.
52499         * lib/obstack.c: Likewise.
52500         * lib/obstack.h: Likewise.
52501         * lib/open-safer.c: Likewise.
52502         * lib/open.c: Likewise.
52503         * lib/openat-die.c: Likewise.
52504         * lib/openat-priv.h: Likewise.
52505         * lib/openat-proc.c: Likewise.
52506         * lib/openat.c: Likewise.
52507         * lib/openat.h: Likewise.
52508         * lib/pagealign_alloc.c: Likewise.
52509         * lib/pagealign_alloc.h: Likewise.
52510         * lib/physmem.c: Likewise.
52511         * lib/physmem.h: Likewise.
52512         * lib/pipe-safer.c: Likewise.
52513         * lib/pipe.c: Likewise.
52514         * lib/pipe.h: Likewise.
52515         * lib/posixtm.c: Likewise.
52516         * lib/posixtm.h: Likewise.
52517         * lib/posixver.c: Likewise.
52518         * lib/printf-frexp.c: Likewise.
52519         * lib/printf-frexp.h: Likewise.
52520         * lib/printf-frexpl.c: Likewise.
52521         * lib/printf-frexpl.h: Likewise.
52522         * lib/printf.c: Likewise.
52523         * lib/progname.c: Likewise.
52524         * lib/progname.h: Likewise.
52525         * lib/progreloc.c: Likewise.
52526         * lib/putenv.c: Likewise.
52527         * lib/quote.c: Likewise.
52528         * lib/quote.h: Likewise.
52529         * lib/quotearg.c: Likewise.
52530         * lib/quotearg.h: Likewise.
52531         * lib/raise.c: Likewise.
52532         * lib/readline.c: Likewise.
52533         * lib/readline.h: Likewise.
52534         * lib/readlink.c: Likewise.
52535         * lib/readtokens.c: Likewise.
52536         * lib/readtokens.h: Likewise.
52537         * lib/readtokens0.c: Likewise.
52538         * lib/readtokens0.h: Likewise.
52539         * lib/readutmp.c: Likewise.
52540         * lib/readutmp.h: Likewise.
52541         * lib/realloc.c: Likewise.
52542         * lib/relocwrapper.c: Likewise.
52543         * lib/rename-dest-slash.c: Likewise.
52544         * lib/rename.c: Likewise.
52545         * lib/rmdir.c: Likewise.
52546         * lib/rpmatch.c: Likewise.
52547         * lib/safe-read.c: Likewise.
52548         * lib/safe-read.h: Likewise.
52549         * lib/safe-write.c: Likewise.
52550         * lib/safe-write.h: Likewise.
52551         * lib/same-inode.h: Likewise.
52552         * lib/same.c: Likewise.
52553         * lib/same.h: Likewise.
52554         * lib/save-cwd.c: Likewise.
52555         * lib/save-cwd.h: Likewise.
52556         * lib/savedir.c: Likewise.
52557         * lib/savedir.h: Likewise.
52558         * lib/savewd.c: Likewise.
52559         * lib/savewd.h: Likewise.
52560         * lib/search.in.h: Likewise.
52561         * lib/setenv.c: Likewise.
52562         * lib/setenv.h: Likewise.
52563         * lib/settime.c: Likewise.
52564         * lib/sh-quote.c: Likewise.
52565         * lib/sh-quote.h: Likewise.
52566         * lib/sig2str.c: Likewise.
52567         * lib/sig2str.h: Likewise.
52568         * lib/signal.in.h: Likewise.
52569         * lib/signbitd.c: Likewise.
52570         * lib/signbitf.c: Likewise.
52571         * lib/signbitl.c: Likewise.
52572         * lib/sigprocmask.c: Likewise.
52573         * lib/sincosl.c: Likewise.
52574         * lib/sleep.c: Likewise.
52575         * lib/sprintf.c: Likewise.
52576         * lib/sqrtl.c: Likewise.
52577         * lib/stat-time.h: Likewise.
52578         * lib/stdio--.h: Likewise.
52579         * lib/stdio-safer.h: Likewise.
52580         * lib/stdlib--.h: Likewise.
52581         * lib/stdlib-safer.h: Likewise.
52582         * lib/stdlib.in.h: Likewise.
52583         * lib/stpcpy.c: Likewise.
52584         * lib/stpncpy.c: Likewise.
52585         * lib/strchrnul.c: Likewise.
52586         * lib/strcspn.c: Likewise.
52587         * lib/strerror.c: Likewise.
52588         * lib/strftime.c: Likewise.
52589         * lib/strftime.h: Likewise.
52590         * lib/striconveh.c: Likewise.
52591         * lib/striconveh.h: Likewise.
52592         * lib/striconveha.c: Likewise.
52593         * lib/striconveha.h: Likewise.
52594         * lib/stripslash.c: Likewise.
52595         * lib/strnlen1.c: Likewise.
52596         * lib/strnlen1.h: Likewise.
52597         * lib/strtod.c: Likewise.
52598         * lib/strtoimax.c: Likewise.
52599         * lib/strtok_r.c: Likewise.
52600         * lib/strtol.c: Likewise.
52601         * lib/strtoll.c: Likewise.
52602         * lib/strtoul.c: Likewise.
52603         * lib/strtoull.c: Likewise.
52604         * lib/sysexits.in.h: Likewise.
52605         * lib/tempname.c: Likewise.
52606         * lib/tempname.h: Likewise.
52607         * lib/timespec.h: Likewise.
52608         * lib/tls.c: Likewise.
52609         * lib/tls.h: Likewise.
52610         * lib/tmpdir.c: Likewise.
52611         * lib/tmpdir.h: Likewise.
52612         * lib/tmpfile-safer.c: Likewise.
52613         * lib/tmpfile.c: Likewise.
52614         * lib/trigl.c: Likewise.
52615         * lib/trigl.h: Likewise.
52616         * lib/trim.c: Likewise.
52617         * lib/trim.h: Likewise.
52618         * lib/trunc.c: Likewise.
52619         * lib/truncf.c: Likewise.
52620         * lib/truncl.c: Likewise.
52621         * lib/tsearch.c: Likewise.
52622         * lib/unicodeio.c: Likewise.
52623         * lib/unicodeio.h: Likewise.
52624         * lib/unistd--.h: Likewise.
52625         * lib/unistd-safer.h: Likewise.
52626         * lib/unistdio/ulc-fprintf.c: Likewise.
52627         * lib/unistdio/ulc-vfprintf.c: Likewise.
52628         * lib/unlinkdir.c: Likewise.
52629         * lib/unlinkdir.h: Likewise.
52630         * lib/unlocked-io.h: Likewise.
52631         * lib/unsetenv.c: Likewise.
52632         * lib/userspec.c: Likewise.
52633         * lib/utime.c: Likewise.
52634         * lib/utimecmp.c: Likewise.
52635         * lib/utimecmp.h: Likewise.
52636         * lib/utimens.c: Likewise.
52637         * lib/verify.h: Likewise.
52638         * lib/verror.c: Likewise.
52639         * lib/verror.h: Likewise.
52640         * lib/version-etc-fsf.c: Likewise.
52641         * lib/version-etc.c: Likewise.
52642         * lib/version-etc.h: Likewise.
52643         * lib/vfprintf.c: Likewise.
52644         * lib/vprintf.c: Likewise.
52645         * lib/vsprintf.c: Likewise.
52646         * lib/w32spawn.h: Likewise.
52647         * lib/wait-process.c: Likewise.
52648         * lib/wait-process.h: Likewise.
52649         * lib/wcwidth.c: Likewise.
52650         * lib/write-any-file.c: Likewise.
52651         * lib/xalloc-die.c: Likewise.
52652         * lib/xalloc.h: Likewise.
52653         * lib/xasprintf.c: Likewise.
52654         * lib/xgetcwd.c: Likewise.
52655         * lib/xgetcwd.h: Likewise.
52656         * lib/xgetdomainname.c: Likewise.
52657         * lib/xgetdomainname.h: Likewise.
52658         * lib/xgethostname.c: Likewise.
52659         * lib/xmalloc.c: Likewise.
52660         * lib/xmalloca.c: Likewise.
52661         * lib/xmalloca.h: Likewise.
52662         * lib/xmemcoll.c: Likewise.
52663         * lib/xnanosleep.c: Likewise.
52664         * lib/xreadlink.c: Likewise.
52665         * lib/xreadlink.h: Likewise.
52666         * lib/xsetenv.c: Likewise.
52667         * lib/xsetenv.h: Likewise.
52668         * lib/xstriconv.c: Likewise.
52669         * lib/xstriconv.h: Likewise.
52670         * lib/xstrndup.c: Likewise.
52671         * lib/xstrndup.h: Likewise.
52672         * lib/xstrtod.c: Likewise.
52673         * lib/xstrtod.h: Likewise.
52674         * lib/xstrtol-error.c: Likewise.
52675         * lib/xstrtol.c: Likewise.
52676         * lib/xstrtol.h: Likewise.
52677         * lib/xtime.h: Likewise.
52678         * lib/xvasprintf.c: Likewise.
52679         * lib/xvasprintf.h: Likewise.
52680         * lib/yesno.c: Likewise.
52681         * lib/yesno.h: Likewise.
52682         * posix-modules: Likewise.
52683         * tests/test-alloca-opt.c: Likewise.
52684         * tests/test-arcfour.c: Likewise.
52685         * tests/test-arctwo.c: Likewise.
52686         * tests/test-argmatch.c: Likewise.
52687         * tests/test-argp-2.sh: Likewise.
52688         * tests/test-argp.c: Likewise.
52689         * tests/test-arpa_inet.c: Likewise.
52690         * tests/test-array_list.c: Likewise.
52691         * tests/test-array_oset.c: Likewise.
52692         * tests/test-atexit.c: Likewise.
52693         * tests/test-avltree_list.c: Likewise.
52694         * tests/test-avltree_oset.c: Likewise.
52695         * tests/test-avltreehash_list.c: Likewise.
52696         * tests/test-base64.c: Likewise.
52697         * tests/test-binary-io.c: Likewise.
52698         * tests/test-byteswap.c: Likewise.
52699         * tests/test-c-ctype.c: Likewise.
52700         * tests/test-c-strcasecmp.c: Likewise.
52701         * tests/test-c-strcasestr.c: Likewise.
52702         * tests/test-c-strncasecmp.c: Likewise.
52703         * tests/test-c-strstr.c: Likewise.
52704         * tests/test-canonicalize-lgpl.c: Likewise.
52705         * tests/test-canonicalize.c: Likewise.
52706         * tests/test-carray_list.c: Likewise.
52707         * tests/test-ceilf.c: Likewise.
52708         * tests/test-ceill.c: Likewise.
52709         * tests/test-count-one-bits.c: Likewise.
52710         * tests/test-crc.c: Likewise.
52711         * tests/test-dirname.c: Likewise.
52712         * tests/test-fbufmode.c: Likewise.
52713         * tests/test-fcntl.c: Likewise.
52714         * tests/test-fflush.c: Likewise.
52715         * tests/test-floorf.c: Likewise.
52716         * tests/test-floorl.c: Likewise.
52717         * tests/test-fopen.c: Likewise.
52718         * tests/test-fprintf-posix.c: Likewise.
52719         * tests/test-fprintf-posix.h: Likewise.
52720         * tests/test-fpurge.c: Likewise.
52721         * tests/test-freadable.c: Likewise.
52722         * tests/test-freadahead.c: Likewise.
52723         * tests/test-freading.c: Likewise.
52724         * tests/test-freopen.c: Likewise.
52725         * tests/test-frexp.c: Likewise.
52726         * tests/test-frexpl.c: Likewise.
52727         * tests/test-fseek.c: Likewise.
52728         * tests/test-fseeko.c: Likewise.
52729         * tests/test-fseterr.c: Likewise.
52730         * tests/test-fstrcmp.c: Likewise.
52731         * tests/test-ftell.c: Likewise.
52732         * tests/test-ftello.c: Likewise.
52733         * tests/test-fwritable.c: Likewise.
52734         * tests/test-fwriting.c: Likewise.
52735         * tests/test-getaddrinfo.c: Likewise.
52736         * tests/test-getpass.c: Likewise.
52737         * tests/test-gettimeofday.c: Likewise.
52738         * tests/test-hmac-md5.c: Likewise.
52739         * tests/test-hmac-sha1.c: Likewise.
52740         * tests/test-iconv.c: Likewise.
52741         * tests/test-iconvme.c: Likewise.
52742         * tests/test-inttypes.c: Likewise.
52743         * tests/test-isnan.c: Likewise.
52744         * tests/test-isnanf.c: Likewise.
52745         * tests/test-isnanl-nolibm.c: Likewise.
52746         * tests/test-isnanl.c: Likewise.
52747         * tests/test-isnanl.h: Likewise.
52748         * tests/test-ldexpl.c: Likewise.
52749         * tests/test-linked_list.c: Likewise.
52750         * tests/test-linkedhash_list.c: Likewise.
52751         * tests/test-locale.c: Likewise.
52752         * tests/test-localename.c: Likewise.
52753         * tests/test-lock.c: Likewise.
52754         * tests/test-lseek.c: Likewise.
52755         * tests/test-malloca.c: Likewise.
52756         * tests/test-math.c: Likewise.
52757         * tests/test-mbscasecmp.c: Likewise.
52758         * tests/test-mbscasestr1.c: Likewise.
52759         * tests/test-mbscasestr2.c: Likewise.
52760         * tests/test-mbscasestr3.c: Likewise.
52761         * tests/test-mbscasestr4.c: Likewise.
52762         * tests/test-mbschr.c: Likewise.
52763         * tests/test-mbscspn.c: Likewise.
52764         * tests/test-mbsncasecmp.c: Likewise.
52765         * tests/test-mbspbrk.c: Likewise.
52766         * tests/test-mbspcasecmp.c: Likewise.
52767         * tests/test-mbsrchr.c: Likewise.
52768         * tests/test-mbsspn.c: Likewise.
52769         * tests/test-mbsstr1.c: Likewise.
52770         * tests/test-mbsstr2.c: Likewise.
52771         * tests/test-mbsstr3.c: Likewise.
52772         * tests/test-md5.c: Likewise.
52773         * tests/test-memmem.c: Likewise.
52774         * tests/test-netinet_in.c: Likewise.
52775         * tests/test-open.c: Likewise.
52776         * tests/test-printf-frexp.c: Likewise.
52777         * tests/test-printf-frexpl.c: Likewise.
52778         * tests/test-printf-posix.c: Likewise.
52779         * tests/test-printf-posix.h: Likewise.
52780         * tests/test-rbtree_list.c: Likewise.
52781         * tests/test-rbtree_oset.c: Likewise.
52782         * tests/test-rbtreehash_list.c: Likewise.
52783         * tests/test-read-file.c: Likewise.
52784         * tests/test-rijndael.c: Likewise.
52785         * tests/test-search.c: Likewise.
52786         * tests/test-signbit.c: Likewise.
52787         * tests/test-sleep.c: Likewise.
52788         * tests/test-snprintf-posix.c: Likewise.
52789         * tests/test-snprintf-posix.h: Likewise.
52790         * tests/test-snprintf.c: Likewise.
52791         * tests/test-sprintf-posix.c: Likewise.
52792         * tests/test-sprintf-posix.h: Likewise.
52793         * tests/test-stat-time.c: Likewise.
52794         * tests/test-stdbool.c: Likewise.
52795         * tests/test-stdint.c: Likewise.
52796         * tests/test-stdio.c: Likewise.
52797         * tests/test-stdlib.c: Likewise.
52798         * tests/test-stpncpy.c: Likewise.
52799         * tests/test-strcasestr.c: Likewise.
52800         * tests/test-striconv.c: Likewise.
52801         * tests/test-striconveh.c: Likewise.
52802         * tests/test-striconveha.c: Likewise.
52803         * tests/test-string.c: Likewise.
52804         * tests/test-sys_select.c: Likewise.
52805         * tests/test-sys_socket.c: Likewise.
52806         * tests/test-sys_stat.c: Likewise.
52807         * tests/test-sys_time.c: Likewise.
52808         * tests/test-sysexits.c: Likewise.
52809         * tests/test-time.c: Likewise.
52810         * tests/test-tls.c: Likewise.
52811         * tests/test-trunc.c: Likewise.
52812         * tests/test-truncf.c: Likewise.
52813         * tests/test-truncl.c: Likewise.
52814         * tests/test-unistd.c: Likewise.
52815         * tests/test-vasnprintf-posix.c: Likewise.
52816         * tests/test-vasnprintf-posix2.c: Likewise.
52817         * tests/test-vasnprintf.c: Likewise.
52818         * tests/test-vasprintf-posix.c: Likewise.
52819         * tests/test-vasprintf.c: Likewise.
52820         * tests/test-verify.c: Likewise.
52821         * tests/test-vfprintf-posix.c: Likewise.
52822         * tests/test-vprintf-posix.c: Likewise.
52823         * tests/test-vsnprintf-posix.c: Likewise.
52824         * tests/test-vsnprintf.c: Likewise.
52825         * tests/test-vsprintf-posix.c: Likewise.
52826         * tests/test-wchar.c: Likewise.
52827         * tests/test-wctype.c: Likewise.
52828         * tests/test-wcwidth.c: Likewise.
52829         * tests/test-xstrtol.c: Likewise.
52830         * tests/test-xvasprintf.c: Likewise.
52831         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52832         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52833         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52834         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52835         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52836         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52837         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52838         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52839         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52840         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52841         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52842         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52843         * tests/uniname/test-uninames.c: Likewise.
52844         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52845         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52846         * tests/unistdio/test-u16-printf1.h: Likewise.
52847         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52848         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52849         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52850         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52851         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52852         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52853         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52854         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52855         * tests/unistdio/test-u32-printf1.h: Likewise.
52856         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52857         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52858         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52859         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52860         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52861         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52862         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52863         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52864         * tests/unistdio/test-u8-printf1.h: Likewise.
52865         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52866         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52867         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52868         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52869         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52870         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52871         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52872         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52873         * tests/unistdio/test-ulc-printf1.h: Likewise.
52874         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52875         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52876         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52877         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52878         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52879         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52880         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52881         * tests/uniwidth/test-u16-width.c: Likewise.
52882         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52883         * tests/uniwidth/test-u32-width.c: Likewise.
52884         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52885         * tests/uniwidth/test-u8-width.c: Likewise.
52886         * tests/uniwidth/test-uc_width.c: Likewise.
52887         * config/srclist-update: Likewise.
52888         (fixlicense): Update to GPLv3+.
52889
52890         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52891         * tests/test-tsearch.c: Change copyright notice.
52892
52893         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52894         * lib/c-strcaseeq.h: Change copyright notice.
52895         * lib/streq.h: Likewise.
52896         * lib/uniconv.h: Likewise.
52897         * lib/uniconv/u-conv-from-enc.h: Likewise.
52898         * lib/uniconv/u-conv-to-enc.h: Likewise.
52899         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52900         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52901         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52902         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52903         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52904         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52905         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52906         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52907         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52908         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52909         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52910         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52911         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52912         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52913         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52914         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52915         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52916         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52917         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52918         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52919         * lib/uniname.h: Likewise.
52920         * lib/uniname/uniname.c: Likewise.
52921         * lib/unistdio.h: Likewise.
52922         * lib/unistdio/u-asnprintf.h: Likewise.
52923         * lib/unistdio/u-asprintf.h: Likewise.
52924         * lib/unistdio/u-printf-args.c: Likewise.
52925         * lib/unistdio/u-printf-args.h: Likewise.
52926         * lib/unistdio/u-printf-parse.h: Likewise.
52927         * lib/unistdio/u-snprintf.h: Likewise.
52928         * lib/unistdio/u-sprintf.h: Likewise.
52929         * lib/unistdio/u-vasprintf.h: Likewise.
52930         * lib/unistdio/u-vsnprintf.h: Likewise.
52931         * lib/unistdio/u-vsprintf.h: Likewise.
52932         * lib/unistdio/u16-asnprintf.c: Likewise.
52933         * lib/unistdio/u16-asprintf.c: Likewise.
52934         * lib/unistdio/u16-printf-parse.c: Likewise.
52935         * lib/unistdio/u16-snprintf.c: Likewise.
52936         * lib/unistdio/u16-sprintf.c: Likewise.
52937         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52938         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52939         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52940         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52941         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52942         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52943         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52944         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52945         * lib/unistdio/u16-vasnprintf.c: Likewise.
52946         * lib/unistdio/u16-vasprintf.c: Likewise.
52947         * lib/unistdio/u16-vsnprintf.c: Likewise.
52948         * lib/unistdio/u16-vsprintf.c: Likewise.
52949         * lib/unistdio/u32-asnprintf.c: Likewise.
52950         * lib/unistdio/u32-asprintf.c: Likewise.
52951         * lib/unistdio/u32-printf-parse.c: Likewise.
52952         * lib/unistdio/u32-snprintf.c: Likewise.
52953         * lib/unistdio/u32-sprintf.c: Likewise.
52954         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52955         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52956         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52957         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52958         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52959         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52960         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52961         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52962         * lib/unistdio/u32-vasnprintf.c: Likewise.
52963         * lib/unistdio/u32-vasprintf.c: Likewise.
52964         * lib/unistdio/u32-vsnprintf.c: Likewise.
52965         * lib/unistdio/u32-vsprintf.c: Likewise.
52966         * lib/unistdio/u8-asnprintf.c: Likewise.
52967         * lib/unistdio/u8-asprintf.c: Likewise.
52968         * lib/unistdio/u8-printf-parse.c: Likewise.
52969         * lib/unistdio/u8-snprintf.c: Likewise.
52970         * lib/unistdio/u8-sprintf.c: Likewise.
52971         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52972         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52973         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52974         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52975         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52976         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52977         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52978         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52979         * lib/unistdio/u8-vasnprintf.c: Likewise.
52980         * lib/unistdio/u8-vasprintf.c: Likewise.
52981         * lib/unistdio/u8-vsnprintf.c: Likewise.
52982         * lib/unistdio/u8-vsprintf.c: Likewise.
52983         * lib/unistdio/ulc-asnprintf.c: Likewise.
52984         * lib/unistdio/ulc-asprintf.c: Likewise.
52985         * lib/unistdio/ulc-printf-parse.c: Likewise.
52986         * lib/unistdio/ulc-snprintf.c: Likewise.
52987         * lib/unistdio/ulc-sprintf.c: Likewise.
52988         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52989         * lib/unistdio/ulc-vasprintf.c: Likewise.
52990         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52991         * lib/unistdio/ulc-vsprintf.c: Likewise.
52992         * lib/unistr.h: Likewise.
52993         * lib/unistr/u-cpy-alloc.h: Likewise.
52994         * lib/unistr/u-cpy.h: Likewise.
52995         * lib/unistr/u-endswith.h: Likewise.
52996         * lib/unistr/u-move.h: Likewise.
52997         * lib/unistr/u-set.h: Likewise.
52998         * lib/unistr/u-startswith.h: Likewise.
52999         * lib/unistr/u-stpcpy.h: Likewise.
53000         * lib/unistr/u-stpncpy.h: Likewise.
53001         * lib/unistr/u-strcat.h: Likewise.
53002         * lib/unistr/u-strcpy.h: Likewise.
53003         * lib/unistr/u-strcspn.h: Likewise.
53004         * lib/unistr/u-strdup.h: Likewise.
53005         * lib/unistr/u-strlen.h: Likewise.
53006         * lib/unistr/u-strncat.h: Likewise.
53007         * lib/unistr/u-strncpy.h: Likewise.
53008         * lib/unistr/u-strnlen.h: Likewise.
53009         * lib/unistr/u-strpbrk.h: Likewise.
53010         * lib/unistr/u-strspn.h: Likewise.
53011         * lib/unistr/u-strstr.h: Likewise.
53012         * lib/unistr/u-strtok.h: Likewise.
53013         * lib/unistr/u16-check.c: Likewise.
53014         * lib/unistr/u16-chr.c: Likewise.
53015         * lib/unistr/u16-cmp.c: Likewise.
53016         * lib/unistr/u16-cpy-alloc.c: Likewise.
53017         * lib/unistr/u16-cpy.c: Likewise.
53018         * lib/unistr/u16-endswith.c: Likewise.
53019         * lib/unistr/u16-mblen.c: Likewise.
53020         * lib/unistr/u16-mbsnlen.c: Likewise.
53021         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53022         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53023         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53024         * lib/unistr/u16-mbtouc.c: Likewise.
53025         * lib/unistr/u16-mbtoucr.c: Likewise.
53026         * lib/unistr/u16-move.c: Likewise.
53027         * lib/unistr/u16-next.c: Likewise.
53028         * lib/unistr/u16-prev.c: Likewise.
53029         * lib/unistr/u16-set.c: Likewise.
53030         * lib/unistr/u16-startswith.c: Likewise.
53031         * lib/unistr/u16-stpcpy.c: Likewise.
53032         * lib/unistr/u16-stpncpy.c: Likewise.
53033         * lib/unistr/u16-strcat.c: Likewise.
53034         * lib/unistr/u16-strchr.c: Likewise.
53035         * lib/unistr/u16-strcmp.c: Likewise.
53036         * lib/unistr/u16-strcpy.c: Likewise.
53037         * lib/unistr/u16-strcspn.c: Likewise.
53038         * lib/unistr/u16-strdup.c: Likewise.
53039         * lib/unistr/u16-strlen.c: Likewise.
53040         * lib/unistr/u16-strmblen.c: Likewise.
53041         * lib/unistr/u16-strmbtouc.c: Likewise.
53042         * lib/unistr/u16-strncat.c: Likewise.
53043         * lib/unistr/u16-strncmp.c: Likewise.
53044         * lib/unistr/u16-strncpy.c: Likewise.
53045         * lib/unistr/u16-strnlen.c: Likewise.
53046         * lib/unistr/u16-strpbrk.c: Likewise.
53047         * lib/unistr/u16-strrchr.c: Likewise.
53048         * lib/unistr/u16-strspn.c: Likewise.
53049         * lib/unistr/u16-strstr.c: Likewise.
53050         * lib/unistr/u16-strtok.c: Likewise.
53051         * lib/unistr/u16-to-u32.c: Likewise.
53052         * lib/unistr/u16-to-u8.c: Likewise.
53053         * lib/unistr/u16-uctomb-aux.c: Likewise.
53054         * lib/unistr/u16-uctomb.c: Likewise.
53055         * lib/unistr/u32-check.c: Likewise.
53056         * lib/unistr/u32-chr.c: Likewise.
53057         * lib/unistr/u32-cmp.c: Likewise.
53058         * lib/unistr/u32-cpy-alloc.c: Likewise.
53059         * lib/unistr/u32-cpy.c: Likewise.
53060         * lib/unistr/u32-endswith.c: Likewise.
53061         * lib/unistr/u32-mblen.c: Likewise.
53062         * lib/unistr/u32-mbsnlen.c: Likewise.
53063         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53064         * lib/unistr/u32-mbtouc.c: Likewise.
53065         * lib/unistr/u32-mbtoucr.c: Likewise.
53066         * lib/unistr/u32-move.c: Likewise.
53067         * lib/unistr/u32-next.c: Likewise.
53068         * lib/unistr/u32-prev.c: Likewise.
53069         * lib/unistr/u32-set.c: Likewise.
53070         * lib/unistr/u32-startswith.c: Likewise.
53071         * lib/unistr/u32-stpcpy.c: Likewise.
53072         * lib/unistr/u32-stpncpy.c: Likewise.
53073         * lib/unistr/u32-strcat.c: Likewise.
53074         * lib/unistr/u32-strchr.c: Likewise.
53075         * lib/unistr/u32-strcmp.c: Likewise.
53076         * lib/unistr/u32-strcpy.c: Likewise.
53077         * lib/unistr/u32-strcspn.c: Likewise.
53078         * lib/unistr/u32-strdup.c: Likewise.
53079         * lib/unistr/u32-strlen.c: Likewise.
53080         * lib/unistr/u32-strmblen.c: Likewise.
53081         * lib/unistr/u32-strmbtouc.c: Likewise.
53082         * lib/unistr/u32-strncat.c: Likewise.
53083         * lib/unistr/u32-strncmp.c: Likewise.
53084         * lib/unistr/u32-strncpy.c: Likewise.
53085         * lib/unistr/u32-strnlen.c: Likewise.
53086         * lib/unistr/u32-strpbrk.c: Likewise.
53087         * lib/unistr/u32-strrchr.c: Likewise.
53088         * lib/unistr/u32-strspn.c: Likewise.
53089         * lib/unistr/u32-strstr.c: Likewise.
53090         * lib/unistr/u32-strtok.c: Likewise.
53091         * lib/unistr/u32-to-u16.c: Likewise.
53092         * lib/unistr/u32-to-u8.c: Likewise.
53093         * lib/unistr/u32-uctomb.c: Likewise.
53094         * lib/unistr/u8-check.c: Likewise.
53095         * lib/unistr/u8-chr.c: Likewise.
53096         * lib/unistr/u8-cmp.c: Likewise.
53097         * lib/unistr/u8-cpy-alloc.c: Likewise.
53098         * lib/unistr/u8-cpy.c: Likewise.
53099         * lib/unistr/u8-endswith.c: Likewise.
53100         * lib/unistr/u8-mblen.c: Likewise.
53101         * lib/unistr/u8-mbsnlen.c: Likewise.
53102         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53103         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53104         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53105         * lib/unistr/u8-mbtouc.c: Likewise.
53106         * lib/unistr/u8-mbtoucr.c: Likewise.
53107         * lib/unistr/u8-move.c: Likewise.
53108         * lib/unistr/u8-next.c: Likewise.
53109         * lib/unistr/u8-prev.c: Likewise.
53110         * lib/unistr/u8-set.c: Likewise.
53111         * lib/unistr/u8-startswith.c: Likewise.
53112         * lib/unistr/u8-stpcpy.c: Likewise.
53113         * lib/unistr/u8-stpncpy.c: Likewise.
53114         * lib/unistr/u8-strcat.c: Likewise.
53115         * lib/unistr/u8-strchr.c: Likewise.
53116         * lib/unistr/u8-strcmp.c: Likewise.
53117         * lib/unistr/u8-strcpy.c: Likewise.
53118         * lib/unistr/u8-strcspn.c: Likewise.
53119         * lib/unistr/u8-strdup.c: Likewise.
53120         * lib/unistr/u8-strlen.c: Likewise.
53121         * lib/unistr/u8-strmblen.c: Likewise.
53122         * lib/unistr/u8-strmbtouc.c: Likewise.
53123         * lib/unistr/u8-strncat.c: Likewise.
53124         * lib/unistr/u8-strncmp.c: Likewise.
53125         * lib/unistr/u8-strncpy.c: Likewise.
53126         * lib/unistr/u8-strnlen.c: Likewise.
53127         * lib/unistr/u8-strpbrk.c: Likewise.
53128         * lib/unistr/u8-strrchr.c: Likewise.
53129         * lib/unistr/u8-strspn.c: Likewise.
53130         * lib/unistr/u8-strstr.c: Likewise.
53131         * lib/unistr/u8-strtok.c: Likewise.
53132         * lib/unistr/u8-to-u16.c: Likewise.
53133         * lib/unistr/u8-to-u32.c: Likewise.
53134         * lib/unistr/u8-uctomb-aux.c: Likewise.
53135         * lib/unistr/u8-uctomb.c: Likewise.
53136         * lib/unitypes.h: Likewise.
53137         * lib/uniwidth.h: Likewise.
53138         * lib/uniwidth/cjk.h: Likewise.
53139         * lib/uniwidth/u16-strwidth.c: Likewise.
53140         * lib/uniwidth/u16-width.c: Likewise.
53141         * lib/uniwidth/u32-strwidth.c: Likewise.
53142         * lib/uniwidth/u32-width.c: Likewise.
53143         * lib/uniwidth/u8-strwidth.c: Likewise.
53144         * lib/uniwidth/u8-width.c: Likewise.
53145         * lib/uniwidth/width.c: Likewise.
53146
53147 2007-10-07  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53150         The file is still under LGPL (see modules/inttypes).
53151
53152 2007-10-06  Bruno Haible  <bruno@clisp.org>
53153
53154         * modules/trunc (Dependencies): Add 'extensions'.
53155         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53156         Reported by Ben Pfaff <blp@gnu.org>.
53157
53158 2007-10-06  Bruno Haible  <bruno@clisp.org>
53159
53160         * modules/freopen-tests: New file.
53161         * tests/test-freopen.c: New file.
53162
53163         * modules/fopen-tests: New file.
53164         * tests/test-fopen.c: New file.
53165
53166         * modules/fopen: New file.
53167         * lib/fopen.c: New file.
53168         * m4/fopen.m4: New file.
53169         * modules/freopen: New file.
53170         * lib/freopen.c: New file.
53171         * m4/freopen.m4: New file.
53172         * lib/stdio.in.h (fopen, freopen): New declarations.
53173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53174         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53175         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53176         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53177         * doc/functions/fopen.texi: Mention the 'fopen' module.
53178         * doc/functions/freopen.texi: Mention the 'freopen' module.
53179
53180 2007-10-06  Bruno Haible  <bruno@clisp.org>
53181
53182         * modules/open-tests: New file.
53183         * tests/test-open.c: New file.
53184
53185         * modules/open: New file.
53186         * lib/open.c: New file.
53187         * m4/open.m4: New file.
53188         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53189         lib/open.c does.
53190         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53191         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53192         macros.
53193         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53194         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53195         REPLACE_OPEN.
53196         * doc/functions/open.texi: Mention the 'open' module.
53197
53198 2007-10-04  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/ceill-tests: New file.
53201         * tests/test-ceill.c: New file.
53202
53203         * modules/ceill: New file.
53204         * lib/ceill.c: Replace entire file.
53205         * m4/ceill.m4: New file.
53206         * lib/math.in.h (ceill): Replace declaration.
53207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53208         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53209         * doc/functions/ceill.texi: Mention the 'ceill' module.
53210         * modules/mathl (Files): Remove lib/ceill.c.
53211         (Depends-on): Add ceill.
53212
53213 2007-10-04  Bruno Haible  <bruno@clisp.org>
53214
53215         * modules/ceilf-tests: New file.
53216         * tests/test-ceilf.c: New file.
53217
53218         * modules/ceilf: New file.
53219         * lib/ceil.c: New file.
53220         * lib/ceilf.c: New file.
53221         * m4/ceilf.m4: New file.
53222         * lib/math.in.h (ceilf): New declaration.
53223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53224         HAVE_DECL_CEILF.
53225         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53226         HAVE_DECL_CEILF.
53227         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53228
53229 2007-10-04  Bruno Haible  <bruno@clisp.org>
53230
53231         * modules/floorl-tests: New file.
53232         * tests/test-floorl.c: New file.
53233
53234         * modules/floorl: New file.
53235         * lib/floorl.c: Replace entire file.
53236         * m4/floorl.m4: New file.
53237         * lib/math.in.h (floorl): Replace declaration.
53238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53239         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53240         * doc/functions/floorl.texi: Mention the 'floorl' module.
53241         * modules/mathl (Files): Remove lib/floorl.c.
53242         (Depends-on): Add floorl.
53243
53244 2007-10-04  Bruno Haible  <bruno@clisp.org>
53245
53246         * modules/floorf-tests: New file.
53247         * tests/test-floorf.c: New file.
53248
53249         * modules/floorf: New file.
53250         * lib/floor.c: New file.
53251         * lib/floorf.c: New file.
53252         * m4/floorf.m4: New file.
53253         * lib/math.in.h (floorf): New declaration.
53254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53255         HAVE_DECL_FLOORF.
53256         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53257         HAVE_DECL_FLOORF.
53258         * doc/functions/floorf.texi: Mention the 'floorf' module.
53259
53260 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53261             Bruno Haible  <bruno@clisp.org>
53262
53263         Advertise for the Git server instead of the CVS server.
53264         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53265         repository instead of the CVS one.
53266         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53267         about all VCS systems generically.
53268         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53269
53270 2007-10-04  Bruno Haible  <bruno@clisp.org>
53271
53272         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53273         means.
53274         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53275
53276 2007-10-04  Bruno Haible  <bruno@clisp.org>
53277
53278         * modules/truncl-tests: New file.
53279         * tests/test-truncl.c: New file.
53280
53281         * modules/truncl: New file.
53282         * lib/truncl.c: New file.
53283         * m4/truncl.m4: New file.
53284         * lib/math.in.h (truncl): New declaration.
53285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53286         HAVE_DECL_TRUNCL.
53287         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53288         HAVE_DECL_TRUNCL.
53289         * doc/functions/truncl.texi: Mention the 'truncl' module.
53290
53291 2007-10-04  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/truncf-tests: New file.
53294         * tests/test-truncf.c: New file.
53295
53296         * modules/truncf: New file.
53297         * lib/trunc.c: Make paramerizable through USE_* macros.
53298         * lib/truncf.c: New file.
53299         * m4/truncf.m4: New file.
53300         * lib/math.in.h (truncf): New declaration.
53301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53302         HAVE_DECL_TRUNCF.
53303         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53304         HAVE_DECL_TRUNCF.
53305         * doc/functions/truncf.texi: Mention the 'truncf' module.
53306
53307 2007-10-03  Bruno Haible  <bruno@clisp.org>
53308
53309         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53310         augmentation also for tests modules.
53311         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53312         * modules/atexit-tests (Makefile.am): Likewise.
53313         * modules/binary-io-tests (Makefile.am): Likewise.
53314         * modules/c-strcase-tests (Makefile.am): Likewise.
53315         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53316         * modules/canonicalize-tests (Makefile.am): Likewise.
53317         * modules/closein-tests (Makefile.am): Likewise.
53318         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53319         * modules/freadahead-tests (Makefile.am): Likewise.
53320         * modules/fseek-tests (Makefile.am): Likewise.
53321         * modules/fseeko-tests (Makefile.am): Likewise.
53322         * modules/ftell-tests (Makefile.am): Likewise.
53323         * modules/ftello-tests (Makefile.am): Likewise.
53324         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53325         * modules/isnanl-tests (Makefile.am): Likewise.
53326         * modules/lseek-tests (Makefile.am): Likewise.
53327         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53328         * modules/mbscasestr-tests (Makefile.am): Likewise.
53329         * modules/mbschr-tests (Makefile.am): Likewise.
53330         * modules/mbscspn-tests (Makefile.am): Likewise.
53331         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53332         * modules/mbspbrk-tests (Makefile.am): Likewise.
53333         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53334         * modules/mbsrchr-tests (Makefile.am): Likewise.
53335         * modules/mbsspn-tests (Makefile.am): Likewise.
53336         * modules/mbsstr-tests (Makefile.am): Likewise.
53337         * modules/printf-posix-tests (Makefile.am): Likewise.
53338         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53339         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53340         * modules/tsearch-tests (Makefile.am): Likewise.
53341         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53342         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53343         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53344         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53345         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53346         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53347         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53348         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53349         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53350         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53351         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53352         * modules/xstrtol-tests (Makefile.am): Likewise.
53353         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53354         * modules/yesno-tests (Makefile.am): Likewise.
53355
53356 2007-10-03  Bruno Haible  <bruno@clisp.org>
53357
53358         * modules/trunc-tests: New file.
53359         * tests/test-trunc.c: New file.
53360
53361         * modules/trunc: New file.
53362         * lib/trunc.c: New file.
53363         * m4/trunc.m4: New file.
53364         * lib/math.in.h (trunc): New declaration.
53365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53366         HAVE_DECL_TRUNC.
53367         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53368         HAVE_DECL_TRUNC.
53369         * doc/functions/trunc.texi: Mention the 'trunc' module.
53370
53371 2007-10-03  Bruno Haible  <bruno@clisp.org>
53372
53373         * tests/test-fpending.c: New file, mostly copied
53374         from coreutils/lib/t-fpending.c.
53375         * modules/fpending-tests: New file.
53376
53377 2007-10-03  Bruno Haible  <bruno@clisp.org>
53378
53379         Port the stdio extensions to QNX (untested).
53380         * lib/fseterr.c (fseterr): Add support for QNX.
53381         * lib/fbufmode.c (fbufmode): Likewise.
53382         * lib/freadable.c (freadable): Likewise.
53383         * lib/fwritable.c (fwritable): Likewise.
53384         * lib/freading.c (freading): Likewise.
53385         * lib/fwriting.c (fwriting): Likewise.
53386         * lib/freadahead.c (freadahed): Likewise.
53387         * lib/fpurge.c (fpurge): Likewise.
53388         * lib/fseeko.c (rpl_fseeko): Likewise.
53389
53390 2007-10-03  Bruno Haible  <bruno@clisp.org>
53391             Jim Meyering  <jim@meyering.net>
53392             Eric Blake  <ebb9@byu.net>
53393
53394         * doc/relocatable.texi: Use @command instead of @program.
53395
53396 2007-10-02  Jim Meyering  <jim@meyering.net>
53397
53398         Perform one more "_.h" -> ".in.h" substitution.
53399         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53400         instead of unistd_.h here, too.
53401
53402 2007-10-01  Bruno Haible  <bruno@clisp.org>
53403
53404         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53405         Needed for the alloca-opt module.
53406
53407 2007-09-30  Bruno Haible  <bruno@clisp.org>
53408
53409         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53410         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53411         alloca_.h.
53412         * lib/argz.in.h: Renamed from lib/argz_.h.
53413         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53414         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53415         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53416         byteswap_.h.
53417         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53418         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53419         dirent_.h.
53420         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53421         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53422         fcntl_.h.
53423         * lib/float.in.h: Renamed from lib/float_.h.
53424         * modules/float (Files, Makefile.am): Use float.in.h instead of
53425         float_.h.
53426         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53427         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53428         fnmatch_.h.
53429         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53430         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53431         getopt_.h.
53432         * lib/glob.in.h: Renamed from lib/glob_.h.
53433         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53434         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53435         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53436         iconv_.h.
53437         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53438         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53439         inttypes_.h.
53440         * lib/locale.in.h: Renamed from lib/locale_.h.
53441         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53442         locale_.h.
53443         * lib/math.in.h: Renamed from lib/math_.h.
53444         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53445         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53446         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53447         of netinet_in_.h. Add dependency.
53448         * lib/poll.in.h: Renamed from lib/poll_.h.
53449         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53450         * lib/search.in.h: Renamed from lib/search_.h.
53451         * modules/search (Files, Makefile.am): Use search.in.h instead of
53452         search_.h.
53453         * lib/signal.in.h: Renamed from lib/signal_.h.
53454         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53455         _signal.h.
53456         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53457         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53458         stdbool_.h.
53459         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53460         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53461         stdint_.h.
53462         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53463         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53464         stdio_.h.
53465         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53466         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53467         stdlib_.h.
53468         * lib/string.in.h: Renamed from lib/string_.h.
53469         * modules/string (Files, Makefile.am): Use string.in.h instead of
53470         string_.h.
53471         * doc/gnulib-tool.texi (Initial import): Update.
53472         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53473         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53474         of sys_select_.h. Add dependency.
53475         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53476         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53477         of sys_socket_.h.
53478         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53479         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53480         sys_stat_.h.
53481         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53482         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53483         sys_time_.h.
53484         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53485         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53486         sysexits_.h.
53487         * lib/time.in.h: Renamed from lib/time_.h.
53488         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53489         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53490         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53491         unistd_.h.
53492         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53493         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53494         wchar_.h.
53495         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53496         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53497         wctype_.h.
53498         * build-aux/bootstrap (slurp): Update.
53499         * lib/.cppi-disable: Update.
53500
53501 2007-09-30  Bruno Haible  <bruno@clisp.org>
53502
53503         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53504         Needed on BeOS.
53505
53506 2007-09-30  Bruno Haible  <bruno@clisp.org>
53507
53508         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53509
53510 2007-09-29  Bruno Haible  <bruno@clisp.org>
53511
53512         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53513
53514 2007-09-29  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53517         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53518         * build-aux/install-reloc: Compile also areadlink.c.
53519         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53520
53521 2007-09-29  Bruno Haible  <bruno@clisp.org>
53522
53523         * gnulib-tool (func_emit_initmacro_done): Indentation.
53524
53525 2007-09-29  Bruno Haible  <bruno@clisp.org>
53526
53527         * README: Add CVS checkout update instructions.
53528         Info from Bob Proulx <bob@proulx.com>.
53529
53530 2007-09-28  Eric Blake  <ebb9@byu.net>
53531
53532         Provide move-if-change.
53533         * build-aux/move-if-change: New file, based on best practice
53534         rather than any canonical upstream location.
53535
53536 2007-09-28  Jim Meyering  <jim@meyering.net>
53537
53538         Fix canonicalize loop-detection corner case.
53539         Do not attempt to stat the symlink values stored via seen_triple.
53540         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53541         on linux-2.6.18, (but not 2.6.22).
53542         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53543         triple_compare.  The former compares dev,ino,filename, while the latter
53544         would actually stat dirname(filename) when dev and ino were equal.
53545         * lib/hash-triple.c: Install <string.h>.
53546         (STREQ): Define.
53547         (triple_compare_ino_str): New function.
53548         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53549
53550 2007-09-28  Eric Blake  <ebb9@byu.net>
53551
53552         Enforce that AC_REPLACE_FUNCS files exist.
53553         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53554         override check for typos.
53555
53556         Fix test-closein on Solaris 10.
53557         * tests/test-closein.c (main): Don't assume stdin can be inherited
53558         closed on all systems.
53559         * tests/test-closein.sh: Likewise.
53560         Reported by Piotr Tarnowski.
53561
53562 2007-09-28  Jim Meyering  <jim@meyering.net>
53563
53564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53565
53566 2007-09-27  Jim Meyering  <jim@meyering.net>
53567
53568         canonicalize: Avoid a false-positive cycle failure.
53569         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53570         Sort.  Remove cycle-check.
53571         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53572         not cycle-check.h.
53573         (seen_triple): New function.
53574         (canonicalize_filename_mode): Use it instead of cycle-check.
53575         * tests/test-canonicalize.c: Add a test for this bug.
53576         * tests/test-canonicalize.sh: Set up and run the test.
53577
53578         New module, file-set, from coreutils.
53579         * modules/file-set: Define it.
53580         * lib/file-set.c, lib/file-set.h: Implement.
53581
53582         New module, hash-triple, from coreutils.
53583         * modules/hash-triple: Define it.
53584         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53585
53586 2007-09-25  Eric Blake  <ebb9@byu.net>
53587
53588         Fix strerror on Interix.
53589         * lib/string_.h (strerror): Declare replacement.
53590         * doc/functions/strerror.texi (strerror): Document the Interix
53591         shortcoming.
53592         * modules/string (Makefile.am): Support new hooks.
53593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53594         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53595         gl_FUNC_STRERROR_SEPARATE.
53596         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53597         * lib/strerror.c (rpl_strerror): Provide replacement.
53598         * modules/strerror (Depends-on): Add string.
53599         (configure.ac): Detect use of module.
53600         * tests/test-strerror.c: New file.
53601         * modules/strerror-tests: New test module.
53602         * modules/argp (Depends-on): Add strerror.
53603         * modules/error (Depends-on): Likewise.
53604         Reported by Martin Koeppe.
53605
53606 2007-09-24  Bruno Haible  <bruno@clisp.org>
53607
53608         * README: Update git instructions.
53609
53610 2007-09-24  Eric Blake  <ebb9@byu.net>
53611
53612         Revert fpending breakage from 2007-09-08.
53613         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53614         __fpending.c.
53615
53616 2007-09-24  Jim Meyering  <jim@meyering.net>
53617
53618         filenamecat.c: Add a test.
53619         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53620         showing how the function works when DIR is the empty string.
53621
53622 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53623
53624         * tests/test-canonicalize.sh: Turn on executable bit.
53625
53626 2007-09-19  Eric Blake  <ebb9@byu.net>
53627
53628         * README: Update CVS instructions.
53629
53630 2007-09-18  Bruno Haible  <bruno@clisp.org>
53631
53632         * modules/areadlink: New file.
53633         * lib/areadlink.h (areadlink): New declaration.
53634         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53635
53636 2007-09-17  Jim Meyering  <jim@meyering.net>
53637
53638         * lib/savewd.c (ESTALE) [!defined]: Define.
53639         Reported to be required on Interix by Martin Koeppe.
53640
53641 2007-09-17  Bruno Haible  <bruno@clisp.org>
53642
53643         * gnulib-tool (func_version): Use $version.
53644
53645 2007-09-16  Bruno Haible  <bruno@clisp.org>
53646
53647         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53648         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53649         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53650         Reported by Greg Schafer <gschafer@zip.com.au>.
53651
53652 2007-09-15  Bruno Haible  <bruno@clisp.org>
53653
53654         * gnulib-tool (sed): Try a little harder to make bash understand the
53655         alias.
53656         Reported by Bruce Korb <bruce.korb@gmail.com>.
53657
53658 2007-09-13  Eric Blake  <ebb9@byu.net>
53659
53660         * ChangeLog: Remove conflict markers.
53661
53662 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53663
53664         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53665         Reported by Bruno Haible <bruno@clisp.org>.
53666
53667 2007-09-12  Bruno Haible  <bruno@clisp.org>
53668
53669         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53670         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53671         is not defined.
53672
53673 2007-09-12  Eric Blake  <ebb9@byu.net>
53674
53675         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53677         Autoconf definition.
53678         * modules/euidaccess (Depends-on): Add extensions, for
53679         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53680         * modules/fnmatch (Depends-on): Likewise.
53681         * modules/getaddrinfo (Depends-on): Likewise.
53682         * modules/getdelim (Depends-on): Likewise.
53683         * modules/getline (Depends-on): Likewise.
53684         * modules/getsubopt (Depends-on): Likewise.
53685         * modules/gettext (Depends-on): Likewise.
53686         * modules/group-member (Depends-on): Likewise.
53687         * modules/mbchar (Depends-on): Likewise.
53688         * modules/memmem (Depends-on): Likewise.
53689         * modules/mempcpy (Depends-on): Likewise.
53690         * modules/memrchr (Depends-on): Likewise.
53691         * modules/pagealign_alloc (Depends-on): Likewise.
53692         * modules/readutmp (Depends-on): Likewise.
53693         * modules/stpcpy (Depends-on): Likewise.
53694         * modules/stpncpy (Depends-on): Likewise.
53695         * modules/strchrnul (Depends-on): Likewise.
53696         * modules/strndup (Depends-on): Likewise.
53697         * modules/strsep (Depends-on): Likewise.
53698         * modules/strverscmp (Depends-on): Likewise.
53699         * modules/vasprintf (Depends-on): Likewise.
53700         * modules/wcwidth (Depends-on): Likewise.
53701         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53702         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53703         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53705         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53706         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53707         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53708         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53709         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53710         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53711         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53712         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53713         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53714         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53715         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53716         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53717         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53718         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53720         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53723         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53724         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53725         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53727         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53728         so that lock.m4 can be used in gettext without extensions module.
53729
53730 2007-09-11  Bruno Haible  <bruno@clisp.org>
53731
53732         * m4/isc-posix.m4: Remove file.
53733         Suggested by Eric Blake.
53734
53735 2007-09-11  Eric Blake  <ebb9@byu.net>
53736
53737         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53738
53739 2007-09-10  Bruno Haible  <bruno@clisp.org>
53740
53741         * posix-modules: Fix typo in error message.
53742         Reported by Matt <mkraai@beckman.com>.
53743
53744 2007-09-09  Bruno Haible  <bruno@clisp.org>
53745
53746         * doc/functions/getdelim.texi: Update list of platforms lacking the
53747         function.
53748         * doc/functions/getline.texi: Likewise.
53749
53750 2007-09-09  Jim Meyering  <jim@meyering.net>
53751
53752         * lib/hash.c (hash_initialize): Detect calloc failure.
53753         Reported by Bruno Haible.
53754
53755 2007-09-09  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53758         malloc or realloc fails.
53759
53760 2007-09-09  Bruno Haible  <bruno@clisp.org>
53761
53762         * modules/getcwd (Depends-on): Add malloc-posix.
53763         * modules/glob (Depends-on): Likewise.
53764         * modules/putenv (Depends-on): Likewise.
53765         * modules/strdup (Depends-on): Likewise.
53766         * modules/getdelim (Depends-on): Add realloc-posix.
53767         * modules/read-file (Depends-on): Likewise.
53768
53769 2007-09-09  Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53772         (gl_FUNC_MALLOC_POSIX): Require it.
53773         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53774         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53775         * modules/realloc (Files): Add m4/malloc.m4.
53776         * modules/calloc (Files): Likewise.
53777
53778 2007-09-09  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/malloc-posix: New file.
53781         * modules/malloc (Depends-on): Add malloc-posix.
53782         * lib/malloc.c: Include errno.h.
53783         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53784         and a POSIX-compatible malloc into a single function. Set ENOMEM
53785         when returning NULL.
53786         * m4/malloc.m4: New file.
53787         * doc/functions/malloc.texi: Mention the malloc-posix module.
53788         * lib/stdlib_.h (malloc): New declaration.
53789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53790         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53791         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53792         and HAVE_MALLOC_POSIX.
53793
53794 2007-09-09  Bruno Haible  <bruno@clisp.org>
53795
53796         * modules/realloc-posix: New file.
53797         * modules/realloc (Depends-on): Add realloc-posix.
53798         * lib/realloc.c: Include errno.h.
53799         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53800         and a POSIX-compatible realloc into a single function. Set ENOMEM
53801         when returning NULL.
53802         * m4/realloc.m4: New file.
53803         * doc/functions/realloc.texi: Mention the realloc-posix module.
53804         * lib/stdlib_.h (realloc): New declaration.
53805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53806         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53807         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53808         and HAVE_REALLOC_POSIX.
53809
53810 2007-09-09  Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/calloc-posix: New file.
53813         * modules/calloc (Depends-on): Add calloc-posix.
53814         * lib/calloc.c: Include errno.h.
53815         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53816         and a POSIX-compatible calloc into a single function. Set ENOMEM
53817         when returning NULL.
53818         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53819         * doc/functions/calloc.texi: Mention the calloc-posix module.
53820         * lib/stdlib_.h (calloc): New declaration.
53821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53822         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53823         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53824         and HAVE_CALLOC_POSIX.
53825
53826 2007-09-09  Bruno Haible  <bruno@clisp.org>
53827
53828         Allow for modules to show an arbitrary notice.
53829         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53830         * gnulib-tool: New option --extract-notice.
53831         (func_usage): Document it.
53832         (sed_extract_prog): Update.
53833         (func_get_notice): New function.
53834         (func_modules_notice): New function.
53835         (func_import, func_create_testdir): Invoke it.
53836         Suggested by Jim Meyering.
53837
53838 2007-09-09  Bruno Haible  <bruno@clisp.org>
53839
53840         * gnulib-tool: New options --verbose, --quiet.
53841         (func_usage): Document them.
53842         (verbose): New variable.
53843         (func_execute_command): New function.
53844         (func_import): Don't show the module list and the file list if
53845         $verbose < 0.
53846         (func_create_testdir): Likewise. Use func_execute_command.
53847         (func_create_megatestdir): Use func_execute_command.
53848
53849 2007-09-08  Bruno Haible  <bruno@clisp.org>
53850
53851         * gnulib-tool (func_import): Prefer rsync over wget when available,
53852         for fetching the PO files.
53853
53854 2007-09-08  Bruno Haible  <bruno@clisp.org>
53855
53856         * posix-modules: New file. Portions copied from gnulib-tool.
53857         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53858
53859 2007-09-08  Jim Meyering  <jim@meyering.net>
53860
53861         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53862         * lib/fpending.h: Rename from __fpending.h.
53863         * lib/fpending.c: Rename from __fpending.c.
53864         Include "fpending.h", not "__fpending.h".
53865         * lib/__fpending.h, lib/__fpending.c: Remove files.
53866         * modules/fpending (Files): Reflect new file names.
53867         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53868
53869 2007-09-08  Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/inttypes-h.m4: Remove stub file.
53872
53873 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53874
53875         * doc/headers/stdint.texi: Discuss #include_next issue.
53876
53877 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53878
53879         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53880
53881 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53882
53883         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53884         in variable name.
53885
53886 2007-09-03  Jim Meyering  <jim@meyering.net>
53887
53888         New module: git-version-gen.
53889         * modules/git-version-gen: New file.
53890
53891         Import changes from coreutils for bootstrap script.
53892
53893         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53894
53895         bootstrap: uses rsync to download the .po files
53896         * build-aux/bootstrap (po_download_command_format): New global.
53897         (download_po_files): Use rsync.
53898         (update_po_files): Don't remove .po files after download,
53899         so future rsync runs can take advantage of the copies.
53900
53901         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53902
53903         Solve the unnecessary-.po-file-regeneration problem once and for all.
53904         * build-aux/bootstrap (download_po_files): New function, renamed from
53905         get_translations.  Now, downloads, but doesn't update LINGUAS.
53906         (update_po_files): New function.
53907
53908         bootstrap: Ignore more.
53909         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53910         uniwidth to e.g., lib/.gitignore.
53911         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53912
53913         * build-aux/bootstrap: New setting: vc_ignore.
53914         (insert_sorted_if_absent): Create $file if absent.
53915         Adapt to new, possibly empty, list: $vc_ignore.
53916
53917         bootstrap: generate more ignorable names
53918         * build-aux/bootstrap (slurp): When generating ignorable names,
53919         also map .sin to .sed, .gperf to .c, and .y to .c.
53920
53921 2007-09-03  Jim Meyering  <jim@meyering.net>
53922
53923         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53924         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53925
53926 2007-09-02  Bruno Haible  <bruno@clisp.org>
53927
53928         Fix mis-recognition of 'mcs' on QNX 6.
53929         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53930         output contains the string "Mono".
53931         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53932         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53933
53934 2007-09-01  Bruno Haible  <bruno@clisp.org>
53935
53936         Fix collision between uniwidth/* and linebreak modules.
53937         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53938         u32_width): Remove declarations.
53939         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53940         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53941         streq3, streq2, streq1, streq0): Remove functions.
53942         (STREQ): Remove macro.
53943         (is_cjk_encoding): Remove function.
53944         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53945         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53946         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53947         * NEWS: Document the change.
53948
53949 2007-09-01  Bruno Haible  <bruno@clisp.org>
53950
53951         * lib/streq.h: Add double-inclusion guard.
53952
53953 2007-09-01  Karl Berry  <karl@gnu.org>
53954
53955         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53956
53957 2007-08-28  Jim Meyering  <jim@meyering.net>
53958
53959         Rename mreadlink_with_size to areadlink_with_size.
53960         * NEWS: Document the change.
53961         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53962         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53963         * lib/mreadlink.h: Rename this to...
53964         * lib/areadlink.h: ...this.
53965         * modules/mreadlink-with-size: Rename this to...
53966         * modules/areadlink-with-size: ...this.
53967         * lib/canonicalize.c: Reflect the renaming.
53968         * modules/canonicalize: Likewise.
53969
53970 2007-08-26  Bruno Haible  <bruno@clisp.org>
53971
53972         * gnulib-tool (func_import): When deciding which files to remove,
53973         consider also dangling symbolic links.
53974         Reported by Eric Blake.
53975
53976 2007-08-26  Bruno Haible  <bruno@clisp.org>
53977
53978         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53979
53980 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53981
53982         * lib/readline.c: Don't include getline.h, the prototype is now
53983         found in stdio.h.
53984
53985 2007-08-23  Jim Meyering  <jim@meyering.net>
53986
53987         Getdelim touchup.
53988         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53989         around the funlockfile call, since funlockfile never sets errno.
53990         Don't set errno upon failed realloc.
53991
53992 2007-08-22  Eric Blake  <ebb9@byu.net>
53993
53994         Getline touchups.
53995         * lib/getdelim.c (getdelim): Revert regression that required *n to
53996         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53998         getdelim, rather than whether implementation is missing.
53999         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54000         * lib/stdio_.h (getline): Also declare if replacement is
54001         required.
54002         * doc/functions/getdelim.texi: New file.
54003         * doc/functions/getline.texi: Likewise.
54004         * doc/gnulib.texi (Function Substitutes): Add new files.
54005         Reported by Bruno Haible.
54006
54007 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54008
54009         * users.txt: Add Guile.
54010
54011 2007-08-22  Eric Blake  <ebb9@byu.net>
54012
54013         * tests/test-getdelim.c (main): Use remove, not unlink.
54014         * tests/test-getline.c (main): Likewise.
54015
54016         Move getline and getdelim into stdio.h, per POSIX 200x.
54017         * modules/getline (Files): Remove getline.h.
54018         (Depends-on): Add stdio.
54019         (configure.ac): Add module indicator.
54020         * modules/getdelim (Files): Remove getdelim.h.
54021         (Depends-on): Add stdio.
54022         (configure.ac): Add module indicator.
54023         * modules/stdio (Makefile.am): Work with new indicators.
54024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54025         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54026         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54027         * lib/getdelim.h: Delete.
54028         * lib/getline.h: Delete.
54029         * lib/stdio_.h (getdelim, getline): Declare.
54030         * modules/getdelim-tests: New module.
54031         * modules/getline-tests: Likewise.
54032         * tests/test-getdelim.c: New file.
54033         * tests/test-getline.c: Likewise.
54034         * NEWS: Document the change.
54035         * lib/getline.c: Update choice of header.
54036         * lib/csharpcomp.c: Likewise.
54037         * lib/getpass.c: Likewise.
54038         * lib/javacomp.c: Likewise.
54039         * lib/javaversion.c: Likewise.
54040         * lib/yesno.c: Likewise.
54041         * lib/getdelim.c: Likewise.
54042         (getdelim): Set errno on failure, and avoid memory leak.
54043
54044 2007-08-19  Bruno Haible  <bruno@clisp.org>
54045
54046         * modules/closein (Depends-on): Add freadahead.
54047         * lib/closein.c: Include freadahead.h.
54048         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54049         is zero.
54050
54051 2007-08-19  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/freadahead-tests: New file.
54054         * tests/test-freadahead.sh: New file.
54055         * tests/test-freadahead.c: New file.
54056
54057         * modules/freadahead: New file.
54058         * lib/freadahead.h: New file.
54059         * lib/freadahead.c: New file.
54060         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54061         fbufmode, fpurge, freadable, fwritable.
54062
54063 2007-08-19  Eric Blake  <ebb9@byu.net>
54064
54065         Test yesno in combination with closein.
54066         * lib/yesno.c (yesno): Document use of stdin.
54067         * modules/yesno-tests (Files): New module.
54068         * tests/test-yesno.c (main): New file.
54069         * tests/test-yesno.sh: Likewise.
54070
54071 2007-08-19  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54074         * lib/fseeko.c (rpl_fseeko): Likewise.
54075         * lib/fseterr.c (fseterr): Likewise.
54076
54077 2007-08-19  Bruno Haible  <bruno@clisp.org>
54078
54079         * tests/test-lseek.c (main): Disable a test for BeOS.
54080         * doc/functions/lseek.texi: Document the BeOS bug.
54081
54082 2007-08-19  Bruno Haible  <bruno@clisp.org>
54083             Eric Blake  <ebb9@byu.net>
54084
54085         * lib/lseek.c: Include <sys/stat.h>.
54086         (rpl_lseek): Add workaround code also for Unix platforms.
54087         Needed for BeOS.
54088         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54089         * doc/functions/lseek.texi: Document BeOS definiency.
54090
54091 2007-08-18  Bruno Haible  <bruno@clisp.org>
54092
54093         * modules/fstrcmp-tests: New file.
54094         * tests/test-fstrcmp.c: New file.
54095
54096 2007-08-18  Bruno Haible  <bruno@clisp.org>
54097
54098         * modules/fstrcmp: New file, from GNU gettext with modifications.
54099         * lib/fstrcmp.h: New file, from GNU gettext.
54100         * lib/fstrcmp.c: New file, from GNU gettext.
54101         * MODULES.html.sh (String handling): Add fstrcmp.
54102
54103 2007-08-18  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54106         'bool'.
54107         (diag, compareseq): Remove const from the ctxt argument.
54108         (USE_HEURISTIC): Undefine at the end.
54109
54110 2007-08-18  Jim Meyering  <jim@meyering.net>
54111
54112         New file: lib/idcache.h
54113         * NEWS: Mention the addition.
54114         * modules/idcache (Files): Add lib/idcache.h
54115         * lib/idcache.c: Include "idcache.h".
54116         Don't include <sys/types.h>.
54117         Add a FIXME comment.
54118         Move file-scoped "static" declarations to the top.
54119         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54120
54121 2007-08-17  Bruno Haible  <bruno@clisp.org>
54122         and Paul Eggert  <eggert@cs.ucla.edu>
54123
54124         * MODULES.html.sh: Add diffseq.
54125         * modules/diffseq: New file.
54126         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54127         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54128
54129 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54130
54131         Import changes from coreutils for bootstrap script.
54132
54133         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54134
54135         * build-aux/bootstrap (slurp): Work even in environments where
54136         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54137         current code does not slurp files whose names start with ".", and
54138         this looks like it might be a troublesome area.
54139
54140         2007-07-11  Jim Meyering  <jim@meyering.net>
54141
54142         If there's a GPL vN copyright comment, require that N == 3.
54143
54144         2007-07-08  Jim Meyering  <jim@meyering.net>
54145
54146         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54147         * build-aux/bootstrap (mam_template): Move definition out of loop.
54148
54149         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54150
54151         * build-aux/bootstrap (symlink_to_dir): Rename function from
54152         symlink_to_gnulib.  Add a directory parameter.  Update all
54153         callers.
54154         (cp_mark_as_generated): Also check for -- and link to -- files in
54155         gl/.
54156
54157         2007-07-08  Jim Meyering  <jim@meyering.net>
54158
54159         Adapt to deeper hierarchy in gnulib.
54160         * build-aux/bootstrap (symlink_to_dir): If the destination
54161         directory doesn't exist, create it. This is required at least for
54162         "lib/uniwidth/cjk.h".
54163
54164         2007-05-15  Jim Meyering  <jim@meyering.net>
54165
54166         * build-aux/bootstrap: Now that generated Makefile.am files
54167         are no longer under version control, they must be created at
54168         bootstrap time.
54169
54170 2007-08-14  Ben Pfaff  <blp@gnu.org>
54171
54172         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54173
54174 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54177         given the changes below.
54178         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54179         even on hosts that have padding bits beyond the supported 64.
54180
54181 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54182
54183         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54184         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54185         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54186         depends on it.
54187         (xstrtol_error): Remove.
54188         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54189         but with a different signature.
54190         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54191         * lib/xstrtol-error.c: Include exitfail.h.
54192         (xstrtol_fatal): New function, with a different signature from the
54193         old xstrtol_error, so that the caller need not worry about passing
54194         in an exit status, or about storage management of the option argument.
54195         (xstrtol_error): Now a static function.  Redo signature to
54196         implement xstrtol_fatal.  Output the correct number of hyphens in
54197         front of the option so that the caller need not worry about
54198         storage management.
54199         (N_): New macro.
54200         (_): Remove; not used now.
54201         * modules/xstrtol: Depend on getopt.
54202         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54203         of old STRTOL_FATAL_ERROR macro.
54204         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54205         of test program.
54206         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54207         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54208
54209 2007-08-08  Eric Blake  <ebb9@byu.net>
54210
54211         * lib/xstrtol-error.c: Add missing include.
54212
54213         Move xstrtol messages into gnulib domain, when --pobase is used.
54214         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54215         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54216         * modules/xstrtol (Files): Distribute new file.
54217         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54218         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54219         * tests/test-xstrtol.c: ...into new file.
54220         * tests/test-xstrtoul.c: Also test xstrtoul.
54221         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54222         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54223         * tests/test-xstrtol.sh: Drive the tests.
54224         * tests/test-xstrtoimax.sh: Likewise.
54225         * tests/test-xstrtoumax.sh: Likewise.
54226         * modules/xstrtol-tests: New module.
54227         * modules/xstrtoimax-tests: Likewise.
54228         * modules/xstrtoumax-tests: Likewise.
54229
54230 2007-08-08  Jim Meyering  <jim@meyering.net>
54231
54232         New function: mfile_name_concat.
54233         * lib/filenamecat.c (mfile_name_concat): New function, just like
54234         file_name_concat, but return NULL upon failure rather than exiting
54235         with a diagnostic.
54236         * lib/filenamecat.h: Declare it.
54237
54238 2007-08-07  Bruno Haible  <bruno@clisp.org>
54239
54240         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54241         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54242         warning from gcc.
54243         Reported by Eric Blake.
54244
54245 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54246
54247         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54248         * modules/crypto/arcfour (License): Likewise.
54249         * modules/crypto/des-tests (License): Likewise.
54250         * modules/crypto/gc-arctwo-tests (License): Likewise.
54251         * modules/crypto/gc-des-tests (License): Likewise.
54252         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54253         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54254         * modules/crypto/gc-md2-tests (License): Likewise.
54255         * modules/crypto/gc-md4-tests (License): Likewise.
54256         * modules/crypto/gc-md5-tests (License): Likewise.
54257         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54258         * modules/crypto/gc-rijndael-tests (License): Likewise.
54259         * modules/crypto/gc-sha1-tests (License): Likewise.
54260         * modules/crypto/gc-tests (License): Likewise.
54261         * modules/crypto/hmac-md5 (License): Likewise.
54262         * modules/crypto/hmac-sha1 (License): Likewise.
54263         * modules/crypto/md2-tests (License): Likewise.
54264         * modules/crypto/md4-tests (License): Likewise.
54265         * modules/crypto/md5 (License): Likewise.
54266         * modules/crypto/rijndael (License): Likewise.
54267         * modules/crypto/sha1 (License): Likewise.
54268         * modules/memxor (License): Likewise.
54269
54270 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54271         and Bruno Haible  <bruno@clisp.org>
54272
54273         * NEWS: Describe interface changes to human, xstrtol.
54274         * lib/human.h: Include <xstrtol.h>.
54275         (human_options): Return enum strtol_error, not int.  Remove
54276         bool arg; take int * instead.
54277         * lib/human.c: Don't include "gettext.h".
54278         (_): Remove; no longer used.
54279         Don't include <xstrtol.h>, since human.h does it.
54280         (human_options): Adjust to abovementioned interface changes.
54281         Do not report error to stderr; that's now the caller's
54282         responsibility.
54283         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54284         interface change.
54285         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54286         Str, Argument_type_string.  All uses changed.  Put " argument"
54287         in diagnostics to make them clearer.  Change wording of suffix
54288         message for clarity.
54289         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54290         Argument_type_string.
54291         (STRTOL_FATAL_WARN): Remove; no longer used.
54292         * modules/human (Depends-on): Remove gettext-h.
54293
54294 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54295
54296         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54297
54298 2007-07-31  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54301         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54302         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54303
54304 2007-07-31  Bruno Haible  <bruno@clisp.org>
54305
54306         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54307         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54308
54309 2007-07-30  Bruno Haible  <bruno@clisp.org>
54310
54311         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54312         * modules/c-ctype (License): Likewise.
54313         * modules/c-strcase (License): Likewise.
54314         * modules/check-version (License): Likewise.
54315         * modules/iconv (License): Likewise.
54316         * modules/iconv_open (License): Likewise.
54317         * modules/read-file (License): Likewise.
54318         * modules/striconv (License): Likewise.
54319         * modules/strverscmp (License): Likewise.
54320         * modules/vasprintf (License): Likewise.
54321         * modules/crypto/des (License): Likewise.
54322         * modules/crypto/gc (License): Likewise.
54323         * modules/crypto/gc-arcfour (License): Likewise.
54324         * modules/crypto/gc-arctwo (License): Likewise.
54325         * modules/crypto/gc-des (License): Likewise.
54326         * modules/crypto/gc-hmac-md5 (License): Likewise.
54327         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54328         * modules/crypto/gc-md2 (License): Likewise.
54329         * modules/crypto/gc-md4 (License): Likewise.
54330         * modules/crypto/gc-md5 (License): Likewise.
54331         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54332         * modules/crypto/gc-random (License): Likewise.
54333         * modules/crypto/gc-rijndael (License): Likewise.
54334         * modules/crypto/gc-sha1 (License): Likewise.
54335         * modules/crypto/md2 (License): Likewise.
54336         * modules/crypto/md4 (License): Likewise.
54337
54338 2007-07-30  Jim Meyering  <jim@meyering.net>
54339
54340         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54341         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54342         it has valid stat data.  This bug would cause du not to count the
54343         sizes of inaccessible directories.
54344         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54345         in <http://bugzilla.redhat.com/250077>.
54346
54347 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54348             Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54351         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54352         #include_next, gives a diagnostic about it, but reports no error in
54353         the exit code.
54354         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54355
54356 2007-07-24  Ben Pfaff  <blp@gnu.org>
54357
54358         Improve name: "count-one-bits" is better than "popcount".
54359         * MODULES.html.sh: Update name.
54360         * lib/popcount.h: Renamed lib/count-one-bits.h.
54361         (popcount): Renamed count_one_bits.
54362         (popcountl): Renamed count_one_bits_l.
54363         (popcountll): Renamed count_one_bits_ll.
54364         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54365         * modules/popcount: Renamed module/count-one-bits.
54366         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54367         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54368
54369 2007-07-23  Ben Pfaff  <blp@gnu.org>
54370
54371         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54372         better code generation, and add U to large constants to avoid
54373         warnings, in non-GCC case.
54374         Suggested by Bruno Haible.
54375
54376 2007-07-23  Ben Pfaff  <blp@gnu.org>
54377
54378         * lib/popcount.h: Use verify_true instead of if...abort.
54379         * modules/popcount: Depend on verify module.
54380         Suggested by Jim Meyering.
54381
54382 2007-07-23  Bruno Haible  <bruno@clisp.org>
54383
54384         * gnulib-tool (func_import): Create a .cvsignore file also when the
54385         directory is not yet in CVS but the toplevel directory is. When
54386         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54387         Reported by Karl Berry.
54388
54389 2007-07-22  Ben Pfaff  <blp@gnu.org>
54390
54391         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54392         case.
54393         Suggested by Eric Blake.
54394
54395 2007-07-22  Ben Pfaff  <blp@gnu.org>
54396
54397         New module: popcount.
54398         * MODULES.html.sh: Add popcount.
54399         * modules/popcount: New file.
54400         * modules/popcount-tests: New file.
54401         * tests/test-popcount.c: New file.
54402         * lib/popcount.h: New file.
54403         * m4/popcount.m4: New file.
54404
54405 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         * build-aux/announce-gen: Update to GPLv3.
54408
54409         * build-aux/config.guess: Update from config.
54410
54411 2007-07-21  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54414         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54415
54416 2007-07-20  Jim Meyering  <jim@meyering.net>
54417
54418         * check-module: Diagnose a self-dependency.
54419
54420 2007-07-19  Bruno Haible  <bruno@clisp.org>
54421
54422         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54423         empty.
54424         Reported by Eric Blake.
54425
54426 2007-07-18  Bruno Haible  <bruno@clisp.org>
54427
54428         * gnulib-tool: New options --po-base, --po-domain.
54429         (func_usage): Document them.
54430         (pobase, po_domain): New variables.
54431         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54432         DEFAULT_TEXT_DOMAIN.
54433         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54434         (func_import): Consider pobase and po_domain. Create a po/ directory.
54435         (func_create_testdir): Set pobase and po_domain to empty.
54436         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54437         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54438
54439 2007-07-18  Bruno Haible  <bruno@clisp.org>
54440
54441         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54442         EXTRA_DIST augmentation for files in build-aux/.
54443
54444 2007-07-16  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54447         * modules/getdelim (License): Likewise.
54448
54449 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54450
54451         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54452         * modules/d-type (License): Likewise.
54453         * modules/extensions (License): Likewise.
54454         * modules/fnmatch (License): Likewise.
54455         * modules/fseeko (License): Likewise.
54456         * modules/getaddrinfo (License): Likewise.
54457         * modules/getline (License): Likewise.
54458         * modules/getlogin_r (License): Likewise.
54459         * modules/getpass (License): Likewise.
54460         * modules/gettimeofday (License): Likewise.
54461         * modules/glob (License): Likewise.
54462         * modules/inet_ntop (License): Likewise.
54463         * modules/malloc (License): Likewise.
54464         * modules/malloca (License): Likewise.
54465         * modules/memmem (License): Likewise.
54466         * modules/mempcpy (License): Likewise.
54467         * modules/memset (License): Likewise.
54468         * modules/minmax (License): Likewise.
54469         * modules/mktime (License): Likewise.
54470         * modules/netinet_in (License): Likewise.
54471         * modules/pathmax (License): Likewise.
54472         * modules/poll (License): Likewise.
54473         * modules/regex (License): Likewise.
54474         * modules/snprintf (License): Likewise.
54475         * modules/stdbool (License): Likewise.
54476         * modules/stdint (License): Likewise.
54477         * modules/stdio (License): Likewise.
54478         * modules/strcase (License): Likewise.
54479         * modules/strcasestr (License): Likewise.
54480         * modules/strdup (License): Likewise.
54481         * modules/string (License): Likewise.
54482         * modules/strndup (License): Likewise.
54483         * modules/strnlen (License): Likewise.
54484         * modules/strpbrk (License): Likewise.
54485         * modules/strptime (License): Likewise.
54486         * modules/strsep (License): Likewise.
54487         * modules/sys_select (License): Likewise.
54488         * modules/sys_socket (License): Likewise.
54489         * modules/sys_stat (License): Likewise.
54490         * modules/sys_time (License): Likewise.
54491         * modules/time (License): Likewise.
54492         * modules/time_r (License): Likewise.
54493         * modules/timegm (License): Likewise.
54494         * modules/unistd (License): Likewise.
54495         * modules/vsnprintf (License): Likewise.
54496         * modules/wctype (License): Likewise.
54497
54498 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54499
54500         * modules/argz (License): LGPLv2+.
54501
54502 2007-07-15  Karl Berry  <karl@gnu.org>
54503
54504         * doc/gnulib.texi: revise node structure per new fdl.texi.
54505
54506 2007-07-14  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54509         the output file.
54510         * lib/uniname/uninames.h: Regenerated.
54511
54512 2007-07-14  Karl Berry  <karl@gnu.org>
54513
54514         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54515         omitting sectioning and index commands.
54516
54517 2007-07-13  Bruno Haible  <bruno@clisp.org>
54518
54519         New gnulib-tool option --more-symlinks.
54520         * gnulib-tool (func_usage): Document --more-symlinks.
54521         (do_copyrights): New variable.
54522         Recognize option --more-symlinks.
54523         (func_import): Don't add a copyright notice transform to
54524         sed_transform_lib_file if do_copyrights is empty.
54525
54526 2007-07-13  Bruno Haible  <bruno@clisp.org>
54527
54528         * lib/vasnprintf.c (decimal_point_char): Define also if
54529         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54530         && !NEED_PRINTF_DIRECTIVE_A.
54531         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54532         Gary V. Vaughan <gary@gnu.org>.
54533
54534 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54535
54536         * lib/inttypes_.h: Undo previous change, since it was fixed
54537         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54538
54539 2007-07-13  Bruno Haible  <bruno@clisp.org>
54540
54541         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54542         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54543
54544 2007-07-13  Jim Meyering  <jim@meyering.net>
54545
54546         df: Don't fail for Tru64's "file-on-file mount".
54547         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54548         so we fall through and use statfs instead.  Details here:
54549         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54550         Reported by Albert Chin.
54551
54552 2007-07-13  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54555         * modules/configmake (License): Likewise.
54556         * modules/gettext (License): Likewise.
54557         * modules/gettext-h (License): Likewise.
54558         * modules/include_next (License): Likewise.
54559         * modules/link-warning (License): Likewise.
54560         * modules/localcharset (License): Likewise.
54561         * modules/localename (License): Likewise.
54562         * modules/lock (License): Likewise.
54563         * modules/relocatable-lib-lgpl (License): Likewise.
54564         * modules/size_max (License): Likewise.
54565         * modules/vasnprintf (License): Likewise.
54566         * modules/wchar (License): Likewise.
54567         * modules/xsize (License): Likewise.
54568
54569 2007-07-13  Bruno Haible  <bruno@clisp.org>
54570
54571         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54572         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54573
54574 2007-07-12  Bruno Haible  <bruno@clisp.org>
54575
54576         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54577         in the modules files.
54578
54579 2007-07-11  Karl Berry  <karl@gnu.org>
54580
54581         * MODULES.html.sh (func_module): use
54582          sed -e '\|^'"${includefile}"'$|d'
54583          instead of /.../d, to avoid errors on $includefile's containing /.
54584
54585 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54586
54587         * gnulib-tool (func_import): Avoid duplication of --avoid
54588         statements
54589         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54590         names to `_' in variable names.
54591
54592 2007-07-10  Eric Blake  <ebb9@byu.net>
54593
54594         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54595         * NEWS: Document this change.
54596
54597 2007-07-08  Bruno Haible  <bruno@clisp.org>
54598
54599         Update to Unicode 5.0.
54600         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54601         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54602         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54603         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54604         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54605         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54606         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54607         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54608         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54609         U+10A3F, U+1D242..U+1D244.
54610         (nonspacing_table_ind): Update.
54611         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54612         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54613
54614 2007-07-08  Bruno Haible  <bruno@clisp.org>
54615
54616         Update to Unicode 5.0.
54617         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54618         code transform. Extend the name index field of unicode_name_to_code and
54619         unicode_code_to_name from 16 to 24 bits.
54620         * lib/uniname/uniname.c (unicode_character_name,
54621         unicode_name_character): Add the range 0x12xxx to the code transform.
54622         * lib/uniname/uninames.h: Regenerated.
54623         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54624
54625 2007-07-07  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/wcwidth-tests: New file.
54628         * tests/test-wcwidth.c: New file.
54629
54630         Work around MacOS X wcwidth() bug.
54631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54632         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54633         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54634         original wcwidth in non-UTF-8 locales.
54635         * modules/wcwidth (Depends-on): Add localcharset, streq,
54636         uniwidth/width.
54637         * doc/functions/wcwidth.texi: Update.
54638
54639 2007-07-07  Bruno Haible  <bruno@clisp.org>
54640
54641         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54642         (wcwidth): New declaration.
54643         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54644         macros.
54645         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54646         here. Prepare for creating <wchar.h> unconditionally.
54647         * modules/wchar (Depends-on): Add link-warning.
54648         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54649         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54650         * lib/wcwidth.h: Remove file.
54651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54652         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54653         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54654         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54655         (Include): Replace wcwidth.h with <wchar.h>.
54656         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54657         * lib/mbchar.h: Don't include wcwidth.h.
54658         * lib/mbswidth.c: Likewise.
54659         * NEWS: Mention the change.
54660
54661 2007-07-07  Bruno Haible  <bruno@clisp.org>
54662
54663         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54664         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54665         definition with an external declaration.
54666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54667         defined as a function. Remove AC_C_INLINE requirement.
54668         * modules/wcwidth (Files): Add lib/wcwidth.c.
54669         (Makefile.am): Remove redundant statement.
54670
54671 2007-07-07  Bruno Haible  <bruno@clisp.org>
54672
54673         * MODULES.html.sh (Unicode string functions): Add the new modules.
54674
54675         * tests/uniwidth/test-u32-strwidth.c: New file.
54676         * modules/uniwidth/u32-strwidth-tests: New file.
54677
54678         * lib/uniwidth/u32-strwidth.c: New file.
54679         * modules/uniwidth/u32-strwidth: New file.
54680
54681         * tests/uniwidth/test-u16-strwidth.c: New file.
54682         * modules/uniwidth/u16-strwidth-tests: New file.
54683
54684         * lib/uniwidth/u16-strwidth.c: New file.
54685         * modules/uniwidth/u16-strwidth: New file.
54686
54687         * tests/uniwidth/test-u8-strwidth.c: New file.
54688         * modules/uniwidth/u8-strwidth-tests: New file.
54689
54690         * lib/uniwidth/u8-strwidth.c: New file.
54691         * modules/uniwidth/u8-strwidth: New file.
54692
54693         * tests/uniwidth/test-u32-width.c: New file.
54694         * modules/uniwidth/u32-width-tests: New file.
54695
54696         * lib/uniwidth/u32-width.c: New file.
54697         * modules/uniwidth/u32-width: New file.
54698
54699         * tests/uniwidth/test-u16-width.c: New file.
54700         * modules/uniwidth/u16-width-tests: New file.
54701
54702         * lib/uniwidth/u16-width.c: New file.
54703         * modules/uniwidth/u16-width: New file.
54704
54705         * tests/uniwidth/test-u8-width.c: New file.
54706         * modules/uniwidth/u8-width-tests: New file.
54707
54708         * lib/uniwidth/u8-width.c: New file.
54709         * modules/uniwidth/u8-width: New file.
54710
54711         * tests/uniwidth/test-uc_width.c: New file.
54712         * modules/uniwidth/width-tests: New file.
54713
54714         * lib/uniwidth/width.c: New file, from GNU libiconv.
54715         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54716         * modules/uniwidth/width: New file.
54717
54718         * lib/uniwidth.h: New file, from GNU libiconv.
54719         * modules/uniwidth/base: New file.
54720
54721 2007-07-07  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/uniname.h: New file, from GNU gettext.
54724         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54725         * lib/uniname/uninames.h: New file, from GNU gettext.
54726         * lib/uniname/uniname.c: New file, from GNU gettext.
54727         * tests/uniname/test-uninames.sh: New file.
54728         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54729         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54730         * modules/uniname/base: New file.
54731         * modules/uniname/uniname: New file.
54732         * modules/uniname/uniname-tests: New file.
54733         * MODULES.html.sh (Unicode string functions): Add the new modules.
54734
54735 2007-07-06  Bruno Haible  <bruno@clisp.org>
54736
54737         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54738
54739 2007-07-06  Bruno Haible  <bruno@clisp.org>
54740
54741         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54742         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54743         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54744         include <sys/time.h>.
54745         Reported by Eric Blake.
54746
54747 2007-07-06  Eric Blake  <ebb9@byu.net>
54748
54749         Fix testing canonicalize on cygwin.
54750         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54751         Revert patch from 2007-06-19.
54752         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54753         canonicalize module is also in use.
54754         * tests/test-canonicalize.c: New file.
54755         * tests/test-canonicalize.sh: Likewise.
54756         * modules/canonicalize-tests: Likewise.
54757
54758 2007-07-06  Jim Meyering  <jim@meyering.net>
54759
54760         * lib/getugroups.c (getugroups): Detect getgrent failure.
54761         Adjust comment to reflect reality: this function may return -1.
54762
54763 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54764
54765         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54766         the new TP address.
54767         (usage): Fix typo
54768         (gnulib_mk): New variable.
54769
54770 2007-07-05  Jim Meyering  <jim@meyering.net>
54771
54772         Don't let endgrent clobber errno, no matter how improbable.
54773         * lib/getugroups.c (getugroups): Save and restore errno around
54774         endgrent call.
54775
54776         Close the group DB even when failing with 2^31 or more members.
54777         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54778
54779 2007-07-04  Jim Meyering  <jim@meyering.net>
54780
54781         * lib/getugroups.h: New file.
54782         * lib/getugroups.c: Include "getugroups.h".
54783         Remove uses of "register" keyword.
54784         Move local variable, "cp", down into scope where used.
54785         Give "username" parameter the "const" attribute.
54786         * modules/getugroups (Files): Add lib/getugroups.h
54787
54788 2007-07-04  Karl Berry  <karl@gnu.org>
54789
54790         * MODULES.html.sh (func_all_modules): Complete rename of
54791         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54792
54793 2007-07-02  Bruno Haible  <bruno@clisp.org>
54794
54795         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54796         mode, when inttypes.h comes from gnulib.
54797         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54798
54799 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54800
54801         * NEWS: Mention lgpl module name change.
54802
54803         * modules/lgpl-2.1: Renamed from lgpl.
54804
54805         * NEWS: Mention gpl module name change.
54806
54807         * modules/gpl-3.0: New file, based on gpl-2.0.
54808
54809         * modules/gpl-2.0: Renamed from gpl.
54810
54811         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54812         doc/gpl-2.0.texi.
54813
54814 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54815
54816         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54817         #define __STDC_LIMIT_MACROS temporarily while including
54818         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54819         Problem reported by Joel E. Denny in
54820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54821
54822 2007-07-01  Bruno Haible  <bruno@clisp.org>
54823
54824         * lib/unistdio.h: New file.
54825         * lib/unistdio/u-asnprintf.h: New file.
54826         * lib/unistdio/u-asprintf.h: New file.
54827         * lib/unistdio/u-printf-args.c: New file.
54828         * lib/unistdio/u-printf-args.h: New file.
54829         * lib/unistdio/u-printf-parse.h: New file.
54830         * lib/unistdio/u-snprintf.h: New file.
54831         * lib/unistdio/u-sprintf.h: New file.
54832         * lib/unistdio/u-vasprintf.h: New file.
54833         * lib/unistdio/u-vsnprintf.h: New file.
54834         * lib/unistdio/u-vsprintf.h: New file.
54835         * lib/unistdio/ulc-asnprintf.c: New file.
54836         * lib/unistdio/ulc-asprintf.c: New file.
54837         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54838         * lib/unistdio/ulc-printf-parse.c: New file.
54839         * lib/unistdio/ulc-snprintf.c: New file.
54840         * lib/unistdio/ulc-sprintf.c: New file.
54841         * lib/unistdio/ulc-vasnprintf.c: New file.
54842         * lib/unistdio/ulc-vasprintf.c: New file.
54843         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54844         * lib/unistdio/ulc-vsnprintf.c: New file.
54845         * lib/unistdio/ulc-vsprintf.c: New file.
54846         * lib/unistdio/u8-asnprintf.c: New file.
54847         * lib/unistdio/u8-asprintf.c: New file.
54848         * lib/unistdio/u8-printf-parse.c: New file.
54849         * lib/unistdio/u8-snprintf.c: New file.
54850         * lib/unistdio/u8-sprintf.c: New file.
54851         * lib/unistdio/u8-vasnprintf.c: New file.
54852         * lib/unistdio/u8-vasprintf.c: New file.
54853         * lib/unistdio/u8-vsnprintf.c: New file.
54854         * lib/unistdio/u8-vsprintf.c: New file.
54855         * lib/unistdio/u8-u8-asnprintf.c: New file.
54856         * lib/unistdio/u8-u8-asprintf.c: New file.
54857         * lib/unistdio/u8-u8-snprintf.c: New file.
54858         * lib/unistdio/u8-u8-sprintf.c: New file.
54859         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54860         * lib/unistdio/u8-u8-vasprintf.c: New file.
54861         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54862         * lib/unistdio/u8-u8-vsprintf.c: New file.
54863         * lib/unistdio/u16-asnprintf.c: New file.
54864         * lib/unistdio/u16-asprintf.c: New file.
54865         * lib/unistdio/u16-printf-parse.c: New file.
54866         * lib/unistdio/u16-snprintf.c: New file.
54867         * lib/unistdio/u16-sprintf.c: New file.
54868         * lib/unistdio/u16-vasnprintf.c: New file.
54869         * lib/unistdio/u16-vasprintf.c: New file.
54870         * lib/unistdio/u16-vsnprintf.c: New file.
54871         * lib/unistdio/u16-vsprintf.c: New file.
54872         * lib/unistdio/u16-u16-asnprintf.c: New file.
54873         * lib/unistdio/u16-u16-asprintf.c: New file.
54874         * lib/unistdio/u16-u16-snprintf.c: New file.
54875         * lib/unistdio/u16-u16-sprintf.c: New file.
54876         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54877         * lib/unistdio/u16-u16-vasprintf.c: New file.
54878         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54879         * lib/unistdio/u16-u16-vsprintf.c: New file.
54880         * lib/unistdio/u32-asnprintf.c: New file.
54881         * lib/unistdio/u32-asprintf.c: New file.
54882         * lib/unistdio/u32-printf-parse.c: New file.
54883         * lib/unistdio/u32-snprintf.c: New file.
54884         * lib/unistdio/u32-sprintf.c: New file.
54885         * lib/unistdio/u32-vasnprintf.c: New file.
54886         * lib/unistdio/u32-vasprintf.c: New file.
54887         * lib/unistdio/u32-vsnprintf.c: New file.
54888         * lib/unistdio/u32-vsprintf.c: New file.
54889         * lib/unistdio/u32-u32-asnprintf.c: New file.
54890         * lib/unistdio/u32-u32-asprintf.c: New file.
54891         * lib/unistdio/u32-u32-snprintf.c: New file.
54892         * lib/unistdio/u32-u32-sprintf.c: New file.
54893         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54894         * lib/unistdio/u32-u32-vasprintf.c: New file.
54895         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54896         * lib/unistdio/u32-u32-vsprintf.c: New file.
54897         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54898         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54899         * tests/unistdio/test-ulc-printf1.h: New file.
54900         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54901         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54902         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54903         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54904         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54905         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54906         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54907         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54908         * tests/unistdio/test-u8-asnprintf1.c: New file.
54909         * tests/unistdio/test-u8-asnprintf1.h: New file.
54910         * tests/unistdio/test-u8-printf1.h: New file.
54911         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54912         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54913         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54914         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54915         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54916         * tests/unistdio/test-u8-vasprintf1.c: New file.
54917         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54918         * tests/unistdio/test-u8-vsprintf1.c: New file.
54919         * tests/unistdio/test-u16-asnprintf1.c: New file.
54920         * tests/unistdio/test-u16-asnprintf1.h: New file.
54921         * tests/unistdio/test-u16-printf1.h: New file.
54922         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54923         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54924         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54925         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54926         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54927         * tests/unistdio/test-u16-vasprintf1.c: New file.
54928         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54929         * tests/unistdio/test-u16-vsprintf1.c: New file.
54930         * tests/unistdio/test-u32-asnprintf1.c: New file.
54931         * tests/unistdio/test-u32-asnprintf1.h: New file.
54932         * tests/unistdio/test-u32-printf1.h: New file.
54933         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54934         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54935         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54936         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54937         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54938         * tests/unistdio/test-u32-vasprintf1.c: New file.
54939         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54940         * tests/unistdio/test-u32-vsprintf1.c: New file.
54941         * modules/unistdio/base: New file.
54942         * modules/unistdio/u-printf-args: New file.
54943         * modules/unistdio/ulc-asnprintf: New file.
54944         * modules/unistdio/ulc-asprintf: New file.
54945         * modules/unistdio/ulc-fprintf: New file.
54946         * modules/unistdio/ulc-printf-parse: New file.
54947         * modules/unistdio/ulc-snprintf: New file.
54948         * modules/unistdio/ulc-sprintf: New file.
54949         * modules/unistdio/ulc-vasnprintf: New file.
54950         * modules/unistdio/ulc-vasprintf: New file.
54951         * modules/unistdio/ulc-vfprintf: New file.
54952         * modules/unistdio/ulc-vsnprintf: New file.
54953         * modules/unistdio/ulc-vsprintf: New file.
54954         * modules/unistdio/u8-asnprintf: New file.
54955         * modules/unistdio/u8-asprintf: New file.
54956         * modules/unistdio/u8-printf-parse: New file.
54957         * modules/unistdio/u8-snprintf: New file.
54958         * modules/unistdio/u8-sprintf: New file.
54959         * modules/unistdio/u8-vasnprintf: New file.
54960         * modules/unistdio/u8-vasprintf: New file.
54961         * modules/unistdio/u8-vsnprintf: New file.
54962         * modules/unistdio/u8-vsprintf: New file.
54963         * modules/unistdio/u8-u8-asnprintf: New file.
54964         * modules/unistdio/u8-u8-asprintf: New file.
54965         * modules/unistdio/u8-u8-snprintf: New file.
54966         * modules/unistdio/u8-u8-sprintf: New file.
54967         * modules/unistdio/u8-u8-vasnprintf: New file.
54968         * modules/unistdio/u8-u8-vasprintf: New file.
54969         * modules/unistdio/u8-u8-vsnprintf: New file.
54970         * modules/unistdio/u8-u8-vsprintf: New file.
54971         * modules/unistdio/u16-asnprintf: New file.
54972         * modules/unistdio/u16-asprintf: New file.
54973         * modules/unistdio/u16-printf-parse: New file.
54974         * modules/unistdio/u16-snprintf: New file.
54975         * modules/unistdio/u16-sprintf: New file.
54976         * modules/unistdio/u16-vasnprintf: New file.
54977         * modules/unistdio/u16-vasprintf: New file.
54978         * modules/unistdio/u16-vsnprintf: New file.
54979         * modules/unistdio/u16-vsprintf: New file.
54980         * modules/unistdio/u16-u16-asnprintf: New file.
54981         * modules/unistdio/u16-u16-asprintf: New file.
54982         * modules/unistdio/u16-u16-snprintf: New file.
54983         * modules/unistdio/u16-u16-sprintf: New file.
54984         * modules/unistdio/u16-u16-vasnprintf: New file.
54985         * modules/unistdio/u16-u16-vasprintf: New file.
54986         * modules/unistdio/u16-u16-vsnprintf: New file.
54987         * modules/unistdio/u16-u16-vsprintf: New file.
54988         * modules/unistdio/u32-asnprintf: New file.
54989         * modules/unistdio/u32-asprintf: New file.
54990         * modules/unistdio/u32-printf-parse: New file.
54991         * modules/unistdio/u32-snprintf: New file.
54992         * modules/unistdio/u32-sprintf: New file.
54993         * modules/unistdio/u32-vasnprintf: New file.
54994         * modules/unistdio/u32-vasprintf: New file.
54995         * modules/unistdio/u32-vsnprintf: New file.
54996         * modules/unistdio/u32-vsprintf: New file.
54997         * modules/unistdio/u32-u32-asnprintf: New file.
54998         * modules/unistdio/u32-u32-asprintf: New file.
54999         * modules/unistdio/u32-u32-snprintf: New file.
55000         * modules/unistdio/u32-u32-sprintf: New file.
55001         * modules/unistdio/u32-u32-vasnprintf: New file.
55002         * modules/unistdio/u32-u32-vasprintf: New file.
55003         * modules/unistdio/u32-u32-vsnprintf: New file.
55004         * modules/unistdio/u32-u32-vsprintf: New file.
55005         * modules/unistdio/ulc-asnprintf-tests: New file.
55006         * modules/unistdio/ulc-vasnprintf-tests: New file.
55007         * modules/unistdio/ulc-vasprintf-tests: New file.
55008         * modules/unistdio/ulc-vsnprintf-tests: New file.
55009         * modules/unistdio/ulc-vsprintf-tests: New file.
55010         * modules/unistdio/u8-asnprintf-tests: New file.
55011         * modules/unistdio/u8-vasnprintf-tests: New file.
55012         * modules/unistdio/u8-vasprintf-tests: New file.
55013         * modules/unistdio/u8-vsnprintf-tests: New file.
55014         * modules/unistdio/u8-vsprintf-tests: New file.
55015         * modules/unistdio/u16-asnprintf-tests: New file.
55016         * modules/unistdio/u16-vasnprintf-tests: New file.
55017         * modules/unistdio/u16-vasprintf-tests: New file.
55018         * modules/unistdio/u16-vsnprintf-tests: New file.
55019         * modules/unistdio/u16-vsprintf-tests: New file.
55020         * modules/unistdio/u32-asnprintf-tests: New file.
55021         * modules/unistdio/u32-vasnprintf-tests: New file.
55022         * modules/unistdio/u32-vasprintf-tests: New file.
55023         * modules/unistdio/u32-vsnprintf-tests: New file.
55024         * modules/unistdio/u32-vsprintf-tests: New file.
55025         * MODULES.html.sh (Unicode string functions): Add the new modules.
55026
55027 2007-07-01  Bruno Haible  <bruno@clisp.org>
55028
55029         * lib/sprintf.c (sprintf): Limit the available length estimation,
55030         to avoid address wraparound.
55031         * lib/vsprintf.c (vsprintf): Likewise.
55032         * modules/sprintf-posix (Dependencies): Add stdint.
55033         * modules/vsprintf-posix (Dependencies): Likewise.
55034
55035 2007-07-01  Bruno Haible  <bruno@clisp.org>
55036
55037         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55038         Windows PATH as well. Conservative double-quoting. Comments.
55039
55040 2007-07-01  Bruno Haible  <bruno@clisp.org>
55041             Eric Blake  <ebb9@byu.net>
55042             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55043
55044         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55045         empty components in $PATH, denoting '.'.
55046
55047 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55048
55049         * gnulib-tool: Fix indentation.
55050         (func_create_megatestdir): Likewise.
55051         Report by Bruno Haible.
55052
55053 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55054
55055         Sync from Automake.
55056         * build-aux/gnupload: Fix shell portability issues with for loops.
55057         Report by Karl Berry.
55058
55059 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55060
55061         * build-aux/maint.mk (POURL): Use translationproject.org.
55062
55063 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55064             Bruno Haible  <bruno@clisp.org>
55065
55066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55067         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55068         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55069         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55070         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55071
55072 2007-06-27  Bruno Haible  <bruno@clisp.org>
55073
55074         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55075         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55076
55077 2007-06-26  Karl Berry  <karl@gnu.org>
55078
55079         * MODULES.html.sh: remove xreadlink-with-size.
55080
55081 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55082
55083         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55084         method that I hope also handles the double-include problem noted
55085         by Bruno Haible in
55086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55087
55088 2007-06-23  Bruno Haible  <bruno@clisp.org>
55089
55090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55091         Don't let the 'mostlyclean' target fail if the last subdirectory could
55092         not be removed.
55093         Reported by Karl Berry.
55094
55095 2007-06-23  Bruno Haible  <bruno@clisp.org>
55096
55097         * gnulib-tool (echo): Add a speedier workaround for ksh.
55098         * tests/test-echo.sh: Likewise.
55099
55100 2007-06-23  Bruno Haible  <bruno@clisp.org>
55101
55102         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55103         * tests/test-echo.sh: Likewise.
55104
55105 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55106
55107         * gnulib-tool (IFS): Initialize early, so we don't set it to
55108         empty later.
55109         (self_abspathname): Rewrite algorithm to set it, reindent.
55110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55111         (func_create_megatestdir): Merge some sed scripts.
55112
55113 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55116         exposed by Sun Studio 11 cc on Solaris 8.
55117
55118 2007-06-22  Bruno Haible  <bruno@clisp.org>
55119
55120         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55121         backslashes.
55122         * tests/test-echo.sh: New file.
55123
55124 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55125
55126         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55127         simplify `sed_replace_build_aux' scripts, they are portable but
55128         echoing them with `echo' is not.
55129         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55130
55131 2007-06-21  Karl Berry  <karl@gnu.org>
55132
55133         * config/srclist.txt: guess we can't handle the licenses via
55134         srclist at the moment.
55135
55136 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55137
55138         * MODULES.html.sh: Add include_next.
55139         * modules/include_next: New file.
55140
55141 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55144         INCLUDE_NEXT.
55145         (gl_CHECK_NEXT_HEADERS): New macro.
55146         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55147         the obsolescent gl_ABSOLUTE_HEADER.
55148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55149         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55150         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55151         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55152         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55153         * m4/math_h.m4 (gl_MATH_H): Likewise.
55154         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55155         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55156         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55157         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55158         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55159         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55160         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55162         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55165         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55166         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55167         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55168         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55169         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55170         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55171         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55172         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55173         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55174         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55175         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55176         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55177         * lib/float_.h: Likewise.
55178         * lib/inttypes_.h: Likewise.
55179         * lib/math_.h: Likewise.
55180         * lib/search_.h: Likewise.
55181         * lib/signal_.h: Likewise.
55182         * lib/stdint_.h: Likewise.
55183         * lib/stdio_.h: Likewise.
55184         * lib/stdlib_.h: Likewise.
55185         * lib/string_.h: Likewise.
55186         * lib/sys_stat_.h: Likewise.
55187         * lib/sys_time_.h: Likewise.
55188         * lib/time_.h: Likewise.
55189         * lib/unistd_.h: Likewise.
55190         * lib/wchar_.h: Likewise.
55191         * lib/wctype_.h: Likewise.
55192         * lib/dirent_.h: Likewise.
55193         * lib/iconv_.h: Likewise.
55194         * lib/locale_.h: Likewise.
55195         * lib/netinet_in_.h: Likewise.
55196         * lib/sys_select_.h: Likewise.
55197         * lib/sys_socket_.h: Likewise.
55198         * lib/sysexits_.h: Likewise.
55199         * modules/fcntl (Depends-on): Depend on include_next, not
55200         absolute_header.
55201         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55202         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55203         * modules/fchdir: Likewise.
55204         * modules/float: Likewise.
55205         * modules/iconv_open: Likewise.
55206         * modules/inttypes: Likewise.
55207         * modules/locale: Likewise.
55208         * modules/math: Likewise.
55209         * modules/netinet_in: Likewise.
55210         * modules/search: Likewise.
55211         * modules/signal: Likewise.
55212         * modules/stdint: Likewise.
55213         * modules/stdio: Likewise.
55214         * modules/stdlib: Likewise.
55215         * modules/string: Likewise.
55216         * modules/sys_select: Likewise.
55217         * modules/sys_socket: Likewise.
55218         * modules/sys_stat: Likewise.
55219         * modules/sys_time: Likewise.
55220         * modules/sysexits: Likewise.
55221         * modules/time: Likewise.
55222         * modules/unistd: Likewise.
55223         * modules/wchar: Likewise.
55224         * modules/wctype: Likewise.
55225         * modules/sys_stat: Change maintainer to "all".
55226         * modules/unistd: Likewise.
55227
55228 2007-06-20  Karl Berry  <karl@gnu.org>
55229
55230         * config/srclist.txt: track www changes in license files.
55231
55232 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55233
55234         * build-aux/bootstrap: Remove stray dot.
55235         Make sure build_aux settings are honored when linking
55236         gnulib_extra_files.
55237
55238 2007-06-19  Eric Blake  <ebb9@byu.net>
55239
55240         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55241         Allow compilation on cygwin.
55242
55243 2007-06-19  Jim Meyering  <jim@meyering.net>
55244
55245         xreadlink-with-size: Remove module.  No longer used.
55246         Ex-callers now use xreadlink or mreadlink-with-size.
55247         * modules/xreadlink-with-size: Remove module.
55248         * lib/xreadlink-with-size.c: Remove file.
55249         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55250         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55251         just before the function definition *is* accurate.
55252
55253         Eliminate one way canonicalize_filename_mode could exit.
55254         * lib/canonicalize.c (canonicalize_filename_mode):
55255         Use mreadlink_with_size, not xreadlink_with_size.
55256
55257 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55258
55259         Detect porting problems to FreeBSD/arm, which has time_t wider than
55260         long int.  Original problem reported for GNU diff by Xin Li in
55261         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55262         * modules/getdate (Depends-on): Add intprops, verify.
55263         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55264         is an integer type no wider than long int.
55265
55266 2007-06-18  Jim Meyering  <jim@meyering.net>
55267
55268         New module: mreadlink-with-size.
55269         * MODULES.html.sh: Add mreadlink-with-size.
55270         * modules/mreadlink-with-size: New module
55271         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55272         not xreadlink-with-size.
55273         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55274
55275 2007-06-16  Bruno Haible  <bruno@clisp.org>
55276
55277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55278         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55279         Reported by Gary V. Vaughan <gary@gnu.org>.
55280
55281 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55282
55283         Revamp lchown so that it lives in unistd.h where it belongs.
55284         * lib/lchown.h: Remove.
55285         * lib/dirchownmod.c: Don't include lib/lchown.h.
55286         * lib/fchownat.c: Likewise.
55287         * lib/openat.c: Likewise.
55288         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55289         does not follow symlinks.
55290         (EOPNOTSUPP): Define if not defined.
55291         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55292         is defined to 0.
55293         (lchown): New decl.
55294         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55295         Do not check for lchown decl.
55296         Set REPLACE_LCHOWN.
55297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55298         REPLACE_LCHOWN.
55299         * modules/chown: Make it clear it follows symlinks.
55300         * modules/lchown: Make it clear it doesn't follow symlinks.
55301         (Files): Remove lib/lchown.h
55302         (Depends-on): Add unistd.
55303         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55304         (Include): Include <unistd.h>, not "lchown.h".
55305         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55306         REPLACE_LCHOWN.
55307
55308 2007-06-15  Jim Meyering  <jim@meyering.net>
55309
55310         Change license (GPL to LGPL) of fsusage and dependents.
55311         * modules/fsusage (License): Change to LGPL.
55312         * modules/full-read (License): Likewise.
55313         * modules/full-write (License): Likewise.
55314         * modules/safe-read (License): Likewise.
55315         * modules/safe-write (License): Likewise.
55316
55317 2007-06-14  Ben Pfaff  <blp@gnu.org>
55318
55319         Missing part of allocsa -> malloca transition.
55320         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55321         gl_MALLOCA.
55322
55323 2007-06-12  Bruno Haible  <bruno@clisp.org>
55324
55325         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55326         to ia64, x86_64, i386.
55327         Reported by Eric Blake.
55328
55329 2007-06-12  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55332         cross-compiling to x86_64.
55333
55334 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55335
55336         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55337         glitch reported by Ralf Wildenhues in
55338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55339
55340         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55341         Vin Shelton.
55342
55343 2007-06-11  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55346         replacement string.
55347         Reported by Eric Blake.
55348
55349 2007-06-10  Bruno Haible  <bruno@clisp.org>
55350
55351         Prepare vasnprintf code for use with Unicode strings.
55352         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55353         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55354         TYPE_U32_STRING.
55355         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55356         a_u32_string variants.
55357         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55358         * lib/printf-args.c: Don't include config.h and the specification
55359         header if PRINTF_FETCHARGS is already defined.
55360         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55361         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55362         TYPE_U16_STRING, TYPE_U32_STRING.
55363         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55364         u16_directive, u16_directives, u32_directive, u32_directives): New
55365         types.
55366         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55367         New declarations.
55368         * lib/printf-parse.c: Don't include config.h and the specification
55369         header if PRINTF_PARSE is already defined. Eliminate the set of
55370         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55371         them now. Include c-ctype.h.
55372         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55373         directive and CHAR_T_ONLY_ASCII.
55374         * lib/vasnprintf.c: Don't include config.h and the specification header
55375         if VASNPRINTF is already defined.
55376         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55377         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55378         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55379         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55380         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55381         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55382         code accordingly.
55383         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55384         pad_ourselves also in this case, with the 'c' and 's' directives, and
55385         with a different notion of "width".
55386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55387
55388 2007-06-10  Bruno Haible  <bruno@clisp.org>
55389
55390         * modules/unistr/u32-mbsnlen: New file.
55391         * lib/unistr/u32-mbsnlen.c: New file.
55392
55393         * modules/unistr/u16-mbsnlen: New file.
55394         * lib/unistr/u16-mbsnlen.c: New file.
55395
55396         * modules/unistr/u8-mbsnlen: New file.
55397         * lib/unistr/u8-mbsnlen.c: New file.
55398
55399         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55400         declarations.
55401
55402 2007-06-10  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/string_.h (mbsnlen): New declaration.
55405         * lib/mbsnlen.c: New file.
55406         * m4/mbsnlen.m4: New file.
55407         * modules/mbsnlen: New file.
55408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55409         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55410         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55411
55412 2007-06-10  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55415
55416 2007-06-10  Bruno Haible  <bruno@clisp.org>
55417
55418         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55419         * lib/mbuiter.h: Likewise.
55420
55421 2007-06-10  Bruno Haible  <bruno@clisp.org>
55422
55423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55424         declaration.
55425
55426 2007-06-10  Karl Berry  <karl@gnu.org>
55427
55428         * config/srclist.txt: remove gettext entries, Bruno prefers
55429         to update individually.
55430
55431 2007-06-10  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55434         'maxlen'. Ensure only length + width bytes are allocated, not
55435         length + 1 + width.
55436
55437 2007-06-09  Bruno Haible  <bruno@clisp.org>
55438
55439         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55440         (CHAR_T): Remove macro.
55441         (VASNPRINTF): Update.
55442
55443 2007-06-09  Bruno Haible  <bruno@clisp.org>
55444
55445         * MODULES.html.sh (Unicode string functions): Add the new modules.
55446
55447         * modules/uniconv/u32-conv-to-enc: New file.
55448         * lib/uniconv/u32-conv-to-enc.c: New file.
55449         * modules/uniconv/u32-conv-to-enc-tests: New file.
55450         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55451
55452         * modules/uniconv/u16-conv-to-enc: New file.
55453         * lib/uniconv/u16-conv-to-enc.c: New file.
55454         * lib/uniconv/u-conv-to-enc.h: New file.
55455         * modules/uniconv/u16-conv-to-enc-tests: New file.
55456         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55457
55458         * modules/uniconv/u8-conv-to-enc: New file.
55459         * lib/uniconv/u8-conv-to-enc.c: New file.
55460         * modules/uniconv/u8-conv-to-enc-tests: New file.
55461         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55462
55463         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55464         u32_conv_to_encoding): New declarations.
55465
55466 2007-06-09  Bruno Haible  <bruno@clisp.org>
55467
55468         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55469
55470 2007-06-09  Bruno Haible  <bruno@clisp.org>
55471
55472         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55473         * modules/malloca: Renamed from modules/allocsa, updated.
55474         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55475         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55476         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55477         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55478         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55479         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55480         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55481         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55482         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55483         * modules/c-strcasestr (Depends-on): Update.
55484         * lib/c-strcasestr.c: Update.
55485         * modules/c-strstr (Depends-on): Update.
55486         * lib/c-strstr.c: Update.
55487         * modules/canonicalize-lgpl (Depends-on): Update.
55488         * lib/canonicalize-lgpl.c: Update.
55489         * modules/clean-temp (Depends-on): Update.
55490         * lib/clean-temp.c: Update.
55491         * modules/csharpcomp (Depends-on): Update.
55492         * lib/csharpcomp.c: Update.
55493         * modules/csharpexec (Depends-on): Update.
55494         * lib/csharpexec.c: Update.
55495         * modules/javacomp (Depends-on): Update.
55496         * lib/javacomp.c: Update.
55497         * modules/javaexec (Depends-on): Update.
55498         * lib/javaexec.c: Update.
55499         * modules/mbscasestr (Depends-on): Update.
55500         * lib/mbscasestr.c: Update.
55501         * modules/mbsstr (Depends-on): Update.
55502         * lib/mbsstr.c: Update.
55503         * modules/setenv (Depends-on): Update.
55504         * lib/setenv.c: Update.
55505         * modules/strcasestr (Depends-on): Update.
55506         * lib/strcasestr.c: Update.
55507         * modules/striconveha (Depends-on): Update.
55508         * lib/striconveha.c: Update.
55509         * modules/relocatable-prog-wrapper (Files): Update.
55510         * lib/relocwrapper.c: Update.
55511         * build-aux/install-reloc: Update.
55512         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55513
55514 2007-06-08  Bruno Haible  <bruno@clisp.org>
55515
55516         Port to uClibc.
55517         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55518         * lib/fpurge.c (fpurge): Likewise.
55519         * lib/freading.c (freading): Likewise.
55520         * lib/fseeko.c (rpl_fseeko): Likewise.
55521         * lib/fseterr.c (fseterr): Likewise.
55522         * lib/fwriting.c (fwriting): Likewise.
55523         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55524
55525 2007-06-08  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55528         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55529         * modules/gettext (Files): Add m4/intlmacosx.m4.
55530
55531 2007-06-07  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/localename-tests: New file.
55534         * tests/test-localename.c: New file.
55535
55536         New module 'localename'.
55537         * lib/localename.h: New file.
55538         * lib/localename.c: New file, from GNU gettext.
55539         * m4/localename.m4: New file.
55540         * modules/localename: New file.
55541
55542 2007-06-07  Bruno Haible  <bruno@clisp.org>
55543
55544         Work around the lack of <wchar.h> on some builds of uClibc.
55545         * doc/headers/wchar.texi: Update.
55546         * lib/wchar_.h: Include <wchar.h> only if it exists.
55547         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55548         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55549         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55550         doesn't exist.
55551         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55552         * modules/mbfile (Depends-on): Add wchar.
55553         * modules/mbiter (Depends-on): Likewise.
55554         * modules/mbuiter (Depends-on): Likewise.
55555         Reported by Simon Josefsson.
55556
55557 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55558
55559         Work around problem reported by Steven M. Schweda in
55560         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55561         Tru64 5.1B with the Compaq compiler environment installed declares
55562         an 'isblank' function but does not define it in the C library.
55563         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55564         * lib/regex_internal.h (isblank): Likewise.
55565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55566         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55567
55568 2007-06-05  Bruno Haible  <bruno@clisp.org>
55569
55570         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55571         ia64.
55572         * modules/printf-safe: New file.
55573         * modules/fprintf-posix (Depends-on): Add printf-safe.
55574         * modules/printf-posix (Depends-on): Likewise.
55575         * modules/snprintf-posix (Depends-on): Likewise.
55576         * modules/sprintf-posix (Depends-on): Likewise.
55577         * modules/vasnprintf-posix (Depends-on): Likewise.
55578         * modules/vasprintf-posix (Depends-on): Likewise.
55579         * modules/vfprintf-posix (Depends-on): Likewise.
55580         * modules/vprintf-posix (Depends-on): Likewise.
55581         * modules/vsnprintf-posix (Depends-on): Likewise.
55582         * modules/vsprintf-posix (Depends-on): Likewise.
55583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55584         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55585         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55586         "no" on i386, x86_64, ia64.
55587         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55588         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55589         on i386, x86_64, ia64.
55590         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55591         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55592         on i386, x86_64, ia64.
55593         * tests/test-vasnprintf-posix.c: Include float.h.
55594         (LDBL80_WORDS): New macro.
55595         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55596         on i386, x86_64, ia64.
55597         * tests/test-vasprintf-posix.c: Include float.h.
55598         (LDBL80_WORDS): New macro.
55599         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55600         on i386, x86_64, ia64.
55601         * tests/test-snprintf-posix.c: Include float.h.
55602         * tests/test-sprintf-posix.c: Likewise.
55603         * tests/test-vsnprintf-posix.c: Likewise.
55604         * tests/test-vsprintf-posix.c: Likewise.
55605
55606 2007-06-05  Bruno Haible  <bruno@clisp.org>
55607
55608         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55609         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55610         non-IEEE numbers on i386, x86_64, ia64.
55611         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55612         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55613         * tests/test-isnanl.h: Include float.h.
55614         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55615
55616 2007-06-05  Bruno Haible  <bruno@clisp.org>
55617
55618         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55619         also the %a / %A. Handle the %a / %A code before this extra handling.
55620
55621 2007-06-05  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55624         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55625
55626 2007-06-05  Bruno Haible  <bruno@clisp.org>
55627
55628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55629         typo in variable name.
55630
55631 2007-06-05  Eric Blake  <ebb9@byu.net>
55632
55633         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55634         Reported by Simon Josefsson.
55635
55636 2007-06-04  Bruno Haible  <bruno@clisp.org>
55637
55638         Avoid test failures on some PowerPC platforms.
55639         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55640         Define differently for PowerPC.
55641         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55642         Reported by Gary V. Vaughan <gary@gnu.org>.
55643
55644 2007-06-02  Bruno Haible  <bruno@clisp.org>
55645
55646         Fix test-stdint failure on FreeBSD/ia64.
55647         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55648         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55649         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55650         * doc/headers/stdint.texi: Update.
55651
55652 2007-06-01  Bruno Haible  <bruno@clisp.org>
55653
55654         * tests/test-binary-io.c (main): Pass a third argument to open().
55655         Reported by Gary V. Vaughan <gary@gnu.org>.
55656
55657 2007-06-01  Bruno Haible  <bruno@clisp.org>
55658
55659         * doc/functions/frexpl.texi: Update for mingw.
55660
55661 2007-06-01  Bruno Haible  <bruno@clisp.org>
55662
55663         * tests/test-lseek.c (main): Disable test of errno for invalid third
55664         argument.
55665         * doc/functions/lseek.texi: Update.
55666         Reported by Gary V. Vaughan <gary@gnu.org>.
55667
55668 2007-05-28  Bruno Haible  <bruno@clisp.org>
55669
55670         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55671
55672 2007-05-31  Eric Blake  <ebb9@byu.net>
55673
55674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55675         cross compiling.
55676
55677 2007-05-30  Eric Blake  <ebb9@byu.net>
55678         and Bruno Haible  <bruno@clisp.org>
55679
55680         Work around mingw test failures exposed by m4-1.4.9b.
55681         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55682         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55683         moment.
55684
55685 2007-05-30  Bruno Haible  <bruno@clisp.org>
55686
55687         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55688         assuming that they are closed. Needed on HP-UX 11.
55689
55690 2007-05-29  Bruno Haible  <bruno@clisp.org>
55691
55692         Fix a problem with #include_next.
55693         * lib/dirent_.h: Split the double-inclusion guard.
55694         * lib/fcntl_.h: Likewise.
55695         * lib/float_.h: Likewise.
55696         * lib/iconv_.h: Likewise.
55697         * lib/inttypes_.h: Likewise.
55698         * lib/locale_.h: Likewise.
55699         * lib/math_.h: Likewise.
55700         * lib/netinet_in_.h: Likewise.
55701         * lib/search_.h: Likewise.
55702         * lib/signal_.h: Likewise.
55703         * lib/stdint_.h: Likewise.
55704         * lib/stdio_.h: Likewise.
55705         * lib/stdlib_.h: Likewise.
55706         * lib/string_.h: Likewise.
55707         * lib/sys_select_.h: Likewise.
55708         * lib/sys_socket_.h: Likewise.
55709         * lib/sys_stat_.h: Likewise.
55710         * lib/sys_time_.h: Likewise.
55711         * lib/sysexits_.h: Likewise.
55712         * lib/time_.h: Likewise.
55713         * lib/unistd_.h: Likewise.
55714         * lib/wchar_.h: Likewise.
55715         * lib/wctype_.h: Likewise.
55716
55717 2007-05-29  Bruno Haible  <bruno@clisp.org>
55718
55719         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55720         for the moment.
55721
55722 2007-05-29  Bruno Haible  <bruno@clisp.org>
55723
55724         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55725         invocation.
55726         Reported by Eric Blake.
55727
55728 2007-05-29  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55731         compiling case.
55732
55733 2007-05-29  Eric Blake  <ebb9@byu.net>
55734             Bruno Haible  <bruno@clisp.org>
55735
55736         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55737         cross compiles.
55738
55739 2007-05-28  Eric Blake  <ebb9@byu.net>
55740
55741         * modules/closein-tests (test_closein_LDADD): Support test on
55742         cygwin with libtool.
55743
55744 2007-05-28  Bruno Haible  <bruno@clisp.org>
55745
55746         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55747         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55748         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55749         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55750         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55751         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55752         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55753         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55754         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55755
55756 2007-05-28  Eric Blake  <ebb9@byu.net>
55757
55758         Unconditionally include <config.h> in unit tests.
55759         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55760         * tests/test-allocsa.c, tests/test-arcfour.c,
55761         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55762         tests/test-array_list.c, tests/test-array_oset.c,
55763         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55764         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55765         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55766         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55767         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55768         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55769         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55770         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55771         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55772         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55773         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55774         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55775         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55776         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55777         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55778         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55779         test-md5.c, test-memmem.c, test-printf-posix.c,
55780         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55781         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55782         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55783         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55784         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55785         test-vasnprintf-posix2.c, test-vasnprintf.c,
55786         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55787         test-vfprintf-posix.c, test-vprintf-posix.c,
55788         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55789         test-xvasprintf.c: Likewise.
55790
55791 2007-05-28  Bruno Haible  <bruno@clisp.org>
55792
55793         * gnulib-tool (func_import): Remember the --with-tests command-line
55794         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55795         Reported by Eric Blake.
55796
55797 2007-05-28  Bruno Haible  <bruno@clisp.org>
55798
55799         * modules/ftell-tests: New file.
55800         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55801         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55802
55803         * lib/ftell.c: New file.
55804         * modules/ftell: New file.
55805         * m4/ftell.m4: New file.
55806         * doc/functions/ftell.texi: Update.
55807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55808         REPLACE_FTELL.
55809         * lib/stdio_.h (rpl_ftell): New declaration.
55810         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55811         REPLACE_FTELL.
55812
55813 2007-05-28  Eric Blake  <ebb9@byu.net>
55814
55815         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55816
55817 2007-05-28  Bruno Haible  <bruno@clisp.org>
55818
55819         * modules/fseek-tests: New file.
55820         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55821         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55822
55823         * lib/fseek.c: New file.
55824         * modules/fseek: New file.
55825         * m4/fseek.m4: New file.
55826         * doc/functions/fseek.texi: Update.
55827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55828         REPLACE_FSEEK.
55829         * lib/stdio_.h (rpl_fseek): New declaration.
55830         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55831         REPLACE_FSEEK.
55832
55833 2007-05-28  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/stdio_.h (fflush): More comments.
55836
55837 2007-05-28  Bruno Haible  <bruno@clisp.org>
55838
55839         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55840         runtime test.
55841
55842 2007-05-28  Eric Blake  <ebb9@byu.net>
55843
55844         Improve lseek module.
55845         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55846         * lib/unistd_.h (lseek): Scale back link warning message.
55847         * tests/test-lseek.c: Beef up test.
55848         * tests/test-lseek.sh: Exercise more facets of lseek.
55849         Reported by Bruno Haible.
55850
55851 2007-05-28  Bruno Haible  <bruno@clisp.org>
55852
55853         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55854         to define.
55855
55856 2007-05-27  Bruno Haible  <bruno@clisp.org>
55857
55858         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55859
55860 2007-05-27  Bruno Haible  <bruno@clisp.org>
55861
55862         * modules/openmp: New file.
55863         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55864         Noah Misch.
55865
55866 2007-05-26  Bruno Haible  <bruno@clisp.org>
55867
55868         * modules/chdir-long (Depends-on): Add fchdir.
55869         * modules/chdir-safer (Depends-on): Likewise.
55870         * modules/fts (Depends-on): Likewise.
55871         * modules/fts-lgpl (Depends-on): Likewise.
55872         * modules/openat (Depends-on): Likewise.
55873         * modules/savewd (Depends-on): Likewise.
55874
55875 2007-05-24  Eric Blake  <ebb9@byu.net>
55876
55877         Fix lseek on mingw.
55878         * modules/lseek: New module.
55879         * m4/lseek.m4: New file.
55880         * lib/lseek.c: New file.
55881         * modules/lseek-tests: New file.
55882         * tests/test-lseek.c: New file.
55883         * tests/test-lseek.sh: New file.
55884         * MODULES.html.sh: Document lseek module.
55885         * modules/fflush (Depends-on): Add lseek, fseeko.
55886         * modules/fseeko (Depends-on): Likewise.
55887         * modules/ftello (Depends-on): Likewise.
55888         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55889         broken.
55890         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55891         broken.
55892         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55893         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55894         * lib/ftello.c (rpl_ftello): Likewise.
55895         * tests/test-fseeko.c (main): Test this.
55896         * tests/test-fseeko.sh: Likewise.
55897         * tests/test-ftello.c (main): Likewise.
55898         * tests/test-ftello.sh: Likewise.
55899         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55900         implies replacing fseek.
55901         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55902         HAVE_FTELLO.
55903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55904         * modules/unistd (Makefile.am): Likewise.
55905         * lib/unistd_.h (lseek): Declare a replacement.
55906         * doc/functions/lseek.texi (lseek): Document this fix.
55907         * doc/functions/fseek.texi (fseek): Likewise.
55908         * doc/functions/ftell.texi (ftell): Likewise.
55909
55910 2007-05-24  Bruno Haible  <bruno@clisp.org>
55911
55912         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55913         in the printed representation of a NaN.
55914         * tests/test-vasprintf-posix.c (test_function): Likewise.
55915         * tests/test-snprintf-posix.h (test_function): Likewise.
55916         * tests/test-sprintf-posix.h (test_function): Likewise.
55917         Reported by Eric Blake.
55918
55919 2007-05-23  Eric Blake  <ebb9@byu.net>
55920
55921         Fix fseeko/ftello on cygwin 1.5.24.
55922         * doc/functions/fseeko.texi (fseeko): Document the fix.
55923         * doc/functions/ftello.texi (ftello): Document the fix.
55924         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55925         * doc/functions/stdout.text (stdout): New file.
55926         * doc/functions/stderr.text (stderr): New file.
55927         * doc/gnulib.texi (Function Substitutes): Use new files.
55928         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55929         prior to 1.7.0.
55930         * tests/test-ftello.c (main): Likewise for ftello.
55931         * tests/test-fseeko.sh: New file.
55932         * tests/test-ftello.sh: New file.
55933         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55934         with seekable stdin.
55935         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55936         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55937         (gl_REPLACE_FSEEKO): New macro.
55938         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55939         * modules/fseeko (Files): Distribute fseeko.c.
55940         * modules/ftello (Files): Distribute ftello.c.
55941         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55942         mode.
55943         * lib/ftello.c (rpl_ftello): New file.
55944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55945         fseeko, ftello.
55946         (gl_STDIN_LARGE_OFFSET): New macro.
55947         * modules/stdio (Makefile.am): Perform the replacement.
55948         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55949
55950 2007-05-23  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55953         GNULIB_POSIXCHECK is defined.
55954
55955 2007-05-21  Bruno Haible  <bruno@clisp.org>
55956
55957         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55958         Check also the output for NaN arguments. When cross-compiling, guess
55959         no on IRIX.
55960         * lib/vasnprintf.c: Update comments.
55961         * tests/test-vasnprintf-posix.c (strisnan): New function.
55962         (test_function): Use it.
55963         * tests/test-vasprintf-posix.c (strisnan): New function.
55964         (test_function): Use it.
55965         * tests/test-snprintf-posix.h (strisnan): New function.
55966         (test_function): Use it.
55967         * tests/test-sprintf-posix.h (strisnan): New function.
55968         (test_function): Use it.
55969         Reported by Eric Blake.
55970
55971 2007-05-20  Bruno Haible  <bruno@clisp.org>
55972
55973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55974         numbers that fails on BeOS.
55975         * doc/functions/frexpl.texi: Update.
55976
55977 2007-05-20  Jim Meyering  <jim@meyering.net>
55978
55979         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55980         forced upon us by glibc-2.6.
55981
55982 2007-05-20  Bruno Haible  <bruno@clisp.org>
55983
55984         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55985         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55986         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55987         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55988         NEED_PRINTF_INFINITE.
55989         (is_infinitel): New function.
55990         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55992         gl_PREREQ_VASNPRINTF_INFINITE.
55993         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55994         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55995         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55996         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55997         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55998         gl_PREREQ_VASNPRINTF_INFINITE.
55999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56006         * doc/functions/fprintf.texi: Update.
56007         * doc/functions/printf.texi: Update.
56008         * doc/functions/snprintf.texi: Update.
56009         * doc/functions/sprintf.texi: Update.
56010         * doc/functions/vfprintf.texi: Update.
56011         * doc/functions/vprintf.texi: Update.
56012         * doc/functions/vsnprintf.texi: Update.
56013         * doc/functions/vsprintf.texi: Update.
56014
56015 2007-05-20  Bruno Haible  <bruno@clisp.org>
56016
56017         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56018         was not found in libc.
56019         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56020
56021 2007-05-20  Bruno Haible  <bruno@clisp.org>
56022
56023         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56024         printed as "-nan" instead of "nan".
56025         * tests/test-vasprintf-posix.c (test_function): Likewise.
56026         * tests/test-snprintf-posix.h (test_function): Likewise.
56027         * tests/test-sprintf-posix.h (test_function): Likewise.
56028         Needed for HP-UX 11.
56029
56030 2007-05-20  Jim Meyering  <jim@meyering.net>
56031
56032         Fix buggy test for the fchownat-deref bug.
56033         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56034         symlink required for the run-test.  Without it, this test would
56035         always declare that fchownat doesn't work, and client code would
56036         unnecessarily use the replacement function with fixed libc.
56037         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56038         Reported by Greg Schafer.
56039
56040 2007-05-19  Bruno Haible  <bruno@clisp.org>
56041
56042         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56043         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56044         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56045         Needed for IRIX 6.5 and Solaris 2.5.1.
56046
56047 2007-05-19  Bruno Haible  <bruno@clisp.org>
56048
56049         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56050         (test_function): Skip tests involving -0.0 on platforms where
56051         -0.0 = 0.0.
56052         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56053         (test_function): Skip tests involving -0.0 on platforms where
56054         -0.0 = 0.0.
56055         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56056         (test_function): Skip tests involving -0.0 on platforms where
56057         -0.0 = 0.0.
56058         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56059         (test_function): Skip tests involving -0.0 on platforms where
56060         -0.0 = 0.0.
56061         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56062         tests.
56063         * tests/test-printf-posix.h (test_function): Likewise.
56064         * tests/test-printf-posix.output: Remove all -0.0 related results.
56065         Needed for IRIX 6.5.
56066
56067 2007-05-19  Bruno Haible  <bruno@clisp.org>
56068
56069         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56070         printed as "nan0x7fffffff" instead of "nan".
56071         * tests/test-vasprintf-posix.c (test_function): Likewise.
56072         * tests/test-snprintf-posix.h (test_function): Likewise.
56073         * tests/test-sprintf-posix.h (test_function): Likewise.
56074         * tests/test-fprintf-posix.h (NaN): Remove macro.
56075         (test_function): Remove all NaN related tests.
56076         * tests/test-printf-posix.h (NaN): Remove macro.
56077         (test_function): Remove all NaN related tests.
56078         * tests/test-printf-posix.output: Remove all NaN related results.
56079         Needed for IRIX 6.5.
56080
56081 2007-05-19  Bruno Haible  <bruno@clisp.org>
56082
56083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56085
56086 2007-05-19  Bruno Haible  <bruno@clisp.org>
56087
56088         * lib/float_.h: New file.
56089         * m4/float_h.m4: New file.
56090         * modules/float: New file.
56091         * modules/isnanl (Dependencies): Add float.
56092         * modules/isnanl-nolibm (Dependencies): Likewise.
56093         * modules/mathl (Dependencies): Likewise.
56094         * modules/printf-frexpl (Dependencies): Likewise.
56095         * modules/signbit (Dependencies): Likewise.
56096         * modules/vasnprintf (Dependencies): Likewise.
56097         * doc/headers/float.texi: Update.
56098
56099 2007-05-19  Jim Meyering  <jim@meyering.net>
56100
56101         * lib/utimens.c (gl_futimens): Rename from futimens,
56102         now that glibc-2.6 declares futimens.
56103         * lib/utimens.h: Likewise.
56104
56105 2007-05-19  Bruno Haible  <bruno@clisp.org>
56106
56107         Avoid test failures on mingw.
56108         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56109         * tests/test-printf-posix.sh: Likewise.
56110         * tests/test-vfprintf-posix.sh: Likewise.
56111         * tests/test-vprintf-posix.sh: Likewise.
56112
56113 2007-05-19  Bruno Haible  <bruno@clisp.org>
56114
56115         Fix *printf result for NaN, Inf, -0.0 on mingw.
56116         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56117         * lib/vasnprintf.c: Include math.h and isnan.h.
56118         (is_infinite_or_zero): New function.
56119         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56120         values in the %f, %F, %e, %E, %g, %G directives.
56121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56123         gl_PRINTF_INFINITE and test its result. Invoke
56124         gl_PREREQ_VASNPRINTF_INFINITE.
56125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56126         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56128         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56129         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56131         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56132         * doc/functions/fprintf.texi: Update.
56133         * doc/functions/printf.texi: Update.
56134         * doc/functions/snprintf.texi: Update.
56135         * doc/functions/sprintf.texi: Update.
56136         * doc/functions/vfprintf.texi: Update.
56137         * doc/functions/vprintf.texi: Update.
56138         * doc/functions/vsnprintf.texi: Update.
56139         * doc/functions/vsprintf.texi: Update.
56140
56141 2007-05-19  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56144         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56145         Instead of multiplying with 10^k, set extra_zeroes to k.
56146         (scale10_round_long_double): Remove function.
56147
56148 2007-05-18  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56151         introduced on 2007-05-06.
56152
56153 2007-05-18  Bruno Haible  <bruno@clisp.org>
56154
56155         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56156         %g directives.
56157         * tests/test-vasprintf-posix.c (test_function): Likewise.
56158         * tests/test-snprintf-posix.h (test_function): Likewise.
56159         * tests/test-sprintf-posix.h (test_function): Likewise.
56160
56161 2007-05-18  Bruno Haible  <bruno@clisp.org>
56162
56163         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56164         (strmatch): New function.
56165         (test_function): Test the %f directive on numbers of various exponents.
56166         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56167         (strmatch): New function.
56168         (test_function): Test the %f directive on numbers of various exponents.
56169         * tests/test-snprintf-posix.h (strmatch): New function.
56170         (test_function): Test the %f directive on numbers of various exponents.
56171         * tests/test-sprintf-posix.h (strmatch): New function.
56172         (test_function): Test the %f directive on numbers of various exponents.
56173         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56174         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56175         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56176         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56177
56178 2007-05-18  Bruno Haible  <bruno@clisp.org>
56179
56180         Add support for 'long double' number output.
56181         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56182         * lib/vasnprintf.c: Include math.h and float+.h.
56183         (mp_limb_t): New type.
56184         (GMP_LIMB_BITS): New macro.
56185         (mp_twolimb_t): New type.
56186         (GMP_TWOLIMB_BITS): New macro.
56187         (mpn_t): New type.
56188         (multiply, divide, convert_to_decimal, decode_long_double,
56189         scale10_round_long_double, scale10_round_decimal_long_double,
56190         floorlog10l): New functions.
56191         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56192         for the %f, %F, %e, %E, %g, %G directives.
56193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56195         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56196         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56204         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56205         * modules/snprintf-posix (Depends-on): Likewise.
56206         * modules/sprintf-posix (Depends-on): Likewise.
56207         * modules/vasnprintf-posix (Depends-on): Likewise.
56208         * modules/vasprintf-posix (Depends-on): Likewise.
56209         * modules/vfprintf-posix (Depends-on): Likewise.
56210         * modules/vsnprintf-posix (Depends-on): Likewise.
56211         * modules/vsprintf-posix (Depends-on): Likewise.
56212         * modules/vasnprintf (Files): Add lib/float+.h.
56213         * doc/functions/fprintf.texi: Update.
56214         * doc/functions/printf.texi: Update.
56215         * doc/functions/snprintf.texi: Update.
56216         * doc/functions/sprintf.texi: Update.
56217         * doc/functions/vfprintf.texi: Update.
56218         * doc/functions/vprintf.texi: Update.
56219         * doc/functions/vsnprintf.texi: Update.
56220         * doc/functions/vsprintf.texi: Update.
56221
56222 2007-05-18  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56225
56226 2007-05-18  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56229         for printing 64-bit integers. Needed for mingw.
56230
56231 2007-05-18  Bruno Haible  <bruno@clisp.org>
56232
56233         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56234         gl_FUNC_FREXPL_WORKS.
56235         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56236
56237 2007-05-18  Bruno Haible  <bruno@clisp.org>
56238
56239         * modules/frexpl-nolibm-tests: New file.
56240
56241         * modules/frexpl-nolibm: New file.
56242         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56243
56244 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56247         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56248         GCC 4.2, which otherwise issues a lot of warnings.
56249         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56250         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56251         Likewise.
56252         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56253         * modules/iconv_open (iconv.h): Likewise.
56254         * modules/locale (locale.h): Likewise.
56255         * modules/netinet_in (netinet/in.h): Likewise.
56256         * modules/sys_select (sys_select.h): Likewise.
56257         * modules/sys_socket (sys/socket.h): Likewise.
56258         * modules/sys_stat (sys/stat.h): Likewise.
56259         * modules/sysexits (sysexits.h): Likewise.
56260         * modules/unistd (unistd.h): Likewise.
56261
56262 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56263
56264         * modules/closein-tests (Makefile.am): Distribute
56265         `test-closein.sh'.
56266
56267 2007-05-17  Bruno Haible  <bruno@clisp.org>
56268
56269         * tests/test-printf-posix.output: Renamed from
56270         tests/test-fprintf-posix.out.
56271         * modules/fprintf-posix-tests: Update.
56272         * modules/printf-posix-tests: Update.
56273         * modules/vfprintf-posix-tests: Update.
56274         * modules/vprintf-posix-tests: Update.
56275         * tests/test-fprintf-posix.sh: Update.
56276         * tests/test-printf-posix.sh: Update.
56277         * tests/test-vfprintf-posix.sh: Update.
56278         * tests/test-vprintf-posix.sh: Update.
56279         Reported by Ralf Wildenhues.
56280
56281 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56284         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56285         GCC 4.2, which otherwise issues a lot of warnings.
56286         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56287         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56288         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56289         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56290         it should no longer be needed.
56291         * lib/string_.h: Likewise.
56292         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56293         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56294         * modules/inttypes (inttypes.h): Likewise.
56295         * modules/math (math.h): Likewise.
56296         * modules/search (search.h): Likewise.
56297         * modules/signal (signal.h): Likewise.
56298         * modules/stdint (stdint.h): Likewise.
56299         * modules/stdio (stdio.h): Likewise.
56300         * modules/stdlib (stdlib.h): Likewise.
56301         * modules/string (string.h): Likewise.
56302         * modules/sys_time (sys/time.h): Likewise.
56303         * modules/time (time.h): Likewise.
56304         * modules/wchar (wchar.h): Likewise.
56305         * modules/wctype (wtype.h): Likewise.
56306
56307 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56308
56309         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56310
56311 2007-05-13  Bruno Haible  <bruno@clisp.org>
56312
56313         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56314         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56315         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56316         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56317         (gl_PREREQ_STRTOK_R): Don't require it here.
56318
56319 2007-05-13  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56322         when used in C++ mode.
56323
56324 2007-05-12  Bruno Haible  <bruno@clisp.org>
56325
56326         * lib/linebuffer.h: Tweak doc.
56327         * lib/linebuffer.c: Likewise.
56328
56329 2007-05-12  James Youngman  <jay@gnu.org>
56330
56331         * lib/linebuffer.c (readlinebuffer_delim): New function,
56332         like readlinebuffer, but use a caller-specified delimiter.
56333         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56334         as the delimiter.
56335         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56336
56337 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56338
56339         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56340         * modules/openat (Files): Remove openat-die.c.
56341         (Depends-on): Add openat-die.
56342         * modules/openat-die: New module.
56343
56344 2007-05-06  Bruno Haible  <bruno@clisp.org>
56345
56346         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56347         Update with info about Cygwin.
56348         * doc/functions/fprintf.texi: Update.
56349         * doc/functions/printf.texi: Update.
56350         * doc/functions/snprintf.texi: Update.
56351         * doc/functions/sprintf.texi: Update.
56352         * doc/functions/vfprintf.texi: Update.
56353         * doc/functions/vprintf.texi: Update.
56354         * doc/functions/vsnprintf.texi: Update.
56355         * doc/functions/vsprintf.texi: Update.
56356         Reported by Eric Blake.
56357
56358 2007-05-06  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56361         padding ourselves for the floating-point directives.
56362         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56365         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56366         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56374         * tests/test-snprintf-posix.h (test_function): Also check the width
56375         and some flags in the %f directive.
56376         * tests/test-sprintf-posix.h (test_function): Likewise.
56377         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56378         * tests/test-vasprintf-posix.c (test_function): Likewise.
56379         * doc/functions/fprintf.texi: Update.
56380         * doc/functions/printf.texi: Update.
56381         * doc/functions/snprintf.texi: Update.
56382         * doc/functions/sprintf.texi: Update.
56383         * doc/functions/vfprintf.texi: Update.
56384         * doc/functions/vprintf.texi: Update.
56385         * doc/functions/vsnprintf.texi: Update.
56386         * doc/functions/vsprintf.texi: Update.
56387
56388 2007-05-06  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56391         pass the ' flag character to sprintf or snprintf.
56392         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56395         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56396         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56401         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56402         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56403         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56404         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56405         flag.
56406         * tests/test-sprintf-posix.h (test_function): Likewise.
56407         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56408         * tests/test-vasprintf-posix.c (test_function): Likewise.
56409         * doc/functions/fprintf.texi: Update.
56410         * doc/functions/printf.texi: Update.
56411         * doc/functions/snprintf.texi: Update.
56412         * doc/functions/sprintf.texi: Update.
56413         * doc/functions/vfprintf.texi: Update.
56414         * doc/functions/vprintf.texi: Update.
56415         * doc/functions/vsnprintf.texi: Update.
56416         * doc/functions/vsprintf.texi: Update.
56417
56418 2007-05-01  Bruno Haible  <bruno@clisp.org>
56419
56420         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56421
56422 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56425         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56426
56427 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56428
56429         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56430         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56432
56433 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56434
56435         * lib/argp-help.c (struct hol_entry): New member `ord'.
56436         (HOL_ENTRY_PTRCMP): Use ord for comparison
56437         (hol_sort): Initialize ord.
56438
56439 2007-05-01  Bruno Haible  <bruno@clisp.org>
56440
56441         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56442         Reported by Eric Blake.
56443         * doc/gnulib.texi (Function Substitutes): Update.
56444
56445 2007-05-01  Bruno Haible  <bruno@clisp.org>
56446
56447         * doc/functions.texi: Remove file, now redundant through
56448         doc/functions/*.texi.
56449
56450 2007-05-01  Bruno Haible  <bruno@clisp.org>
56451
56452         * modules/argp (Depends-on): Add sleep.
56453
56454 2007-05-01  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/sleep-tests: New file.
56457         * tests/test-sleep.c: New file.
56458
56459         * modules/sleep: New file.
56460         * lib/sleep.c: New file.
56461         * m4/sleep.m4: New file.
56462         * lib/unistd_.h (sleep): New declaration.
56463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56464         HAVE_SLEEP.
56465         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56466         * doc/functions/sleep.texi: Document the sleep module.
56467
56468 2007-05-01  Bruno Haible  <bruno@clisp.org>
56469
56470         * lib/sigprocmask.h: Remove file.
56471         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56472         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56473         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56474         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56475         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56476         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56477         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56478         HAVE_SIGSET_T as a shell variable.
56479         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56480         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56481         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56482         (Depends-on): Add signal. Remove verify.
56483         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56484         (Include): Mention <signal.h> instead of sigprocmask.h.
56485         * NEWS: Mention the change.
56486         * lib/fatal-signal.c: Don't include sigprocmask.h.
56487
56488 2007-05-01  Bruno Haible  <bruno@clisp.org>
56489
56490         * modules/signal: New file.
56491         * lib/signal_.h: New file.
56492         * m4/signal_h.m4: New file.
56493
56494 2007-05-01  Bruno Haible  <bruno@clisp.org>
56495
56496         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56497         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56498         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56499         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56500
56501 2007-05-01  Bruno Haible  <bruno@clisp.org>
56502
56503         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56504         configure time.
56505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56506         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56507         * modules/sys_stat (Makefile.am): Substitute their values into
56508         sys/stat.h.
56509
56510 2007-05-01  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56513         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56514         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56515
56516 2007-05-01  Bruno Haible  <bruno@clisp.org>
56517
56518         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56519         'assert' module here.
56520
56521 2007-05-01  Bruno Haible  <bruno@clisp.org>
56522
56523         * doc/functions/*.texi: New files.
56524         * doc/functions/google-ranking.txt: New file.
56525         * doc/gnulib.texi (Function Substitutes): New chapter.
56526         (ctime, inet_ntoa): Remove sections.
56527         * doc/ctime.texi: Remove file.
56528         * doc/inet_ntoa.texi: Remove file.
56529         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56530         dependencies.
56531         (%.info): New rule, specifying a --reference-limit.
56532
56533 2007-05-01  Bruno Haible  <bruno@clisp.org>
56534
56535         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56536
56537 2007-05-01  Bruno Haible  <bruno@clisp.org>
56538
56539         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56540         the portability of 'mkdir' to mingw systems.
56541
56542 2007-05-01  Bruno Haible  <bruno@clisp.org>
56543
56544         * doc/headers/google-ranking.txt: New file.
56545
56546 2007-04-30  Eric Blake  <ebb9@byu.net>
56547
56548         Prefer fseeko to fseek.
56549         * modules/getpass (Depends-on): Add fseeko.
56550         * lib/getpass.c (getpass): Use fseeko, not fseek.
56551
56552 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56553
56554         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56555         assumes the sorting is stable, while most qsort implementations
56556         are not.  Use argument addresses to ensure they never compare as
56557         equal.
56558
56559         * tests/test-argp-2.sh (usage-indent test): Fix output
56560         (func_compare): Restore diff options
56561         * tests/test-argp.c: Restore #include "progname.h"
56562
56563 2007-04-29  Bruno Haible  <bruno@clisp.org>
56564
56565         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56567         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56569         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56570         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56571         (TESTS, check_PROGRAMS): Add test-snprintf.
56572         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56573         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56574         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56575         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56576         assertions that fail on HP-UX, OSF/1, or IRIX.
56577         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56578
56579 2007-04-29  Bruno Haible  <bruno@clisp.org>
56580
56581         * MODULES.html.sh (posix_functions): Remove 'contents'.
56582
56583 2007-04-29  Karl Berry  <karl@gnu.org>
56584
56585         * config/srclist.txt (gendocs_template_min): new entry.
56586
56587 2007-04-29  Bruno Haible  <bruno@clisp.org>
56588
56589         Work around fpurge bug on BSD systems.
56590         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56591         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56592         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56593         fpurge to rpl_fpurge if the system already has this function.
56594         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56595         the case where the system already has this function. Correct invariants
56596         on BSD systems.
56597         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56598         BSD systems.
56599
56600 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56601
56602         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56603         proposed by Sven Verdoolaege.
56604
56605         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56606         options.
56607         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56608         (usage and help tests): Update
56609
56610 2007-04-29  Bruno Haible  <bruno@clisp.org>
56611
56612         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56613         Print more information in case of failure. Disable a test on BeOS.
56614
56615 2007-04-29  Bruno Haible  <bruno@clisp.org>
56616
56617         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56618         This helps debugging on systems on which no gdb is available.
56619
56620 2007-04-29  Bruno Haible  <bruno@clisp.org>
56621
56622         * lib/freading.h: Improve comments.
56623         * lib/fwriting.h: Likewise.
56624         * tests/test-freading.c (main): Don't check freading immediately after
56625         repositioning. Needed for glibc.
56626
56627 2007-04-29  Bruno Haible  <bruno@clisp.org>
56628
56629         * lib/freading.c (freading): Trivial simplification.
56630
56631 2007-04-28  Bruno Haible  <bruno@clisp.org>
56632
56633         * tests/test-fwriting.c (main): Also test the interaction between
56634         fflush and fwriting.
56635         * modules/fwriting-tests (Depends-on): Add fflush.
56636
56637         * tests/test-freading.c (main): Also test the interaction between
56638         fflush and freading.
56639         * modules/freading-tests (Depends-on): Add fflush.
56640
56641 2007-04-28  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56644         fseeko and ftello.
56645         Suggested by Eric Blake.
56646
56647 2007-04-28  Jim Meyering  <jim@meyering.net>
56648
56649         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56650         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56651         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56652
56653 2007-04-27  Eric Blake  <ebb9@byu.net>
56654
56655         * doc/headers/assert.texi (assert.h): Document assert module use.
56656
56657 2007-04-27  Bruno Haible  <bruno@clisp.org>
56658
56659         * doc/headers/*.texi: New files.
56660         * doc/gnulib.texi (Header File Substitutes): New chapter.
56661         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56662         dependencies.
56663         (standards.info ,standards.html, standards.dvi): Update dependencies.
56664         (mostlyclean, clean): New targets.
56665
56666 2007-04-27  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56669         * modules/sysexits (Files, Makefile.am): Update.
56670
56671         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56672         * modules/sys_socket (Files, Makefile.am): Update.
56673
56674         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56675         * modules/sys_stat (Files, Makefile.am): Update.
56676
56677 2007-04-27  Eric Blake  <ebb9@byu.net>
56678
56679         * lib/freading.h: Improve comments.
56680         * lib/fwriting.h: Likewise.
56681         * lib/fflush.c: Likewise.
56682
56683         Fix closein for mingw.
56684         * modules/closein-tests: Add tests for closein.
56685         * tests/test-closein.c: New file.
56686         * tests/test-closein.sh: Likewise.
56687         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56688         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56689
56690 2007-04-27  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56693         version is < 6.
56694         * lib/math_.h [__DECC]: Likewise.
56695         * lib/stdio_.h [__DECC]: Likewise.
56696         * lib/stdlib_.h [__DECC]: Likewise.
56697         * lib/string_.h [__DECC]: Likewise.
56698         * lib/time_.h [__DECC]: Likewise.
56699         * lib/wchar_.h [__DECC]: Likewise.
56700         * lib/wctype_.h [__DECC]: Likewise.
56701
56702 2007-04-27  Bruno Haible  <bruno@clisp.org>
56703
56704         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56705
56706 2007-04-27  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/fflush.c: Add comments.
56709         * modules/fpurge-tests (Depends-on): Add fflush.
56710         * modules/freadable-tests (Depends-on): Likewise.
56711         * modules/fwritable-tests (Depends-on): Likewise.
56712
56713 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56714
56715         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56716         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56717         Report by Bruno Haible <bruno@clisp.org>.
56718
56719 2007-04-26  Eric Blake  <ebb9@byu.net>
56720
56721         Fix fflush on mingw.
56722         * modules/fflush (Depends-on): Add freading.
56723         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56724         but unread data.
56725
56726 2007-04-26  Eric Blake  <ebb9@byu.net>
56727         and Bruno Haible  <bruno@clisp.org>
56728
56729         Implement freading and fwriting.
56730         * lib/freading.c: New file.
56731         * lib/freading.h: Likewise.
56732         * m4/freading.m4: Likewise.
56733         * modules/freading: Likewise.
56734         * modules/freading-tests: Likewise.
56735         * tests/test-freading.c: Likewise.
56736         * lib/fwriting.c: New file.
56737         * lib/fwriting.h: Likewise.
56738         * m4/fwriting.m4: Likewise.
56739         * modules/fwriting: Likewise.
56740         * modules/fwriting-tests: Likewise.
56741         * tests/test-fwriting.c: Likewise.
56742         * MODULES.html.sh (File stream based Input/Output): Mention them.
56743
56744 2007-04-26  Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56747         'long' when we assume it.
56748         Suggested by Eric Blake.
56749
56750 2007-04-26  Bruno Haible  <bruno@clisp.org>
56751
56752         Ensure fseeko, ftello are declared on glibc systems.
56753         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56754         * modules/fseeko (configure.ac-early): Likewise.
56755         * modules/ftello (configure.ac-early): Likewise.
56756         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56757         AC_FUNC_FSEEKO for this.
56758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56759         (gl_CHECK_FSEEKO): Remove macro.
56760
56761 2007-04-26  Bruno Haible  <bruno@clisp.org>
56762
56763         * tests/test-fflush.c (main): Also check the ftell result after
56764         fflush and fseek/fseeko.
56765         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56766         file descriptor position cache in the stream.
56767         * lib/fseeko.c (rpl_fseeko): Likewise.
56768
56769 2007-04-26  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/fflush-tests (Depends-on): Add fseeko.
56772
56773 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56774             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56775
56776         * lib/argz_.h: ensure error_t definition is obtained in same
56777         mechanism system argz.h would have.
56778         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56779         argz facilities are known bad.  Err on the side of caution if
56780         cross-compiling.
56781
56782 2007-04-25  Eric Blake  <ebb9@byu.net>
56783
56784         * lib/fpurge.c (includes): Use stdlib.h for free.
56785         * tests/test-fflush.c (main): Also test fflush-fseeko.
56786
56787 2007-04-25  Bruno Haible  <bruno@clisp.org>
56788
56789         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56790         * lib/fseeko.c: New file.
56791         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56792         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56793         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56794         gl_FUNC_FSEEKO.
56795         (gl_FUNC_FSEEKO): Invoke it.
56796         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56797         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56798         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56799
56800 2007-04-25  Bruno Haible  <bruno@clisp.org>
56801
56802         * modules/fflush (Depends-on): Add ftello.
56803
56804 2007-04-25  Bruno Haible  <bruno@clisp.org>
56805
56806         * modules/ftello-tests: New file.
56807         * tests/test-ftello.c: New file.
56808
56809         * modules/ftello: New file.
56810         * m4/ftello.m4: New file.
56811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56812         HAVE_FTELLO.
56813         * lib/stdio_.h (ftello): New declaration.
56814         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56815         HAVE_FTELLO.
56816
56817 2007-04-25  Bruno Haible  <bruno@clisp.org>
56818
56819         * modules/fseeko-tests: New file.
56820         * tests/test-fseeko.c: New file.
56821
56822         * modules/fseeko: New file.
56823         * m4/fseeko.m4: New file.
56824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56825         HAVE_FSEEKO.
56826         * lib/stdio_.h (fseeko): New declaration.
56827         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56828         HAVE_FSEEKO.
56829
56830 2007-04-25  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56833
56834 2007-04-25  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56837         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56838         * tests/test-unistd.c: Likewise.
56839         * tests/test-fcntl.c: Likewise.
56840
56841 2007-04-23  Eric Blake  <ebb9@byu.net>
56842
56843         * lib/fflush.c: Fix missing include.
56844         Reported by Bruno Haible.
56845
56846 2007-04-23  Bruno Haible  <bruno@clisp.org>
56847
56848         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56849         Reported by Eric Blake.
56850
56851 2007-04-23  Bruno Haible  <bruno@clisp.org>
56852
56853         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56854
56855 2007-04-23  Bruno Haible  <bruno@clisp.org>
56856
56857         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56858
56859 2007-04-23  Bruno Haible  <bruno@clisp.org>
56860
56861         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56862         Needed on HP-UX 11.
56863
56864 2007-04-16  Eric Blake  <ebb9@byu.net>
56865
56866         Make fflush rely on fpurge.
56867         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56868         open coding all variants.
56869         * modules/fflush (Depends-on): Add fpurge and unistd.
56870         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56871         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56872
56873         Fix --with-tests compilation on cygwin.
56874         * modules/argmatch-tests (Makefile.am): List gnulib library first
56875         in LDADD.
56876         * modules/argp-tests (Makefile.am): Likewise.
56877         * modules/array-list-tests (Makefile.am): Likewise.
56878         * modules/array-oset-tests (Makefile.am): Likewise.
56879         * modules/avltree-list-tests (Makefile.am): Likewise.
56880         * modules/avltree-oset-tests (Makefile.am): Likewise.
56881         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56882         * modules/carray-list-tests (Makefile.am): Likewise.
56883         * modules/dirname-tests (Makefile.am): Likewise.
56884         * modules/frexp-tests (Makefile.am): Likewise.
56885         * modules/isnanl-tests (Makefile.am): Likewise.
56886         * modules/linked-list-tests (Makefile.am): Likewise.
56887         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56888         * modules/lock-tests (Makefile.am): Likewise.
56889         * modules/rbtree-list-tests (Makefile.am): Likewise.
56890         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56891         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56892         * modules/tls-tests (Makefile.am): Likewise.
56893         * modules/tsearch-tests (Makefile.am): Likewise.
56894         * modules/xvasprintf-tests (Makefile.am): Likewise.
56895
56896         Fix fpurge for cygwin.
56897         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56898         value.
56899         * modules/fpurge-tests (Depends-on): Clean up trash.
56900
56901 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56902
56903         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56904
56905         * m4/autobuild.m4: Re-indent.
56906
56907 2007-04-13  Bruno Haible  <bruno@clisp.org>
56908
56909         * modules/fpurge-tests: New file.
56910         * tests/test-fpurge.c: New file.
56911
56912         * modules/fpurge: New file.
56913         * lib/fpurge.h: New file.
56914         * lib/fpurge.c: New file.
56915         * m4/fpurge.m4: New file.
56916
56917 2007-04-13  Bruno Haible  <bruno@clisp.org>
56918
56919         * modules/fbufmode-tests: New file.
56920         * tests/test-fbufmode.c: New file.
56921
56922         * modules/fbufmode: New file.
56923         * lib/fbufmode.h: New file.
56924         * lib/fbufmode.c: New file.
56925         * m4/fbufmode.m4: New file.
56926
56927 2007-04-13  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/fwritable-tests: New file.
56930         * tests/test-fwritable.c: New file.
56931
56932         * modules/fwritable: New file.
56933         * lib/fwritable.h: New file.
56934         * lib/fwritable.c: New file.
56935         * m4/fwritable.m4: New file.
56936
56937 2007-04-13  Bruno Haible  <bruno@clisp.org>
56938
56939         * modules/freadable-tests: New file.
56940         * tests/test-freadable.c: New file.
56941
56942         * modules/freadable: New file.
56943         * lib/freadable.h: New file.
56944         * lib/freadable.c: New file.
56945         * m4/freadable.m4: New file.
56946
56947 2007-04-13  Bruno Haible  <bruno@clisp.org>
56948
56949         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56950         MOSTLYCLEANFILES.
56951
56952 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56953
56954         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56955         gzip bootstrap.conf to avoid dragging in i18n machinery.
56956         (gnulib_tool_option): Use it.
56957
56958 2007-04-13  Bruno Haible  <bruno@clisp.org>
56959
56960         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56961         %F directives.
56962         * tests/test-vasprintf-posix.c (test_function): Likewise.
56963         * tests/test-snprintf-posix.h (test_function): Likewise.
56964         * tests/test-sprintf-posix.h (test_function): Likewise.
56965         * tests/test-fprintf-posix.h (test_function): Likewise.
56966         * tests/test-printf-posix.h (test_function): Likewise.
56967         * tests/test-fprintf-posix.out: Likewise.
56968
56969 2007-04-13  Bruno Haible  <bruno@clisp.org>
56970
56971         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56972         * modules/tls-tests (configure.ac): Likewise.
56973         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56974
56975 2007-04-13  Bruno Haible  <bruno@clisp.org>
56976
56977         * lib/tls.c (glthread_tls_get): Fix return type.
56978         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56979
56980 2007-04-12  Eric Blake  <ebb9@byu.net>
56981
56982         * modules/gettime (Depends-on): Remove gettime.
56983         Reported by Dmitry V. Levin.
56984
56985 2007-04-12  Bruno Haible  <bruno@clisp.org>
56986
56987         * modules/fflush (Include): Mention <stdio.h>.
56988         * modules/strtoimax (Include): Mention <inttypes.h>.
56989         * modules/strtoumax (Include): Likewise.
56990
56991 2007-04-12  Eric Blake  <ebb9@byu.net>
56992
56993         * .cvsignore: New file.
56994         * .gitignore: Likewise.
56995
56996 2007-04-12  Bruno Haible  <bruno@clisp.org>
56997
56998         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56999         not before, since $(LDADD) often contains libgnu.a.
57000         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57001         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57002         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57003         Needed on Cygwin.
57004
57005 2007-04-12  Eric Blake  <ebb9@byu.net>
57006
57007         Work around glibc's failure to flush stdin on fclose.
57008         * lib/closein.c (close_stdin): Flush stdin before closing.
57009
57010         Work around glibc's failure to reset seekable stdin on exit.
57011         * modules/closein: New module.
57012         * lib/closein.c: New file.
57013         * lib/closein.h: Likewise.
57014         * m4/closein.m4: Likewise.
57015         * MODULES.html.sh (File stream based Input/Output): Document it.
57016
57017 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57018
57019         * gnulib-tool: Rename generated 'autobuild' script to
57020         'do-autobuild' in --create-megatestdir output.
57021
57022         * doc/gnulib.texi (Build robot for gnulib): Fix.
57023
57024 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57025
57026         * modules/sysexits (Depends-on): Add absolute-header.
57027
57028 2007-04-12  Eric Blake  <ebb9@byu.net>
57029
57030         No need to preserve errno on success.
57031         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57032         Reported by Bruno Haible.
57033
57034 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57035
57036         * MODULES.html.sh (Support for maintaining and releasing
57037         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57038
57039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57040
57041         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57042
57043 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57044
57045         * modules/autobuild: New module.
57046
57047         * m4/autobuild.m4: New file.
57048
57049 2007-04-11  Bruno Haible  <bruno@clisp.org>
57050
57051         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57052         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57056         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57057         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57058         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57059         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57060         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57061         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57062         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57063         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57065         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57066         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57068         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57069         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57071         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57072         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57074         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57075         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57077         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57078         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57079         Reported by Eric Blake.
57080
57081 2007-04-11  Bruno Haible  <bruno@clisp.org>
57082
57083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57084
57085 2007-04-10  Bruno Haible  <bruno@clisp.org>
57086
57087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57088         for NaN and Infinity. Needed on FreeBSD 6.1.
57089         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57090         regarding results for "%010a" of Infinity and NaN.
57091         * tests/test-vasprintf-posix.c (test_function): Likewise.
57092         * tests/test-snprintf-posix.h (test_function): Likewise.
57093         * tests/test-sprintf-posix.h (test_function): Likewise.
57094         * tests/test-fprintf-posix.h (test_function): Likewise.
57095         * tests/test-printf-posix.h (test_function): Likewise.
57096         * tests/test-fprintf-posix.out: Likewise.
57097
57098 2007-04-10  Bruno Haible  <bruno@clisp.org>
57099
57100         * modules/locale-tests: New file.
57101         * tests/test-locale.c: New file.
57102
57103         * modules/locale: New file.
57104         * lib/locale_.h: New file.
57105         * m4/locale_h.m4: New file.
57106
57107 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57108             Bruno Haible  <bruno@clisp.org>
57109
57110         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57111         be determined, test for availability of the copysignf, copysign,
57112         copysignl functions.
57113         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57114         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57115         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57116
57117 2007-04-09  Eric Blake  <ebb9@byu.net>
57118
57119         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57120         * modules/stdio (Makefile.am): Support fflush.
57121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57122         * modules/fflush: New file.
57123         * lib/fflush.c: Likewise.
57124         * m4/fflush.m4: Likewise.
57125         * modules/fflush-tests: New test.
57126         * tests/test-fflush.c: Likewise.
57127         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57128
57129 2007-04-06  Bruno Haible  <bruno@clisp.org>
57130
57131         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57132         (VASNPRINTF): Use signbit for faster determination whether to print a
57133         minus sign.
57134         * modules/vasnprintf (Files): Remove lib/float+.h.
57135         * modules/fprintf-posix (Depends-on): Add signbit.
57136         * modules/snprintf-posix (Depends-on): Likewise.
57137         * modules/sprintf-posix (Depends-on): Likewise.
57138         * modules/vasnprintf-posix (Depends-on): Likewise.
57139         * modules/vasprintf-posix (Depends-on): Likewise.
57140         * modules/vfprintf-posix (Depends-on): Likewise.
57141         * modules/vsnprintf-posix (Depends-on): Likewise.
57142         * modules/vsprintf-posix (Depends-on): Likewise.
57143
57144 2007-04-06  Bruno Haible  <bruno@clisp.org>
57145
57146         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57147         * tests/test-frexpl.c (main): Likewise.
57148         * tests/test-ldexpl.c (main): Likewise.
57149         * modules/frexp-tests (Depends-on): Add signbit.
57150         * modules/frexpl-tests (Depdends-on): Likewise.
57151         * modules/ldexpl-tests (Depdends-on): Likewise.
57152
57153 2007-04-06  Bruno Haible  <bruno@clisp.org>
57154
57155         * modules/signbit-tests: New file.
57156         * tests/test-signbit.c: New file.
57157
57158         * modules/signbit: New file.
57159         * lib/signbitf.c: New file.
57160         * lib/signbitd.c: New file.
57161         * lib/signbitl.c: New file.
57162         * m4/signbit.m4: New file.
57163         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57164         (signbit): New macro.
57165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57166         REPLACE_SIGNBIT.
57167         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57168         REPLACE_FREXPL into math.h.
57169
57170 2007-04-06  Bruno Haible  <bruno@clisp.org>
57171
57172         * modules/isnanf-nolibm-tests: New file.
57173         * tests/test-isnanf.c: New file.
57174
57175         * modules/isnanf-nolibm: New file.
57176         * lib/isnanf.h: New file.
57177         * lib/isnanf.c: New file.
57178         * lib/isnan.c: Consider the USE_FLOAT macro.
57179         * m4/isnanf.m4: New file.
57180
57181 2007-04-06  Bruno Haible  <bruno@clisp.org>
57182
57183         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57184         (Link): New section.
57185
57186         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57187
57188 2007-04-06  Bruno Haible  <bruno@clisp.org>
57189
57190         Assume the 'long double' type.
57191         * m4/longdouble.m4: Remove file.
57192         * config/srclist.txt: Don't mention longdouble.m4.
57193         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57194         * lib/float+.h: Likewise.
57195         * lib/frexp.c: Likewise.
57196         * lib/printf-args.h: Likewise.
57197         * lib/printf-args.c: Likewise.
57198         * lib/printf-frexp.c: Likewise.
57199         * lib/printf-parse.c: Likewise.
57200         * lib/vasnprintf.c: Likewise.
57201         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57202         * m4/intl.m4: Likewise.
57203         * m4/isnanl.m4: Likewise.
57204         * m4/printf.m4: Likewise.
57205         * m4/printf-frexpl.m4: Likewise.
57206         * m4/vasnprintf.m4: Likewise.
57207         * modules/allocsa (Files): Remove m4/longdouble.m4.
57208         * modules/gettext (Files): Likewise.
57209         * modules/relocatable-prog-wrapper (Files): Likewise.
57210         * modules/vasnprintf (Files): Likewise.
57211         * modules/isnanl (Files): Likewise.
57212         (Include): Simplify.
57213         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57214         (Include): Simplify.
57215         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57216         (Include): Simplify.
57217         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57219         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57221         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57223         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57225         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57227         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57228         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57229         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57230         * tests/test-isnanl.c: Likewise.
57231         * tests/test-snprintf-posix.h: Likewise.
57232         * tests/test-sprintf-posix.h: Likewise.
57233         * tests/test-vasnprintf-posix.c: Likewise.
57234         * tests/test-vasnprintf-posix2.c: Likewise.
57235         * tests/test-vasprintf-posix.c: Likewise.
57236
57237 2007-04-06  Bruno Haible  <bruno@clisp.org>
57238
57239         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57240         * lib/math_.h [__DECC]: Include the overridden include file through
57241         #include_next, outside the double-inclusion guard.
57242         * lib/stdio_.h [__DECC]: Likewise.
57243         * lib/stdlib_.h [__DECC]: Likewise.
57244         * lib/string_.h [__DECC]: Likewise.
57245         * lib/time_.h [__DECC]: Likewise.
57246         * lib/wchar_.h [__DECC]: Likewise.
57247         * lib/wctype_.h [__DECC]: Likewise.
57248         * lib/inttypes_.h [__DECC]: Likewise.
57249         Reported by Albert Chin <china@thewrittenword.com> in
57250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57251
57252 2007-04-04  Eric Blake  <ebb9@byu.net>
57253
57254         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57255         1.5.x.
57256
57257 2007-04-04  Bruno Haible  <bruno@clisp.org>
57258
57259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57260         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57261
57262 2007-04-04  Bruno Haible  <bruno@clisp.org>
57263
57264         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57265         results for "%010a" of Infinity and NaN.
57266         * tests/test-vasprintf-posix.c (test_function): Likewise.
57267         * tests/test-snprintf-posix.h (test_function): Likewise.
57268         * tests/test-sprintf-posix.h (test_function): Likewise.
57269         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57270         * tests/test-printf-posix.h (test_function): Likewise.
57271         * tests/test-fprintf-posix.out: Update.
57272         Needed for FreeBSD 6.1.
57273
57274 2007-04-04  Bruno Haible  <bruno@clisp.org>
57275
57276         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57277         directly used by the gnulib modules nor by gnulib-tool.
57278
57279 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         * DEPENDENCIES: Give overall description of version dependency
57282         desirability.  Use more-typical names for apps.
57283         Add shell, coreutils, diffutils, grep, tar, gzip.
57284
57285 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57286
57287         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57288
57289 2007-04-04  Karl Berry  <karl@gnu.org>
57290
57291         * MODULES.html.sh (func_module): missing '.
57292
57293 2007-04-03  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/argmatch-tests (Makefile.am): New variable
57296         test_argmatch_LDADD.
57297         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57298         * modules/array-list-tests (Makefile.am): New variable
57299         test_array_list_LDADD.
57300         * modules/array-oset-tests (Makefile.am): New variable
57301         test_array_oset_LDADD.
57302         * modules/avltree-list-tests (Makefile.am): New variable
57303         test_avltree_list_LDADD.
57304         * modules/avltree-oset-tests (Makefile.am): New variable
57305         test_avltree_oset_LDADD.
57306         * modules/avltreehash-list-tests (Makefile.am): New variable
57307         test_avltreehash_list_LDADD.
57308         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57309         test_canonicalize_lgpl_LDADD.
57310         * modules/carray-list-tests (Makefile.am): New variable
57311         test_carray_list_LDADD.
57312         * modules/dirname-tests (Makefile.am): New variable
57313         test_dirname_LDADD.
57314         * modules/linked-list-tests (Makefile.am): New variable
57315         test_linked_list_LDADD.
57316         * modules/linkedhash-list-tests (Makefile.am): New variable
57317         test_linkedhash_list_LDADD.
57318         * modules/rbtree-list-tests (Makefile.am): New variable
57319         test_rbtree_list_LDADD.
57320         * modules/rbtree-oset-tests (Makefile.am): New variable
57321         test_rbtree_oset_LDADD.
57322         * modules/rbtreehash-list-tests (Makefile.am): New variable
57323         test_rbtreehash_list_LDADD.
57324         * modules/xvasprintf-tests (Makefile.am): New variable
57325         test_xvasprintf_LDADD.
57326         Reported by Eric Blake.
57327
57328 2007-04-03  Eric Blake  <ebb9@byu.net>
57329
57330         * DEPENDENCIES: Weaken m4 requirements.
57331
57332 2007-04-03  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57335         * modules/isnanl-tests (configure.ac): Likewise.
57336
57337 2007-04-03  Ben Pfaff  <blp@gnu.org>
57338
57339         * modules/iconv_open: Add $(srcdir)/ to source directory
57340         references in Makefile fragments that call gperf, to fix VPATH
57341         builds.
57342
57343 2007-04-03  Bruno Haible  <bruno@clisp.org>
57344
57345         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57346         * lib/ldexpl.c: Undo last change.
57347
57348 2007-04-03  Bruno Haible  <bruno@clisp.org>
57349
57350         * modules/printf-frexpl (Depends-on): Undo last change.
57351         (Files): Add m4/ldexpl.m4.
57352
57353 2007-04-03  Bruno Haible  <bruno@clisp.org>
57354
57355         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57356         * modules/isnanl (Link): New section.
57357
57358         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57359         * modules/frexp (Link): New section.
57360
57361         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57362         * modules/frexpl (Link): New section.
57363
57364         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57365         * modules/ldexpl (Link): New section.
57366
57367 2007-04-03  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/TEMPLATE-EXTENDED: New file.
57370         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57371
57372 2007-04-03  Bruno Haible  <bruno@clisp.org>
57373
57374         * DEPENDENCIES: New file.
57375         Suggested by Simon Josefsson.
57376
57377 2007-04-03  Bruno Haible  <bruno@clisp.org>
57378
57379         * doc/gnulib.texi: Escape @.
57380
57381 2007-04-03  James Youngman  <jay@gnu.org>
57382         and Paul Eggert  <eggert@cs.ucla.edu>
57383
57384         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57385         birthtime on all systems that have birthtime, not just those which
57386         use st_birthtimensec rather than st_birthtim.  Putting zero in
57387         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57388         that the birth time is not available for files on an NFS mount.
57389
57390 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57391
57392         * modules/memxor: Move back from crypto/, suggested by Bruno.
57393         * modules/crypto/hmac-sha1: Fix memxor dependency.
57394
57395         * modules/crypto/gc: Moved from ../.
57396
57397 2007-04-02  Eric Blake  <ebb9@byu.net>
57398
57399         * lib/ldexpl.c (includes): Avoid libm.
57400
57401         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57402
57403 2007-04-02  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57406         on IRIX.
57407
57408 2007-04-02  Bruno Haible  <bruno@clisp.org>
57409
57410         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57411         x86 or x86_64 platforms running MacOS X.
57412         Reported by Ryan Schmidt <@ryandesign.com>.
57413
57414 2007-04-02  Bruno Haible  <bruno@clisp.org>
57415
57416         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57417         i386.
57418
57419 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57420
57421         * modules/crypto/arcfour: Moved from ../.
57422         * modules/crypto/arcfour-tests: Moved from ../.
57423         * modules/crypto/arctwo: Moved from ../.
57424         * modules/crypto/arctwo-tests: Moved from ../.
57425         * modules/crypto/des: Moved from ../.
57426         * modules/crypto/des-tests: Moved from ../.
57427         * modules/crypto/gc-arcfour: Moved from ../.
57428         * modules/crypto/gc-arcfour-tests: Moved from ../.
57429         * modules/crypto/gc-arctwo: Moved from ../.
57430         * modules/crypto/gc-arctwo-tests: Moved from ../.
57431         * modules/crypto/gc-des: Moved from ../.
57432         * modules/crypto/gc-des-tests: Moved from ../.
57433         * modules/crypto/gc-hmac-md5: Moved from ../.
57434         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57435         * modules/crypto/gc-hmac-sha1: Moved from ../.
57436         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57437         * modules/crypto/gc-md2: Moved from ../.
57438         * modules/crypto/gc-md2-tests: Moved from ../.
57439         * modules/crypto/gc-md4: Moved from ../.
57440         * modules/crypto/gc-md4-tests: Moved from ../.
57441         * modules/crypto/gc-md5: Moved from ../.
57442         * modules/crypto/gc-md5-tests: Moved from ../.
57443         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57444         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57445         * modules/crypto/gc-random: Moved from ../.
57446         * modules/crypto/gc-rijndael: Moved from ../.
57447         * modules/crypto/gc-rijndael-tests: Moved from ../.
57448         * modules/crypto/gc-sha1: Moved from ../.
57449         * modules/crypto/gc-sha1-tests: Moved from ../.
57450         * modules/crypto/gc-tests: Moved from ../.
57451         * modules/crypto/hmac-md5: Moved from ../.
57452         * modules/crypto/hmac-md5-tests: Moved from ../.
57453         * modules/crypto/hmac-sha1: Moved from ../.
57454         * modules/crypto/hmac-sha1-tests: Moved from ../.
57455         * modules/crypto/md2: Moved from ../.
57456         * modules/crypto/md2-tests: Moved from ../.
57457         * modules/crypto/md4: Moved from ../.
57458         * modules/crypto/md4-tests: Moved from ../.
57459         * modules/crypto/md5: Moved from ../.
57460         * modules/crypto/md5-tests: Moved from ../.
57461         * modules/crypto/memxor: Moved from ../.
57462         * modules/crypto/rijndael: Moved from ../.
57463         * modules/crypto/rijndael-tests: Moved from ../.
57464         * modules/crypto/sha1: Moved from ../.
57465
57466 2007-03-30  James Youngman  <jay@gnu.org>
57467
57468         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57469         rename() to change the ctime of a file (because ctime is unaffected
57470         by rename on jfs2 on AIX 5.1).
57471         (main): Start by doing cleanup, in case a previous run failed leaving
57472         test files behind.
57473
57474 2007-03-31  Bruno Haible  <bruno@clisp.org>
57475
57476         Support old proprietary implementations of iconv.
57477         * modules/iconv_open: New file.
57478         * lib/iconv_.h: New file.
57479         * m4/iconv_h.m4: New file.
57480         * lib/iconv_open.c: New file.
57481         * lib/iconv_open-aix.gperf: New file.
57482         * lib/iconv_open-hpux.gperf: New file.
57483         * lib/iconv_open-irix.gperf: New file.
57484         * lib/iconv_open-osf.gperf: New file.
57485         * m4/iconv_open.m4: New file.
57486         * modules/linebreak (Depends-on): Add iconv_open.
57487         * modules/striconv (Depends-on): Likewise.
57488         * modules/striconveh (Depends-on): Likewise.
57489         * modules/unicodeio (Depends-on): Likewise.
57490         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57491         (iconv_t)(-1).
57492         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57493         conversion if cd is (iconv_t)(-1).
57494         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57495         is not possible.
57496
57497 2007-03-31  Bruno Haible  <bruno@clisp.org>
57498
57499         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57500         work on Solaris either. Protect also second use of "autodetect_jp".
57501
57502 2007-03-31  Bruno Haible  <bruno@clisp.org>
57503
57504         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57505         the function is not present.
57506
57507 2007-03-31  Bruno Haible  <bruno@clisp.org>
57508
57509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57510         the function is not present.
57511
57512 2007-03-31  Bruno Haible  <bruno@clisp.org>
57513
57514         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57515         a bug in HP-UX iconv_open().
57516
57517 2007-03-31  Bruno Haible  <bruno@clisp.org>
57518
57519         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57520         (Mathematics <math.h>): New section, add fpieee.
57521         (Input/output <stdio.h>): Add fseterr.
57522         (Mathematics <math.h>): New section, add printf-frexp.
57523         (Container data structures): Add sublist.
57524         (Core language properties): Add fpucw, inline.
57525         (Functions for greatest-width integer types <inttypes.h>): Add
57526         imaxabs, imaxdiv, inttypes.
57527         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57528         isnanl-nolibm, ldexp.
57529         (Mathematics <math.h>): New section, add printf-frexpl.
57530         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57531         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57532         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57533         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57534         (Unicode string functions): Add unistr/u*-mbtoucr.
57535         (Java): Add javacomp-script, javaexec-script.
57536         (C#): Add csharpcomp-script, csharpexec-script.
57537         (Support for building libraries and executables): Add havelib,
57538         relocatable-*.
57539         (Support for maintaining and releasing projects): Renamed from
57540         'Support for maintaining and release projects'. Add announce-gen.
57541
57542 2007-03-31  Bruno Haible  <bruno@clisp.org>
57543
57544         * README: Talk primarily about git.
57545         (git and CVS): Renamed from CVS.
57546         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57547         gnulib is available through git.
57548         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57549
57550 2007-03-30  Bruno Haible  <bruno@clisp.org>
57551
57552         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57553         * lib/poll_.h: Likewise.
57554         * lib/stat_.h: Likewise.
57555         * lib/sys_time_.h: Likewise.
57556         * lib/sysexit_.h: Likewise.
57557         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57558         * lib/stdbool_.h: Likewise.
57559         * lib/byteswap_.h: Add double-inclusion guard.
57560
57561 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57562
57563         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57564
57565 2007-03-30  Karl Berry  <karl@gnu.org>
57566
57567         * config/srclist-update: double space after USA in the license
57568         substitution, since that's how it's usually (?) written.
57569
57570 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57573         reported by Bruno Haible.
57574
57575 2007-03-29  Bruno Haible  <bruno@clisp.org>
57576
57577         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57578         a bug in AIX iconv().
57579
57580 2007-03-29  Bruno Haible  <bruno@clisp.org>
57581
57582         * modules/ldexpl-tests: New file.
57583         * tests/test-ldexpl.c: New file.
57584
57585 2007-03-29  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/ldexpl.c: Include fpucw.h.
57588         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57589         multiplication.
57590         * modules/ldexpl (Depends-on): Add fpucw.
57591
57592 2007-03-29  Bruno Haible  <bruno@clisp.org>
57593
57594         * modules/ldexpl: New file.
57595         * m4/ldexpl.m4: New file.
57596         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57597         set.
57598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57599         REPLACE_LDEXPL.
57600         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57601         REPLACE_LDEXPL.
57602         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57603         gl_FUNC_LDEXPL_WORKS.
57604         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57605         * modules/mathl (Files): Remove lib/ldexpl.c.
57606         (Depends-on): Add ldexpl.
57607
57608 2007-03-29  Bruno Haible  <bruno@clisp.org>
57609
57610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57611
57612 2007-03-29  Bruno Haible  <bruno@clisp.org>
57613
57614         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57615         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57616         and possibly also HP-UX.
57617         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57618         work on AIX, IRIX, HP-UX, OSF/1.
57619         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57620         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57621         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57622         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57623         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57624         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57625
57626 2007-03-29  Bruno Haible  <bruno@clisp.org>
57627
57628         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57629
57630 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57631
57632         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57633         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57634
57635 2007-03-29  Eric Blake  <ebb9@byu.net>
57636
57637         * lib/acl-internal.h: Remove redundant include.
57638         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57639         Cygwin when a file is locked.
57640
57641 2007-03-29  Bruno Haible  <bruno@clisp.org>
57642
57643         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57644         file.
57645         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57646
57647 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57650         try to remove a parent directory if the child couldn't be removed
57651         (except for the first rmdir, which could fail because the child
57652         doesn't exist).  Problem reported by Jeff Blaine in
57653         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57654
57655 2007-03-28  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/striconveh.c (utf8conv_carefully): New function.
57658         (mem_cd_iconveh_internal): Invoke it.
57659
57660 2007-03-28  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57663         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57664         input.
57665         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57666         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57667         unistr/u8-uctomb.
57668
57669 2007-03-28  Bruno Haible  <bruno@clisp.org>
57670
57671         * modules/unistr/u8-mbtoucr: New file.
57672         * lib/unistr/u8-mbtoucr.c: New file.
57673         * modules/unistr/u16-mbtoucr: New file.
57674         * lib/unistr/u16-mbtoucr.c: New file.
57675         * modules/unistr/u16-mbtoucr: New file.
57676         * lib/unistr/u16-mbtoucr.c: New file.
57677         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57678
57679 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57680             Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57683         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57684         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57685
57686         * m4/stdio_h.m4: Add stubs for vasprintf too.
57687
57688         * modules/stdio: Support vasprintf in sed command.
57689
57690         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57691         vasprintf.h.  Add stdio module indicator.
57692
57693         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57694         vasprintf.h.
57695
57696         * lib/vasprintf.h: File removed.
57697
57698         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57699         * lib/vasprintf.c: Ditto.
57700         * lib/xvasprintf.c: Ditto.
57701         * tests/test-vasprintf-posix.c: Ditto.
57702         * tests/test-vasprintf.c: Ditto.
57703
57704 2007-03-27  Bruno Haible  <bruno@clisp.org>
57705
57706         Make vasnprintf multithread-safe.
57707         * lib/vasnprintf.c (decimal_point_char): New function.
57708         (VASNPRINTF): Use it.
57709         Suggested by Simon Josefsson.
57710
57711 2007-03-27  Eric Blake  <ebb9@byu.net>
57712
57713         Support sub-second birthtime on cygwin.
57714         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57715         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57716         (get_stat_birthtime): Also work with st_birthtim.
57717
57718 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57719
57720         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57721         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57722         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57723         (get_stat_birthtime_ns): Simplify compile-time tests.
57724         (get_stat_birthtime): Change the API to look like
57725         get_stat_mtime etc., except return a negative tv_nsec on error.
57726         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57727         Don't check for "spare" fields.
57728         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57729         or for struct stat.st_birthtime, as these tests aren't used.
57730         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57731
57732 2007-03-27  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/stat-time.h: Include <sys/stat.h>.
57735
57736 2007-03-27  James Youngman  <jay@gnu.org>
57737
57738         * lib/stat-time.h (get_stat_birthtime): New function for
57739           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57740         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57741           and its variants.
57742         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57743         * modules/stat-time-test: New file.
57744         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57745
57746 2007-03-26  Bruno Haible  <bruno@clisp.org>
57747
57748         Better support of signalling NaNs.
57749         * lib/atanl.c: Include isnanl.h.
57750         (atanl): Perform test for NaN at the beginning of the function and
57751         through a call to isnanl.
57752         * lib/cosl.c: Include isnanl.h.
57753         (cosl): Perform test for NaN at the beginning of the function and
57754         through a call to isnanl.
57755         * lib/ldexpl.c: Include isnanl.h.
57756         (ldexpl): Perform test for NaN through a call to isnanl.
57757         * lib/logl.c: Include isnanl.h.
57758         (logl): Perform test for NaN at the beginning of the function and
57759         through a call to isnanl.
57760         * lib/sinl.c: Include isnanl.h.
57761         (sinl): Perform test for NaN at the beginning of the function and
57762         through a call to isnanl.
57763         * lib/sqrtl.c: Include isnanl.h.
57764         (sqrtl): Perform test for NaN at the beginning of the function and
57765         through a call to isnanl.
57766         * lib/tanl.c: Include isnanl.h.
57767         (tanl): Perform test for NaN at the beginning of the function and
57768         through a call to isnanl.
57769         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57770         * modules/mathl (Depends-on): Add isnanl.
57771
57772 2007-03-26  Eric Blake  <ebb9@byu.net>
57773
57774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57775         regression in logic sense of previous patch.
57776
57777 2007-03-26  Bruno Haible  <bruno@clisp.org>
57778
57779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57780         unportable shell command "if ! ...".
57781         Reported by Ralf Wildenhues.
57782
57783 2007-03-25  Bruno Haible  <bruno@clisp.org>
57784
57785         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57786         <sysexits.h> file, and only add EX_CONFIG.
57787         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57788         absolute file name and whether it is sufficient. Substitute also
57789         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57790         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57791         ABSOLUTE_SYSEXITS_H into sysexits.h.
57792
57793 2007-03-25  Bruno Haible  <bruno@clisp.org>
57794
57795         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57796         hints is NULL.
57797
57798 2007-03-25  Bruno Haible  <bruno@clisp.org>
57799
57800         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57801         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57802
57803 2007-03-25  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/vasnprintf.c: Include langinfo.h.
57806         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57807         multithread-safe.
57808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57809         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57811         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57814         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57816         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57817         Reported by Simon Josefsson.
57818
57819 2007-03-25  Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57822         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57823         * modules/vasnprintf (Depends-on): Add stdint.
57824
57825 2007-03-25  Bruno Haible  <bruno@clisp.org>
57826
57827         * modules/fpieee: New file.
57828         * m4/fpieee.m4: New file.
57829         * modules/isnan-nolibm (Depends-on): Add fpieee.
57830         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57831         * modules/isnanl (Depends-on): Add fpieee.
57832
57833 2007-03-25  Bruno Haible  <bruno@clisp.org>
57834
57835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57836
57837 2007-03-25  Bruno Haible  <bruno@clisp.org>
57838
57839         Avoid test failures on IRIX 6.5.
57840         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57841         (main): Use it.
57842         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57843         macros.
57844         (main): Use them.
57845
57846 2007-03-25  Bruno Haible  <bruno@clisp.org>
57847
57848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57849         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57850         exists but doesn't work.
57851         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57852         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57854         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57855         math.h.
57856
57857 2007-03-25  Bruno Haible  <bruno@clisp.org>
57858
57859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57860         returns inf. Needed on IRIX 6.5.
57861
57862 2007-03-25  Bruno Haible  <bruno@clisp.org>
57863
57864         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57865         (main): Use isnanl instead of x != x idiom.
57866         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57867
57868         * tests/test-frexp.c: Include isnan.h.
57869         (main): Use isnan instead of x != x idiom.
57870         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57871
57872 2007-03-25  Bruno Haible  <bruno@clisp.org>
57873
57874         * tests/test-frexp.c (NaN): New function/macro.
57875         (main): Use it instead of 0.0 / 0.0.
57876         * tests/test-isnan.c (NaN): New function/macro.
57877         (main): Use it instead of 0.0 / 0.0.
57878         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57879         (test_function): Use it instead of 0.0 / 0.0.
57880         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57881         (test_function): Use it instead of 0.0 / 0.0.
57882         * tests/test-snprintf-posix.h (NaN): New function/macro.
57883         (test_function): Use it instead of 0.0 / 0.0.
57884         * tests/test-sprintf-posix.h (NaN): New function/macro.
57885         (test_function): Use it instead of 0.0 / 0.0.
57886         * tests/test-fprintf-posix.h (NaN): New function/macro.
57887         (test_function): Use it instead of 0.0 / 0.0.
57888         * tests/test-printf-posix.h (NaN): New function/macro.
57889         (test_function): Use it instead of 0.0 / 0.0.
57890
57891         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57892
57893 2007-03-25  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57896
57897 2007-03-25  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/regexec.c (merge_state_with_log): Make static.
57900
57901 2007-03-25  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/trigl.c (kernel_rem_pio2): Make static.
57904
57905 2007-03-25  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/sincosl.c (sincosl_table): Make static.
57908
57909 2007-03-25  Bruno Haible  <bruno@clisp.org>
57910
57911         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57912         if the compiler does not support C99.
57913
57914 2007-03-25  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/time (Makefile.am): Ensure all rule action lines start with a
57917         tab.
57918
57919 2007-03-24  Bruno Haible  <bruno@clisp.org>
57920
57921         * modules/tsearch-tests: New file.
57922         * tests/test-tsearch.sh: New file.
57923         * tests/test-tsearch.c: New file, mostly copied from glibc.
57924
57925         * modules/search-tests: New file.
57926         * tests/test-search.c: New file.
57927
57928         * modules/search: New file.
57929         * lib/search_.h: New file, incorporating lib/tsearch.h.
57930         * m4/search_h.m4: New file.
57931         * lib/tsearch.h: Remove file.
57932         * lib/tsearch.c: Include search.h instead of tsearch.h.
57933         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57934         HAVE_TSEARCH.
57935         * modules/tsearch (Files): Remove lib/tsearch.h.
57936         (Depends-on): Add search.
57937         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57938         (Include): Change tsearch.h into search.h.
57939
57940 2007-03-24  Bruno Haible  <bruno@clisp.org>
57941
57942         * modules/fpucw: New file.
57943         * lib/fpucw.h: New file.
57944         * lib/frexp.c: Include fpucw.h.
57945         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57946         (FUNC): Use them.
57947         * lib/printf-frexp.c: Include fpucw.h.
57948         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57949         (FUNC): Use them.
57950         * lib/vasnprintf.c: Include fpucw.h.
57951         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57952         'long double' calculations.
57953         * tests/test-frexpl.c: Include fpucw.h.
57954         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57955         * tests/test-printf-frexpl.c: Include fpucw.h.
57956         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57957         * modules/frexpl (Depends-on): Add fpucw.
57958         * modules/printf-frexpl (Depends-on): Likewise.
57959         * modules/fprintf-posix (Depends-on): Likewise.
57960         * modules/snprintf-posix (Depends-on): Likewise.
57961         * modules/sprintf-posix (Depends-on): Likewise.
57962         * modules/vasnprintf-posix (Depends-on): Likewise.
57963         * modules/vasprintf-posix (Depends-on): Likewise.
57964         * modules/vfprintf-posix (Depends-on): Likewise.
57965         * modules/vsnprintf-posix (Depends-on): Likewise.
57966         * modules/vsprintf-posix (Depends-on): Likewise.
57967         * modules/frexpl-tests (Depends-on): Likewise.
57968         * modules/printf-frexpl-tests (Depends-on): Likewise.
57969
57970 2007-03-24  Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/float+.h: New file.
57973         * lib/isnan.c: Include float+.h.
57974         (SIZE): New macro.
57975         (FUNC): Compare only SIZE bytes of the value.
57976         * lib/vasnprintf.c: Include float+.h.
57977         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57978         SIZEOF_LDBL or SIZEOF_DBL bytes.
57979         * modules/isnan-nolibm (Files): Add lib/float+.h.
57980         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57981         * modules/isnanl (Files): Add lib/float+.h.
57982         * modules/vasnprintf (Files): Add lib/float+.h.
57983
57984 2007-03-24  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57987         include isnanl-nolibm.h.
57988
57989 2007-03-24  Bruno Haible  <bruno@clisp.org>
57990
57991         * tests/test-read-file.c (main): Don't produce spurious output for
57992         expected situations. Make the test fail if it encountered unexpected
57993         results.
57994
57995 2007-03-24  Bruno Haible  <bruno@clisp.org>
57996
57997         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57998         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57999
58000 2007-03-24  Bruno Haible  <bruno@clisp.org>
58001
58002         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58003
58004 2007-03-24  Bruno Haible  <bruno@clisp.org>
58005
58006         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58007         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58008
58009         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58010         * modules/utf8-ucs4: Turn into a symbolic link to module
58011         unistr/u8-mbtouc.
58012
58013         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58014         utf8-ucs4-unsafe.
58015         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58016         unistr/u8-mbtouc-unsafe.
58017
58018         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58019         * modules/utf16-ucs4: Turn into a symbolic link to module
58020         unistr/u16-mbtouc.
58021
58022         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58023         utf16-ucs4-unsafe.
58024         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58025         unistr/u16-mbtouc-unsafe.
58026
58027         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58028         * modules/ucs4-utf8: Turn into a symbolic link to module
58029         unistr/u8-ubtomb.
58030
58031         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58032         * modules/ucs4-utf16: Turn into a symbolic link to module
58033         unistr/u16-ubtomb.
58034
58035 2007-03-24  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58038         Enable the function only if HAVE_INLINE.
58039         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58040         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58041         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58042         Enable the function only if HAVE_INLINE.
58043         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58044         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58045         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58046         Enable the function only if HAVE_INLINE.
58047         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58048         Enable the function only if HAVE_INLINE.
58049         * modules/utf8-ucs4: Update.
58050         * modules/utf8-ucs4-unsafe: Update.
58051         * modules/utf16-ucs4: Update.
58052         * modules/utf16-ucs4-unsafe: Update.
58053         * modules/ucs4-utf8: Update.
58054         * modules/ucs4-utf16: Update.
58055
58056 2007-03-24  Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/utf8-ucs4.h: Remove file.
58059         * lib/utf8-ucs4-unsafe.h: Remove file.
58060         * lib/utf16-ucs4.h: Remove file.
58061         * lib/utf16-ucs4-unsafe.h: Remove file.
58062         * lib/ucs4-utf8.h: Remove file.
58063         * lib/ucs4-utf16.h: Remove file.
58064         * lib/unistr.h: Include their previous contents.
58065         * m4/utf-ucs4.m4: Remove file.
58066         * m4/ucs4-utf.m4: Remove file.
58067         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58068         (Depends-on): Add unistr/base.
58069         (configure.ac): Remove gl_UTF_UCS4.
58070         (Makefile.am): Update.
58071         (Include): Change to unistr.h.
58072         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58073         (Depends-on): Add unistr/base.
58074         (configure.ac): Remove gl_UTF_UCS4.
58075         (Makefile.am): Update.
58076         (Include): Change to unistr.h.
58077         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58078         (Depends-on): Add unistr/base.
58079         (configure.ac): Remove gl_UTF_UCS4.
58080         (Makefile.am): Update.
58081         (Include): Change to unistr.h.
58082         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58083         (Depends-on): Add unistr/base.
58084         (configure.ac): Remove gl_UTF_UCS4.
58085         (Makefile.am): Update.
58086         (Include): Change to unistr.h.
58087         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58088         (Depends-on): Add unistr/base.
58089         (configure.ac): Remove gl_UCS4_UTF.
58090         (Makefile.am): Update.
58091         (Include): Change to unistr.h.
58092         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58093         (Depends-on): Add unistr/base.
58094         (configure.ac): Remove gl_UCS4_UTF.
58095         (Makefile.am): Update.
58096         (Include): Change to unistr.h.
58097         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58098         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58099         utf8-ucs4-unsafe.h.
58100         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58101         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58102         utf16-ucs4-unsafe.h.
58103         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58104         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58105         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58106         * lib/unistr/u8-strchr.c: Likewise.
58107         * lib/unistr/u8-strrchr.c: Likewise.
58108         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58109         * lib/unistr/u16-strchr.c: Likewise.
58110         * lib/unistr/u16-strrchr.c: Likewise.
58111         * lib/striconveh.c: Update.
58112         * lib/linebreak.c: Update.
58113
58114 2007-03-24  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58117         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58118
58119 2007-03-22  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58122
58123 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58124
58125         * MODULES.html.sh (File system functions): New module write-any-file.
58126         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58127         * m4/write-any-file.m4: New files.
58128
58129 2007-03-23  Eric Blake  <ebb9@byu.net>
58130
58131         * gnulib-tool: Rearrange space-tab sequences, since some editors
58132         like to eat them.
58133
58134 2007-03-23  Eric Blake  <ebb9@byu.net>
58135
58136         * lib/version-etc.c (version_etc_va): Update license wording to
58137         be more concise.  Recommended by Richard Stallman.
58138
58139 2007-03-22  Bruno Haible  <bruno@clisp.org>
58140
58141         * lib/poll.c (MSG_PEEK): New fallback definition.
58142
58143 2007-03-22  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58146         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58147         (main): Update.
58148         Fixes a compilation error on BeOS.
58149
58150 2007-03-22  Bruno Haible  <bruno@clisp.org>
58151
58152         * modules/frexpl-tests: New file.
58153         * tests/test-frexpl.c: New file.
58154
58155         * modules/frexpl: New file.
58156         * m4/frexpl.m4: New file.
58157         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58158         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58160         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58161         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58162         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58163
58164 2007-03-22  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/frexpl.c: Share code with lib/frexp.c.
58167         * modules/mathl (Files): Add lib/frexp.c.
58168         (Depends-on): Add isnanl-nolibm.
58169
58170 2007-03-22  Bruno Haible  <bruno@clisp.org>
58171
58172         * modules/printf-frexp (Files): Add m4/frexp.m4.
58173         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58174         only if the found frexp function actually works.
58175
58176 2007-03-22  Bruno Haible  <bruno@clisp.org>
58177
58178         * lib/frexp.c: Remove older implementation that uses divisions.
58179
58180 2007-03-21  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/frexp-tests: New file.
58183         * tests/test-frexp.c: New file.
58184
58185         * modules/frexp: New file.
58186         * lib/frexp.c: New file.
58187         * m4/frexp.m4: New file.
58188         * lib/math_.h (frexp): New declaration.
58189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58190         REPLACE_FREXP.
58191         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58192
58193 2007-03-21  Bruno Haible  <bruno@clisp.org>
58194
58195         * modules/isnanl-tests: New file.
58196         * tests/test-isnanl.c: New file.
58197
58198         * modules/isnanl: New file.
58199         * lib/isnanl.h: New file.
58200         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58201         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58202         gl_FUNC_ISNANL_WORKS.
58203         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58204         New macros.
58205
58206 2007-03-21  Bruno Haible  <bruno@clisp.org>
58207
58208         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58209         lib/isnanl.h.
58210         (Include): Update.
58211         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58212         * lib/vasnprintf.c: Update.
58213         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58214         tests/test-isnanl.h, remove tests/test-isnanl.c.
58215         (Makefile.am): Update.
58216         * tests/test-isnanl-nolibm.c: New file.
58217         * tests/test-isnanl.h: New file.
58218         * tests/test-isnanl.c: Remove file.
58219
58220 2007-03-21  Jim Meyering  <jim@meyering.net>
58221
58222         When trying to open ".", treat ESTALE like EACCES.
58223         * lib/savewd.c (savewd_save): Resort to forking not just upon
58224         failure with EACCES, but also when errno is ESTALE.
58225
58226 2007-03-20  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58229         Needed on AIX 5.1. Reported by Matthew Woehlke.
58230
58231 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         Suggestions by Bruno Haible:
58234         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58235         our own.
58236         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58237         * modules/acl (Depends-on): Add gettext.
58238
58239 2007-03-19  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/iconvme: Remove file.
58242         * lib/iconvme.h: Remove file.
58243         * lib/iconvme.c: Remove file.
58244         * m4/iconvme.m4: Remove file.
58245
58246 2007-03-19  Bruno Haible  <bruno@clisp.org>
58247
58248         * doc/relocatable-maint.texi: Break long shell script line.
58249         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58250
58251 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58252
58253         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58254         handle file_has_acl.
58255         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58256         * lib/acl.c: Move header inclusions and related macro defns into
58257         lib/acl-internal.h.
58258         (S_ISLNK): Remove defn, since that's now done for us.
58259         (file_has_acl): Move to lib/file-has-acl.c.
58260         Call acl_trivial if available.  This is the crucial part of the fix.
58261         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58262         shared within the library.  Rewrite a bit, partly to make it compatible
58263         with the GNU coding style.
58264         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58265         Remove unnecessary double-quotes.
58266         Don't test for acl_to_text; the build will catch that.
58267         Replace acl_entries if it doesn't exist and it is needed.
58268         Check for -lsec and acl_trivial (as used on Solaris 10).
58269         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58270         lib/file-has-acl.c.
58271         (Depends-on): Add sys_stat, for S_ISLNK.
58272
58273 2007-03-19  Ben Pfaff  <blp@gnu.org>
58274
58275         * doc/gnulib.texi: Fix typos.
58276         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58277
58278 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58281         If size is zero here, buf must be zero.
58282
58283 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58284
58285         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58286         <bruno@clisp.org>.
58287
58288 2007-03-18  Bruno Haible  <bruno@clisp.org>
58289
58290         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58291         Suggested by Eric Blake.
58292
58293 2007-03-18  Ben Pfaff  <blp@gnu.org>
58294
58295         * doc/relocatable.texi: Recommend using as prefix a directory
58296         that does not exist and will never be created.  Based on
58297         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58298         and others.
58299
58300 2007-03-17  Bruno Haible  <bruno@clisp.org>
58301
58302         * lib/fchownat.c: Include lchown.h.
58303
58304 2007-03-17  Bruno Haible  <bruno@clisp.org>
58305
58306         Fix endless loop when the given allocated size was > INT_MAX.
58307         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58308         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58309         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58310         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58311         * lib/sprintf.c (sprintf): Likewise.
58312
58313 2007-03-17  Bruno Haible  <bruno@clisp.org>
58314
58315         * tests/test-argp-2.sh (func_compare): Output a context diff.
58316
58317 2007-03-17  Bruno Haible  <bruno@clisp.org>
58318
58319         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58320         locale's decimal-point character.
58321
58322 2007-03-17  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58325         before comparing it. Needed because on some platforms (e.g. x86) a
58326         'long double' occupies less bytes than sizeof (long double).
58327
58328 2007-03-17  Bruno Haible  <bruno@clisp.org>
58329
58330         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58331         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58332         * tests/test-getaddrinfo.c (simple): Likewise.
58333         * tests/test-read-file.c (main): Likewise.
58334
58335 2007-03-17  Bruno Haible  <bruno@clisp.org>
58336
58337         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58338
58339 2007-03-17  Bruno Haible  <bruno@clisp.org>
58340
58341         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58342         unused variable.
58343
58344 2007-03-17  Bruno Haible  <bruno@clisp.org>
58345
58346         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58347         * tests/test-c-strncasecmp.c: Likewise.
58348
58349 2007-03-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * modules/stdlib (Depends-on): Add unistd.
58352         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58353         Needed for MacOS X 10.3.
58354
58355 2007-03-17  Bruno Haible  <bruno@clisp.org>
58356
58357         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58358
58359 2007-03-17  Bruno Haible  <bruno@clisp.org>
58360
58361         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58362
58363 2007-03-17  Bruno Haible  <bruno@clisp.org>
58364
58365         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58366         to reflect files copied from gnulib (with or without modifications).
58367         Suggested by Jim Meyering.
58368
58369 2007-03-17  Eric Blake  <ebb9@byu.net>
58370
58371         * NEWS: Document stdlib change from 2007-02-18.
58372
58373 2007-03-17  Jim Meyering  <jim@meyering.net>
58374
58375         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58376         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58377         someone uses a name containing shell meta-characters.
58378         Reported by Alfred M. Szmidt.
58379
58380         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58381
58382 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58383
58384         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58385         and copy gettext configuration files only if configure.ac contains
58386         a use of AM_GNU_GETTEXT_VERSION.
58387
58388 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58389
58390         * build-aux/bootstrap (gnulib_name): New variable.
58391         (gnulib_tool_options): Use it.
58392
58393 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58394
58395         * tests/test-des.c: Use new namespace.
58396
58397 2007-03-15  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58400         Reported by James Youngman <jay@gnu.org>.
58401
58402 2007-03-15  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58405         declared prototype. Needed with cc on OSF/1 5.1.
58406
58407 2007-03-15  Bruno Haible  <bruno@clisp.org>
58408
58409         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58410         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58411         (struct gl_list_implementation): Add dispose_fn argument to the
58412         'create_empty', 'create' methods.
58413         (struct gl_list_impl_base): Add field 'dispose_fn'.
58414         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58415         argument.
58416         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58417         dispose_fn argument.
58418         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58419         dispose_fn on the dropped values.
58420         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58421         dispose_fn argument.
58422         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58423         dropped values.
58424         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58425         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58426         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58427         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58428         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58429         argument.
58430         (gl_tree_list_free): Call dispose_fn on the dropped values.
58431         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58432         the dropped values.
58433         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58434         Add dispose_fn argument.
58435         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58436         Call dispose_fn on the dropped values.
58437         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58438         Add dispose_fn argument.
58439         (gl_sublist_create): Initialize the 'dispose_fn' field.
58440         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58441         * tests/test-array_list.c (main): Update.
58442         * tests/test-carray_list.c (main): Update.
58443         * tests/test-avltree_list.c (main): Update.
58444         * tests/test-rbtree_list.c (main): Update.
58445         * tests/test-avltreehash_list.c (main): Update.
58446         * tests/test-rbtreehash_list.c (main): Update.
58447         * tests/test-linked_list.c (main): Update.
58448         * tests/test-linkedhash_list.c (main): Update.
58449         * tests/test-array_oset.c (main): Update.
58450
58451 2007-03-15  Bruno Haible  <bruno@clisp.org>
58452
58453         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58454         (gl_oset_create_empty): Add dispose_fn argument.
58455         (struct gl_oset_implementation): Add dispose_fn argument to
58456         'create_empty' method.
58457         (struct gl_oset_impl_base): Add dispose_fn field.
58458         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58459         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58460         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58461         values.
58462         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58463         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58464         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58465         dropped value.
58466         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58467         dropped value.
58468         * tests/test-array_oset.c (main): Update.
58469         * tests/test-avltree_oset.c (main): Update.
58470         * tests/test-rbtree_oset.c (main): Update.
58471         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58472
58473 2007-03-13  Bruno Haible  <bruno@clisp.org>
58474
58475         * tests/test-stdbool.c (i): Update after last patch.
58476
58477 2007-03-12  Bruno Haible  <bruno@clisp.org>
58478
58479         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58480         the iswprint macro. Needed on Solaris 2.5.1.
58481
58482 2007-03-12  Bruno Haible  <bruno@clisp.org>
58483
58484         * tests/test-printf-frexp.c (main): Declare x as volatile.
58485
58486 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58487
58488         * doc/gnulib.texi (Build robot for gnulib): New section.
58489
58490 2007-03-12  Jim Meyering  <jim@meyering.net>
58491
58492         * build-aux/bootstrap: New file.
58493         * build-aux/bootstrap.conf: New file, from coreutils.
58494
58495 2007-03-11  Bruno Haible  <bruno@clisp.org>
58496
58497         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58498
58499 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58500
58501         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58502         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58503         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58504
58505 2007-03-11  Bruno Haible  <bruno@clisp.org>
58506
58507         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58508         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58509
58510 2007-03-11  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58513         formula. Needed for SunPRO C 5.0.
58514
58515 2007-03-11  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/long-options (Depends-on): Add getopt.
58518
58519 2007-03-11  Bruno Haible  <bruno@clisp.org>
58520
58521         * modules/modechange (Depends-on): Add stdbool.
58522
58523 2007-03-11  Bruno Haible  <bruno@clisp.org>
58524
58525         * modules/i-ring (Depends-on): Add stdbool.
58526
58527 2007-03-11  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/gc-des (Depends-on): Add stdbool.
58530
58531 2007-03-11  Bruno Haible  <bruno@clisp.org>
58532
58533         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58534
58535 2007-03-11  Bruno Haible  <bruno@clisp.org>
58536
58537         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58538
58539 2007-03-11  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58542
58543 2007-03-11  Bruno Haible  <bruno@clisp.org>
58544
58545         * lib/vasnprintf.c (sprintf): Undefine.
58546
58547 2007-03-11  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58550         initializers in SunPRO C and Compaq C compilers.
58551
58552 2007-03-11  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58555         decrementing code ANSI C compliant.
58556
58557 2007-03-11  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58560         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58561
58562 2007-03-11  Bruno Haible  <bruno@clisp.org>
58563
58564         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58565         <stdbool.h> substitute doesn't pass.
58566
58567 2007-03-11  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58570
58571 2007-03-11  Bruno Haible  <bruno@clisp.org>
58572
58573         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58574         script, for submission to autobuild.josefsson.org.
58575
58576 2007-03-10  Bruno Haible  <bruno@clisp.org>
58577
58578         * modules/canonicalize-lgpl-tests: New file.
58579         * tests/test-canonicalize-lgpl.sh: New file.
58580         * tests/test-canonicalize-lgpl.c: New file.
58581
58582         * modules/c-strcase-tests: New file.
58583         * tests/test-c-strcase.sh: New file.
58584         * tests/test-c-strcasecmp.c: New file.
58585         * tests/test-c-strncasecmp.c: New file.
58586
58587         * modules/atexit-tests: New file.
58588         * tests/test-atexit.sh: New file.
58589         * tests/test-atexit.c: New file.
58590
58591 2007-03-10  Bruno Haible  <bruno@clisp.org>
58592
58593         * tests/test-binary-io.sh: Use temporary filenames that are not so
58594         likely to clash with those of other tests (in a parallel make).
58595         * tests/test-binary-io.c: Likewise.
58596
58597 2007-03-10  Bruno Haible  <bruno@clisp.org>
58598
58599         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58600         fallback; use #error instead.
58601         Suggested by Simon Josefsson.
58602
58603 2007-03-10  Bruno Haible  <bruno@clisp.org>
58604
58605         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58606         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58607         first and the last.
58608
58609 2007-03-10  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58612
58613 2007-03-10  Bruno Haible  <bruno@clisp.org>
58614
58615         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58616         "make distcheck".
58617         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58618         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58619         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58620
58621 2007-03-10  Bruno Haible  <bruno@clisp.org>
58622
58623         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58624         variable.
58625         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58626         variable.
58627
58628 2007-03-09  Eric Blake  <ebb9@byu.net>
58629         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58630
58631         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58632         types are not being provided by gnulib.
58633         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58634         types are supported.
58635
58636 2007-03-10  Bruno Haible  <bruno@clisp.org>
58637
58638         * lib/stdio_.h (__attribute__): New macro.
58639         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58640         vsprintf): Specify __attribute__ __format__ for GCC.
58641         Suggested by Eric Blake.
58642
58643 2007-03-09  Bruno Haible  <bruno@clisp.org>
58644
58645         * modules/printf-posix-tests: New file.
58646         * tests/test-printf-posix.sh: New file.
58647         * tests/test-printf-posix.c: New file.
58648
58649         * modules/printf-posix: New file.
58650         * lib/printf.c: New file.
58651         * m4/printf-posix-rpl.m4: New file.
58652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58653         REPLACE_PRINTF.
58654         * lib/stdio_.h (printf): New declaration.
58655         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58656         ____strfmon____): New macros.
58657         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58658         REPLACE_PRINTF.
58659
58660 2007-03-09  Bruno Haible  <bruno@clisp.org>
58661
58662         * tests/test-vasnprintf-posix2.sh: New file.
58663         * tests/test-vasnprintf-posix2.c: New file.
58664         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58665         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58666         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58667
58668         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58669         a locale dependent decimal point, rather than always '.'.
58670
58671 2007-03-09  Eric Blake  <ebb9@byu.net>
58672
58673         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58674         spite of platforms like Tandem/NSK that define it to -1.
58675
58676 2007-03-08  Bruno Haible  <bruno@clisp.org>
58677
58678         * modules/vprintf-posix-tests: New file.
58679         * tests/test-vprintf-posix.sh: New file.
58680         * tests/test-vprintf-posix.c: New file.
58681         * tests/test-printf-posix.h: New file.
58682
58683         * modules/vprintf-posix: New file.
58684         * lib/vprintf.c: New file.
58685         * m4/vprintf-posix.m4: New file.
58686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58687         REPLACE_VPRINTF.
58688         * lib/stdio_.h (vprintf): New declaration.
58689         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58690         REPLACE_VPRINTF.
58691
58692 2007-03-08  Bruno Haible  <bruno@clisp.org>
58693
58694         * modules/fprintf-posix-tests: New file.
58695         * tests/test-fprintf-posix.sh: New file.
58696         * tests/test-fprintf-posix.c: New file.
58697
58698         * modules/fprintf-posix: New file.
58699         * lib/fprintf.c: New file.
58700         * m4/fprintf-posix.m4: New file.
58701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58702         REPLACE_FPRINTF.
58703         * lib/stdio_.h (fprintf): New declaration.
58704         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58705         REPLACE_FPRINTF.
58706
58707 2007-03-08  Bruno Haible  <bruno@clisp.org>
58708
58709         * modules/vfprintf-posix-tests: New file.
58710         * tests/test-vfprintf-posix.sh: New file.
58711         * tests/test-vfprintf-posix.c: New file.
58712         * tests/test-fprintf-posix.h: New file.
58713         * tests/test-fprintf-posix.out: New file.
58714
58715         * modules/vfprintf-posix: New file.
58716         * lib/vfprintf.c: New file.
58717         * m4/vfprintf-posix.m4: New file.
58718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58719         REPLACE_VFPRINTF.
58720         * lib/stdio_.h (vfprintf): New declaration.
58721         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58722         REPLACE_VFPRINTF.
58723
58724 2007-03-08  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58727
58728 2007-03-08  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58731         instead of 'expr' invocations.
58732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58737         Suggested by Paul Eggert.
58738
58739 2007-03-08  Bruno Haible  <bruno@clisp.org>
58740
58741         * modules/fseterr-tests: New file.
58742         * tests/test-fseterr.c: New file.
58743
58744         * modules/fseterr: New file.
58745         * lib/fseterr.h: New file.
58746         * lib/fseterr.c: New file.
58747
58748 2007-03-08  Bruno Haible  <bruno@clisp.org>
58749
58750         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58751         * lib/getopt_.h: Likewise.
58752         * lib/mbswidth.h: Likewise.
58753         * lib/setenv.h: Likewise.
58754         * lib/vasnprintf.h: Likewise.
58755         * lib/vasprintf.h: Likewise.
58756         * lib/verror.h: Likewise.
58757         * lib/xsetenv.h: Likewise.
58758         * lib/xvasprintf.h: Likewise.
58759
58760 2007-03-08  Jim Meyering  <jim@meyering.net>
58761
58762         * users.txt: Add parted.
58763
58764         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58765
58766 2007-03-07  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/printf.m4: Make the shell script snippets copy&pastable.
58769
58770 2007-03-02  Bruno Haible  <bruno@clisp.org>
58771
58772         * lib/netinet_in_.h: New file.
58773         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58774         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58775         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58776         (Depends-on): Add absolute-header.
58777         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58778         into netinet/in.h.
58779
58780 2007-03-03  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/sys_select_.h: New file.
58783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58784         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58785         * modules/sys_select (Files): Add lib/sys_select_.h.
58786         (Depends-on): Add absolute-header.
58787         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58788         into sys/select.h.
58789
58790 2007-03-02  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58793         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58794         values.
58795         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58796         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58797         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58798         * modules/sys_socket (Depends-on): Add absolute-header.
58799         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58800         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58801         (Include): Remove requirement of inclusion of <sys/types.h>.
58802
58803 2007-03-02  Bruno Haible  <bruno@clisp.org>
58804
58805         * lib/byteswap_.h (bswap_32): Fix formula.
58806
58807 2007-03-06  Bruno Haible  <bruno@clisp.org>
58808
58809         * modules/sprintf-posix-tests: New file.
58810         * tests/test-sprintf-posix.c: New file.
58811
58812         * modules/sprintf-posix: New file.
58813         * lib/sprintf.c: New file.
58814         * m4/sprintf-posix.m4: New file.
58815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58816         REPLACE_SPRINTF.
58817         * lib/stdio_.h (sprintf): New declaration.
58818         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58819         REPLACE_SPRINTF.
58820
58821 2007-03-06  Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/vsprintf-posix-tests: New file.
58824         * tests/test-vsprintf-posix.c: New file.
58825         * tests/test-sprintf-posix.h: New file.
58826
58827         * modules/vsprintf-posix: New file.
58828         * lib/vsprintf.c: New file.
58829         * m4/vsprintf-posix.m4: New file.
58830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58831         REPLACE_VSPRINTF.
58832         * lib/stdio_.h (vsprintf): New declaration.
58833         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58834         REPLACE_VSPRINTF.
58835
58836 2007-03-06  Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/vsnprintf (Depend-on): Remove minmax.
58839
58840 2007-03-06  Bruno Haible  <bruno@clisp.org>
58841
58842         * modules/snprintf-posix-tests: New file.
58843         * tests/test-snprintf-posix.c: New file.
58844
58845         * modules/snprintf-posix: New file.
58846         * m4/snprintf-posix.m4: New file.
58847         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58848         gl_FUNC_SNPRINTF.
58849         (gl_FUNC_SNPRINTF): Invoke it.
58850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58851         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58852         is set.
58853         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58854
58855 2007-03-06  Bruno Haible  <bruno@clisp.org>
58856
58857         * modules/vsnprintf-posix-tests: New file.
58858         * tests/test-vsnprintf-posix.c: New file.
58859         * tests/test-snprintf-posix.h: New file.
58860
58861         * modules/vsnprintf-posix: New file.
58862         * m4/vsnprintf-posix.m4: New file.
58863         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58864         gl_FUNC_VSNPRINTF.
58865         (gl_FUNC_VSNPRINTF): Invoke it.
58866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58867         * lib/stdio_.h (vsnprintf): Define as a replacement if
58868         REPLACE_VSNPRINTF is set.
58869         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58870
58871 2007-03-06  Bruno Haible  <bruno@clisp.org>
58872
58873         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58875
58876 2007-03-06  Bruno Haible  <bruno@clisp.org>
58877
58878         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58879         (asinl): Declare also if HAVE_DECL_ASINL is set.
58880         (atanl): Declare also if HAVE_DECL_ATANL is set.
58881         (ceill): Declare also if HAVE_DECL_CEILL is set.
58882         (cosl): Declare also if HAVE_DECL_COSL is set.
58883         (expl): Declare also if HAVE_DECL_EXPL is set.
58884         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58885         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58886         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58887         (logl): Declare also if HAVE_DECL_LOGL is set.
58888         (sinl): Declare also if HAVE_DECL_SINL is set.
58889         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58890         (tanl): Declare also if HAVE_DECL_TANL is set.
58891         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58893         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58894         declaration of frexpl, ldexpl.
58895         * modules/printf-frexpl (Depends-on): Add math.
58896         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58897
58898 2007-03-05  Bruno Haible  <bruno@clisp.org>
58899
58900         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58901         frexpl and ldexpl are declared.
58902         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58903
58904 2007-03-05  Bruno Haible  <bruno@clisp.org>
58905
58906         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58907         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58908
58909 2007-03-05  Bruno Haible  <bruno@clisp.org>
58910
58911         * lib/stdio_.h: Include <stddef.h>.
58912
58913 2007-03-05  Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58916
58917 2007-03-05  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58920         NetBSD 4, from Ralf Wildenhues.
58921
58922 2007-03-04  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/vasprintf.h: Update #if logic for the case when the functions
58925         exist but are overridden.
58926
58927 2007-03-04  Bruno Haible  <bruno@clisp.org>
58928
58929         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58930         implementations: glibc-2.4 and MacOS X 10.3.
58931         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58932         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58933         * tests/test-vasprintf-posix.c (test_function): Likewise.
58934
58935 2007-03-04  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/vasprintf-posix-tests: New file.
58938         * tests/test-vasprintf-posix.c: New file.
58939
58940         * modules/vasprintf-posix: New file.
58941         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58942         defined.
58943         * m4/vasprintf-posix.m4: New file.
58944         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58945         gl_FUNC_VASPRINTF.
58946         (gl_FUNC_VASPRINTF): Invoke it.
58947         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58948         here.
58949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58950
58951 2007-03-04  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58954         REPLACE_GETTIMEOFDAY.
58955         * modules/sys_time (Makefile.am): Likewise.
58956         * m4/sys_time_h.m4: Likewise.
58957         * m4/gettimeofday.m4: Likewise.
58958
58959 2007-03-04  Bruno Haible  <bruno@clisp.org>
58960
58961         * modules/vasnprintf-posix-tests: New file.
58962         * tests/test-vasnprintf-posix.c: New file.
58963
58964         * modules/vasnprintf-posix: New file.
58965         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58966         printf-frexpl.h.
58967         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58968         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58969         REPLACE_VASNPRINTF is defined.
58970         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58971         gl_FUNC_VASNPRINTF.
58972         (gl_FUNC_VASNPRINTF): Invoke it.
58973         * m4/vasnprintf-posix.m4: New file.
58974         * m4/printf.m4: New file.
58975
58976 2007-03-04  Bruno Haible  <bruno@clisp.org>
58977
58978         Compile progreloc.c only if --enable-relocatable is specified.
58979         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58980         if --enable-relocatable was specified.
58981         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58982         lib_SOURCES.
58983
58984 2007-03-04  Jim Meyering  <jim@meyering.net>
58985
58986         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58987         Use it consistently, rather than enumerating errno constants.
58988
58989 2007-03-04  Bruno Haible  <bruno@clisp.org>
58990
58991         * modules/xvasprintf-tests: New file.
58992         * tests/test-xvasprintf.c: New file.
58993
58994         * modules/vasprintf-tests: New file.
58995         * tests/test-vasprintf.c: New file.
58996
58997         * modules/vasnprintf-tests: New file.
58998         * tests/test-vasnprintf.c: New file.
58999
59000         * modules/vsnprintf-tests: New file.
59001         * tests/test-vsnprintf.c: New file.
59002
59003         * modules/snprintf-tests: New file.
59004         * tests/test-snprintf.c: New file.
59005
59006 2007-03-04  Bruno Haible  <bruno@clisp.org>
59007
59008         Compile relocatable.c only if --enable-relocatable is specified.
59009         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59010         gl_RELOCATABLE_LIBRARY.
59011         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59012         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59013         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59014         gl_RELOCATABLE_LIBRARY.
59015         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59016         (Makefile.am): Remove lib_SOURCES.
59017         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59018         gl_RELOCATABLE_LIBRARY.
59019         (Makefile.am): Remove lib_SOURCES.
59020         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59021         always.
59022         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59023         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59024
59025 2007-03-04  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/argmatch-tests: New file.
59028         * tests/test-argmatch.c: New file.
59029
59030         * tests/test-allocsa.c (main): Halve the number of loop runs.
59031
59032         * modules/alloca-opt-tests: New file.
59033         * tests/test-alloca-opt.c: New file.
59034
59035 2007-03-04  Jim Meyering  <jim@meyering.net>
59036
59037         Work around difference between Linux ACLs and Solaris 10 ZFS.
59038         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59039         for EINVAL.
59040
59041 2007-03-03  Bruno Haible  <bruno@clisp.org>
59042
59043         * modules/relocatable-prog (Depends-on): Add back progreloc's
59044         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59045
59046 2007-03-03  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59049         * modules/relocatable-lib: New file.
59050
59051 2007-03-03  Bruno Haible  <bruno@clisp.org>
59052
59053         * modules/relocatable-prog: Renamed from modules/relocatable.
59054         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59055
59056 2007-03-03  Bruno Haible  <bruno@clisp.org>
59057
59058         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59059         m4/relocatable-lib.m4.
59060         (Depends-on): Remove 'relocatable'.
59061         (configure.ac): Add gl_RELOCATABLE_NOP.
59062
59063 2007-03-03  Bruno Haible  <bruno@clisp.org>
59064
59065         * modules/relocatable-prog-wrapper: New file.
59066         * modules/relocatable (Depends-on): Add it. Remove all other
59067         dependencies except progname.
59068         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59069
59070         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59071         (gl_FUNC_STRERROR): Nop.
59072         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59073
59074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59075         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59076
59077         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59078         (gl_FUNC_READLINK): Update.
59079
59080         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59081
59082 2007-03-03  Bruno Haible  <bruno@clisp.org>
59083
59084         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59085         * modules/xreadlink (Depends-on): Add unistd.
59086         * modules/xreadlink-with-size (Depends-on): Likewise.
59087
59088 2007-03-03  Bruno Haible  <bruno@clisp.org>
59089
59090         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59091         extracted from gt_FUNC_SETENV.
59092         (gt_FUNC_SETENV): Remove macro.
59093         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59094         remove gt_FUNC_SETENV.
59095
59096 2007-03-03  Bruno Haible  <bruno@clisp.org>
59097
59098         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59099         ENABLE_RELOCATABLE here.
59100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59101
59102 2007-03-03  Bruno Haible  <bruno@clisp.org>
59103
59104         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59105         * tests/test-rbtreehash_list.c: Include progname.h.
59106         (main): Call set_program_name.
59107
59108         * modules/rbtree-oset-tests (Depends-on): Add progname.
59109         * tests/test-rbtree_oset.c: Include progname.h.
59110         (main): Call set_program_name.
59111
59112         * modules/rbtree-list-tests (Depends-on): Add progname.
59113         * tests/test-rbtree_list.c: Include progname.h.
59114         (main): Call set_program_name.
59115
59116         * modules/linked-list-tests (Depends-on): Add progname.
59117         * tests/test-linked_list.c: Include progname.h.
59118         (main): Call set_program_name.
59119
59120 2007-03-03  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59123         All uses of __restrict changed to _Restrict_.
59124         * lib/glob_.h (__restrict): Remove macro.
59125
59126 2007-03-02  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/gettext (configure.ac): Require gettext infrastructure
59129         from version 0.16.1.
59130
59131 2007-03-02  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/linkedhash-list-tests (Depends-on): Add progname.
59134         * tests/test-linkedhash_list.c: Include progname.h.
59135         (main): Call set_program_name.
59136
59137         * modules/carray-list-tests (Depends-on): Add progname.
59138         * tests/test-carray_list.c: Include progname.h.
59139         (main): Call set_program_name.
59140
59141         * modules/avltreehash-list-tests (Depends-on): Add progname.
59142         * tests/test-avltreehash_list.c: Include progname.h.
59143         (main): Call set_program_name.
59144
59145         * modules/avltree-oset-tests (Depends-on): Add progname.
59146         * tests/test-avltree_oset.c: Include progname.h.
59147         (main): Call set_program_name.
59148
59149         * modules/avltree-list-tests (Depends-on): Add progname.
59150         * tests/test-avltree_list.c: Include progname.h.
59151         (main): Call set_program_name.
59152
59153         * modules/array-oset-tests (Depends-on): Add progname.
59154         * tests/test-array_oset.c: Include progname.h.
59155         (main): Call set_program_name.
59156
59157         * modules/array-list-tests (Depends-on): Add progname.
59158         * tests/test-array_list.c: Include progname.h.
59159         (main): Call set_program_name.
59160
59161         * modules/argp-tests (Depends-on): Add progname.
59162         * tests/test-argp.c: Include argp.h first. Include progname.h.
59163         (main): Call set_program_name.
59164
59165 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59166
59167         * doc/gnulib-tool.texi (Initial import): Reword description of
59168         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59169         limited effect even if defined after the first system include.
59170
59171 2007-03-01  Bruno Haible  <bruno@clisp.org>
59172
59173         * build-aux/config.libpath: Update to libtool-1.5.22.
59174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59175
59176 2007-03-01  Bruno Haible  <bruno@clisp.org>
59177
59178         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59179         foo_CFLAGS.
59180         Reported by Ralf Wildenhues.
59181
59182 2007-03-01  Bruno Haible  <bruno@clisp.org>
59183
59184         * build-aux/install-reloc: Remove object files left over by some
59185         compilers.
59186         Reported by Ralf Wildenhues.
59187
59188 2007-03-01  Bruno Haible  <bruno@clisp.org>
59189
59190         * build-aux/install-reloc: Break long lines.
59191
59192 2007-03-01  Bruno Haible  <bruno@clisp.org>
59193
59194         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59195         Reported by Ralf Wildenhues.
59196
59197 2007-03-01  Bruno Haible  <bruno@clisp.org>
59198
59199         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59200         include ordering constraints.
59201
59202 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59203
59204         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59206         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59207         as another example.
59208         * lib/time_.h: Fix misspelling.
59209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59210         Require gl_HEADER_TIME_H_DEFAULTS.
59211         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59212         * m4/time_r.m4 (gl_TIME_R): Likewise.
59213         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59214
59215 2007-03-01  Bruno Haible  <bruno@clisp.org>
59216
59217         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59218         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59219
59220 2007-03-01  Jim Meyering  <jim@meyering.net>
59221
59222         * modules/xreadlink (Maintainer): Add my name.
59223         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59224
59225 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59226             Bruno Haible  <bruno@clisp.org>
59227
59228         * build-aux/install-reloc: Compile also c-ctype.c.
59229         * build-aux/relocatable.sh.in: New file.
59230         * doc/relocatable.texi: New file.
59231         * doc/relocatable-maint.texi: New file.
59232         * doc/gnulib.texi: Include relocatable-maint.texi.
59233         * lib/progreloc.c: Include unistd.h unconditionally.
59234         * lib/relocwrapper.c: Include unistd.h unconditionally.
59235         Include c-ctype.h.
59236         (add_dotbin): Use c_tolower.
59237         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59238         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59239         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59240         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59241         to m4/relocatable-lib.m4.
59242         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59243         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59244         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59245         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59246         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59247         * modules/relocatable: New file.
59248         * modules/relocatable-lib: New file.
59249         * modules/relocatable-script: New file.
59250
59251 2007-02-28  Bruno Haible  <bruno@clisp.org>
59252
59253         Import --enable-relocatable infrastructure.
59254         * build-aux/config.libpath: New file, from GNU gettext.
59255         * build-aux/install-reloc: New file, from GNU gettext.
59256         * build-aux/reloc-ldflags: New file, from GNU gettext.
59257         * lib/relocatable.h: New file, from GNU gettext.
59258         * lib/relocatable.c: New file, from GNU gettext.
59259         * lib/relocwrapper.c: New file, from GNU gettext.
59260         * m4/relocatable.m4: New file, from GNU gettext.
59261
59262 2007-02-28  Bruno Haible  <bruno@clisp.org>
59263
59264         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59265
59266         * modules/xreadlink: New file, from GNU gettext with modifications.
59267         * lib/xreadlink.c: New file, from GNU gettext.
59268         * lib/xreadlink.h: Add comments.
59269         (xreadlink): New declaration.
59270
59271         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59272         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59273         lib/xreadlink-with-size.c.
59274         (configure.ac): Remove gl_XREADLINK invocation.
59275         (Makefile.am): Augment lib_SOURCES.
59276         * m4/xreadlink.m4: Remove file.
59277         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59278         (xreadlink_with_size): Renamed from xreadink.
59279         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59280         * modules/canonicalize (Depends-on): Replace xreadlink with
59281         xreadlink-with-size.
59282         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59283
59284 2007-02-25  Jim Meyering  <jim@meyering.net>
59285
59286         * build-aux/announce-gen: When complaining about excess arguments,
59287         list them.
59288
59289 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         * README: Document signed integer overflow situation more
59292         accurately.
59293
59294 2007-02-25  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59297         'a' or 'A' conversion.
59298
59299 2007-02-25  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/filename: Renamed from modules/pathname.
59302         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59303         lib/concatpath.c with lib/concat-filename.c.
59304         (Makefile.am): Update.
59305         (Include): Replace pathname.h with filename.h.
59306         * lib/filename.h: Renamed from lib/pathname.h.
59307         (concatenated_filename): Renamed from concatenated_pathname.
59308         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59309         (concatenated_filename): Renamed from concatenated_pathname.
59310         * lib/findprog.c: Include filename.h instead of pathname.h.
59311         (find_in_path): Update.
59312         * lib/javacomp.c: Include filename.h instead of pathname.h.
59313         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59314         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59315         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59316         is_oldgcj_14_13_usable, is_javac_usable): Update.
59317         * lib/javaexec.c: Include filename.h instead of pathname.h.
59318         (execute_java_class): Update.
59319         * modules/findprog: Update.
59320         * modules/javacomp: Update.
59321         * modules/javaexec: Update.
59322         * MODULES.html.sh (File system functions): Add 'filename', remove
59323         'pathname'.
59324
59325 2007-02-25  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/printf-frexpl-tests: New file.
59328         * tests/test-printf-frexpl.c: New file.
59329
59330         * modules/printf-frexpl: New file.
59331         * lib/printf-frexpl.h: New file.
59332         * lib/printf-frexpl.c: New file.
59333         * m4/printf-frexpl.m4: New file.
59334
59335 2007-02-25  Bruno Haible  <bruno@clisp.org>
59336
59337         * modules/printf-frexp-tests: New file.
59338         * tests/test-printf-frexp.c: New file.
59339
59340         * modules/printf-frexp: New file.
59341         * lib/printf-frexp.h: New file.
59342         * lib/printf-frexp.c: New file.
59343         * m4/printf-frexp.m4: New file.
59344
59345 2007-02-25  Bruno Haible  <bruno@clisp.org>
59346
59347         Assume automake >= 1.10 for the tests.
59348         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59349         * modules/arctwo-tests: Likewise.
59350         * modules/argp-tests: Likewise.
59351         * modules/avltree-list-tests: Likewise.
59352         * modules/avltree-oset-tests: Likewise.
59353         * modules/avltreehash-list-tests: Likewise.
59354         * modules/carray-list-tests: Likewise.
59355         * modules/crc-tests: Likewise.
59356         * modules/des-tests: Likewise.
59357         * modules/gc-arcfour-tests: Likewise.
59358         * modules/gc-arctwo-tests: Likewise.
59359         * modules/gc-des-tests: Likewise.
59360         * modules/gc-hmac-md5-tests: Likewise.
59361         * modules/gc-hmac-sha1-tests: Likewise.
59362         * modules/gc-md2-tests: Likewise.
59363         * modules/gc-md4-tests: Likewise.
59364         * modules/gc-md5-tests: Likewise.
59365         * modules/gc-pbkdf2-sha1-tests: Likewise.
59366         * modules/gc-rijndael-tests: Likewise.
59367         * modules/gc-sha1-tests: Likewise.
59368         * modules/gc-tests: Likewise.
59369         * modules/getaddrinfo-tests: Likewise.
59370         * modules/hmac-md5-tests: Likewise.
59371         * modules/hmac-sha1-tests: Likewise.
59372         * modules/linked-list-tests: Likewise.
59373         * modules/linkedhash-list-tests: Likewise.
59374         * modules/lock-tests: Likewise.
59375         * modules/md2-tests: Likewise.
59376         * modules/md4-tests: Likewise.
59377         * modules/md5-tests: Likewise.
59378         * modules/rbtree-list-tests: Likewise.
59379         * modules/rbtree-oset-tests: Likewise.
59380         * modules/rbtreehash-list-tests: Likewise.
59381         * modules/read-file-tests: Likewise.
59382         * modules/rijndael-tests: Likewise.
59383         * modules/stdint-tests: Likewise.
59384         * modules/tls-tests: Likewise.
59385
59386 2007-02-24  Bruno Haible  <bruno@clisp.org>
59387
59388         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59389         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59390         function; instead check whether isnan with a double argument links.
59391         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59392         function; instead check whether isnan with a 'long double' argument
59393         links.
59394         Reported by Eric Blake <ebb9@byu.net>.
59395
59396 2007-02-24  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59399         defined.
59400         * lib/isnanl.c: Remove all code. Just include isnan.c.
59401         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59402
59403 2007-02-25  Jim Meyering  <jim@meyering.net>
59404
59405         Avoid conflicting types for 'unsetenv' on FreeBSD.
59406         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59407         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59408         in stdlib.h.
59409
59410 2007-02-24  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/isnanl-nolibm-tests: New file.
59413         * tests/test-isnanl.c: New file.
59414
59415         * modules/isnanl-nolibm: New file.
59416         * lib/isnanl.h: New file.
59417         * lib/isnanl.c: New file.
59418         * m4/isnanl.m4: New file.
59419
59420 2007-02-24  Bruno Haible  <bruno@clisp.org>
59421
59422         * modules/isnan-nolibm-tests: New file.
59423         * tests/test-isnan.c: New file.
59424
59425         * modules/isnan-nolibm: New file.
59426         * lib/isnan.h: New file.
59427         * lib/isnan.c: New file.
59428         * m4/isnan.m4: New file.
59429
59430 2007-02-24  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59433         assume that an exponent fits in 20 bits.
59434
59435 2007-02-24  Jim Meyering  <jim@meyering.net>
59436
59437         * m4/regex.m4: Update the description of the configure-time option,
59438         --without-included-regex, to state accurately what the defaults are,
59439         and perhaps to give people an idea why using this option is risky.
59440
59441 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59444         loops on small arguments.  This attempts to avoid the problem
59445         Bruno Haible reported for AIX 4.3.2 in
59446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59447
59448 2007-02-23  Bruno Haible  <bruno@clisp.org>
59449
59450         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59451         Needed for help2man.
59452
59453 2007-02-23  Karl Berry  <karl@gnu.org>
59454
59455         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59456         exists, foo.h should be cvs-ignored, not committed.
59457
59458 2007-02-23  Eric Blake  <ebb9@byu.net>
59459
59460         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59461         * lib/stat-time.h (includes): Likewise.
59462         * lib/utimecmp.c (includes): Likewise.
59463         * lib/utimens.h (includes): Likewise.
59464         * lib/getdate.y (includes): Also include "timespec.h" for use
59465         internal to the module.
59466         * modules/utimens (Depends-on): Revert yesterday's patch.
59467         * modules/nanosleep (Depends-on): Add missing dependency.
59468
59469 2007-02-22  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/glob.c: Don't include getlogin_r.h.
59472
59473 2007-02-22  Jim Meyering  <jim@meyering.net>
59474
59475         * modules/utimens (Depends-on): Add timespec, required for
59476         utimens.h's inclusion of timespec.h.
59477
59478 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59479
59480         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59481         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59482         Schwab in
59483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59484         I'll try to think of a better way to fix the Solaris problem.
59485
59486         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59487         like glibc; on Solaris 10, it fails with errno == EINVAL.
59488         POSIX says the behavior is unspecified if the first argument is NULL,
59489         so play it safe and never pass NULL to the system getcwd.
59490
59491 2007-02-21  Jim Meyering  <jim@meyering.net>
59492
59493         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59494         of gettimeofday.  It would conflict with the one now always
59495         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59496         an IRIX 6.5 build failure.
59497
59498 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59499
59500         Minor fixups to port to Solaris 10 with Sun C 5.8.
59501         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59502         * modules/getcwd (Depends-on): Add dirfd.
59503         * lib/putenv.c (putenv): #undef it.
59504         (rpl_putenv): New decl.
59505         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59506
59507 2007-02-20  Bruno Haible  <bruno@clisp.org>
59508
59509         * modules/stdio-tests: New file.
59510         * tests/test-stdio.c: New file.
59511
59512         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59513         (Depends-on): Add stdio.
59514         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59515         (Include): Use <stdio.h> instead of vsnprintf.h.
59516         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59517         HAVE_DECL_VSNPRINTF.
59518         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59519
59520         * modules/snprintf (Files): Remove lib/snprintf.h.
59521         (Depends-on): Add stdio.
59522         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59523         (Include): Use <stdio.h> instead of snprintf.h.
59524         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59525         HAVE_DECL_SNPRINTF.
59526         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59527         * lib/getaddrinfo.c: Likewise.
59528
59529         * modules/stdio: New file.
59530         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59531         * lib/snprintf.h: Remove file.
59532         * lib/vsnprintf.h: Remove file.
59533         * lib/.cppi-disable: Remove snprintf.h.
59534         * m4/stdio_h.m4: New file.
59535         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59536
59537 2007-02-20  Jim Meyering  <jim@meyering.net>
59538
59539         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59540         used by e.g., mingw.  From Bruno Haible.
59541
59542 2007-02-19  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59545         warnings.
59546         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59547
59548 2007-02-19  Bruno Haible  <bruno@clisp.org>
59549
59550         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59551         from mingw users.
59552
59553 2007-02-19  Bruno Haible  <bruno@clisp.org>
59554
59555         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59556         warnings.
59557         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59558
59559 2007-02-19  Jim Meyering  <jim@meyering.net>
59560
59561         Don't use FD after a successful "fdopendir (fd)".
59562         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59563         Reset it by calling dirfd on the just-obtained DIR*.
59564
59565         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59566         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59567
59568 2007-02-18  Bruno Haible  <bruno@clisp.org>
59569
59570         * lib/readlink.c: Include <unistd.h>.
59571         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59572         HAVE_READLINK.
59573         * modules/readlink (Depends-on): Add unistd.
59574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59575         (Include): Add <unistd.h>.
59576
59577         * lib/getlogin_r.h: Remove file.
59578         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59579         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59580         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59581         HAVE_DECL_GETLOGIN_R.
59582         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59584         (Include): Use <unistd.h> instead of getlogin_r.h.
59585
59586         * lib/getcwd.h: Remove file.
59587         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59588         * lib/xgetcwd.c: Likewise.
59589         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59590         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59591         * modules/getcwd (Files): Remove lib/getcwd.h.
59592         (Depends-on): Add unistd.
59593         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59594         (Include): Use <unistd.h> instad of getcwd.h.
59595
59596         * lib/ftruncate.c: Include <unistd.h> first.
59597         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59598         Set HAVE_FTRUNCATE.
59599         * modules/ftruncate (Depends-on): Add unistd.
59600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59601
59602         * lib/fchdir.c: Include <unistd.h> first.
59603         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59605         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59606         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59607         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59608
59609         * lib/dup2.c: Include <unistd.h> first.
59610         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59611         HAVE_DUP2.
59612         * modules/dup2 (Depends-on): Add unistd.
59613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59614
59615         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59616         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59617         REPLACE_CHOWN. Don't define chown as a macro here.
59618         * modules/chown (Depends-on): Add unistd.
59619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59620
59621         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59622         Add definition for GL_LINK_WARNING.
59623         (chown, dup2): New declarations.
59624         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59625         link warning.
59626         (ftruncate): New declaration.
59627         (getcwd): New declaration, taken from old getcwd.h.
59628         (getlogin_r): New declaration, taken from old getlogin_r.h.
59629         (readlink): New declaration.
59630         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59631         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59632         (gl_PREREQ_UNISTD): Remove macro.
59633         (gl_UNISTD_MODULE_INDICATOR): New macro.
59634         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59635         many new variables. Don't set UNISTD_H.
59636         * modules/unistd (Description): Change.
59637         (Depends-on): Add link-warning.
59638         (configure.ac): Update.
59639         (Makefile.am): Create unistd.h always. Substitute many new variables
59640         into it.
59641
59642 2007-02-18  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59645         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59646         HAVE_GETSUBOPT.
59647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59648         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59649         * lib/getsubopt.h: Remove file.
59650         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59651         (Depends-on): Add stdlib.
59652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59653         (Includes): Use <stdlib.h> instead of getsubopt.h.
59654         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59655         Set HAVE_GETSUBOPT.
59656         * lib/getsubopt.c: Don't include getsubopt.h.
59657
59658 2007-02-18  Bruno Haible  <bruno@clisp.org>
59659
59660         * modules/fchdir (Depends-on): Add dup2.
59661
59662 2007-02-18  Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/stdlib_.h: Handle glibc's special invocation convention
59665         specially.
59666
59667 2007-02-18  Bruno Haible  <bruno@clisp.org>
59668
59669         * modules/stdlib-tests: New file.
59670         * tests/test-stdlib.c: New file.
59671
59672         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59673         (Depends-on): Add stdlib.
59674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59675         (Includes): Use <stdlib.h> instead of mkstemp.h.
59676         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59677         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59678         * lib/mkstemp.c: Don't include mkstemp.h.
59679         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59680         * lib/stdlib--.h: Don't include mkstemp.h.
59681
59682         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59683         (Depends-on): Add stdlib.
59684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59685         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59686         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59687         HAVE_MKDTEMP.
59688         * lib/mkdtemp.c: Don't include mkdtemp.h.
59689         * lib/clean-temp.c: Don't include mkdtemp.h.
59690
59691         * modules/exit (Files): Remove lib/exit.h.
59692         (Depends-on): Add stdlib.
59693         (Makefile.am): Remove lib_SOURCES.
59694         (Include): Use <stdlib.h> instead of exit.h.
59695         * lib/argmatch.c: Don't include exit.h.
59696         * lib/execute.c: Likewise.
59697         * lib/pagealign_alloc.c: Likewise.
59698         * lib/pipe.c: Likewise.
59699         * lib/wait-process.c: Likewise.
59700         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59701         * lib/exitfail.c: Likewise.
59702         * lib/savewd.c: Likewise.
59703         * lib/xsetenv.c: Likewise.
59704
59705         * modules/stdlib: New file.
59706         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59707         and extra comments about mkstemp().
59708         * lib/exit.h: Remove file.
59709         * lib/mkdtemp.h: Remove file.
59710         * lib/mkstemp.h: Remove file.
59711         * m4/stdlib_h.m4: New file.
59712         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59713
59714 2007-02-18  Bruno Haible  <bruno@clisp.org>
59715
59716         * modules/math-tests: New file.
59717         * tests/test-math.c: New file.
59718
59719         * modules/math: New file.
59720         * modules/mathl (Files): Remove lib/mathl.h.
59721         (Depends-on): Add math.
59722         (Makefile.am): Don't mention mathl.h.
59723         (Include): Use <math.h> instead of mathl.h.
59724         * lib/math_.h: New file.
59725         * lib/mathl.h: Remove file.
59726         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59727         mathl.h.
59728         * lib/asinl.c: Likewise.
59729         * lib/atanl.c: Likewise.
59730         * lib/ceill.c: Likewise.
59731         * lib/cosl.c: Likewise.
59732         * lib/expl.c: Likewise.
59733         * lib/floorl.c: Likewise.
59734         * lib/frexpl.c: Likewise.
59735         * lib/ldexpl.c: Likewise.
59736         * lib/logl.c: Likewise.
59737         * lib/sincosl.c: Likewise.
59738         * lib/sinl.c: Likewise.
59739         * lib/sqrtl.c: Likewise.
59740         * lib/tanl.c: Likewise.
59741         * lib/trigl.c: Likewise.
59742         * m4/math_h.m4: New file.
59743         * MODULES.html.sh (Mathematics): Add math.
59744
59745 2007-02-17  Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/wctype-tests: New file.
59748         * tests/test-wctype.c: New file.
59749
59750         * modules/wchar-tests: New file.
59751         * tests/test-wchar.c: New file.
59752
59753         * modules/unistd-tests: New file.
59754         * tests/test-unistd.c: New file.
59755
59756         * modules/time-tests: New file.
59757         * tests/test-time.c: New file.
59758
59759         * modules/sysexits-tests: New file.
59760         * tests/test-sysexits.c: New file.
59761
59762         * modules/sys_time-tests: New file.
59763         * tests/test-sys_time.c: New file.
59764
59765         * modules/sys_stat-tests: New file.
59766         * tests/test-sys_stat.c: New file.
59767
59768         * modules/sys_socket-tests: New file.
59769         * tests/test-sys_socket.c: New file.
59770
59771         * modules/sys_select-tests: New file.
59772         * tests/test-sys_select.c: New file.
59773
59774         * modules/string-tests: New file.
59775         * tests/test-string.c: New file.
59776
59777         * modules/stdbool-tests: New file.
59778         * tests/test-stdbool.c: New file.
59779
59780         * modules/netinet_in-tests: New file.
59781         * tests/test-netinet_in.c: New file.
59782
59783         * modules/inttypes-tests: New file.
59784         * tests/test-inttypes.c: New file.
59785
59786         * modules/fcntl-tests: New file.
59787         * tests/test-fcntl.c: New file.
59788
59789         * modules/byteswap-tests: New file.
59790         * tests/test-byteswap.c: New file.
59791
59792         * modules/arpa_inet-tests: New file.
59793         * tests/test-arpa_inet.c: New file.
59794
59795 2007-02-17  Bruno Haible  <bruno@clisp.org>
59796
59797         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59798         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59799         if the corresponding module is not enabled. Emit link warnings if
59800         the function is used nevertheless.
59801         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59802         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59803         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59804         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59805         * modules/inttypes (Depends-on): Add link-warning.
59806         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59807         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59808         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59809         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59810         * modules/imaxdiv (configure.ac): Likewise.
59811         * modules/strtoimax (configure.ac): Likewise.
59812         * modules/strtoumax (configure.ac): Likewise.
59813
59814 2007-02-17  Bruno Haible  <bruno@clisp.org>
59815
59816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59817         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59818         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59819         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59820
59821 2007-02-17  Bruno Haible  <bruno@clisp.org>
59822
59823         * modules/link-warning: New file.
59824         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59825         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59826         * modules/string (Depends-on): Add link-warning.
59827         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59828         string.h.
59829         * MODULES.html.sh (Support for building libraries and executables): Add
59830         link-warning.
59831
59832 2007-02-17  Bruno Haible  <bruno@clisp.org>
59833
59834         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59835         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59836         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59837         long lines.
59838
59839 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59840             Bruno Haible  <bruno@clisp.org>
59841
59842         * modules/tmpfile: New file.
59843         * lib/tmpfile.c: New file.
59844         * m4/tmpfile.m4: New file.
59845         * MODULES.html.sh (func_all_modules): New section "Input/output".
59846
59847 2007-02-15  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59850         (supports_delete_on_close): New function.
59851         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59852
59853 2007-02-14  Bruno Haible  <bruno@clisp.org>
59854
59855         * modules/mbspcasecmp-tests: New file.
59856         * tests/test-mbspcasecmp.sh: New file.
59857         * tests/test-mbspcasecmp.c: New file.
59858
59859         New module mbspcasecmp.
59860         * modules/mbspcasecmp: New file.
59861         * lib/mbspcasecmp.c: New file.
59862         * lib/string_.h (strncasecmp): Change warning message.
59863         (mbspcasecmp): New declaration.
59864         * m4/mbspcasecmp.m4: New file.
59865         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59866         GNULIB_MBSPCASECMP.
59867         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59868         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59869
59870 2007-02-14  Bruno Haible  <bruno@clisp.org>
59871
59872         * modules/mbsncasecmp-tests: New file.
59873         * tests/test-mbsncasecmp.sh: New file.
59874         * tests/test-mbsncasecmp.c: New file.
59875
59876         New module mbsncasecmp.
59877         * modules/mbsncasecmp: New file.
59878         * lib/mbsncasecmp.c: New file.
59879         * lib/string_.h (mbsncasecmp): New declaration.
59880         * m4/mbsncasecmp.m4: New file.
59881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59882         GNULIB_MBSNCASECMP.
59883         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59884         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59885
59886 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59887
59888         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59889         Verify that it doesn't overlap with our flags.
59890         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59891         do not have the desired effect in multibyte locales; instead, use
59892         mbscasecmp.
59893         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59894         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59895         we don't require GNU fnmatch ourselves (if our users require it, they
59896         should do so explicitly).
59897
59898         Fix regex code so it doesn't rely on strcasecmp.
59899         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59900         Otherwise, include gnulib's langinfo.h.
59901         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59902         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59903         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59904         * modules/regex (FILES): Remove m4/codeset.m4.
59905         (Depends-on): Add localcharset.  Remove strcase.
59906
59907 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59908
59909         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59910         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59911
59912 2007-02-13  Bruno Haible  <bruno@clisp.org>
59913
59914         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59915         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59916
59917 2007-02-12  Bruno Haible  <bruno@clisp.org>
59918
59919         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59920         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59921         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59922         time warning rather than a link error.
59923
59924 2007-02-12  Bruno Haible  <bruno@clisp.org>
59925
59926         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59927         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59929
59930 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59933         args, not 2.
59934
59935 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59936
59937         New module 'time', so that apps can include <time.h> as per
59938         POSIX and GNU instead of separate include files like time_r.h
59939         and timegm.h.  This implementation tries out a simpler approach
59940         for replacing decls in standard include files (as compared to
59941         the string module), somewhat as an experiment.
59942
59943         * config/srclist.txt: Comment out mktime.c for now.
59944         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59945         since it doesn't apply any more.  Use generic wording instead.
59946         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59947         'time'.
59948         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59949         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59950         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59951         Don't include <sys/types.h>; no longer needed since we assume C89.
59952         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59953         * lib/strftime.c: Likewise.
59954         * lib/time_r.c: Likewise.
59955         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59956         * lib/nanosleep.c: Include <time.h> first, to check interface.
59957         * lib/strptime.c: Likewise.
59958         * lib/time_r.c: Likewise.
59959         * lib/timegm.c: Likewise.
59960         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59961         needed.
59962         * lib/timegm.c: Don't include timegm.h; no longer needed.
59963         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59964         time.h now handles any problems in that area.
59965         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59966         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59967         that time.h defines struct timespec.
59968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59969         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59970         handles that.
59971         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59972         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59973         needed.  Set REPLACE_LOCALTIME.
59974         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59975         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59976         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59977         nanosleep; time_h.m4 now does that.  Don't require
59978         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59979         module handles this now.
59980         * modules/getdate (Depends-on): Remove timespec.  Add time.
59981         * modules/nanosleep (Depends-on): Likewise.
59982         * modules/stat-time (Depends-on): Likewise.
59983         * modules/nanosleep (Include): Include time.h, not timespec.h.
59984         * modules/strptime (Files): Remove lib/strptime.h.
59985         (Depends-on): Add extensions, time.
59986         (Include): Include time.h, not strptime.h.
59987         * modules/time_r (Files): Remove lib/time_r.h.
59988         (Depends-on): Add time.
59989         (Include): Include time.h, not time_r.h.
59990         * modules/timegm: Likewise.
59991         * modules/timespec (Description): Now does timespec-related decls
59992         of our own, instead of struct timespec itself.
59993         (Depends-on): Add time; remove extensions.
59994         (Maintainer): Add self.
59995         * modules/utimecmp (Depends-on): Add time; remove timespec.
59996         * modules/utimens (Depends-on): Likewise.
59997         * modules/xnanosleep (Depends-on): Likewise.
59998
59999 2007-02-11  Bruno Haible  <bruno@clisp.org>
60000
60001         * lib/c-strstr.c: Include allocsa.h.
60002         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60003         * lib/c-strcasestr.c: Include allocsa.h.
60004         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60005         * lib/strcasestr.c: Include allocsa.h.
60006         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60007         * lib/mbsstr.c: Include allocsa.h.
60008         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60009         allocsa/freesa instead of malloc/free.
60010         * lib/mbscasestr.c: Include allocsa.h.
60011         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60012         allocsa/freesa instead of malloc/free.
60013         * modules/c-strstr (Depends-on): Add allocsa.
60014         * modules/c-strcasestr (Depends-on): Likewise.
60015         * modules/strcasestr (Depends-on): Likewise.
60016         * modules/mbsstr (Depends-on): Likewise.
60017         * modules/mbscasestr (Depends-on): Likewise.
60018
60019 2007-02-11  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60022
60023         * modules/mbsspn-tests: New file.
60024         * tests/test-mbsspn.sh: New file.
60025         * tests/test-mbsspn.c: New file.
60026
60027 2007-02-11  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60030
60031         * modules/mbspbrk-tests: New file.
60032         * tests/test-mbspbrk.sh: New file.
60033         * tests/test-mbspbrk.c: New file.
60034
60035 2007-02-11  Bruno Haible  <bruno@clisp.org>
60036
60037         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60038         unneeded cast.
60039
60040         * modules/mbscspn-tests: New file.
60041         * tests/test-mbscspn.sh: New file.
60042         * tests/test-mbscspn.c: New file.
60043
60044 2007-02-11  Bruno Haible  <bruno@clisp.org>
60045
60046         * modules/mbscasecmp-tests: New file.
60047         * tests/test-mbscasecmp.sh: New file.
60048         * tests/test-mbscasecmp.c: New file.
60049
60050 2007-02-11  Bruno Haible  <bruno@clisp.org>
60051
60052         Ensure O(n) worst-case complexity of mbscasestr.
60053         * lib/mbscasestr.c: Include stdbool.h.
60054         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60055         functions.
60056         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60057         the bookkeeping indicates that it's worth it.
60058         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60059
60060         * modules/mbscasestr-tests: New file.
60061         * tests/test-mbscasestr1.c: New file.
60062         * tests/test-mbscasestr2.sh: New file.
60063         * tests/test-mbscasestr2.c: New file.
60064         * tests/test-mbscasestr3.sh: New file.
60065         * tests/test-mbscasestr3.c: New file.
60066         * tests/test-mbscasestr4.sh: New file.
60067         * tests/test-mbscasestr4.c: New file.
60068         * m4/locale-tr.m4: New file.
60069
60070 2007-02-11  Bruno Haible  <bruno@clisp.org>
60071
60072         Ensure O(n) worst-case complexity of mbsstr.
60073         * lib/mbsstr.c: Include stdbool.h.
60074         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60075         functions.
60076         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60077         bookkeeping indicates that it's worth it.
60078         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60079
60080         * modules/mbsstr-tests: New file.
60081         * tests/test-mbsstr1.c: New file.
60082         * tests/test-mbsstr2.sh: New file.
60083         * tests/test-mbsstr2.c: New file.
60084         * tests/test-mbsstr3.sh: New file.
60085         * tests/test-mbsstr3.c: New file.
60086         * m4/locale-fr.m4: New file.
60087
60088 2007-02-11  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/mbsrchr.c (mbsrchr): Fix bug.
60091
60092         * modules/mbsrchr-tests: New file.
60093         * tests/test-mbsrchr.sh: New file.
60094         * tests/test-mbsrchr.c: New file.
60095
60096 2007-02-11  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/mbschr.c (mbschr): Fix bug.
60099
60100         * modules/mbschr-tests: New file.
60101         * tests/test-mbschr.sh: New file.
60102         * tests/test-mbschr.c: New file.
60103         * m4/locale-zh.m4: New file.
60104
60105 2007-02-11  Bruno Haible  <bruno@clisp.org>
60106
60107         Support for copying multibyte string iterators.
60108         * lib/mbiter.h: Include <string.h>.
60109         (mbiter_multi_copy): New function.
60110         (mbi_copy): New macro.
60111         * lib/mbuiter.h: Include <string.h>.
60112         (mbuiter_multi_copy): New function.
60113         (mbui_copy): New macro.
60114
60115 2007-02-11  Bruno Haible  <bruno@clisp.org>
60116
60117         New module mbslen.
60118         * modules/mbslen: New file.
60119         * lib/mbslen.c: New file.
60120         * lib/string_.h (mbslen): New declaration.
60121         * m4/mbslen.m4: New file.
60122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60123         GNULIB_MBSLEN.
60124         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60125         * MODULES.html.sh (Internationalization functions): Add mbslen.
60126
60127 2007-02-11  Bruno Haible  <bruno@clisp.org>
60128
60129         Ensure O(n) worst-case complexity of strcasestr substitute.
60130         * lib/strcasestr.c: Include stdbool.h.
60131         (knuth_morris_pratt): New function.
60132         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60133         bookkeeping indicates that it's worth it.
60134         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60135
60136         * modules/strcasestr-tests: New file.
60137         * tests/test-strcasestr.c: New file.
60138
60139 2007-02-11  Bruno Haible  <bruno@clisp.org>
60140
60141         Ensure O(n) worst-case complexity of c_strcasestr.
60142         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60143         (knuth_morris_pratt): New function.
60144         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60145         the bookkeeping indicates that it's worth it.
60146         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60147
60148         * modules/c-strcasestr-tests: New file.
60149         * tests/test-c-strcasestr.c: New file.
60150
60151 2007-02-11  Bruno Haible  <bruno@clisp.org>
60152
60153         Ensure O(n) worst-case complexity of c_strstr.
60154         * lib/c-strstr.c: Include stdbool.h, string.h.
60155         (knuth_morris_pratt): New function.
60156         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60157         bookkeeping indicates that it's worth it.
60158         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60159
60160         * lib/c-strstr.c: Complete rewrite for maintainability.
60161
60162         * modules/c-strstr-tests: New file.
60163         * tests/test-c-strstr.c: New file.
60164
60165 2007-02-11  Bruno Haible  <bruno@clisp.org>
60166
60167         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60168         5.2.1 and earlier, whereby \055 was treated just like the range
60169         delimiter '-'.
60170         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60171
60172 2007-02-08  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/regex (Depends-on): Add stdbool.
60175         Reported by Dalibor Topic <robilad@kaffe.org>.
60176
60177 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60180         Prefer returning from main to exiting from it.
60181         Remove unnecessary parens after sizeof.
60182
60183 2007-02-05  Bruno Haible  <bruno@clisp.org>
60184
60185         New module mbssep.
60186         * modules/mbssep: New file.
60187         * lib/mbssep.c: New file.
60188         * lib/string_.h (strsep): Add a conditional link warning.
60189         (mbssep): New declaration.
60190         * m4/mbssep.m4: New file.
60191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60192         GNULIB_MBSSEP.
60193         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60194         * MODULES.html.sh (Internationalization functions): Add mbssep.
60195
60196 2007-02-05  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60199         Optimize search in case of 1 delimiter.
60200
60201 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60202
60203         * lib/acl.h: Include sys/types.h before sys/acl.h.
60204
60205 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60206
60207         Merge upstream fix for glibc bugzilla #3957:
60208
60209         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60210
60211         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60212         bit for RE_HAT_LISTS_NOT_NEWLINE.
60213         (build_charclass_op): Remove bogus comment.
60214
60215 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60216
60217         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60218
60219 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60222         * lib/memmem.c [!defined _LIBC]: Include config.h.
60223
60224 2007-02-04  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60227         warning message.
60228
60229 2007-02-04  Bruno Haible  <bruno@clisp.org>
60230
60231         New module mbstok_r.
60232         * modules/mbstok_r: New file.
60233         * lib/mbstok_r.c: New file.
60234         * lib/string_.h (strtok_r): Change argument names to match the
60235         comments. Add a conditional link warning.
60236         (mbstok_r): New declaration.
60237         * m4/mbstok_r.m4: New file.
60238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60239         GNULIB_MBSTOK_R.
60240         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60241         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60242
60243 2007-02-04  Bruno Haible  <bruno@clisp.org>
60244
60245         New module mbsspn.
60246         * modules/mbsspn: New file.
60247         * lib/mbsspn.c: New file.
60248         * lib/string_.h (strspn): Add a conditional link warning.
60249         (mbsspn): New declaration.
60250         * m4/mbsspn.m4: New file.
60251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60252         GNULIB_MBSSPN.
60253         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60254         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60255
60256 2007-02-04  Bruno Haible  <bruno@clisp.org>
60257
60258         New module mbspbrk.
60259         * modules/mbspbrk: New file.
60260         * lib/mbspbrk.c: New file.
60261         * lib/string_.h (strpbrk): Add a conditional link warning.
60262         (mbspbrk): New declaration.
60263         * m4/mbspbrk.m4: New file.
60264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60265         GNULIB_MBSPBRK.
60266         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60267         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60268
60269 2007-02-04  Bruno Haible  <bruno@clisp.org>
60270
60271         New module mbscspn.
60272         * modules/mbscspn: New file.
60273         * lib/mbscspn.c: New file.
60274         * lib/string_.h (strcspn): Add a conditional link warning.
60275         (mbscspn): New declaration.
60276         * m4/mbscspn.m4: New file.
60277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60278         GNULIB_MBSCSPN.
60279         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60280         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60281
60282 2007-02-04  Bruno Haible  <bruno@clisp.org>
60283
60284         New module mbscasestr, reduced goal of strcasestr.
60285         * modules/mbscasestr: New file.
60286         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60287         (mbscasestr): Renamed from strcasestr.
60288         * lib/strcasestr.c: Don't include mbuiter.h.
60289         (strcasestr): Remove support for multibyte locales.
60290         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60291         Change the conditional link warning.
60292         (mbscasestr): New declaration.
60293         * m4/mbscasestr.m4: New file.
60294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60295         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60296         REPLACE_STRCASESTR.
60297         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60299         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60300         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60301         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60302         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60303         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60304         (Depends-on): Remove mbuiter.
60305         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60306
60307 2007-02-04  Bruno Haible  <bruno@clisp.org>
60308
60309         Simplify handling of strncasecmp.
60310         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60311         the conditional link warning.
60312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60313         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60314         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60315         * modules/strcase (configure.ac): Don't invoke
60316         gl_STRING_MODULE_INDICATOR.
60317         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60318
60319 2007-02-04  Bruno Haible  <bruno@clisp.org>
60320
60321         New module mbscasecmp, reduced goal of strcasecmp.
60322         * modules/mbscasecmp: New file.
60323         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60324         (mbscasecmp): Renamed from strcasecmp.
60325         * lib/strcasecmp.c: Don't include mbuiter.h.
60326         (strcasecmp): Remove support for multibyte locales.
60327         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60328         Change the conditional link warning.
60329         (mbscasecmp): New declaration.
60330         * m4/mbscasecmp.m4: New file.
60331         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60332         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60333         REPLACE_STRCASECMP.
60334         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60336         GNULIB_MBSCASECMP.
60337         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60338         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60339         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60340         (Depends-on): Remove mbuiter.
60341         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60342
60343 2007-02-04  Bruno Haible  <bruno@clisp.org>
60344
60345         New module mbsstr. Remove module strstr.
60346         * modules/mbsstr: New file.
60347         * modules/strstr: Remove file.
60348         * lib/mbsstr.c: Renamed from lib/strstr.c.
60349         (mbsstr): Renamed from strstr.
60350         * lib/string_.h (strstr): Remove declaration. Change the conditional
60351         link warning.
60352         (mbsstr): New declaration.
60353         * m4/mbsstr.m4: New file.
60354         * m4/strstr.m4: Remove file.
60355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60356         REPLACE_STRSTR.
60357         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60358         Don't initialize GNULIB_STRSTR.
60359         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60360         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60361         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60362         (Support for systems lacking ANSI C 89): Remove strstr.
60363
60364 2007-02-04  Bruno Haible  <bruno@clisp.org>
60365
60366         New module mbsrchr.
60367         * modules/mbsrchr: New file.
60368         * lib/mbsrchr.c: New file.
60369         * lib/string_.h (strrchr): Add a conditional link warning.
60370         (mbsrchr): New declaration.
60371         * m4/mbsrchr.m4: New file.
60372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60373         GNULIB_MBSRCHR.
60374         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60375         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60376
60377 2007-02-04  Bruno Haible  <bruno@clisp.org>
60378
60379         New module mbschr.
60380         * modules/mbschr: New file.
60381         * lib/mbschr.c: New file.
60382         * lib/string_.h (strchr): Add a conditional link warning.
60383         (mbschr): New declaration.
60384         * m4/mbschr.m4: New file.
60385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60386         GNULIB_MBSCHR.
60387         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60388         * MODULES.html.sh (Internationalization functions): Add mbschr.
60389
60390 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60393
60394         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60395
60396 2007-02-04  Bruno Haible  <bruno@clisp.org>
60397
60398         New module description section 'configure.ac-early'.
60399         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60400         (func_get_autoconf_early_snippet): New function.
60401         (func_import, func_create_testdir): Use it. Remove special cases for
60402         modules 'extensions' and 'lock'.
60403         * modules/extensions (configure.ac-early): Require
60404         gl_USE_SYSTEM_EXTENSIONS.
60405         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60406
60407 2007-02-04  Bruno Haible  <bruno@clisp.org>
60408
60409         Make use of gcj-4.3's -fsource and -ftarget option.
60410         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60411         and if so try the options -fsource and -ftarget.
60412         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60413         source_version, ftarget_option, target_version arguments.
60414         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60415         (is_envjavac_oldgcj_14_14_usable): Renamed from
60416         is_envjavac_gcj_14_14_usable.
60417         (is_envjavac_oldgcj_14_13_usable): Renamed from
60418         is_envjavac_gcj_14_13_usable.
60419         (is_gcj_present): Update.
60420         (is_gcj_43, is_gcj43_usable): New functions.
60421         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60422         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60423         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60424         try the options -fsource and -ftarget.
60425
60426 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60429         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60430         larger value.
60431
60432 2007-02-03  Jim Meyering  <jim@meyering.net>
60433
60434         Give tools a better chance to allocate space for very large buffers.
60435         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60436
60437         Make pwd and readlink work also when run with an unreadable parent dir
60438         on systems with openat support.
60439         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60440         provided getcwd function, even when we have openat support.
60441         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60442
60443 2007-02-02  Bruno Haible  <bruno@clisp.org>
60444
60445         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60446         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60447         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60448         portability problems if one of these functions is only used on specific
60449         platforms.
60450         Reported by Paul Eggert.
60451
60452 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60455         is causing more trouble than it's curing.
60456         * lib/regex_internal.h (__mempcpy): Remove.
60457         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60458         (and make the code a tad smaller to boot).
60459         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60460
60461 2007-02-02  Jim Meyering  <jim@meyering.net>
60462
60463         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60464         section, not in the Makefile.am: one.
60465
60466 2007-02-02  Eric Blake  <ebb9@byu.net>
60467
60468         * lib/strchrnul.c: Always include config.h first.
60469
60470         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60471         gnulib strstr is not necessary here.
60472
60473 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60474
60475         * m4/socklen.m4: Fix typo.
60476
60477 2007-02-02  Eric Blake  <ebb9@byu.net>
60478
60479         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60480         * modules/netinet_in (Makefile.am): Likewise.
60481
60482 2007-02-01  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/string_.h (GL_LINK_WARNING): New macro.
60485         (strcasecmp, strstr, strcasestr): If provided by the system,
60486         conditionally define as a macro that leads to a warning instead of to
60487         an error.
60488         (strncasecmp): Conditionally define as a macro that leads to a warning.
60489
60490 2007-02-01  Karl Berry  <karl@gnu.org>
60491
60492         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60493
60494 2007-02-01  Bruno Haible  <bruno@clisp.org>
60495
60496         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60497         renamings.
60498
60499 2007-02-01  Eric Blake  <ebb9@byu.net>
60500
60501         * modules/regex (Depends-on): Revert dependence on mempcpy.
60502         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60503         module's definition of mempcpy.
60504         Reported by Paul Eggert.
60505
60506 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60509         the symbol XYZ before redefining it.  This fixes a problem with
60510         programs that don't use XYZ, when compiled on systems that define
60511         XYZ to something else.
60512
60513 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60516         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60517         writeable to group or other and (2) is intended to have a special
60518         mode bit that is set or cleared.  In such a case, the directory
60519         should be neither group- nor other-writeable until the special
60520         mode bits are right.
60521
60522 2007-01-31  Eric Blake  <ebb9@byu.net>
60523
60524         * modules/mountlist (Depends-on): Add strstr.
60525
60526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60527         bug.
60528         * modules/string (Makefile.am): Remove redundant replacement.
60529         * modules/regex (Depends-on): Add mempcpy.
60530
60531 2007-01-31  Bruno Haible  <bruno@clisp.org>
60532
60533         New module description field 'Link'.
60534         * gnulib-tool (func_usage): Document --extract-link-directive.
60535         (sed_extract_prog): Recognize 'Link' directive.
60536         (func_get_link_directive): New function.
60537         (func_import): Show summary of link directives.
60538         Handle --extract-link-directive option.
60539         * modules/acl (Link): New section.
60540         * modules/clock-time (Link): New section.
60541         * modules/euidaccess (Link): New section.
60542         * modules/gettext (Link): New section.
60543         * modules/iconv (Link): New section.
60544         * modules/lock (Link): New section.
60545         * modules/nanosleep (Link): New section.
60546         * modules/readline (Link): New section.
60547
60548 2007-01-27  Bruno Haible  <bruno@clisp.org>
60549
60550         Enforce the use of gnulib modules for unportable <string.h> functions.
60551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60553         (gl_HEADER_STRING_H_BODY): Require it.
60554         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60555         the symbol XYZ to one that gives a link error.
60556         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60557         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60558         * modules/mempcpy (configure.ac): Likewise.
60559         * modules/memrchr (configure.ac): Likewise.
60560         * modules/stpcpy (configure.ac): Likewise.
60561         * modules/stpncpy (configure.ac): Likewise.
60562         * modules/strcase (configure.ac): Likewise.
60563         * modules/strcasestr (configure.ac): Likewise.
60564         * modules/strchrnul (configure.ac): Likewise.
60565         * modules/strdup (configure.ac): Likewise.
60566         * modules/strndup (configure.ac): Likewise.
60567         * modules/strnlen (configure.ac): Likewise.
60568         * modules/strpbrk (configure.ac): Likewise.
60569         * modules/strsep (configure.ac): Likewise.
60570         * modules/strstr (configure.ac): Likewise.
60571         * modules/strtok_r (configure.ac): Likewise.
60572
60573 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60574
60575         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60576
60577 2007-01-30  Jim Meyering  <jim@meyering.net>
60578
60579         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60580
60581 2007-01-29  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60584         * lib/execute.c: Likewise.
60585         * lib/pipe.c: Likewise.
60586         * lib/printf-args.h: Likewise.
60587         * lib/printf-args.c: Likewise.
60588         * lib/printf-parse.c: Likewise.
60589         * lib/vasnprintf.c: Likewise.
60590
60591 2007-01-29  Eric Blake  <ebb9@byu.net>
60592
60593         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60594         declaration.
60595
60596 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * lib/strptime.h (strptime): Use 'restrict' for args where
60599         POSIX requires this.
60600         * lib/strptime.c (strptime): Likewise.
60601         Change license notice from LGPL to GPL, since gnulib-tool will
60602         change this as needed.
60603         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60604         defined.
60605         Include "strptime.h" first, to check interface.
60606         Do not #undef _LIBC and _NL_CURRENT.
60607         Do not include <stdlib.h>; no longer needed.
60608         Include "time_r.h" and declare ptime_locale_status
60609         only if _LIBC is not defined.
60610         (__P): Remove unused macro.
60611         (match_string): Bring back glibc version, but use it only if _LIBC
60612         is defined.
60613         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60614         Remove unnecessary assertion and abort() call.
60615         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60616         * m4/strptime.m4: Fix serial number comment.
60617         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60618         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60619         (Depends-on): Add time_r.
60620
60621 2007-01-29  Bruno Haible  <bruno@clisp.org>
60622
60623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60624         strptime.
60625         * modules/strptime (Depends-on): Add stdbool.
60626         * lib/strptime.h: Include <time.h> always. Add comments.
60627
60628 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60629
60630         * modules/strptime: New file.
60631         * lib/strptime.h: New file.
60632         * lib/strptime.c: New file.
60633         * m4/strptime.m4: New file.
60634
60635 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60636
60637         * MODULES.html.sh: New module mpsort.
60638         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60639
60640         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60641         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60643         All uses changed.
60644         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60645         All uses changed.
60646         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60647         to _Restrict_.
60648         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60649         the parameter matches the prototype.
60650
60651 2007-01-28  Jim Meyering  <jim@meyering.net>
60652
60653         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60654         sys/time.h here, reverting that part of the previous patch:
60655         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60656
60657 2007-01-28  Bruno Haible  <bruno@clisp.org>
60658
60659         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60660         value of $(SYS_TIME_H).
60661         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60662         remove it conditionally, too. [added by Jim Meyering]
60663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60665         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60666         GETTIMEOFDAY_REPLACEMENT to 1.
60667
60668 2007-01-28  Bruno Haible  <bruno@clisp.org>
60669
60670         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60671         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60673         Set UNISTD_H instead of UNISTD_H2.
60674         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60675
60676 2007-01-28  Bruno Haible  <bruno@clisp.org>
60677
60678         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60679         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60680
60681 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60682
60683         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60684         (func_create_testdir): Ensure C locale for `grep' and `tr'
60685         character ranges.
60686         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60687         ACLOCAL_AMFLAGS parsing state machine.
60688
60689 2007-01-27  Bruno Haible  <bruno@clisp.org>
60690
60691         * modules/unistr/base: Update.
60692
60693 2007-01-27  Bruno Haible  <bruno@clisp.org>
60694
60695         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60696         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60697         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60698         modules/unistr/u32-mbtouc.
60699         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60700         * lib/unistr.h: Update.
60701         * lib/linebreak.c: Update.
60702         * modules/unistr/u32-mbtouc: Renamed from
60703         modules/unistr/u32-mbtouc-safe.
60704         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60705         * lib/unistr.h: Update.
60706         * lib/unistr/u32-to-u8.c: Update.
60707         * lib/unistr/u32-to-u16.c: Update.
60708
60709 2007-01-27  Bruno Haible  <bruno@clisp.org>
60710
60711         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60712         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60713         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60714         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60715         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60716         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60717         modules/unistr/u16-mbtouc.
60718         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60719         * lib/unistr.h: Update.
60720         * lib/linebreak.c: Update.
60721         * modules/linebreak: Update.
60722         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60723         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60724         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60725         * modules/unistr/u16-mbtouc: Renamed from
60726         modules/unistr/u16-mbtouc-safe.
60727         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60728         * lib/unistr.h: Update.
60729         * lib/unistr/u16-to-u8.c: Update.
60730         * modules/unistr/u16-to-u8: Update.
60731         * lib/unistr/u16-to-u32.c: Update.
60732         * modules/unistr/u16-to-u32: Update.
60733
60734 2007-01-27  Bruno Haible  <bruno@clisp.org>
60735
60736         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60737         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60738         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60739         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60740         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60741         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60742         modules/unistr/u8-mbtouc.
60743         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60744         * lib/unistr.h: Update.
60745         * lib/striconveh.c: Update.
60746         * modules/striconveh: Update.
60747         * lib/linebreak.c: Update.
60748         * modules/linebreak: Update.
60749         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60750         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60751         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60752         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60753         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60754         * lib/unistr.h: Update.
60755         * lib/striconveh.c: Update.
60756         * modules/striconveh: Update.
60757         * lib/unistr/u8-to-u16.c: Update.
60758         * modules/unistr/u8-to-u16: Update.
60759         * lib/unistr/u8-to-u32.c: Update.
60760         * modules/unistr/u8-to-u32: Update.
60761
60762 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60763
60764         Sync from Libtool.
60765         * lib/argz.c: Do not include strings.h nor memory.h, include
60766         string.h unconditionally.  Patch by Simon Josefsson.
60767
60768 2007-01-27  Bruno Haible  <bruno@clisp.org>
60769
60770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60771         from gl_HEADER_STRING_H_BODY.
60772         (gl_HEADER_STRING_H_BODY): Require it.
60773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60774         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60775         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60776         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60777         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60778         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60780         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60781         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60782         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60784         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60785         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60786         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60788
60789 2007-01-27  Bruno Haible  <bruno@clisp.org>
60790
60791         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60792         check_PROGRAMS into noinst_PROGRAMS.
60793         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60794         check_PROGRAMS in this case.
60795         (func_import): Set for_test to false.
60796         (func_create_testdir): Set for_test to true.
60797
60798 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60799             Bruno Haible  <bruno@clisp.org>
60800
60801         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60802         (Depends-on): Add string.
60803         (Includes): Use <string.h> instead of strcasestr.h.
60804         * modules/string (Makefile.am): Also substitute the value of
60805         REPLACE_STRCASESTR.
60806         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60807         assume strcasestr is declared in <string.h> not <strings.h>. Also
60808         set REPLACE_STRCASESTR.
60809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60810         REPLACE_STRCASESTR.
60811         * lib/strcasestr.h: Remove file.
60812         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60813         * lib/string_.h (strcasestr): New declaration.
60814
60815 2007-01-27  Bruno Haible  <bruno@clisp.org>
60816
60817         * lib/string_.h: Use 'extern'.
60818
60819 2007-01-27  Jim Meyering  <jim@meyering.net>
60820
60821         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60822         of set-but-not-used local, "q".
60823
60824         * lib/mempcpy.c: Include <config.h> before <string.h>.
60825         This fixes a compilation error on HP-UX, due to the system's
60826         "restrict"-using mempcpy prototype.
60827
60828 2007-01-26  Bruno Haible  <bruno@clisp.org>
60829
60830         Small optimization.
60831         * lib/javacomp.c: Include c-strstr.h.
60832          (is_envjavac_gcj): Use c_strstr instead of strstr.
60833         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60834
60835 2007-01-26  Bruno Haible  <bruno@clisp.org>
60836
60837         * MODULES.html.sh (Unicode string functions): Add the new modules.
60838
60839         * modules/uniconv/u32-strconv-to-locale: New file.
60840         * lib/uniconv/u32-strconv-to-locale.c: New file.
60841
60842         * modules/uniconv/u16-strconv-to-locale: New file.
60843         * lib/uniconv/u16-strconv-to-locale.c: New file.
60844
60845         * modules/uniconv/u8-strconv-to-locale: New file.
60846         * lib/uniconv/u8-strconv-to-locale.c: New file.
60847
60848         * modules/uniconv/u32-strconv-from-locale: New file.
60849         * lib/uniconv/u32-strconv-from-locale.c: New file.
60850
60851         * modules/uniconv/u16-strconv-from-locale: New file.
60852         * lib/uniconv/u16-strconv-from-locale.c: New file.
60853
60854         * modules/uniconv/u8-strconv-from-locale: New file.
60855         * lib/uniconv/u8-strconv-from-locale.c: New file.
60856
60857         * modules/uniconv/u32-strconv-to-enc: New file.
60858         * lib/uniconv/u32-strconv-to-enc.c: New file.
60859         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60860         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60861
60862         * modules/uniconv/u16-strconv-to-enc: New file.
60863         * lib/uniconv/u16-strconv-to-enc.c: New file.
60864         * lib/uniconv/u-strconv-to-enc.h: New file.
60865         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60866         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60867
60868         * modules/uniconv/u8-strconv-to-enc: New file.
60869         * lib/uniconv/u8-strconv-to-enc.c: New file.
60870         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60871         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60872
60873         * modules/uniconv/u32-strconv-from-enc: New file.
60874         * lib/uniconv/u32-strconv-from-enc.c: New file.
60875         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60876         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60877
60878         * modules/uniconv/u16-strconv-from-enc: New file.
60879         * lib/uniconv/u16-strconv-from-enc.c: New file.
60880         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60881         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60882
60883         * modules/uniconv/u8-strconv-from-enc: New file.
60884         * lib/uniconv/u8-strconv-from-enc.c: New file.
60885         * lib/uniconv/u-strconv-from-enc.h: New file.
60886         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60887         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60888
60889         * modules/uniconv/u32-conv-from-enc: New file.
60890         * lib/uniconv/u32-conv-from-enc.c: New file.
60891         * modules/uniconv/u32-conv-from-enc-tests: New file.
60892         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60893
60894         * modules/uniconv/u16-conv-from-enc: New file.
60895         * lib/uniconv/u16-conv-from-enc.c: New file.
60896         * lib/uniconv/u-conv-from-enc.h: New file.
60897         * modules/uniconv/u16-conv-from-enc-tests: New file.
60898         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60899
60900         * modules/uniconv/u8-conv-from-enc: New file.
60901         * lib/uniconv/u8-conv-from-enc.c: New file.
60902         * modules/uniconv/u8-conv-from-enc-tests: New file.
60903         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60904
60905         * modules/uniconv/base: New file.
60906         * lib/uniconv.h: New file.
60907
60908 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * doc/gnulib-tool.texi (Initial import): Update to match current
60911         behavior with strdup module.
60912         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60913         * lib/memmem.h: Remove; all uses removed.  This is now done
60914         by <string.h>.
60915         * lib/mempcpy.h: Likewise.
60916         * lib/memrchr.h: Likewise.
60917         * lib/stpcpy.h: Likewise.
60918         * lib/stpncpy.h: Likewise.
60919         * lib/strcase.h: Likewise.
60920         * lib/strchrnul.h: Likewise.
60921         * lib/strdup.h: Likewise.
60922         * lib/strndup.h: Likewise.
60923         * lib/strnlen.h: Likewise.
60924         * lib/strpbrk.h: Likewise.
60925         * lib/strsep.h: Likewise.
60926         * lib/strstr.h: Likewise.
60927         * lib/strtok_r.h: Likewise.
60928         * lib/string_.h: New file.
60929         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60930         Rely on <string.h> instead.
60931         * lib/canon-host.c: Likewise.
60932         * lib/chdir-long.c: Likewise.
60933         * lib/concatpath.c: Likewise.
60934         * lib/exclude.c: Likewise.
60935         * lib/fchdir.c: Likewise.
60936         * lib/getaddrinfo.c: Likewise.
60937         * lib/getcwd.c: Likewise.
60938         * lib/getsubopt.c: Likewise.
60939         * lib/glob.c: Likewise.
60940         * lib/hard-locale.c: Likewise.
60941         * lib/iconvme.c: Likewise.
60942         * lib/javacomp.c: Likewise.
60943         * lib/mempcpy.c: Likewise.
60944         * lib/memrchr.c: Likewise.
60945         * lib/regex_internal.h: Likewise.
60946         * lib/stpncpy.c: Likewise.
60947         * lib/strcasecmp.c: Likewise.
60948         * lib/strchrnul.c: Likewise.
60949         * lib/strdup.c: Likewise.
60950         * lib/striconv.c: Likewise.
60951         * lib/striconveh.c: Likewise.
60952         * lib/striconveha.c: Likewise.
60953         * lib/strncasecmp.c: Likewise.
60954         * lib/strndup.c: Likewise.
60955         * lib/strnlen.c: Likewise.
60956         * lib/strsep.c: Likewise.
60957         * lib/strstr.c: Likewise.
60958         * lib/strtok_r.c: Likewise.
60959         * lib/userspec.c: Likewise.
60960         * lib/w32spawn.h: Likewise.
60961         * lib/xstrndup.c: Likewise.
60962         * lib/mountlist.c (strstr): Remove decl.
60963         * m4/string_h.m4: New file.
60964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60965         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60966         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60967         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60968         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60969         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60970         Set REPLACE_STRCASECMP if necessary.
60971         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60972         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60973         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60974         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60975         HAVE_DECL_STRDUP if necessary.
60976         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60977         since gl_FUNC_STRNDUP does that now.
60978         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60979         Check for decl here...
60980         (gl_PREREQ_STRNLEN): ... not here.
60981         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60982         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60983         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60984         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60985         necessary.
60986         * modules/string: New file.
60987         * modules/memmem (Files): Remove special-purpose include file.
60988         (Depends-on): Add string.
60989         (Include): Include <string.h>, not the removed file.
60990         * modules/mempcpy: Likewise.
60991         * modules/memrchr: Likewise.
60992         * modules/stpcpy: Likewise.
60993         * modules/stpncpy: Likewise.
60994         * modules/strcase: Likewise.
60995         * modules/strchrnul: Likewise.
60996         * modules/strdup: Likewise.
60997         * modules/strndup: Likewise.
60998         * modules/strnlen: Likewise.
60999         * modules/strpbrk: Likewise.
61000         * modules/strsep: Likewise.
61001         * modules/strstr: Likewise.
61002         * modules/strtok_r: Likewise.
61003         * tests/test-dirname.c: Don't include "strdup.h", since
61004         <string.h> now suffices.
61005         * tests/test-memmem.c: Don't include "memmem.h", since
61006         <string.h> now suffices.
61007
61008 2007-01-25  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61011         *resultp is 0.
61012
61013         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61014         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61015         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61016         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61017
61018         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61019         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61020         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61021         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61022         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61023         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61024
61025 2007-01-24  Bruno Haible  <bruno@clisp.org>
61026
61027         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61028         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61029         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61030         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61031         gl_FUNC_FTS_CORE.
61032         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61033         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61034         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61035         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61036         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61037         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61038         gl_FUNC_FCHOWNAT.
61039         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61040         gl_FUNC_STRFTIME.
61041         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61042         Reported by Ralf Wildenhues.
61043
61044 2007-01-24  Bruno Haible  <bruno@clisp.org>
61045
61046         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61047         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61048         gl_GETADDRINFO.
61049         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61050         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61051         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61052
61053 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61056         Don't use 'exit'; just return from 'main'.
61057         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61058
61059         * lib/fnmatch_.h: Readjust white space and comments to match
61060         glibc, to avoid spurious diffs.
61061
61062 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61065         2004-12-01 change by Jakub Jelinek, since this code won't compile
61066         if !LIBC.  Problem reported by Bob Proulx.
61067
61068 2007-01-23  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/striconveh.c: Include c-strcaseeq.h.
61071         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61072         * modules/striconveh (Depends-on): Add c-strcaseeq.
61073
61074 2007-01-23  Bruno Haible  <bruno@clisp.org>
61075
61076         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61077
61078         * modules/c-strcaseeq: New file.
61079         * lib/c-strcaseeq.h: New file.
61080
61081         * modules/streq: New file.
61082         * lib/streq.h: New file.
61083
61084 2007-01-23  Bruno Haible  <bruno@clisp.org>
61085
61086         * modules/striconveha-tests: New file.
61087         * tests/test-striconveha.c: New file.
61088
61089         * lib/striconveha.h: Include <stdbool.h>.
61090         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61091         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61092         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61093         (mem_iconveha): New function.
61094         (str_iconveha_notranslit): Renamed from str_iconveha.
61095         (str_iconveha): New function.
61096         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61097         c-strcase.
61098
61099 2007-01-23  Bruno Haible  <bruno@clisp.org>
61100
61101         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61102         encodings without forgiving before trying any encoding with handler.
61103         (str_iconveha): Try all encodings without forgiving before trying any
61104         encoding with handler.
61105
61106 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61107
61108         Import the following changes from libc.
61109
61110         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61111
61112         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61113
61114         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61115
61116         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61117         normal_bracket label.
61118
61119         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61120
61121         [BZ #361]
61122         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61123         to normal_bracket after fetching the next character.
61124
61125 2007-01-22  Bruno Haible  <bruno@clisp.org>
61126
61127         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61128         argument.
61129         * lib/striconveh.c (iconv_carefully_1): New function.
61130         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61131         argument.
61132         (str_cd_iconveh): Update.
61133         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61134         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61135         * tests/test-striconveh.c (MAGIC): New macro.
61136         (new_offsets): New function.
61137         (main): Test call with and without offsets.
61138
61139 2007-01-22  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61142         * modules/sys_select (Makefile.am): Likewise.
61143         * modules/sys_socket (Makefile.am): Likewise.
61144         * modules/sys_time (Makefile.am): Likewise.
61145
61146 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         * modules/gettimeofday (License): Change from GPL to LGPL, since
61149         gettimeofday is a library function.
61150
61151 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61152
61153         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61154
61155 2007-01-21  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61158
61159 2007-01-21  Bruno Haible  <bruno@clisp.org>
61160
61161         * modules/striconveha: New file.
61162         * lib/striconveha.h: New file.
61163         * lib/striconveha.c: New file.
61164         * MODULES.html.sh (Internationalization functions): Add striconveha.
61165         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61166         string.
61167         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61168
61169 2007-01-21  Bruno Haible  <bruno@clisp.org>
61170
61171         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61172         * lib/striconveh.c (str_iconveh): Likewise.
61173
61174 2007-01-21  Bruno Haible  <bruno@clisp.org>
61175
61176         * lib/striconveh.h (mem_iconveh): New declaration.
61177         * lib/striconveh.c (mem_iconveh): New function.
61178         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61179
61180 2007-01-21  Bruno Haible  <bruno@clisp.org>
61181
61182         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61183
61184         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61185         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61186         original result buffer.
61187         (str_cd_iconveh): Update.
61188         * tests/test-striconveh.c (main): Update.
61189
61190         * lib/striconv.h (mem_cd_iconv): Change specification.
61191         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61192         result buffer.
61193         (str_cd_iconv): Update.
61194         * tests/test-striconv.c (main): Update.
61195
61196 2007-01-21  Bruno Haible  <bruno@clisp.org>
61197
61198         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61199
61200 2007-01-20  Jim Meyering  <jim@meyering.net>
61201
61202         * lib/userspec.c (parse_with_separator): If a user or group string
61203         starts with "+", skip the corresponding name-to-ID look-up, since
61204         such a look-up must fail: user and group names may not include "+".
61205
61206 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61207
61208         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61209         since we now assume the sys_time module.
61210         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61211         check for sys/time.h; no longer needed.
61212         * modules/poll (Depends-on): Depend on sys_time.
61213
61214 2007-01-18  Bruno Haible  <bruno@clisp.org>
61215
61216         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61217         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61218
61219         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61220         gettimeofday.
61221
61222         * tests/test-gettimeofday.c: Include <time.h>.
61223         (dummy): Remove variable.
61224
61225         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61226         gl_HEADER_SYS_TIME_H.
61227         (gl_HEADER_SYS_TIME_H): New macro.
61228
61229         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61230         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61232         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61233         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61234         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61235         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61236         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61237         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61238         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61239         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61240
61241         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61242         last change; it caused a compilation error when cross-compiling to
61243         Cygwin.
61244
61245 2007-01-18  Jim Meyering  <jim@meyering.net>
61246
61247         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61248         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61249         than the race-prone "test -d sys || mkdir sys".
61250         (configure.ac): Use AC_PROG_MKDIR_P.
61251         * modules/sys_select: Likewise.
61252         * modules/sys_socket: Likewise.
61253         * modules/sys_time: Likewise.
61254
61255 2007-01-18  Eric Blake  <ebb9@byu.net>
61256
61257         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61258         replace gettimeofday.
61259         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61260         name, to avoid infinite recursion.
61261
61262 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61265         module sys_time.
61266         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61267         assume timespec.h defines struct timeval.
61268         * lib/settime.c: Likewise.
61269         * lib/utimens.c: Likewise.
61270         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61271         since we now assume the gettimeofday module.
61272         * lib/tempname.c (__gen_tempname): Likewise.
61273         * lib/gettimeofday.h: Remove.
61274         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61275         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61276         Include <time.h>, for 'time()'.
61277         (localtime_buffer_addr): Also use this workaround if
61278         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61279         to simplify the uses.  All uses changed.
61280         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61281         that #undef is inside {}, and 'const' follows type name consistently.
61282         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61283         (gettimeofday): Do not use the maximum possible value for
61284         tv->tv_usec, since that might break usages other than ls.c.
61285         Instead, we'll leave ls.c alone.  This undoes today's patch
61286         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61287         we've never observed the problem but might as well keep the
61288         canary.
61289         * lib/nanosleep.c: Include timespec.h first, for interface check.
61290         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61291         now assume the sys_time module.
61292         * lib/tempname.c: Likewise.
61293         * lib/timespec.h: Likewise.
61294         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61295         needed.
61296         * lib/strftime.c: Likewise.
61297         * lib/timespec.h: Likewise.
61298         * lib/posixtm.c: Include posixtm.h first, for interface check.
61299         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61300         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61301         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61302         * lib/sys_time_.h: New file.
61303         * lib/timespec.h (struct timespec): Use long int, not long.
61304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61305         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61306         Remove obsolescent call to AC_HEADER_TIME.
61307         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61309         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61310         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61311         Likewise.
61312         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61313         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61314         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61315         into the sys_time module.  Check for gettimeofday just once.
61316         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61317         for gettimeofday signature to just check the signature.  Merely
61318         compile it, since linking doesn't test signature.  Improve test for
61319         whether gettimeofday.o is actually needed.
61320         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61321         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61322         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61323         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61324         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61325         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61326         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61327         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61328         than worrying about sys/time.h.
61329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61330         Don't bother worrying about TIME_WITH_SYS_TIME.
61331         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61332         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61333         * m4/sys_time_h.m4: New file.
61334         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61335         Don't include sys/time.h.  Return from main rather than exiting.
61336         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61337         all uses changed.
61338         * modules/gethrxtime (Depends-on): Add sys_time.
61339         * modules/gettime (Depends-on): Likewise.
61340         * modules/gettimeofday (Depends-on): Likewise.
61341         * modules/nanosleep (Depends-on): Likewise.
61342         * modules/settime (Depends-on): Likewise.
61343         * modules/tempname (Depends-on): Likewise.
61344         * modules/utimens (Depends-on): Likewise.
61345         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61346         (Include): Change back to <sys/time.h>.
61347         (Maintainer): Add self.
61348         * modules/sys_time: New file.
61349         * modules/tempname (Depends-on): Add gettimeofday.
61350         * tests/test-gettimeofday.c: Include <sys/time.h>
61351         rather than gettimeofday.h.
61352
61353 2007-01-17  Bruno Haible  <bruno@clisp.org>
61354
61355         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61356         the license default to GPL.
61357         (func_create_testdir): Don't complain if a module is LGPL and its
61358         tests module depends on GPLed modules.
61359
61360 2007-01-17  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/gettimeofday.c (gettimeofday): Add code for the case
61363         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61364         maximum possible value for tv->tv_usec, rather than the minimum one.
61365
61366 2005-10-08  Martin Lambers  <marlam@marlam.de>
61367 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61368 2007-01-16  Bruno Haible  <bruno@clisp.org>
61369
61370         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61371         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61372         gl_FUNC_GETTIMEOFDAY.
61373         (Include): Add gettimeofday.h.
61374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61375         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61376         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61377         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61378         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61379         * lib/gettimeofday.h: New file.
61380         * lib/gettimeofday.c: Include <sys/timeb.h>.
61381         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61382         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61383         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61384         fall back on time().
61385
61386         * tests/test-gettimeofday.c: New file.
61387         * modules/gettimeofday-tests: New file.
61388
61389 2007-01-16  Eric Blake  <ebb9@byu.net>
61390
61391         * modules/fnmatch (Depends-on): Depend on wchar.
61392         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61393         * m4/fnmatch.m4: Likewise.
61394         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61395         * m4/mbchar.m4: Likewise.
61396         * modules/mbswidth (Depends-on): Depend on wchar.
61397         * lib/mbswidth.c: Assume <wchar.h>.
61398         * m4/mbswidth.m4: Likewise.
61399         * modules/quotearg (Depends-on): Depend on wchar.
61400         * lib/quotearg.c: Assume <wchar.h>.
61401         * m4/quotearg.m4: Likewise.
61402         * modules/regex (Depends-on): Depend on wchar.
61403         * lib/regex_internal.h: Assume <wchar.h>.
61404         * m4/regex.m4: Likewise.
61405         * modules/stdint (Depends-on): Depend on wchar.
61406         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61407         * m4/stdint.m4: Likewise.
61408         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61409         * modules/strftime (Depends-on): Depend on wchar.
61410         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61411         * modules/strtol (Depends-on): Depend on wchar.
61412         * lib/strtol.c: Assume <wchar.h>.
61413         * modules/wcwidth (Depends-on): Depend on wchar.
61414         * lib/wcwidth.h: Assume <wchar.h>.
61415         * m4/wcwidth.m4: Likewise.
61416
61417 2007-01-16  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/csharpexec-script: New, created from...
61420         * modules/csharpexec: ... this.
61421
61422 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61423
61424         * modules/javaexec-script: New, created from...
61425         * modules/javaexec: ... this.
61426
61427 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61428
61429         * modules/poll (Dependencies): Add sys_select.
61430
61431 2007-01-15  Jim Meyering  <jim@meyering.net>
61432
61433         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61434         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61435         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61436         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61437
61438 2007-01-15  Bruno Haible  <bruno@clisp.org>
61439
61440         * modules/striconveh: New file.
61441         * lib/striconveh.h: New file.
61442         * lib/striconveh.c: New file.
61443         * MODULES.html.sh (Internationalization functions): Add striconveh.
61444
61445         * modules/striconveh-tests: New file.
61446         * tests/test-striconveh.c: New file.
61447
61448 2007-01-15  Bruno Haible  <bruno@clisp.org>
61449
61450         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61451         not from GNU libiconv or GNU libc.
61452
61453 2007-01-15  Bruno Haible  <bruno@clisp.org>
61454
61455         * doc/gnulib-intro.texi (Copyright): Explain the different license
61456         terms for module descriptions, autoconf macros, tests, documentation.
61457
61458 2007-01-14  Bruno Haible  <bruno@clisp.org>
61459
61460         * modules/striconv-tests: New file.
61461         * tests/test-striconv.c: New file.
61462
61463 2007-01-14  Bruno Haible  <bruno@clisp.org>
61464
61465         * modules/iconv-tests: New file.
61466         * tests/test-iconv.c: New file.
61467
61468 2007-01-14  Bruno Haible  <bruno@clisp.org>
61469
61470         * gnulib-tool (func_get_license): For test modules, use the license of
61471         the main module.
61472
61473 2007-01-14  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61476         if iconv is found to exist.
61477
61478 2007-01-14  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/c-ctype-tests: New file.
61481         * tests/test-c-ctype.c: New file.
61482
61483 2007-01-14  Bruno Haible  <bruno@clisp.org>
61484
61485         * modules/binary-io-tests: New file.
61486         * tests/test-binary-io.sh: New file.
61487         * tests/test-binary-io.c: New file.
61488
61489 2007-01-14  Bruno Haible  <bruno@clisp.org>
61490
61491         * modules/array-oset-tests: New file.
61492         * tests/test-array_oset.c: New file.
61493
61494 2007-01-14  Bruno Haible  <bruno@clisp.org>
61495
61496         * modules/array-list-tests: New file.
61497         * tests/test-array_list.c: New file.
61498
61499 2007-01-14  Bruno Haible  <bruno@clisp.org>
61500
61501         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61502         and make.
61503         Reported by Simon Josefsson in
61504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61505
61506 2007-01-14  Bruno Haible  <bruno@clisp.org>
61507
61508         * modules/allocsa-tests: New file.
61509         * tests/test-allocsa.c: New file.
61510
61511 2007-01-14  Bruno Haible  <bruno@clisp.org>
61512
61513         * modules/fchdir (Depends-on): Add absolute-header.
61514         * modules/unistd (Depends-on): Likewise.
61515
61516 2006-12-30  Bruno Haible  <bruno@clisp.org>
61517
61518         * modules/fchdir: New file.
61519         * modules/unistd (Files): Add lib/unistd_.h.
61520         (Makefile.am): Generate unistd.h from unistd_.h.
61521         * lib/fchdir.c: New file.
61522         * lib/dirent_.h: New file.
61523         * lib/unistd_.h: New file.
61524         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61525         * m4/fchdir.m4: New file.
61526         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61527         (gl_HEADER_UNISTD): Invoke it.
61528         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61529         function.
61530         * lib/backupfile.c (opendir, closedir): Undefine.
61531         * lib/chown.c (open, close): Undefine.
61532         * lib/clean-temp.c (open, close): Undefine.
61533         * lib/copy-file.c (open, close): Undefine.
61534         * lib/execute.c (open, close): Undefine.
61535         * lib/fsusage.c (open, close): Undefine.
61536         * lib/gc-gnulib.c (open, close): Undefine.
61537         * lib/getcwd.c (opendir, closedir): Undefine.
61538         * lib/glob.c (opendir, closedir): Undefine.
61539         * lib/javacomp.c (open, close): Undefine.
61540         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61541         * lib/openat-proc.c (open, close): Undefine.
61542         * lib/pagealign_alloc.c (open, close): Undefine.
61543         * lib/pipe.c (open, close): Undefine.
61544         * lib/progreloc.c (open, close): Undefine.
61545         * lib/savedir.c (opendir, closedir): Undefine.
61546         * lib/utime.c (open, close): Undefine.
61547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61548
61549 2007-01-10  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61552
61553 2007-01-12  Eric Blake  <ebb9@byu.net>
61554
61555         Provide a robust <wchar.h>.  Further simplifications are now
61556         possible in other modules, but not included here.
61557         * modules/wchar: New module.
61558         * m4/wchar.m4: New file.
61559         * lib/wchar_.h: Likewise.
61560         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61561         of the new module.
61562         * MODULES.html.sh (Extended multibyte and wide character utilities):
61563         New section.
61564
61565 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61566
61567         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61568         to a reasonable default for memory allocation.
61569         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61570         file system that reports garbage st_size values for symlinks.
61571         Problem reported by Liyang Hu.
61572
61573 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61574
61575         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61576         Emacs .#* auto-save files).
61577
61578 2007-01-11  Bruno Haible  <bruno@clisp.org>
61579
61580         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61581         directory.
61582
61583 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         Use @...@ consistently in lib/wctype_.h.
61586         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61587         on it being set to 1 or 0.
61588         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61589         go back to AC_SUBSTing it.
61590         * modules/wctype (Makefile.am): Undo previous change.
61591
61592 2007-01-10  Eric Blake  <ebb9@byu.net>
61593
61594         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61595         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61596         * modules/wctype (Makefile.am): Likewise.
61597         Reported by Chris McGuire.
61598
61599 2007-01-10  Jim Meyering  <jim@meyering.net>
61600
61601         fts.c: a small readability/maintainability improvement
61602         * lib/fts.c (fts_read): Make this code slightly more readable and
61603         maintainable by hoisting the "sp->fts_cur = p" assignments to
61604         immediately follow the statements that set P.  Derived from
61605         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61606
61607 2007-01-10  Eric Blake  <ebb9@byu.net>
61608
61609         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61610         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61612         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61613         Reported by Chris McGuire.
61614
61615 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61616
61617         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61618         in sed script.
61619
61620 2007-01-09  Bruno Haible  <bruno@clisp.org>
61621
61622         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61623         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61624         variables.
61625         (func_module): Use them.
61626
61627 2007-01-09  Bruno Haible  <bruno@clisp.org>
61628
61629         * modules/unistr/base: New file.
61630         * lib/unistr.h: New file.
61631
61632         * modules/unistr/u8-to-u16: New file.
61633         * lib/unistr/u8-to-u16.c: New file.
61634
61635         * modules/unistr/u8-to-u32: New file.
61636         * lib/unistr/u8-to-u32.c: New file.
61637
61638         * modules/unistr/u16-to-u8: New file.
61639         * lib/unistr/u16-to-u8.c: New file.
61640
61641         * modules/unistr/u16-to-u32: New file.
61642         * lib/unistr/u16-to-u32.c: New file.
61643
61644         * modules/unistr/u32-to-u8: New file.
61645         * lib/unistr/u32-to-u8.c: New file.
61646
61647         * modules/unistr/u32-to-u16: New file.
61648         * lib/unistr/u32-to-u16.c: New file.
61649
61650         * modules/unistr/u8-check: New file.
61651         * modules/unistr/u16-check: New file.
61652         * modules/unistr/u32-check: New file.
61653         * lib/unistr/u8-check.c: New file.
61654         * lib/unistr/u16-check.c: New file.
61655         * lib/unistr/u32-check.c: New file.
61656
61657         * modules/unistr/u8-chr: New file.
61658         * modules/unistr/u16-chr: New file.
61659         * modules/unistr/u32-chr: New file.
61660         * lib/unistr/u8-chr.c: New file.
61661         * lib/unistr/u16-chr.c: New file.
61662         * lib/unistr/u32-chr.c: New file.
61663
61664         * modules/unistr/u8-cmp: New file.
61665         * modules/unistr/u16-cmp: New file.
61666         * modules/unistr/u32-cmp: New file.
61667         * lib/unistr/u8-cmp.c: New file.
61668         * lib/unistr/u16-cmp.c: New file.
61669         * lib/unistr/u32-cmp.c: New file.
61670
61671         * modules/unistr/u8-cpy: New file.
61672         * modules/unistr/u16-cpy: New file.
61673         * modules/unistr/u32-cpy: New file.
61674         * lib/unistr/u8-cpy.c: New file.
61675         * lib/unistr/u16-cpy.c: New file.
61676         * lib/unistr/u32-cpy.c: New file.
61677         * lib/unistr/u-cpy.h: New file.
61678
61679         * modules/unistr/u8-cpy-alloc: New file.
61680         * modules/unistr/u16-cpy-alloc: New file.
61681         * modules/unistr/u32-cpy-alloc: New file.
61682         * lib/unistr/u8-cpy-alloc.c: New file.
61683         * lib/unistr/u16-cpy-alloc.c: New file.
61684         * lib/unistr/u32-cpy-alloc.c: New file.
61685         * lib/unistr/u-cpy-alloc.h: New file.
61686
61687         * modules/unistr/u8-endswith: New file.
61688         * modules/unistr/u16-endswith: New file.
61689         * modules/unistr/u32-endswith: New file.
61690         * lib/unistr/u8-endswith.c: New file.
61691         * lib/unistr/u16-endswith.c: New file.
61692         * lib/unistr/u32-endswith.c: New file.
61693         * lib/unistr/u-endswith.h: New file.
61694
61695         * modules/unistr/u8-mblen: New file.
61696         * modules/unistr/u16-mblen: New file.
61697         * modules/unistr/u32-mblen: New file.
61698         * lib/unistr/u8-mblen.c: New file.
61699         * lib/unistr/u16-mblen.c: New file.
61700         * lib/unistr/u32-mblen.c: New file.
61701
61702         * modules/unistr/u8-mbtouc: New file.
61703         * modules/unistr/u16-mbtouc: New file.
61704         * modules/unistr/u32-mbtouc: New file.
61705         * lib/unistr/u8-mbtouc.c: New file.
61706         * lib/unistr/u16-mbtouc.c: New file.
61707         * lib/unistr/u32-mbtouc.c: New file.
61708
61709         * modules/unistr/u8-mbtouc-safe: New file.
61710         * modules/unistr/u16-mbtouc-safe: New file.
61711         * modules/unistr/u32-mbtouc-safe: New file.
61712         * lib/unistr/u8-mbtouc-safe.c: New file.
61713         * lib/unistr/u16-mbtouc-safe.c: New file.
61714         * lib/unistr/u32-mbtouc-safe.c: New file.
61715
61716         * modules/unistr/u8-move: New file.
61717         * modules/unistr/u16-move: New file.
61718         * modules/unistr/u32-move: New file.
61719         * lib/unistr/u8-move.c: New file.
61720         * lib/unistr/u16-move.c: New file.
61721         * lib/unistr/u32-move.c: New file.
61722         * lib/unistr/u-move.h: New file.
61723
61724         * modules/unistr/u8-next: New file.
61725         * modules/unistr/u16-next: New file.
61726         * modules/unistr/u32-next: New file.
61727         * lib/unistr/u8-next.c: New file.
61728         * lib/unistr/u16-next.c: New file.
61729         * lib/unistr/u32-next.c: New file.
61730
61731         * modules/unistr/u8-prev: New file.
61732         * modules/unistr/u16-prev: New file.
61733         * modules/unistr/u32-prev: New file.
61734         * lib/unistr/u8-prev.c: New file.
61735         * lib/unistr/u16-prev.c: New file.
61736         * lib/unistr/u32-prev.c: New file.
61737
61738         * modules/unistr/u8-set: New file.
61739         * modules/unistr/u16-set: New file.
61740         * modules/unistr/u32-set: New file.
61741         * lib/unistr/u8-set.c: New file.
61742         * lib/unistr/u16-set.c: New file.
61743         * lib/unistr/u32-set.c: New file.
61744         * lib/unistr/u-set.h: New file.
61745
61746         * modules/unistr/u8-startswith: New file.
61747         * modules/unistr/u16-startswith: New file.
61748         * modules/unistr/u32-startswith: New file.
61749         * lib/unistr/u8-startswith.c: New file.
61750         * lib/unistr/u16-startswith.c: New file.
61751         * lib/unistr/u32-startswith.c: New file.
61752         * lib/unistr/u-startswith.h: New file.
61753
61754         * modules/unistr/u8-stpcpy: New file.
61755         * modules/unistr/u16-stpcpy: New file.
61756         * modules/unistr/u32-stpcpy: New file.
61757         * lib/unistr/u8-stpcpy.c: New file.
61758         * lib/unistr/u16-stpcpy.c: New file.
61759         * lib/unistr/u32-stpcpy.c: New file.
61760         * lib/unistr/u-stpcpy.h: New file.
61761
61762         * modules/unistr/u8-stpncpy: New file.
61763         * modules/unistr/u16-stpncpy: New file.
61764         * modules/unistr/u32-stpncpy: New file.
61765         * lib/unistr/u8-stpncpy.c: New file.
61766         * lib/unistr/u16-stpncpy.c: New file.
61767         * lib/unistr/u32-stpncpy.c: New file.
61768         * lib/unistr/u-stpncpy.h: New file.
61769
61770         * modules/unistr/u8-strcat: New file.
61771         * modules/unistr/u16-strcat: New file.
61772         * modules/unistr/u32-strcat: New file.
61773         * lib/unistr/u8-strcat.c: New file.
61774         * lib/unistr/u16-strcat.c: New file.
61775         * lib/unistr/u32-strcat.c: New file.
61776         * lib/unistr/u-strcat.h: New file.
61777
61778         * modules/unistr/u8-strchr: New file.
61779         * modules/unistr/u16-strchr: New file.
61780         * modules/unistr/u32-strchr: New file.
61781         * lib/unistr/u8-strchr.c: New file.
61782         * lib/unistr/u16-strchr.c: New file.
61783         * lib/unistr/u32-strchr.c: New file.
61784
61785         * modules/unistr/u8-strcmp: New file.
61786         * modules/unistr/u16-strcmp: New file.
61787         * modules/unistr/u32-strcmp: New file.
61788         * lib/unistr/u8-strcmp.c: New file.
61789         * lib/unistr/u16-strcmp.c: New file.
61790         * lib/unistr/u32-strcmp.c: New file.
61791
61792         * modules/unistr/u8-strcpy: New file.
61793         * modules/unistr/u16-strcpy: New file.
61794         * modules/unistr/u32-strcpy: New file.
61795         * lib/unistr/u8-strcpy.c: New file.
61796         * lib/unistr/u16-strcpy.c: New file.
61797         * lib/unistr/u32-strcpy.c: New file.
61798         * lib/unistr/u-strcpy.h: New file.
61799
61800         * modules/unistr/u8-strcspn: New file.
61801         * modules/unistr/u16-strcspn: New file.
61802         * modules/unistr/u32-strcspn: New file.
61803         * lib/unistr/u8-strcspn.c: New file.
61804         * lib/unistr/u16-strcspn.c: New file.
61805         * lib/unistr/u32-strcspn.c: New file.
61806         * lib/unistr/u-strcspn.h: New file.
61807
61808         * modules/unistr/u8-strdup: New file.
61809         * modules/unistr/u16-strdup: New file.
61810         * modules/unistr/u32-strdup: New file.
61811         * lib/unistr/u8-strdup.c: New file.
61812         * lib/unistr/u16-strdup.c: New file.
61813         * lib/unistr/u32-strdup.c: New file.
61814         * lib/unistr/u-strdup.h: New file.
61815
61816         * modules/unistr/u8-strlen: New file.
61817         * modules/unistr/u16-strlen: New file.
61818         * modules/unistr/u32-strlen: New file.
61819         * lib/unistr/u8-strlen.c: New file.
61820         * lib/unistr/u16-strlen.c: New file.
61821         * lib/unistr/u32-strlen.c: New file.
61822         * lib/unistr/u-strlen.h: New file.
61823
61824         * modules/unistr/u8-strmblen: New file.
61825         * modules/unistr/u16-strmblen: New file.
61826         * modules/unistr/u32-strmblen: New file.
61827         * lib/unistr/u8-strmblen.c: New file.
61828         * lib/unistr/u16-strmblen.c: New file.
61829         * lib/unistr/u32-strmblen.c: New file.
61830
61831         * modules/unistr/u8-strmbtouc: New file.
61832         * modules/unistr/u16-strmbtouc: New file.
61833         * modules/unistr/u32-strmbtouc: New file.
61834         * lib/unistr/u8-strmbtouc.c: New file.
61835         * lib/unistr/u16-strmbtouc.c: New file.
61836         * lib/unistr/u32-strmbtouc.c: New file.
61837
61838         * modules/unistr/u8-strncat: New file.
61839         * modules/unistr/u16-strncat: New file.
61840         * modules/unistr/u32-strncat: New file.
61841         * lib/unistr/u8-strncat.c: New file.
61842         * lib/unistr/u16-strncat.c: New file.
61843         * lib/unistr/u32-strncat.c: New file.
61844         * lib/unistr/u-strncat.h: New file.
61845
61846         * modules/unistr/u8-strncmp: New file.
61847         * modules/unistr/u16-strncmp: New file.
61848         * modules/unistr/u32-strncmp: New file.
61849         * lib/unistr/u8-strncmp.c: New file.
61850         * lib/unistr/u16-strncmp.c: New file.
61851         * lib/unistr/u32-strncmp.c: New file.
61852
61853         * modules/unistr/u8-strncpy: New file.
61854         * modules/unistr/u16-strncpy: New file.
61855         * modules/unistr/u32-strncpy: New file.
61856         * lib/unistr/u8-strncpy.c: New file.
61857         * lib/unistr/u16-strncpy.c: New file.
61858         * lib/unistr/u32-strncpy.c: New file.
61859         * lib/unistr/u-strncpy.h: New file.
61860
61861         * modules/unistr/u8-strnlen: New file.
61862         * modules/unistr/u16-strnlen: New file.
61863         * modules/unistr/u32-strnlen: New file.
61864         * lib/unistr/u8-strnlen.c: New file.
61865         * lib/unistr/u16-strnlen.c: New file.
61866         * lib/unistr/u32-strnlen.c: New file.
61867         * lib/unistr/u-strnlen.h: New file.
61868
61869         * modules/unistr/u8-strpbrk: New file.
61870         * modules/unistr/u16-strpbrk: New file.
61871         * modules/unistr/u32-strpbrk: New file.
61872         * lib/unistr/u8-strpbrk.c: New file.
61873         * lib/unistr/u16-strpbrk.c: New file.
61874         * lib/unistr/u32-strpbrk.c: New file.
61875         * lib/unistr/u-strpbrk.h: New file.
61876
61877         * modules/unistr/u8-strrchr: New file.
61878         * modules/unistr/u16-strrchr: New file.
61879         * modules/unistr/u32-strrchr: New file.
61880         * lib/unistr/u8-strrchr.c: New file.
61881         * lib/unistr/u16-strrchr.c: New file.
61882         * lib/unistr/u32-strrchr.c: New file.
61883
61884         * modules/unistr/u8-strspn: New file.
61885         * modules/unistr/u16-strspn: New file.
61886         * modules/unistr/u32-strspn: New file.
61887         * lib/unistr/u8-strspn.c: New file.
61888         * lib/unistr/u16-strspn.c: New file.
61889         * lib/unistr/u32-strspn.c: New file.
61890         * lib/unistr/u-strspn.h: New file.
61891
61892         * modules/unistr/u8-strstr: New file.
61893         * modules/unistr/u16-strstr: New file.
61894         * modules/unistr/u32-strstr: New file.
61895         * lib/unistr/u8-strstr.c: New file.
61896         * lib/unistr/u16-strstr.c: New file.
61897         * lib/unistr/u32-strstr.c: New file.
61898         * lib/unistr/u-strstr.h: New file.
61899
61900         * modules/unistr/u8-strtok: New file.
61901         * modules/unistr/u16-strtok: New file.
61902         * modules/unistr/u32-strtok: New file.
61903         * lib/unistr/u8-strtok.c: New file.
61904         * lib/unistr/u16-strtok.c: New file.
61905         * lib/unistr/u32-strtok.c: New file.
61906         * lib/unistr/u-strtok.h: New file.
61907
61908         * modules/unistr/u8-uctomb: New file.
61909         * modules/unistr/u16-uctomb: New file.
61910         * modules/unistr/u32-uctomb: New file.
61911         * lib/unistr/u8-uctomb.c: New file.
61912         * lib/unistr/u16-uctomb.c: New file.
61913         * lib/unistr/u32-uctomb.c: New file.
61914
61915         * MODULES.html.sh (Unicode string functions): Add the new modules.
61916
61917 2007-01-08  Bruno Haible  <bruno@clisp.org>
61918
61919         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61920         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61921         subdirectories.
61922
61923 2007-01-08  Karl Berry  <karl@gnu.org>
61924
61925         * doc/error.texi: mention that main() fns must set program_name
61926         when progname is used.
61927
61928 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61931         WCTYPE_H is empty, for the benefit of builds from non-distclean
61932         directories.  Problem reported by Eric Blake in
61933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61934
61935 2007-01-08  Bruno Haible  <bruno@clisp.org>
61936
61937         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61938         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61939         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61940         PROVIDE_CANONICALIZE_FILENAME_MODE.
61941         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61942
61943 2007-01-08  Bruno Haible  <bruno@clisp.org>
61944
61945         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61946         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61947         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61948         * lib/fts.c: Likewise.
61949         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61950
61951 2006-12-25  Bruno Haible  <bruno@clisp.org>
61952
61953         * modules/utf8-ucs4-safe: New file.
61954         * lib/utf8-ucs4-safe.h: New file.
61955         * lib/unistr/utf8-ucs4-safe.c: New file.
61956
61957         * modules/utf16-ucs4-safe: New file.
61958         * lib/utf16-ucs4-safe.h: New file.
61959         * lib/unistr/utf16-ucs4-safe.c: New file.
61960
61961         * MODULES.html.sh (Unicode string functions): Add the new modules.
61962
61963 2007-01-08  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61966         (Depends-on): Add unitypes.
61967         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61968         (u8_mbtouc_aux): Move out to separate file.
61969         (u8_mbtouc): Use ucs4_t, uint8_t types.
61970         * lib/unistr/utf8-ucs4.c: New file.
61971
61972         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61973         (Depends-on): Add unitypes.
61974         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61975         (u16_mbtouc_aux): Move out to separate file.
61976         (u16_mbtouc): Use ucs4_t, uint16_t types.
61977         * lib/unistr/utf16-ucs4.c: New file.
61978
61979         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61980         (Depends-on): Add unitypes.
61981         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61982         (u8_uctomb_aux): Move out to separate file.
61983         (u8_uctomb): Use ucs4_t, uint8_t types.
61984         * lib/unistr/ucs4-utf8.c: New file.
61985
61986         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61987         (Depends-on): Add unitypes.
61988         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61989         (u16_uctomb_aux): Move out to separate file.
61990         (u16_uctomb): Use ucs4_t, uint16_t types.
61991         * lib/unistr/ucs4-utf16.c: New file.
61992
61993 2006-12-25  Bruno Haible  <bruno@clisp.org>
61994
61995         * modules/unitypes: New file.
61996         * lib/unitypes.h: New file.
61997         * MODULES.html.sh (func_all_modules): New section "Unicode string
61998         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61999         this section. Add unitypes.
62000
62001 2007-01-08  Bruno Haible  <bruno@clisp.org>
62002
62003         Avoid variable names that conflict with those from libtool.
62004         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62005         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62006         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62007         library_names_spec to acl_library_names_spec, hardcode_* to
62008         acl_hardcode_*.
62009         Reported by Ralf Wildenhues.
62010
62011 2007-01-08  Bruno Haible  <bruno@clisp.org>
62012
62013         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62014         definition.
62015         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62016         definition.
62017         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62018         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62019         definition.
62020         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62021         definition.
62022         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62023         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62024         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62025         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62026         definition.
62027         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62028         definition.
62029         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62030         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62031         GC_USE_<algorithm>.
62032         * lib/gc-libgcrypt.c: Likewise.
62033         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62034         * modules/gc-arctwo (configure.ac): Likewise.
62035         * modules/gc-des (configure.ac): Likewise.
62036         * modules/gc-hmac-md5 (configure.ac): Likewise.
62037         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62038         * modules/gc-md2 (configure.ac): Likewise.
62039         * modules/gc-md4 (configure.ac): Likewise.
62040         * modules/gc-md5 (configure.ac): Likewise.
62041         * modules/gc-random (configure.ac): Likewise.
62042         * modules/gc-rijndael (configure.ac): Likewise.
62043         * modules/gc-sha1 (configure.ac): Likewise.
62044
62045 2007-01-08  Bruno Haible  <bruno@clisp.org>
62046
62047         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62048         macro definition.
62049         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62050         definition.
62051         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62052         definition.
62053         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62054         * modules/fcntl-safer (configure.ac): Likewise.
62055         * modules/fopen-safer (configure.ac): Likewise.
62056         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62057         GNULIB_FWRITEERROR macro definition.
62058
62059 2007-01-08  Bruno Haible  <bruno@clisp.org>
62060
62061         * m4/gnulib-common.m4: New file.
62062         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62063         (func_get_filelist): Add m4/gnulib-common.m4.
62064
62065 2007-01-08  Bruno Haible  <bruno@clisp.org>
62066
62067         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62068         command.
62069
62070 2007-01-08  Jim Meyering  <jim@meyering.net>
62071
62072         Use a more robust test for a "can't happen" condition.
62073         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62074         narrowed the st_size value.  Presuming the "can't happen" condition
62075         is true, that narrowing could conceivably convert an invalid st_size
62076         value into a valid one.  Instead, use a change based on Matthew
62077         Woehlke's original patch.
62078
62079         Slight readability improvement: use an assert-like macro
62080         in place of literal "abort ()" uses.
62081         * lib/fts.c (fts_assert): Define.
62082         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62083         Use this macro instead of a bare 'abort'.
62084
62085 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62086
62087         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62088         simply work around them.
62089         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62090         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62091         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62092         declaring.
62093         Don't bother to define as macros, since the standard doesn't require it.
62094         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62095         longer worry about IRIX 5.3.
62096         (HAVE_WCTYPE_CTMP_BUG): Remove.
62097
62098 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62099
62100         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62101         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62102         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62103         Problems reported by Georg Schwarz for IRIX 5.3.
62104
62105         * gnulib-tool (autoconf_minversion): Take the maximum version number
62106         found, not the minimum.  Problem reported by James Youngman.
62107
62108 2007-01-03  Karl Berry  <karl@gnu.org>
62109
62110         * doc/error.texi: new file, explaining interaction with progname.
62111         * doc/gnulib.texi: include it.  Update copyright.
62112
62113 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62114
62115         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62116         AC_CANONICAL_HOST, to improve autobuild outputs.
62117
62118 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62119             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62120
62121         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62122         sockets, server sockets, and other file descriptors.  Count errors
62123         to compute the return value.  Reorder the code a bit to be easier
62124         to follow.  Don't set event bits that were not requested (except
62125         POLLERR and POLLHUP).
62126
62127 2007-01-01  Bruno Haible  <bruno@clisp.org>
62128
62129         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62130
62131 2007-01-03  Jim Meyering  <jim@meyering.net>
62132
62133         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62134
62135 2007-01-02  Bruno Haible  <bruno@clisp.org>
62136
62137         * modules/settime (Include): Require timespec.h.
62138         * modules/nanosleep (Include): Likewise.
62139
62140 2007-01-01  Bruno Haible  <bruno@clisp.org>
62141
62142         * gnulib-tool (func_emit_copyright_notice): Bump year.
62143         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62144
62145 2007-01-01  Bruno Haible  <bruno@clisp.org>
62146
62147         Improve support for OpenBSD.
62148         * build-aux/config.rpath (libname_spec): Export.
62149         (library_names_spec): New variable. Export.
62150         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62151         library_names_spec from the config.rpath output. Locate shared library
62152         through the name pattern in library_names_spec.
62153
62154 2007-01-01  Eric Blake  <ebb9@byu.net>
62155
62156         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62157
62158 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62161         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62162         assume the C locale, and avoid an "eval" that could cause trouble.
62163         Problem with SORT reported by Bob Proulx.
62164
62165         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62166         Define.  Trivial patch from Henning Nielsen Lund, originally
62167         sent to bug-grep@gnu.org today.
62168
62169 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62172         struct stat.  Problem reported by Henning Nielsen Lund.
62173         * lib/acl.c: Include acl.h first, to check interface.  Don't
62174         bother to include sys/types.h and sys/stat.h again.
62175
62176 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         Import the following change from libc; problem reported by
62179         Sven Verdoolaege.
62180
62181         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62182
62183         [BZ #1373]
62184         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62185
62186 2006-12-28  Jim Meyering  <jim@meyering.net>
62187
62188         * build-aux/announce-gen: Do not assume that the package
62189         builds any of tar.gz, tar.bz2, and .xdelta files.
62190         Suggestion from Simon Josefsson.
62191
62192 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62193
62194         * modules/announce-gen: New file.
62195
62196 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62197
62198         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62199         handles its gotchas now.
62200         * lib/mbswidth.c: Likewise.
62201         * lib/wcwidth.h: Likewise.
62202         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62203         and iswcntrl; the wctype module does this stuff now.
62204         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62206         * modules/mbchar (Depends-on): Add wctype.
62207         * modules/mbswidth (Depends-on): Likewise.
62208         * modules/wcwidth (Depends-on): Likewise.
62209
62210 2006-12-27  Eric Blake  <ebb9@byu.net>
62211
62212         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62213         module uses more than what <wctype.h> is required to provide.
62214
62215 2006-12-26  Eric Blake  <ebb9@byu.net>
62216
62217         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62218
62219 2006-12-26  Eric Blake  <ebb9@byu.net>
62220
62221         * modules/absolute-header: New module.
62222         * modules/fcntl (Depends-on): Depend on it.
62223         * modules/inttypes (Depends-on): Likewise.
62224         * modules/stdint (Depends-on): Likewise.
62225         * modules/sys_stat (Depends-on): Likewise.
62226         * modules/wctype (Depends-on): Likewise.
62227         * MODULES.html.sh (Support for building libraries and
62228         executables): Document it.
62229
62230 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62231
62232         * gnulib-tool (SED): Remove, undoing previous change.
62233         The problem was that it broke coreutils on Solaris, because
62234         "sed --posix" leaked into a makefile.
62235         (sed): New alias, if 'alias' and GNU sed.
62236
62237 2006-12-24  Jim Meyering  <jim@meyering.net>
62238
62239         Work around an fchownat bug in glibc-2.4:
62240         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62241         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62242         in spite of the -P option.
62243         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62244         New macros.
62245         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62246         * modules/openat (Files): Add lib/fchownat.c.
62247         * lib/openat.c (fchownat): Don't define here.  Move to...
62248         * lib/fchownat.c: ...this new file.
62249
62250 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         Fix bug reported by Bruno Haible in
62253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62254         where quotearg.c didn't compile on Mac OS X 10.2 because it
62255         lacks <wchar.h> and wint_t.
62256         * lib/wctype_.h (__wctype_wint_t): New type.
62257         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62258         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62259         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62260         Arg is now of type __wctype_wint_t, not wint_t.
62261         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62262         substitute HAVE_WINT_T.
62263         * modules/wctype (Files): Add m4/wint_t.m4.
62264         (wctype.h): Substitute HAVE_WINT_T.
62265
62266 2006-12-23  Bruno Haible  <bruno@clisp.org>
62267
62268         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62269
62270 2006-12-23  Bruno Haible  <bruno@clisp.org>
62271
62272         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62273         S_ISLNK.
62274         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62275         mingw.
62276
62277 2006-12-22  Bruno Haible  <bruno@clisp.org>
62278
62279         * lib/copy-file.c: Include acl.h.
62280         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62281         Close the file descriptors only after being done with copy_acl.
62282         * modules/copy-file (Depends-on): Add acl.
62283
62284 2006-12-22  Bruno Haible  <bruno@clisp.org>
62285
62286         * gnulib-tool (SED): New variable.
62287         Use $SED instead of sed everywhere.
62288
62289 2006-12-22  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/no-c++: New file.
62292         * m4/no-c++.m4: New file.
62293         * MODULES.html.sh (Support for building libraries and executables):
62294         Add no-c++.
62295
62296 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62299         Include <limits.h>, and use its INT_MAX to rewrite the
62300         j loop so that it does not overflow 'int'.  Problem reported by
62301         Ralf Wildenhues in
62302         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62303         Play it safe by shifting left by 1 rather than multiplying by 2,
62304         as GCC is less likely to optimize this away when the value
62305         is signed (when it assumes overflow leads to undefined behavior).
62306         Also, don't assume time_t uses two's complement.
62307
62308 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62309
62310         * MODULES.html.sh: New module wctype.
62311         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62312         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62313         <wctype.h>, since the new wctype module should fix this.
62314         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62315         the wctype module should arrange for it.
62316         * lib/regex_internal.h: Likewise.
62317         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62318         since the wctype module should handle this now.
62319         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62320         * modules/fnmatch (Depends-on): Add wctype.
62321         * modules/quotearg (Depends-on): Likewise.
62322         * modules/regex (Depends-on): Likewise.
62323
62324 2006-12-19  Bruno Haible  <bruno@clisp.org>
62325
62326         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62327         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62328
62329 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62330
62331         * modules/savewd (Depends-on): Fix dependency on fcntl.
62332
62333 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62334
62335         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62336         conforms to C99, rather than relying on the user's environment
62337         setting of STDINT_H.
62338
62339 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62340         and Eric Blake  <ebb9@byu.net>
62341
62342         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62343         This is more consistent with the other defines here.
62344         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62345         Port to z/OS.  Problem reported by Paul Gilmartin.
62346         Change local vars to use gl_ prefix rather than ac_.
62347         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62348         with other defines.
62349         * modules/double-slash-root: New module.
62350         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62351         (Depends-on): Add double-slash-root.
62352         * MODULES.html.sh (File system functions): Mention new module.
62353
62354 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62357         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62358         This is for the benefit of gzip, which doesn't do i18n.
62359
62360 2006-12-12  Jim Meyering  <jim@meyering.net>
62361
62362         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62363         Reported by Andreas Schwab <schwab@suse.de>.
62364
62365 2006-12-12  Bruno Haible  <bruno@clisp.org>
62366
62367         Merge these changes.
62368         2006-09-05  Bruno Haible  <bruno@clisp.org>
62369         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62370         iconv_alloc succeeded.
62371         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62372         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62373         test for " && dest " at the end - dest is always != NULL there. Call
62374         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62375         with 2xNULL arguments, also to flush the state storage. Handle the
62376         IRIX iconv behaviour. Realloc the final result, to throw away unused
62377         memory.
62378
62379 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62382         and fchmodat unconditionally, since glibc 2.4 has them.
62383         Problem reported by Arkadiusz Miskiewicz.
62384
62385 2006-12-10  Bruno Haible  <bruno@clisp.org>
62386
62387         * gnulib-tool (func_import): Show the include files only for those
62388         modules that are copied and specified.
62389         Reported by Karl Berry.
62390
62391 2006-12-08  Jim Meyering  <jim@meyering.net>
62392
62393         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62394         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62395
62396         * build-aux/announce-gen: Add two new options, both optional:
62397         --bootstrap-tools=TOOL_LIST
62398               a comma-separated list of tools, e.g.,
62399               autoconf,automake,bison,gnulib
62400         --gnulib-snapshot-date=DATE
62401               if gnulib is in the bootstrap tool list,
62402               then report this as the snapshot date.
62403               If not specified, use the current date/time.
62404               If you specify a date here, be sure it's UTC.
62405
62406 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62407
62408         * tests/test-argp-2.sh: Fix test to match actual output.
62409         (func_compare): Fix sed script to be portable.
62410
62411 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62414         workaround for this case.  It is not autoconfigured now; offhand
62415         it's hard to see how to autoconfigure it.
62416
62417 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62420         a directory that is about to be chowned.  Such a directory's
62421         initial file permissions should permit the owner only and this
62422         should not be changed until after the chown, since the group and
62423         other bits would be incorrect if they granted permission before
62424         the chown.
62425
62426         Fix porting problem for iswctype reported by Georg Schwarz in:
62427         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62428         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62429         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62431         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62432
62433 2006-12-03  Jim Meyering  <jim@meyering.net>
62434
62435         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62436         p->fts_statp may not yet be defined.
62437         (fts_read): Instead, set it in the caller, once p->fts_statp is
62438         sure to be defined, and corresponds to a top-level directory.
62439         This bug made du -x fail.  Here's the coreutils test case:
62440         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62441         Reported by Mike Frysinger.
62442
62443 2006-12-01  Jim Meyering  <jim@meyering.net>
62444
62445         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62446         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62447         Reported by Simon Josefsson.
62448
62449 2006-11-30  Jim Meyering  <jim@meyering.net>
62450
62451         * m4/warning.m4: Use the all-permissive copyright notice
62452         recommended by RMS (rather than LGPL).
62453         * m4/vararrays.m4: Likewise.
62454         * m4/flexmember.m4: Likewise.
62455
62456 2006-11-29  Bruno Haible  <bruno@clisp.org>
62457
62458         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62459         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62460         using +=.
62461         Reported by Simon Josefsson <simon@josefsson.org>.
62462
62463 2006-11-28  James Youngman <jay@gnu.org>
62464
62465         * README: Advise users that they might find the bug-gnulib@gnu.org
62466         and autotools-announce@gnu.org mailing lists useful.
62467
62468 2006-11-28  Bruno Haible  <bruno@clisp.org>
62469
62470         * m4/ptrdiff_max.m4: Remove file.
62471
62472 2006-11-21  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62475         _AC_COMPUTE_INT.
62476         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62477         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62478         _AC_COMPUTE_INT.
62479         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62480         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62481         _AC_COMPUTE_INT.
62482         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62483
62484 2006-11-28  Jim Meyering  <jim@meyering.net>
62485
62486         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62487         warning from "gcc -Wshadow" about shadowing the builtin.
62488
62489 2006-11-27  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62492         _AC_COMPUTE_INT.
62493         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62494
62495 2006-11-27  Bruno Haible  <bruno@clisp.org>
62496             Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62499
62500 2006-11-26  Bruno Haible  <bruno@clisp.org>
62501
62502         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62503         noinst_LTLIBRARIES.
62504
62505 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62506             Bruno Haible  <bruno@clisp.org>
62507
62508         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62509         if compiling with "gcc -ansi".
62510
62511 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62512
62513         Fix some incompatibilities with gcc -ansi -pedantic.
62514         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62515         if compiling pedantically with GCC, unless it's C99 or later.
62516         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62517         it mishandles gcc -ansi -pedantic as well.
62518         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62519         if gcc -pedantic.
62520         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62521         initializers for struct if -pedantic, unless it's C99 or later.
62522
62523 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62524
62525         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62526         Don't close an fd more than once. Identical atimes indicate
62527         success, not failure.
62528
62529 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62530
62531         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62532
62533 2006-11-23  Jim Meyering  <jim@meyering.net>
62534
62535         * build-aux/announce-gen: New file.  From coreutils.
62536
62537 2006-11-22  Jim Meyering  <jim@meyering.net>
62538
62539         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62540         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62541         (fts_read): Use a temporary to narrow the overused st_size member
62542         before using it in a switch statement.  Reported by Matthew Woehlke.
62543
62544         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62546
62547 2006-11-20  Bruno Haible  <bruno@clisp.org>
62548
62549         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62550         changequote instead of pairs of brackets.
62551         Reported by Andreas Schwab <schwab@suse.de>.
62552
62553 2006-11-21  Jim Meyering  <jim@meyering.net>
62554
62555         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62556         so as to remain compatible with older compilers.
62557         Patch from Michael Deutschmann.
62558
62559 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * MODULES.html.sh (File system functions): Add openat.
62562
62563         * lib/openat.h (rpl_fstatat): New macro, if
62564         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62565         (fstatat): Define to rpl_fstatat under the same conditions,
62566         unless COMPILING_FSTATAT.
62567         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62568         seems to have the bug.
62569         * lib/fstatat.c: New file.
62570         * modules/openat (Files): Add it.
62571
62572 2006-11-20  Bruno Haible  <bruno@clisp.org>
62573
62574         * Makefile: New file.
62575
62576 2006-11-20  Jim Meyering  <jim@meyering.net>
62577
62578         The beginnings of syntax-related checks for gnulib.
62579         * lib/Makefile: New file.
62580         * lib/t-idcache: New script.  Ensure that the two halves of
62581         idcache.c stay in sync.
62582
62583         * lib/idcache.c: Adjust comments in user- and group- portions to
62584         be more accurate, and to be consistent with one another.
62585
62586 2006-11-20  Jim Meyering  <jim@meyering.net>
62587
62588         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62589         continue using the flexible array member (thus, this module performs
62590         half as many malloc calls), with the addition that...
62591         (getgroup, getuser): Consistently record a non-match via an empty
62592         "name" string, and map an empty string match to a NULL return value.
62593         * modules/idcache (Depends-on): Re-add flexmember.
62594
62595         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62596         (getuidbyname, getgroup, getgidbyname): Likewise.
62597
62598         Use cleaner syntax: NULL rather than 0.
62599         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62600
62601 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62604         It mishandled the case where the group was missing.
62605         Problem reported by Greg Schafer.
62606         * modules/idcache: Likewise.
62607
62608 2006-11-18  Jim Meyering  <jim@meyering.net>
62609
62610         * check-module (%exempt_header): Add exception for some
62611         conditionally-included headers.
62612
62613         * modules/i-ring (Depends-on): Add verify.
62614         (License): Change to LGPL.
62615
62616 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62619         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62620         and inttostr.h.  Use snprintf rather than uinttostr, so that
62621         LGPLed code doesn't depend on GPLed.
62622
62623 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         * modules/inline (License): Change from GPL to LGPL.
62626
62627 2006-11-17  Jim Meyering  <jim@meyering.net>
62628
62629         * modules/d-type (License): Switch to LGPL.
62630
62631 2006-11-15  Bruno Haible  <bruno@clisp.org>
62632
62633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62634
62635 2006-11-15  Eric Blake  <ebb9@byu.net>
62636
62637         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62638         the module dependency.
62639
62640 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62641             Bruno Haible  <bruno@clisp.org>
62642
62643         * gnulib-tool (func_create_testdir): Add license consistency check.
62644
62645 2006-11-15  Eric Blake  <ebb9@byu.net>
62646
62647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62648         random "(cached)" in configure output.
62649
62650 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62651
62652         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62653         test for conforming inttypes.h is both announced and cached.
62654
62655         * MODULES.html.sh (seen_modules, seen_files): New variables.
62656         (func_module): Rewrite to use a few less gnulib-tool and sed
62657         invocations.  Avoid a couple of quadratic algorithms for ...
62658         (missed_modules, missed_files): ... these, with ...
62659         (func_append, func_tmpdir): ... these new functions, from
62660         gnulib-tool.  Analogously, install traps for cleanup.
62661
62662         * tests/test-gc.c (main): Remove unused variables.
62663         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62664
62665 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * modules/inttostr (License): Change to LGPL.
62668
62669 2006-11-14  Eric Blake  <ebb9@byu.net>
62670
62671         * modules/tempname (License): Change to LGPL.
62672
62673 2006-11-14  Eric Blake  <ebb9@byu.net>
62674
62675         * doc/functions.texi (Function Portability): *printf functions on
62676         Cygwin now understand all POSIX size specifiers.
62677
62678 2006-11-14  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/c-ctype (License): Change to LGPL.
62681
62682 2006-11-12  Bruno Haible  <bruno@clisp.org>
62683
62684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62685         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62686         for GNOME libraries, for which the include files are installed in
62687         subdirectories of $prefix/include.
62688
62689 2006-11-12  Bruno Haible  <bruno@clisp.org>
62690
62691         * m4/lib-link.m4: Require at least autoconf-2.54.
62692         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62693         name to underscores for the --with option.
62694
62695 2006-11-13  Bruno Haible  <bruno@clisp.org>
62696
62697         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62698         the tests directory.
62699         Reported by Ralf Wildenhues.
62700
62701 2006-11-13  Bruno Haible  <bruno@clisp.org>
62702
62703         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62704         (func_emit_initmacro_end): Undo the override here.
62705         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62706         Works around the famous automake error in coreutils.
62707
62708 2006-11-13  Eric Blake  <ebb9@byu.net>
62709
62710         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62711         element, not its node.
62712
62713 2006-11-12  Bruno Haible  <bruno@clisp.org>
62714
62715         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62716         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62717
62718 2006-11-12  Bruno Haible  <bruno@clisp.org>
62719
62720         * gnulib-tool: New option --local-symlink.
62721         (func_usage): Document it.
62722         (lsymbolic): New variable.
62723         (func_import, func_create_testdir): If --symlink was not specified,
62724         test whether --local-symlink was specified and the file comes from
62725         the local_gnulib_dir.
62726
62727 2006-11-12  Bruno Haible  <bruno@clisp.org>
62728
62729         * gnulib-tool (func_ln): New function.
62730         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62731
62732 2006-11-12  Bruno Haible  <bruno@clisp.org>
62733
62734         Finish support for source files in subdirectories.
62735         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62736         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62737         AUTOMAKE_OPTIONS.
62738         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62739
62740 2006-11-12  Bruno Haible  <bruno@clisp.org>
62741
62742         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62743         EXTRA_lib_SOURCES augmentation.
62744         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62745
62746 2006-11-12  Jim Meyering  <jim@meyering.net>
62747
62748         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62749         file descriptors.  This also averts a failure on systems with
62750         native openat support when a traversed directory lacks "x" access.
62751         * lib/fts_.h: Include "i-ring.h"
62752         (struct FTS) [fts_fd_ring]: New member.
62753         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62754         (FCHDIR): Add parentheses.
62755         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62756         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62757         When descending, rather than simply closing the previous
62758         fts_cwd_fd value, push that file descriptor onto the ring.
62759         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62760         (fts_open): Initialize the new fd_ring member.
62761         (fts_close): Clear the ring.
62762         (fts_safe_changedir): When possible, use our new fd_ring to skip
62763         the diropen and fstat and dev/ino comparison that would normally
62764         accompany a virtual `chdir ("..")'.
62765
62766         * modules/fts (Depends-on): Add i-ring.
62767         * modules/i-ring: New module.
62768         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62769         * m4/i-ring.m4: New file.
62770
62771 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62772
62773         * gnulib-tool (func_create_testdir): Fix replacement of
62774         `build-aux' in configure.ac.  Run autotools in gltests
62775         subdirectory.
62776         (func_create_testdir, func_create_megatestdir, test): There is
62777         no need for '--force' in most autotool invocations in a new
62778         tree.  Actually fail the whole test if any of the tools, or the
62779         configure or make stages fail.
62780
62781         Sync from Automake.
62782         * build-aux/gnupload: Revert last change.  Add pointer to upload
62783         instructions of the GNU Maintenance Instructions.
62784         Suggestion by Karl Berry.
62785
62786 2006-11-10  Jim Meyering  <jim@meyering.net>
62787
62788         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62789
62790 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62793         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62794         (bind_textdomain_codeset) [! ENABLE_NLS]:
62795         Evaluate all the arguments.  That way, callers get compatible behavior
62796         if the arguments have side effects.  Also, it avoids some GCC
62797         diagnostics in some cases; Joel E. Denny reported problems when Bison
62798         was configured with --enable-gcc-warnigs.
62799
62800 2006-11-10  Jim Meyering  <jim@meyering.net>
62801
62802         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62803         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62804         account.
62805
62806 2006-11-10  Jim Meyering  <jim@meyering.net>
62807
62808         * modules/inline: New file/module.
62809         * modules/xalloc (Files): Remove m4/inline.m4.
62810         (Depends-on): Add inline, instead.
62811         * modules/oset: Likewise.
62812         * modules/list: Likewise.
62813
62814 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62815
62816         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62817         Problem reported by Matthew Woehlke.
62818
62819 2006-11-09  Bruno Haible  <bruno@clisp.org>
62820
62821         * lib/tempname.c (gen_tempname): Remove variant that invokes
62822         __gen_tempname.
62823         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62824         __gen_tempname.
62825
62826 2006-11-08  Bruno Haible  <bruno@clisp.org>
62827
62828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62829         to 'yes' instead of 'cross-compiling'.
62830
62831 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         * lib/quotearg.h (quotearg_free): New decl.
62834         * lib/quotearg.c (quotearg_free): New function.
62835         (slot0, nslots, slotvec0, slotvec):
62836         Now file-scope so that quotearg_free can get at them.
62837
62838 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62839
62840         Sync from Automake.
62841         * build-aux/gnupload: Add missing 'gnu' to example URL.
62842         Report by Karl Berry.
62843
62844 2006-11-08  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62847         Suggested by Paul Eggert.
62848
62849 2006-11-08  Jim Meyering  <jim@meyering.net>
62850
62851         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62852         It's already included if !_LIBC.
62853         (fts_safe_changedir): Add a comment.
62854
62855 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62858         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62859         Matthew Woehlke.
62860
62861         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62862         definitions up, to avoid colliding with change below.
62863         (static_inline) [HAVE_INLINE]: New macro.
62864         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62865         Provide extern decls when !HAVE_INLINE.  Do not define unless
62866         static_inline is defined, either by us or by xmalloc.c.  Use
62867         static_inline rather than static inline.
62868         (XCALLOC): Optimize sizeof(T) = 1 case.
62869         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62870
62871 2006-11-07  Bruno Haible  <bruno@clisp.org>
62872
62873         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62874         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62875         AC_C_INLINE.
62876         * modules/xalloc (Files): Add m4/inline.m4.
62877
62878 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62879
62880         * README: Fix typo.
62881         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62882         (Miscellanous Notes): ...from this.
62883
62884 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62887         Mention that offsetof should be used instead of sizeof.
62888         From Bruno Haible.
62889
62890 2006-11-07  Bruno Haible  <bruno@clisp.org>
62891
62892         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62893
62894 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62895
62896         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62897         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62898         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62899         (gl_tree_add_before, gl_tree_add_after):
62900         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62901         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62902         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62903         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62904         (gl_linked_add_after, gl_linked_add_at): Likewise.
62905         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62906         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62907         (gl_tree_add_before, gl_tree_add_after): Likewise.
62908         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62909         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62910         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62911
62912 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62913
62914         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62915
62916 2006-11-06  Bruno Haible  <bruno@clisp.org>
62917
62918         * m4/inline.m4: New file.
62919         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62920         * modules/list (Files): Add m4/inline.m4.
62921         * modules/oset (Files): Likewise.
62922
62923 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         * lib/idcache.c: Include <stddef.h>, for offsetof.
62926         (struct userid.name): Change from char * to a flexible array member.
62927         All uses changed.
62928         * modules/idcache (Depends-on): Add flexmember.
62929
62930         * MODULES.html.sh (Core language properties): New module flexmember.
62931         * modules/flexmember, m4/flexmember.m4: New files.
62932
62933         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62934         inline functions that are identical with the old xnmalloc_inline,
62935         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62936         that we can avoid some unnecessary integer multiplications and
62937         divisions in the common case where the element size is known at
62938         compile time.
62939         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62940         needed.
62941         (xnboundedmalloc): Remove.
62942         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62943         arguments, for consistency with rest of this header.
62944         (xcharalloc): Rewrite using XNMALLOC.
62945         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62946         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62947         versions have been moved to lib/xalloc.h and renamed to be the
62948         non-*_inline versions.
62949         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62950         and xnrealloc functions, since those functions are now inline and
62951         now call us.
62952         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62953         renaming described above.
62954         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62955         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62956         captures the dependency in AC_C_INLINE.
62957
62958         New module canonicalize-lgpl, proposed by Charles Wilson in
62959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62960         with a few small changes afterwards.
62961         * MODULES.html.sh (File system functions): New module
62962         canonicalize-lgpl.
62963         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62964         and canonicalize_file_name.
62965         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62966         * modules/canonicalize-lgpl: New files.
62967
62968 2006-11-05  Bruno Haible  <bruno@clisp.org>
62969
62970         * gnulib-tool (func_import, func_create_testdir): Create directories
62971         also for files in subdirectories of lib/.
62972
62973 2006-11-05  Bruno Haible  <bruno@clisp.org>
62974
62975         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62976         ANSI C compliant.
62977
62978 2006-11-03  Bruno Haible  <bruno@clisp.org>
62979
62980         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62981         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62982         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62983         (xnboundedmalloc): New inline function.
62984         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62985         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62986         xmalloc.
62987         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62988         xmalloc.
62989         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62990         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62991         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62992         xmalloc.
62993         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62994         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62995         xmalloc.
62996         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62997         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62998         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62999         xmalloc.
63000         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63001         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63002         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63003         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63004         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63005         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63006         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63007
63008 2006-11-03  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/c-ctype.h [C++]: Define functions without name mangling.
63011         * lib/fwriteerror.h [C++]: Likewise.
63012         * lib/gcd.h [C++]: Likewise.
63013         * lib/linebreak.h [C++]: Likewise.
63014
63015 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63016
63017         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63018         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63019         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63020         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63021         Check for functions and headers just once.
63022         Check for declaration of canonicalize_file_name.
63023         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63024
63025 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63026
63027         * gnulib-tool (func_import): Fix typo in actioncmd.
63028
63029 2006-11-02  Bruno Haible  <bruno@clisp.org>
63030
63031         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63032         newline sequence in the Makefile.am snippet as a space, like "make"
63033         does.
63034         Reported by Roger Persson <perrog@gmail.com>.
63035
63036 2006-11-01  Bruno Haible  <bruno@clisp.org>
63037
63038         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63039         already declared in <string.h>.
63040         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63041
63042 2006-11-01  Bruno Haible  <bruno@clisp.org>
63043
63044         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63045         * lib/strcase.h: Include <string.h>.
63046         (strcasecmp): Define to rpl_strcasecmp here.
63047
63048 2006-11-01  Bruno Haible  <bruno@clisp.org>
63049
63050         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63051
63052 2006-11-01  Eric Blake  <ebb9@byu.net>
63053
63054         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63055
63056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63057
63058 2006-10-29  Bruno Haible  <bruno@clisp.org>
63059
63060         Make it compile in C++ mode.
63061         * lib/full-write.c (full_rw): Add a cast.
63062
63063 2006-11-01  Bruno Haible  <bruno@clisp.org>
63064
63065         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63066         be POSIX compliant.
63067         Reported by Roger Persson <perrog@gmail.com>.
63068
63069 2006-11-01  Eric Blake  <ebb9@byu.net>
63070
63071         * lib/getopt_.h: Fix comments.
63072
63073 2006-10-31  Eric Blake  <ebb9@byu.net>
63074
63075         * modules/tmpdir (Depends-on): Add sys_stat.
63076         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63077         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63078         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63079         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63080         tempname.
63081
63082 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         Avoid some C++ diagnostics reported by Bruno Haible.
63085         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63086         xmalloc.
63087         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63088         (struct slotvec): Move to top level.
63089         (quotearg_n_options): Rewrite to avoid xmalloc.
63090         * lib/xalloc.h (xcharalloc): New function.
63091         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63092         [defined __cplusplus]: Add function template that provides result
63093         type propagation.  This part of the change is from Bruno Haible.
63094
63095 2006-10-29  Bruno Haible  <bruno@clisp.org>
63096
63097         Make it compile in C++ mode.
63098         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63099         * lib/strnlen1.c (strnlen1): Cast memchr result.
63100         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63101         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63102         (create_temp_dir): Rename local variable 'template'.
63103         (compile_csharp_using_sscli): Add cast.
63104         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63105         * lib/findprog.c (find_in_path): Likewise.
63106         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63107         * lib/wait-process.c (register_slave_subprocess): Likewise.
63108
63109 2006-10-22  Bruno Haible  <bruno@clisp.org>
63110
63111         * modules/tsearch: New file.
63112         * lib/tsearch.h: New file.
63113         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63114         * m4/tsearch.m4: New file.
63115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63116
63117 2006-10-29  Eric Blake  <ebb9@byu.net>
63118
63119         * lib/arcfour.c: Assume config.h.
63120         * lib/arctwo.c: Likewise.
63121         * lib/base64.c: Likewise.
63122         * lib/check-version.c: Likewise.
63123         * lib/crc.c: Likewise.
63124         * lib/des.c: Likewise.
63125         * lib/gc-gnulib.c: Likewise.
63126         * lib/gc-libgcrypt.c: Likewise.
63127         * lib/gc-pbkdf2-sha1.c: Likewise.
63128         * lib/getaddrinfo.c: Likewise.
63129         * lib/getdelim.c: Likewise.
63130         * lib/getline.c: Likewise.
63131         * lib/hmac-md5.c: Likewise.
63132         * lib/hmac-sha1.c: Likewise.
63133         * lib/iconvme.c: Likewise.
63134         * lib/md2.c: Likewise.
63135         * lib/md4.c: Likewise.
63136         * lib/memxor.c: Likewise.
63137         * lib/read-file.c: Likewise.
63138         * lib/readline.c: Likewise.
63139         * lib/rijndael-alg-fst.c: Likewise.
63140         * lib/rijndael-api-fst.c: Likewise.
63141         * lib/xgetdomainname.c: Likewise.
63142
63143 2006-10-28  Eric Blake  <ebb9@byu.net>
63144
63145         * lib/xstrndup.c: Assume config.h.
63146
63147 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63150         stat-macros.h is now for our own macros, whereas stat_h is for
63151         macros in the <sys/stat.h> name space.
63152         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63153         (STAT_MACROS_H): Remove.
63154         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63155         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63156         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63157         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63158         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63159         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63160         Move these macros to ...
63161         * lib/stat_.h: here.  Don't include stat-macros.h.
63162         * lib/canonicalize.c: Don't include stat-macros.h.
63163         * lib/chown.c: Likewise.
63164         * lib/euidaccess.c: Likewise.
63165         * lib/file-type.c: Likewise.
63166         * lib/filemode.c: Likewise.
63167         * lib/glob.c: Likewise.
63168         * lib/isapipe.c: Likewise.
63169         * lib/lchown.c: Likewise.
63170         * lib/lstat.c: Likewise.
63171         * lib/mkdir-p.c: Likewise.
63172         * lib/rmdir.c: Likewise.
63173         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63174         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63175         unless mkdir isn't declared, to speed up 'configure'.
63176         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63177         would define all the S_* symbols.
63178         * modules/canonicalize (Depends-on):
63179         Depend on sys_stat, not stat-macros.
63180         * modules/chown: Likewise.
63181         * modules/euidaccess: Likewise.
63182         * modules/filemode: Likewise.
63183         * modules/file-type: Likewise.
63184         * modules/glob: Likewise.
63185         * modules/isapipe: Likewise.
63186         * modules/lchown: Likewise.
63187         * modules/lstat: Likewise.
63188         * modules/mkancesdirs: Likewise.
63189         * modules/rmdir: Likewise.
63190         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63191         * modules/modechange: Likewise.
63192         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63193         (configure.ac): Remove gl_STAT_MACROS.
63194         * modules/sys_stat (Depends-on): Remove stat-macros.
63195
63196 2006-10-27  Bruno Haible  <bruno@clisp.org>
63197
63198         * m4/signed.m4: Remove file.
63199         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63200         invocation.
63201         * modules/vasnprintf (Files): Remove m4/signed.m4.
63202
63203 2006-10-27  Bruno Haible  <bruno@clisp.org>
63204
63205         Update to GNU gettext 0.16.
63206         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63207         m4/inttypes-h.m4, m4/signed.m4.
63208         * m4/gettext.m4: Update to GNU gettext 0.16.
63209         * m4/intl.m4: New file, from GNU gettext.
63210         * m4/intldir.m4: New file, from GNU gettext.
63211         * config/srclist.txt: Update
63212
63213 2006-10-27  Eric Blake  <ebb9@byu.net>
63214
63215         * MODULES.html.sh: Document tempname.
63216         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63217         dependencies.
63218         (Files): Move lib/tempname.c...
63219         * modules/tempname: ...to this new module.
63220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63221         (gl_PREREQ_TEMPNAME): Move...
63222         * m4/tempname.m4: ...to this new file.
63223         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63224         * modules/sys_stat (Depends-on): Add stat-macros.
63225         * lib/stat_.h (includes): Pick up stat macros.
63226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63227         if stat macros are broken.
63228         * lib/tempname.c (includes): No need to include "stat-macros.h".
63229         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63230         (direxists, __path_search) [!_LIBC]: Don't compile these in
63231         gnulib; the tmpdir module covers that.
63232         * lib/tempname.h: New file.
63233
63234 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * COPYING: Explain how gnulib-tool converts licence headers.
63237         Almost all wording by Eric Blake.
63238
63239 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * lib/mbchar.h (is_basic_table): Make read-only.
63242         * lib/mbchar.c (is_basic_table): Likewise.
63243         Reported by John Darrington.
63244
63245 2006-10-25  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/progname.h (set_program_name): Undefine before defining.
63248
63249 2006-10-25  Bruno Haible  <bruno@clisp.org>
63250
63251         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63252         false for non-gcc C++ compilers.
63253         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63254
63255 2006-10-24  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63258         iconv implementations like Irix iconv.
63259
63260 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * modules/vararrays: New file.
63263         * m4/vararrays.m4: New file, taken from diffutils.
63264         * MODULES.html.sh: New module vararrays.
63265
63266 2006-10-24  Karl Berry  <karl@gnu.org>
63267
63268         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63269         Don't call GNU Unix.
63270
63271 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63272
63273         * users.txt: Add Libtool.
63274
63275         Sync from Libtool:
63276
63277         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63280         to gnulib's policy of including config.h unconditionally.
63281
63282 2006-10-24  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/wcwidth (Files): Add m4/wint_t.m4.
63285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63286         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63287
63288 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63291         to pacify GCC with some -W flags enabled.  Problem reported by
63292         Bruno Haible.
63293
63294 2006-10-24  Jim Meyering  <jim@meyering.net>
63295
63296         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63297         Reported by Karl Berry.
63298
63299 2006-10-23  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63302
63303 2006-10-24  Bruno Haible  <bruno@clisp.org>
63304
63305         * lib/gl_list.h: Use C comment style, not C++ comment style.
63306
63307 2006-10-23  Eric Blake  <ebb9@byu.net>
63308
63309         * lib/getaddrinfo.c (includes): Add missing include.
63310
63311 2006-10-23  Bruno Haible  <bruno@clisp.org>
63312             Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         Ability to rename obstack_free.
63315         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63316         obstack_free.
63317         (obstack_free): Invoke the __obstack_free macro.
63318         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63319
63320 2006-10-23  Bruno Haible  <bruno@clisp.org>
63321             Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63324         __argc, __argv from the declaration. (They are defined as macros on
63325         mingw.)
63326
63327 2006-10-22  Bruno Haible  <bruno@clisp.org>
63328
63329         * doc/gnulib-intro.texi: New file.
63330         * doc/gnulib.texi: Include it.
63331
63332 2006-10-21  Bruno Haible  <bruno@clisp.org>
63333
63334         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63335         "Introduction", "Miscellanous Notes", "Particular Modules".
63336
63337 2006-10-21  Bruno Haible  <bruno@clisp.org>
63338
63339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63340         Change mostlyclean-local rule to avoid sh syntax error from bash
63341         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63342
63343 2006-10-23  Jim Meyering  <jim@meyering.net>
63344
63345         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63346         in place of snprintf.
63347
63348         * modules/inttostr (Files): Add lib/uinttostr.c.
63349         * lib/uinttostr.c (inttostr): New file/function.
63350         * lib/inttostr.h (uinttostr): Declare.
63351         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63352         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63353         Add uinttostr.
63354         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63355
63356 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63357
63358         * lib/canonicalize.c (ELOOP): Define if not already defined.
63359         Problem reported by Bruno Haible in
63360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63361
63362 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63365         Problem reported by Perry Smith and Ville Laurikari.
63366
63367         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63368         uses.
63369
63370 2006-10-19  Bruno Haible  <bruno@clisp.org>
63371
63372         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63373         for mingw.
63374
63375 2006-10-19  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63378         Needed for mingw.
63379
63380 2006-10-19  Bruno Haible  <bruno@clisp.org>
63381
63382         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63383
63384 2006-10-19  Bruno Haible  <bruno@clisp.org>
63385
63386         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63387         it.
63388
63389 2006-10-19  Bruno Haible  <bruno@clisp.org>
63390
63391         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63392         invocation.
63393
63394 2006-10-19  Bruno Haible  <bruno@clisp.org>
63395
63396         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63397         mountlist by default.
63398
63399 2006-10-16  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/c-strstr.c: Include c-strstr.h.
63402
63403 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63404
63405         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63406         in a slash.
63407
63408 2006-10-18  Bruno Haible  <bruno@clisp.org>
63409
63410         * lib/lock.h [C++]: Wrap definitions in extern "C".
63411
63412 2006-10-18  Bruno Haible  <bruno@clisp.org>
63413
63414         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63415         gl_LIBOBJS list.
63416
63417 2006-10-18  Bruno Haible  <bruno@clisp.org>
63418
63419         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63420
63421 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         * lib/xstrtol.h: Include gettext.h.
63424         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63425         Problem reported by Eric Blake.
63426         * modules/xstrtol (Depends-on): Add gettext-h.
63427
63428 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63429
63430         * lib/strftime.c (advance): New macro.
63431         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63432         incomplete type, so you can't add 0 to it.  Problem and patch
63433         reported by Eelco Dolstra for dietlibc.
63434
63435 2006-10-18  Jim Meyering  <jim@meyering.net>
63436
63437         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63438         type for a local, and rename it: s/up/user_proc/.
63439
63440 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63441
63442         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63443         READ_UTMP_USER_PROCESS.
63444         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63445
63446 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63449         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63450
63451 2006-10-17  Eric Blake  <ebb9@byu.net>
63452
63453         * lib/sigprocmask.c (sigprocmask): Fix typo.
63454
63455         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63456
63457         * modules/clean-temp (Makefile.am): Don't add to make output...
63458         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63459         config.h.
63460
63461 2006-10-17  Bruno Haible  <bruno@clisp.org>
63462
63463         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63464         differently if DEFAULT_TEXT_DOMAIN is set.
63465
63466 2006-10-16  Bruno Haible  <bruno@clisp.org>
63467
63468         * lib/clean-temp.c: Include fwriteerror.h.
63469
63470 2006-10-16  Bruno Haible  <bruno@clisp.org>
63471
63472         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63473
63474 2006-10-16  Bruno Haible  <bruno@clisp.org>
63475
63476         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63477         * lib/sigprocmask.h: Include <sys/types.h>.
63478         (sigset_t): Use the system's definition if present.
63479
63480 2006-10-17  Eric Blake  <ebb9@byu.net>
63481
63482         * lib/xvasprintf.c (includes): Assume config.h.
63483         * lib/xasprintf.c (includes): Likewise.
63484
63485 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63486
63487         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63488         at least as wide as intmax_t.
63489
63490 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63491
63492         (Imported from Automake.)
63493         * build-aux/gnupload: Update to version 1.1 of directive file.
63494
63495 2006-10-16  Eric Blake  <ebb9@byu.net>
63496
63497         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63498         match Automake 1.10a.
63499
63500 2006-10-14  Bruno Haible  <bruno@clisp.org>
63501
63502         * modules/sigprocmask: New file.
63503         * lib/sigprocmask.h: New file.
63504         * lib/sigprocmask.c: New file.
63505         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63506         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63507         request sigprocmask.o.
63508         (gl_PREREQ_SIGPROCMASK): New macro.
63509         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63510         (Depends-on): Add sigprocmask.
63511         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63512         gt_SIGNALBLOCKING. Test for 'raise' only once.
63513         * lib/fatal-signal.c: Include sigprocmask.h.
63514         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63515         unblock_fatal_signals): Define always.
63516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63517         sigprocmask.
63518
63519 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63520
63521         Sync from Automake.
63522         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63523         which incorrectly sets the mode of an existing destination
63524         directory.  In some cases the unpatched install-sh could do the
63525         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63526         system.  We hope this is rare in practice, but it's clearly worth
63527         fixing.  Problem reported by Alex Unleashed in
63528         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63529         Also, don't bother to check for -m bugs unless we're using -m;
63530         suggested by Stepan Kasal.
63531
63532 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63533
63534         Sync from Automake.
63535         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63536         `-c' flag, so they appear at the same position as in %FASTDEP%
63537         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63538         which ignores unknown options only after the first non-option.
63539         Bug report against M4 by Nelson H. F. Beebe.
63540
63541 2006-10-13  Jim Meyering  <jim@meyering.net>
63542
63543         Fix a bug in yesterday's change.
63544         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63545         p->fts_statp->st_dev would be used uninitialized.
63546         Ensures that we always call fts_stat on the very first entry.
63547         Miklos Szeredi reported that find -xdev stopped working.
63548
63549 2006-10-12  Bruno Haible  <bruno@clisp.org>
63550
63551         * gnulib-tool (func_get_automake_snippet): Append an automatically
63552         computed EXTRA_DIST augmentation.
63553         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63554         * modules/alloca-opt (Makefile.am): Likewise.
63555         * modules/allocsa (Makefile.am): Likewise.
63556         * modules/arcfour (Makefile.am): Likewise.
63557         * modules/arctwo (Makefile.am): Likewise.
63558         * modules/argmatch (Makefile.am): Likewise.
63559         * modules/argz (Makefile.am): Likewise.
63560         * modules/atexit (Makefile.am): Likewise.
63561         * modules/backupfile (Makefile.am): Likewise.
63562         * modules/byteswap (Makefile.am): Likewise.
63563         * modules/c-strtod (Makefile.am): Likewise.
63564         * modules/c-strtold (Makefile.am): Likewise.
63565         * modules/calloc (Makefile.am): Likewise.
63566         * modules/canon-host (Makefile.am): Likewise.
63567         * modules/canonicalize (Makefile.am): Likewise.
63568         * modules/chdir-long (Makefile.am): Likewise.
63569         * modules/chdir-safer (Makefile.am): Likewise.
63570         * modules/check-version (Makefile.am): Likewise.
63571         * modules/chown (Makefile.am): Likewise.
63572         * modules/cloexec (Makefile.am): Likewise.
63573         * modules/close-stream (Makefile.am): Likewise.
63574         * modules/closeout (Makefile.am): Likewise.
63575         * modules/crc (Makefile.am): Likewise.
63576         * modules/csharpexec (Makefile.am): Likewise.
63577         * modules/cycle-check (Makefile.am): Likewise.
63578         * modules/des (Makefile.am): Likewise.
63579         * modules/dev-ino (Makefile.am): Likewise.
63580         * modules/dirfd (Makefile.am): Likewise.
63581         * modules/dirname (Makefile.am): Likewise.
63582         * modules/dup2 (Makefile.am): Likewise.
63583         * modules/eealloc (Makefile.am): Likewise.
63584         * modules/error (Makefile.am): Likewise.
63585         * modules/euidaccess (Makefile.am): Likewise.
63586         * modules/exclude (Makefile.am): Likewise.
63587         * modules/exitfail (Makefile.am): Likewise.
63588         * modules/fcntl-safer (Makefile.am): Likewise.
63589         * modules/fcntl (Makefile.am): Likewise.
63590         * modules/file-type (Makefile.am): Likewise.
63591         * modules/fileblocks (Makefile.am): Likewise.
63592         * modules/filemode (Makefile.am): Likewise.
63593         * modules/filenamecat (Makefile.am): Likewise.
63594         * modules/fnmatch (Makefile.am): Likewise.
63595         * modules/fopen-safer (Makefile.am): Likewise.
63596         * modules/fpending (Makefile.am): Likewise.
63597         * modules/fprintftime (Makefile.am): Likewise.
63598         * modules/free (Makefile.am): Likewise.
63599         * modules/fsusage (Makefile.am): Likewise.
63600         * modules/ftruncate (Makefile.am): Likewise.
63601         * modules/fts (Makefile.am): Likewise.
63602         * modules/gc-arcfour (Makefile.am): Likewise.
63603         * modules/gc-des (Makefile.am): Likewise.
63604         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63605         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63606         * modules/gc-md4 (Makefile.am): Likewise.
63607         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63608         * modules/gc-sha1 (Makefile.am): Likewise.
63609         * modules/gc (Makefile.am): Likewise.
63610         * modules/getaddrinfo (Makefile.am): Likewise.
63611         * modules/getcwd (Makefile.am): Likewise.
63612         * modules/getdelim (Makefile.am): Likewise.
63613         * modules/getdomainname (Makefile.am): Likewise.
63614         * modules/getgroups (Makefile.am): Likewise.
63615         * modules/gethostname (Makefile.am): Likewise.
63616         * modules/gethrxtime (Makefile.am): Likewise.
63617         * modules/getline (Makefile.am): Likewise.
63618         * modules/getloadavg (Makefile.am): Likewise.
63619         * modules/getlogin_r (Makefile.am): Likewise.
63620         * modules/getndelim2 (Makefile.am): Likewise.
63621         * modules/getopt (Makefile.am): Likewise.
63622         * modules/getpagesize (Makefile.am): Likewise.
63623         * modules/getpass-gnu (Makefile.am): Likewise.
63624         * modules/getpass (Makefile.am): Likewise.
63625         * modules/getsubopt (Makefile.am): Likewise.
63626         * modules/gettime (Makefile.am): Likewise.
63627         * modules/gettimeofday (Makefile.am): Likewise.
63628         * modules/getugroups (Makefile.am): Likewise.
63629         * modules/getusershell (Makefile.am): Likewise.
63630         * modules/glob (Makefile.am): Likewise.
63631         * modules/group-member (Makefile.am): Likewise.
63632         * modules/hard-locale (Makefile.am): Likewise.
63633         * modules/hash (Makefile.am): Likewise.
63634         * modules/hmac-md5 (Makefile.am): Likewise.
63635         * modules/hmac-sha1 (Makefile.am): Likewise.
63636         * modules/human (Makefile.am): Likewise.
63637         * modules/idcache (Makefile.am): Likewise.
63638         * modules/imaxabs (Makefile.am): Likewise.
63639         * modules/imaxdiv (Makefile.am): Likewise.
63640         * modules/inet_ntop (Makefile.am): Likewise.
63641         * modules/inet_pton (Makefile.am): Likewise.
63642         * modules/intprops (Makefile.am): Likewise.
63643         * modules/inttostr (Makefile.am): Likewise.
63644         * modules/inttypes (Makefile.am): Likewise.
63645         * modules/isapipe (Makefile.am): Likewise.
63646         * modules/javaversion (Makefile.am): Likewise.
63647         * modules/lchmod (Makefile.am): Likewise.
63648         * modules/lchown (Makefile.am): Likewise.
63649         * modules/localcharset (Makefile.am): Likewise.
63650         * modules/long-options (Makefile.am): Likewise.
63651         * modules/lstat (Makefile.am): Likewise.
63652         * modules/malloc (Makefile.am): Likewise.
63653         * modules/mathl (Makefile.am): Likewise.
63654         * modules/mbchar (Makefile.am): Likewise.
63655         * modules/md2 (Makefile.am): Likewise.
63656         * modules/md4 (Makefile.am): Likewise.
63657         * modules/md5 (Makefile.am): Likewise.
63658         * modules/memcasecmp (Makefile.am): Likewise.
63659         * modules/memchr (Makefile.am): Likewise.
63660         * modules/memcmp (Makefile.am): Likewise.
63661         * modules/memcoll (Makefile.am): Likewise.
63662         * modules/memcpy (Makefile.am): Likewise.
63663         * modules/memmem (Makefile.am): Likewise.
63664         * modules/memmove (Makefile.am): Likewise.
63665         * modules/mempcpy (Makefile.am): Likewise.
63666         * modules/memrchr (Makefile.am): Likewise.
63667         * modules/memset (Makefile.am): Likewise.
63668         * modules/memxor (Makefile.am): Likewise.
63669         * modules/mkancesdirs (Makefile.am): Likewise.
63670         * modules/mkdir-p (Makefile.am): Likewise.
63671         * modules/mkdir (Makefile.am): Likewise.
63672         * modules/mkdtemp (Makefile.am): Likewise.
63673         * modules/mkstemp (Makefile.am): Likewise.
63674         * modules/mktime (Makefile.am): Likewise.
63675         * modules/modechange (Makefile.am): Likewise.
63676         * modules/mountlist (Makefile.am): Likewise.
63677         * modules/nanosleep (Makefile.am): Likewise.
63678         * modules/obstack (Makefile.am): Likewise.
63679         * modules/openat (Makefile.am): Likewise.
63680         * modules/pagealign_alloc (Makefile.am): Likewise.
63681         * modules/pathmax (Makefile.am): Likewise.
63682         * modules/physmem (Makefile.am): Likewise.
63683         * modules/poll (Makefile.am): Likewise.
63684         * modules/posixtm (Makefile.am): Likewise.
63685         * modules/posixver (Makefile.am): Likewise.
63686         * modules/putenv (Makefile.am): Likewise.
63687         * modules/quote (Makefile.am): Likewise.
63688         * modules/quotearg (Makefile.am): Likewise.
63689         * modules/raise (Makefile.am): Likewise.
63690         * modules/read-file (Makefile.am): Likewise.
63691         * modules/readline (Makefile.am): Likewise.
63692         * modules/readlink (Makefile.am): Likewise.
63693         * modules/readtokens (Makefile.am): Likewise.
63694         * modules/readutmp (Makefile.am): Likewise.
63695         * modules/realloc (Makefile.am): Likewise.
63696         * modules/regex (Makefile.am): Likewise.
63697         * modules/rename-dest-slash (Makefile.am): Likewise.
63698         * modules/rename (Makefile.am): Likewise.
63699         * modules/rijndael (Makefile.am): Likewise.
63700         * modules/rmdir (Makefile.am): Likewise.
63701         * modules/rpmatch (Makefile.am): Likewise.
63702         * modules/safe-read (Makefile.am): Likewise.
63703         * modules/safe-write (Makefile.am): Likewise.
63704         * modules/same-inode (Makefile.am): Likewise.
63705         * modules/same (Makefile.am): Likewise.
63706         * modules/save-cwd (Makefile.am): Likewise.
63707         * modules/savedir (Makefile.am): Likewise.
63708         * modules/setenv (Makefile.am): Likewise.
63709         * modules/settime (Makefile.am): Likewise.
63710         * modules/sha1 (Makefile.am): Likewise.
63711         * modules/sig2str (Makefile.am): Likewise.
63712         * modules/snprintf (Makefile.am): Likewise.
63713         * modules/stat-macros (Makefile.am): Likewise.
63714         * modules/stat-time (Makefile.am): Likewise.
63715         * modules/stdbool (Makefile.am): Likewise.
63716         * modules/stdint (Makefile.am): Likewise.
63717         * modules/stdlib-safer (Makefile.am): Likewise.
63718         * modules/stpcpy (Makefile.am): Likewise.
63719         * modules/stpncpy (Makefile.am): Likewise.
63720         * modules/strcase (Makefile.am): Likewise.
63721         * modules/strcasestr (Makefile.am): Likewise.
63722         * modules/strchrnul (Makefile.am): Likewise.
63723         * modules/strcspn (Makefile.am): Likewise.
63724         * modules/strdup (Makefile.am): Likewise.
63725         * modules/strerror (Makefile.am): Likewise.
63726         * modules/strftime (Makefile.am): Likewise.
63727         * modules/strndup (Makefile.am): Likewise.
63728         * modules/strnlen (Makefile.am): Likewise.
63729         * modules/strpbrk (Makefile.am): Likewise.
63730         * modules/strsep (Makefile.am): Likewise.
63731         * modules/strstr (Makefile.am): Likewise.
63732         * modules/strtod (Makefile.am): Likewise.
63733         * modules/strtoimax (Makefile.am): Likewise.
63734         * modules/strtok_r (Makefile.am): Likewise.
63735         * modules/strtol (Makefile.am): Likewise.
63736         * modules/strtoll (Makefile.am): Likewise.
63737         * modules/strtoul (Makefile.am): Likewise.
63738         * modules/strtoull (Makefile.am): Likewise.
63739         * modules/strtoumax (Makefile.am): Likewise.
63740         * modules/strverscmp (Makefile.am): Likewise.
63741         * modules/sys_socket (Makefile.am): Likewise.
63742         * modules/sys_stat (Makefile.am): Likewise.
63743         * modules/sysexits (Makefile.am): Likewise.
63744         * modules/time_r (Makefile.am): Likewise.
63745         * modules/timegm (Makefile.am): Likewise.
63746         * modules/timespec (Makefile.am): Likewise.
63747         * modules/tmpfile-safer (Makefile.am): Likewise.
63748         * modules/trim (Makefile.am): Likewise.
63749         * modules/unistd-safer (Makefile.am): Likewise.
63750         * modules/unlinkdir (Makefile.am): Likewise.
63751         * modules/unlocked-io (Makefile.am): Likewise.
63752         * modules/userspec (Makefile.am): Likewise.
63753         * modules/utime (Makefile.am): Likewise.
63754         * modules/utimecmp (Makefile.am): Likewise.
63755         * modules/utimens (Makefile.am): Likewise.
63756         * modules/vasnprintf (Makefile.am): Likewise.
63757         * modules/vasprintf (Makefile.am): Likewise.
63758         * modules/vsnprintf (Makefile.am): Likewise.
63759         * modules/xalloc (Makefile.am): Likewise.
63760         * modules/xgetcwd (Makefile.am): Likewise.
63761         * modules/xnanosleep (Makefile.am): Likewise.
63762         * modules/xreadlink (Makefile.am): Likewise.
63763         * modules/xstrtod (Makefile.am): Likewise.
63764         * modules/xstrtol (Makefile.am): Likewise.
63765         * modules/xstrtold (Makefile.am): Likewise.
63766         * modules/yesno (Makefile.am): Likewise.
63767         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63768
63769 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * modules/error (Makefile.am): Distribute files through
63772         EXTRA_DIST, not lib_SOURCES.
63773
63774 2006-10-12  Eric Blake  <ebb9@byu.net>
63775
63776         * modules/error (Makefile.am): Distribute files in /lib.
63777         * modules/obstack (Makefile.am): Likewise.
63778
63779 2006-10-12  Bruno Haible  <bruno@clisp.org>
63780
63781         * modules/acl (Makefile.am): Distribute all files in lib/ through
63782         EXTRA_DIST.
63783         * modules/arcfour (Makefile.am): Likewise.
63784         * modules/arctwo (Makefile.am): Likewise.
63785         * modules/argmatch (Makefile.am): Likewise.
63786         * modules/argz (Makefile.am): Likewise.
63787         * modules/atexit (Makefile.am): Likewise.
63788         * modules/backupfile (Makefile.am): Likewise.
63789         * modules/c-strtod (Makefile.am): Likewise.
63790         * modules/c-strtold (Makefile.am): Likewise.
63791         * modules/calloc (Makefile.am): Likewise.
63792         * modules/canon-host (Makefile.am): Likewise.
63793         * modules/canonicalize (Makefile.am): Likewise.
63794         * modules/chdir-long (Makefile.am): Likewise.
63795         * modules/chdir-safer (Makefile.am): Likewise.
63796         * modules/check-version (Makefile.am): Likewise.
63797         * modules/chown (Makefile.am): Likewise.
63798         * modules/cloexec (Makefile.am): Likewise.
63799         * modules/close-stream (Makefile.am): Likewise.
63800         * modules/closeout (Makefile.am): Likewise.
63801         * modules/crc (Makefile.am): Likewise.
63802         * modules/cycle-check (Makefile.am): Likewise.
63803         * modules/des (Makefile.am): Likewise.
63804         * modules/dirfd (Makefile.am): Likewise.
63805         * modules/dirname (Makefile.am): Likewise.
63806         * modules/dup2 (Makefile.am): Likewise.
63807         * modules/euidaccess (Makefile.am): Likewise.
63808         * modules/exclude (Makefile.am): Likewise.
63809         * modules/exitfail (Makefile.am): Likewise.
63810         * modules/fcntl-safer (Makefile.am): Likewise.
63811         * modules/file-type (Makefile.am): Likewise.
63812         * modules/fileblocks (Makefile.am): Likewise.
63813         * modules/filemode (Makefile.am): Likewise.
63814         * modules/filenamecat (Makefile.am): Likewise.
63815         * modules/fnmatch (Makefile.am): Likewise.
63816         * modules/fopen-safer (Makefile.am): Likewise.
63817         * modules/fpending (Makefile.am): Likewise.
63818         * modules/fprintftime (Makefile.am): Likewise.
63819         * modules/free (Makefile.am): Likewise.
63820         * modules/fsusage (Makefile.am): Likewise.
63821         * modules/ftruncate (Makefile.am): Likewise.
63822         * modules/fts (Makefile.am): Likewise.
63823         * modules/gc (Makefile.am): Likewise.
63824         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63825         * modules/getaddrinfo (Makefile.am): Likewise.
63826         * modules/getcwd (Makefile.am): Likewise.
63827         * modules/getdelim (Makefile.am): Likewise.
63828         * modules/getdomainname (Makefile.am): Likewise.
63829         * modules/getgroups (Makefile.am): Likewise.
63830         * modules/gethostname (Makefile.am): Likewise.
63831         * modules/gethrxtime (Makefile.am): Likewise.
63832         * modules/getline (Makefile.am): Likewise.
63833         * modules/getloadavg (Makefile.am): Likewise.
63834         * modules/getlogin_r (Makefile.am): Likewise.
63835         * modules/getopt (Makefile.am): Likewise.
63836         * modules/getpass (Makefile.am): Likewise.
63837         * modules/getpass-gnu (Makefile.am): Likewise.
63838         * modules/getsubopt (Makefile.am): Likewise.
63839         * modules/gettime (Makefile.am): Likewise.
63840         * modules/gettimeofday (Makefile.am): Likewise.
63841         * modules/getugroups (Makefile.am): Likewise.
63842         * modules/getusershell (Makefile.am): Likewise.
63843         * modules/glob (Makefile.am): Likewise.
63844         * modules/group-member (Makefile.am): Likewise.
63845         * modules/hard-locale (Makefile.am): Likewise.
63846         * modules/hash (Makefile.am): Likewise.
63847         * modules/hmac-md5 (Makefile.am): Likewise.
63848         * modules/hmac-sha1 (Makefile.am): Likewise.
63849         * modules/human (Makefile.am): Likewise.
63850         * modules/idcache (Makefile.am): Likewise.
63851         * modules/imaxabs (Makefile.am): Likewise.
63852         * modules/imaxdiv (Makefile.am): Likewise.
63853         * modules/inet_ntop (Makefile.am): Likewise.
63854         * modules/inet_pton (Makefile.am): Likewise.
63855         * modules/inttostr (Makefile.am): Likewise.
63856         * modules/isapipe (Makefile.am): Likewise.
63857         * modules/lchown (Makefile.am): Likewise.
63858         * modules/long-options (Makefile.am): Likewise.
63859         * modules/lstat (Makefile.am): Likewise.
63860         * modules/malloc (Makefile.am): Likewise.
63861         * modules/mathl (Makefile.am): Likewise.
63862         * modules/mbchar (Makefile.am): Likewise.
63863         * modules/md2 (Makefile.am): Likewise.
63864         * modules/md4 (Makefile.am): Likewise.
63865         * modules/md5 (Makefile.am): Likewise.
63866         * modules/memcasecmp (Makefile.am): Likewise.
63867         * modules/memchr (Makefile.am): Likewise.
63868         * modules/memcmp (Makefile.am): Likewise.
63869         * modules/memcoll (Makefile.am): Likewise.
63870         * modules/memcpy (Makefile.am): Likewise.
63871         * modules/memmem (Makefile.am): Likewise.
63872         * modules/memmove (Makefile.am): Likewise.
63873         * modules/mempcpy (Makefile.am): Likewise.
63874         * modules/memrchr (Makefile.am): Likewise.
63875         * modules/memset (Makefile.am): Likewise.
63876         * modules/memxor (Makefile.am): Likewise.
63877         * modules/mkancesdirs (Makefile.am): Likewise.
63878         * modules/mkdir (Makefile.am): Likewise.
63879         * modules/mkdir-p (Makefile.am): Likewise.
63880         * modules/mkdtemp (Makefile.am): Likewise.
63881         * modules/mkstemp (Makefile.am): Likewise.
63882         * modules/mktime (Makefile.am): Likewise.
63883         * modules/modechange (Makefile.am): Likewise.
63884         * modules/mountlist (Makefile.am): Likewise.
63885         * modules/nanosleep (Makefile.am): Likewise.
63886         * modules/openat (Makefile.am): Likewise.
63887         * modules/pagealign_alloc (Makefile.am): Likewise.
63888         * modules/physmem (Makefile.am): Likewise.
63889         * modules/poll (Makefile.am): Likewise.
63890         * modules/posixtm (Makefile.am): Likewise.
63891         * modules/posixver (Makefile.am): Likewise.
63892         * modules/putenv (Makefile.am): Likewise.
63893         * modules/quote (Makefile.am): Likewise.
63894         * modules/quotearg (Makefile.am): Likewise.
63895         * modules/raise (Makefile.am): Likewise.
63896         * modules/read-file (Makefile.am): Likewise.
63897         * modules/readline (Makefile.am): Likewise.
63898         * modules/readlink (Makefile.am): Likewise.
63899         * modules/readtokens (Makefile.am): Likewise.
63900         * modules/readutmp (Makefile.am): Likewise.
63901         * modules/realloc (Makefile.am): Likewise.
63902         * modules/regex (Makefile.am): Likewise.
63903         * modules/rename (Makefile.am): Likewise.
63904         * modules/rename-dest-slash (Makefile.am): Likewise.
63905         * modules/rijndael (Makefile.am): Likewise.
63906         * modules/rmdir (Makefile.am): Likewise.
63907         * modules/rpmatch (Makefile.am): Likewise.
63908         * modules/safe-read (Makefile.am): Likewise.
63909         * modules/safe-write (Makefile.am): Likewise.
63910         * modules/same (Makefile.am): Likewise.
63911         * modules/save-cwd (Makefile.am): Likewise.
63912         * modules/savedir (Makefile.am): Likewise.
63913         * modules/setenv (Makefile.am): Likewise.
63914         * modules/settime (Makefile.am): Likewise.
63915         * modules/sha1 (Makefile.am): Likewise.
63916         * modules/sig2str (Makefile.am): Likewise.
63917         * modules/snprintf (Makefile.am): Likewise.
63918         * modules/stdlib-safer (Makefile.am): Likewise.
63919         * modules/stpcpy (Makefile.am): Likewise.
63920         * modules/stpncpy (Makefile.am): Likewise.
63921         * modules/strcase (Makefile.am): Likewise.
63922         * modules/strcasestr (Makefile.am): Likewise.
63923         * modules/strchrnul (Makefile.am): Likewise.
63924         * modules/strcspn (Makefile.am): Likewise.
63925         * modules/strdup (Makefile.am): Likewise.
63926         * modules/strerror (Makefile.am): Likewise.
63927         * modules/strftime (Makefile.am): Likewise.
63928         * modules/strndup (Makefile.am): Likewise.
63929         * modules/strnlen (Makefile.am): Likewise.
63930         * modules/strpbrk (Makefile.am): Likewise.
63931         * modules/strsep (Makefile.am): Likewise.
63932         * modules/strstr (Makefile.am): Likewise.
63933         * modules/strtod (Makefile.am): Likewise.
63934         * modules/strtoimax (Makefile.am): Likewise.
63935         * modules/strtok_r (Makefile.am): Likewise.
63936         * modules/strtol (Makefile.am): Likewise.
63937         * modules/strtoll (Makefile.am): Likewise.
63938         * modules/strtoul (Makefile.am): Likewise.
63939         * modules/strtoull (Makefile.am): Likewise.
63940         * modules/strtoumax (Makefile.am): Likewise.
63941         * modules/strverscmp (Makefile.am): Likewise.
63942         * modules/time_r (Makefile.am): Likewise.
63943         * modules/timegm (Makefile.am): Likewise.
63944         * modules/tmpfile-safer (Makefile.am): Likewise.
63945         * modules/unistd-safer (Makefile.am): Likewise.
63946         * modules/unlinkdir (Makefile.am): Likewise.
63947         * modules/userspec (Makefile.am): Likewise.
63948         * modules/utime (Makefile.am): Likewise.
63949         * modules/utimecmp (Makefile.am): Likewise.
63950         * modules/utimens (Makefile.am): Likewise.
63951         * modules/vasnprintf (Makefile.am): Likewise.
63952         * modules/vasprintf (Makefile.am): Likewise.
63953         * modules/vsnprintf (Makefile.am): Likewise.
63954         * modules/xalloc (Makefile.am): Likewise.
63955         * modules/xgetcwd (Makefile.am): Likewise.
63956         * modules/xnanosleep (Makefile.am): Likewise.
63957         * modules/xreadlink (Makefile.am): Likewise.
63958         * modules/xstrtod (Makefile.am): Likewise.
63959         * modules/xstrtol (Makefile.am): Likewise.
63960         * modules/xstrtold (Makefile.am): Likewise.
63961         * modules/yesno (Makefile.am): Likewise.
63962
63963 2006-10-12  Jim Meyering  <jim@meyering.net>
63964
63965         * m4/getloadavg.m4: Revert the change below.
63966
63967         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63968         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63969         fail with a symlink, which is what coreutils' ./bootstrap now
63970         creates by default.
63971
63972 2006-10-12  Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63975         mingw.
63976         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63977         MSVC and mingw explicitly.
63978
63979 2006-10-11  Simon Josefsson  <jas@extundo.com>
63980             Bruno Haible  <bruno@clisp.org>
63981
63982         Add support for multiple gnulib-tool invocations in the scope of a
63983         single configure.ac file.
63984         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63985         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63986         with the same contents as the _LIBADD variable.
63987         (func_emit_initmacro_start, func_emit_initmacro_end,
63988         func_emit_initmacro_done): New functions.
63989         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63990         gl_LIBOBJS and gl_LTLIBOBJS.
63991
63992 2006-10-11  Bruno Haible  <bruno@clisp.org>
63993
63994         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63995         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63996         autoreconf. Instead, invoke autopoint explicitly but move back the
63997         *.m4 files from gnulib.
63998
63999 2006-10-11  Bruno Haible  <bruno@clisp.org>
64000
64001         * gnulib-tool (func_usage): Make module names after --create-testdir
64002         optional.
64003         (func_create_testdir): If no module was specified, use nearly all
64004         modules.
64005
64006 2006-10-12  Jim Meyering  <jim@meyering.net>
64007
64008         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64009         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64010         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64011         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64012         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64013         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64014         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64015         (fts_set_stat_required): New function.
64016         (fts_open): Defer the calls to fts_stat, if possible or requested.
64017         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64018         into fts_stat itself.
64019         (fts_read): Perform any required (deferred) fts_stat call.
64020         (fts_build): Likewise, for the directory we're about to open and read.
64021         In the readdir loop, carefully decide whether each entry will require
64022         an eventual call to fts_stat, using dirent.d_type info if available.
64023         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64024         a command line argument into this function.  Update all callers.
64025         Map a return value of FTS_DOT to FTS_D for a command line argument.
64026         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64027         Thanks to Miklos Szeredi for his tenacity and for the initial
64028         bug report about "find" failing on a FUSE-based file system.
64029
64030         * lib/fts.c (fts_open): Use consistent indentation.
64031
64032 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64035         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64036         reported by Jim Meyering.  All uses of cache variables renamed
64037         to match Autoconf's.
64038         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64039         the other one.
64040
64041         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64042         Fix misspelling in diagnostic.
64043
64044 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64047         defined.  Problem reported by Matthew Woehlke.
64048
64049         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64050         Add support for Tandem NonStop R series.
64051         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64052         Use new macro.
64053
64054         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64055         (has_trailing_slash): Omit size arg; all callers changed.
64056         Omit 'inline', since it doesn't help performance and we'd
64057         need to configure it.
64058         Don't count //, ///, etc. as having a trailing slash.
64059         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64060         (rpl_rename_dest_slash): On failure, use rename's errno rather
64061         than (in some cases) an incorrect or junk errno.
64062         Simplify code by removing need to compute length; this does
64063         cause it to make two passes instead of one over the file name,
64064         but it's worth it.
64065
64066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64067         change, since Autoconf's version may no longer be appropriate now
64068         that we are using CVS Autoconf's version.  Add support for Tandem.
64069
64070 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64071             Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64074         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64075         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64076         gl_AC_TYPE_LONG_LONG.
64077
64078         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64079         instead of HAVE_LONG_LONG.
64080         * lib/printf-args.c (printf_fetchargs): Likewise.
64081         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64082         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64084         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64085         gl_AC_TYPE_LONG_LONG.
64086
64087 2006-10-11  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/longlong.m4: Add comments.
64090         * m4/ulonglong.m4: Likewise.
64091
64092 2006-10-10  Bruno Haible  <bruno@clisp.org>
64093
64094         Make it possible to #define stpcpy, strdup to aliases.
64095         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64096         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64097
64098 2006-10-10  Bruno Haible  <bruno@clisp.org>
64099
64100         Make it possible to #define gcd to an alias.
64101         * lib/gcd.c: Include config.h.
64102
64103 2006-10-10  Bruno Haible  <bruno@clisp.org>
64104
64105         Make it possible to #define c_isascii to an alias.
64106         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64107         defined. Undefine the macros before defining them, to avoid gcc
64108         warnings.
64109         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64110         define NO_C_CTYPE_MACROS early.
64111
64112 2006-10-10  Bruno Haible  <bruno@clisp.org>
64113
64114         Make it possible to #define set_program_name to an alias.
64115         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64116         ENABLE_RELOCATABLE early.
64117
64118 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64119
64120         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64121         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64122         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64123         More generally, don't assume that 64-bit signed int is available
64124         if unsigned int is, and vice versa.
64125         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64126         unsigned symbols, not on their signed counterparts.
64127         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64128         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64129         (UINT64_C, UINTMAX_C):
64130         Likewise.
64131         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64132         unsigned counterparts.
64133         (Have_long_long, Unsigned): New macros.
64134         (Int): Renamed from INT.
64135         (strtoimax): Use the new macros.
64136         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64137         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64138         * modules/inttypes (inttypes.h): Substitute
64139         HAVE_UNSIGNED_LONG_LONG_INT.
64140         * modules/stdint (stdint.h): Likewise.
64141         (Files): Add m4/ulonglong.m4.
64142
64143 2006-10-10  Bruno Haible  <bruno@clisp.org>
64144
64145         Fix a gcc -Wshadow warning.
64146         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64147         to 'bucket'.
64148         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64149         gl_linked_indexof_from_to): Likewise.
64150         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64151         Likewise.
64152         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64153         Likewise.
64154         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64155         Reported by Eric Blake.
64156
64157 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64160         for NetBSD.  Problem reported by Bruno Haible.
64161
64162 2006-10-09  Jim Meyering  <jim@meyering.net>
64163
64164         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64165         Patch from Bruno Haible.
64166
64167 2006-10-09  Jim Meyering  <jim@meyering.net>
64168
64169         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64170         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64171         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64172
64173 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64174
64175         Don't include <config.h> twice; this doesn't work in some cases,
64176         e.g., when config.h has "#define intmax_t long long int" and
64177         we include <config.h>, <inttypes.h>, <config.h> in that order.
64178         Problem reported by Matthew Woehlke in:
64179         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64180         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64181         * lib/fts-cycle.c: Don't include config.h.
64182         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64183         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64184         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64185         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64186         inttypes.h.
64187         * lib/xstrtoumax.c: Likewise.
64188         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64189         __strtol and the like, so that this module is more like its siblings.
64190         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64191         Remove; no longer needed now that we assume gnulib inttypes.h.
64192
64193 2006-10-08  Bruno Haible  <bruno@clisp.org>
64194
64195         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64196         option.
64197
64198 2006-10-07  Jim Meyering  <jim@meyering.net>
64199
64200         * modules/inttypes (inttypes.h): Revert what seems to have been
64201         an inadvertent part of today's change: use "|", not "/" in the
64202         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64203
64204 2006-10-07  Bruno Haible  <bruno@clisp.org>
64205
64206         * modules/sublist: New file.
64207
64208 2006-10-07  Bruno Haible  <bruno@clisp.org>
64209
64210         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64211         * modules/argz (argz.h): Likewise.
64212         * modules/arpa_inet (arpa/inet.h): Likewise.
64213         * modules/byteswap (byteswap.h): Likewise.
64214         * modules/configmake (configmake.h): Likewise.
64215         * modules/fcntl (fcntl.h): Likewise.
64216         * modules/fnmatch (fnmatch.h): Likewise.
64217         * modules/getopt (getopt.h): Likewise.
64218         * modules/glob (glob.h): Likewise.
64219         * modules/inttypes (inttypes.h): Likewise.
64220         * modules/netinet_in (netinet/in.h): Likewise.
64221         * modules/poll (poll.h): Likewise.
64222         * modules/stdbool (stdbool.h): Likewise.
64223         * modules/stdint (stdint.h): Likewise.
64224         * modules/sys_select (sys/select.h): Likewise.
64225         * modules/sys_socket (sys/socket.h): Likewise.
64226         * modules/sys_stat (sys/stat.h): Likewise.
64227         * modules/sysexits (sysexits.h): Likewise.
64228         * modules/unistd (unistd.h): Likewise.
64229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64230         Add a "DO NOT EDIT" comment to the generated file.
64231         (func_import): Likewise for gnulib-comp.m4.
64232
64233 2006-10-07  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/gl_sublist.h: New file.
64236         * lib/gl_sublist.c: New file.
64237
64238 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64241         name (relative to the original working directory) and the file
64242         name component (relative to the temporary working directory).  All
64243         callers changed.
64244         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64245         * lib/mkdir-p.c (make_dir_parents): Likewise.
64246         * lib/mkdir-p.h (make_dir_parents): Likewise.
64247
64248 2006-10-06  Eric Blake  <ebb9@byu.net>
64249
64250         Define several macros for use by the clean-temp module.
64251         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64252         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64253         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64254
64255         * lib/clean-temp.h (close_stream_temp): New declaration.
64256         * lib/clean-temp.c (includes): Pull in headers according to what
64257         other modules are in use.
64258         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64259
64260 2006-10-06  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64263         instead of fopen, fwriteerror.
64264
64265 2006-10-06  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64268         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64269         int.
64270         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64271         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64272         Return an error indicator.
64273         Suggested by Eric Blake.
64274
64275 2006-10-06  Bruno Haible  <bruno@clisp.org>
64276
64277         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64278         Reported by Eric Blake.
64279
64280 2006-10-06  Bruno Haible  <bruno@clisp.org>
64281
64282         * modules/closeout (Description): Mention stderr too.
64283
64284 2006-10-06  Bruno Haible  <bruno@clisp.org>
64285         and Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         * lib/closeout.c (close_stdout): Also close stderr.
64288         * lib/closeout.h: Update comment.
64289
64290 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64293         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64294         * lib/dirchownmod.c: Include lchown.h.
64295         * lib/lchown.c: Don't include files that lchown.h now includes.
64296         Don't declare chown, since lchown.h now does that.
64297         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64298         (lchown): Define to rpl_chown if lchown is declared but
64299         does not exist.  Declare using a prototype if lchown is not
64300         declared.  Add a copyright notice.
64301         * lib/mkstemp.h: Include <unistd.h>.
64302         * lib/openat.c: Include lchown.h.
64303
64304         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64305         we now test for that separately.
64306         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64307         rather than O_NOFOLLOW, when testing whether it's possible to
64308         avoid a race condition reliably.
64309         * lib/savewd.c (savewd_chdir): Likewise.
64310
64311         Remove macros that are no longer needed now that stdint.h is
64312         reliable.
64313         * lib/fsusage.c (UINTMAX_MAX): Remove.
64314         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64315         * lib/utimecmp.c (SIZE_MAX): Remove.
64316
64317         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64318
64319         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64320         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64321         O_NOATIME works.
64322
64323 2006-10-05  Bruno Haible  <bruno@clisp.org>
64324
64325         * lib/gl_list.h (gl_sortedlist_search_from_to,
64326         gl_sortedlist_indexof_from_to): New declarations.
64327         (gl_list_implementation): New fields sortedlist_search_from_to,
64328         sortedlist_indexof_from_to.
64329         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64330         inline functions.
64331         * lib/gl_list.c (gl_sortedlist_search_from_to,
64332         gl_sortedlist_indexof_from_to): New functions.
64333         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64334         function.
64335         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64336         (gl_array_sortedlist_search_from_to): New function.
64337         (gl_array_list_implementation): Update.
64338         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64339         function.
64340         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64341         (gl_carray_sortedlist_search_from_to): New function.
64342         (gl_carray_list_implementation): Update.
64343         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64344         gl_linked_sortedlist_indexof_from_to): New functions.
64345         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64346         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64347         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64348         gl_tree_sortedlist_indexof_from_to): New functions.
64349         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64350         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64351         Update.
64352         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64353         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64354         Update.
64355
64356 2006-10-05  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64359         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64360         (struct gl_list_implementation): Add fields search_from_to,
64361         indexof_from_to. Remove fields search, indexof.
64362         (gl_list_search): Use the search_from_to method.
64363         (gl_list_search_from, gl_list_search_from_to): New functions.
64364         (gl_list_indexof): Use the indexof_from_to method.
64365         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64366         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64367         (gl_list_search_from, gl_list_search_from_to): New functions.
64368         (gl_list_indexof): Use the indexof_from_to method.
64369         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64370         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64371         gl_array_indexof. Add start_index, end_index arguments.
64372         (gl_array_search_from_to): Renamed from gl_array_search. Add
64373         start_index, end_index arguments.
64374         (gl_array_remove, gl_array_list_implementation): Update.
64375         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64376         gl_carray_indexof. Add start_index, end_index arguments.
64377         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64378         start_index, end_index arguments.
64379         (gl_carray_remove, gl_carray_list_implementation): Update.
64380         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64381         gl_linked_search. Add start_index, end_index arguments.
64382         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64383         start_index, end_index arguments.
64384         (gl_linked_remove): Update.
64385         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64386         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64387         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64388         field to 'size_t'.
64389         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64390         gl_tree_search. Add start_index, end_index arguments.
64391         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64392         start_index, end_index arguments.
64393         (gl_tree_remove): Update.
64394         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64395         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64396         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64397         function.
64398         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64399         gl_tree_search. Add start_index, end_index arguments.
64400         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64401         start_index, end_index arguments.
64402         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64403         Update.
64404         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64405
64406 2006-10-05  Bruno Haible  <bruno@clisp.org>
64407
64408         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64409
64410         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64411         fwriteerror_temp): New declarations.
64412         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64413         (descriptors): New variable.
64414         (cleanup): First, close the descriptors.
64415         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64416         fclose_temp, fwriteerror_temp): New functions.
64417
64418 2006-10-04  Jim Meyering  <jim@meyering.net>
64419
64420         * lib/fts.c (fts_open): Tiny comment change.
64421
64422 2006-10-04  Bruno Haible  <bruno@clisp.org>
64423
64424         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64425         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64426         gl_LOCK_BODY.
64427         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64428         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64429         gl_LOCK_EARLY_BODY.
64430         (gl_LOCK): Require gl_LOCK_BODY.
64431
64432 2006-10-04  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64435         (gl_oset_search_atleast): New declaration.
64436         (struct gl_oset_implementation): Add field 'search_atleast'.
64437         (gl_oset_search_atleast): New inline function.
64438         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64439         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64440         (gl_array_oset_implementation): Update.
64441         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64442         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64443         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64444
64445 2006-10-04  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64448
64449 2006-10-03  Bruno Haible  <bruno@clisp.org>
64450
64451         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64452         from gl_avltreehash_list_implementation.
64453
64454 2006-10-03  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/gl_oset.c (gl_oset_add): Fix return type.
64457
64458 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64459
64460         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64461
64462 2006-10-02  Eric Blake  <ebb9@byu.net>
64463
64464         * modules/strnlen (Depends-on): Add extensions.
64465
64466 2006-10-02  Eric Blake  <ebb9@byu.net>
64467
64468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64469         definition in 2.60+.
64470
64471 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64472
64473         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64474         checks.
64475
64476 2006-10-02  Bruno Haible  <bruno@clisp.org>
64477
64478         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64479         to the AUTOMAKE_OPTIONS.
64480         Reported by Jim Meyering.
64481
64482 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         Work around bug in Solaris 10 /proc file system:
64485         /proc/self/fd/NNN/.. isn't the parent directory of
64486         the directory whose file descriptor is NNN.  This needs to
64487         be worked around at run time, not compile time, since a
64488         program might be built on Solaris 8, where things work, and
64489         run on Solaris 10.
64490         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64491         to use the following interface instead:
64492         (OPENAT_BUFFER_SIZE): New macro.
64493         (openat_proc_name): New function.
64494         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64495         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64496         Likewise.
64497         * lib/openat-proc.c: New file.
64498         * modules/openat (Files): Add lib/openat-proc.c.
64499         (Depends-on): Add same-inode, stdbool.
64500         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64501
64502 2006-09-29  Bruno Haible  <bruno@clisp.org>
64503
64504         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64505         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64506         argument. Set stdout_closed before testing for ferror, not after.
64507         (fwriteerror, fwriteerror_no_ebadf): New functions.
64508
64509 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64510
64511         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64512
64513 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64514
64515         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64516         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64517
64518 2006-09-28  Jim Meyering  <jim@meyering.net>
64519
64520         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64521         Include <unistd.h>.
64522
64523 2006-09-28  Bruno Haible  <bruno@clisp.org>
64524
64525         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64526         * modules/linkedhash-list (Depends-on): Likewise.
64527         * modules/rbtreehash-list (Depends-on): Likewise.
64528
64529 2006-09-28  Bruno Haible  <bruno@clisp.org>
64530
64531         * lib/strndup.h: Simplify the redefinition of strndup.
64532         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64533         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64534
64535 2006-09-28  Bruno Haible  <bruno@clisp.org>
64536
64537         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64538         * lib/gl_linkedhash_list.c: Likewise.
64539         * lib/gl_rbtreehash_list.c: Likewise.
64540
64541 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64544         getaddrinfo.
64545
64546         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64547         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64548         it causes <stdio_ext.h> to cause a compile-time error.
64549         Problem reported by Nelson H. F. Beebe.
64550         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64551         of HAVE_DECL___PENDING.
64552
64553         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64554         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64555         declaration.
64556
64557 2006-09-27  Jim Meyering  <jim@meyering.net>
64558
64559         This file could end up with a definition for a function
64560         named __strndup, rather than rpl_strndup on a system with
64561         incomplete weak_alias support.
64562         * lib/strndup.c (strndup): Rename from __strndup.
64563         Remove #defines that used to map __strndup to strndup.
64564         Don't use K&R prototypes.
64565         Remove LIBC-related code, since this file is not sync'd with glibc.
64566         * lib/strndup.h: Revamp, accordingly.
64567         * m4/strndup.m4: Modernize.
64568
64569 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64570
64571         * modules/savewd (Depends-on): Add 'raise'.
64572         * lib/savewd.c: Include <signal.h>, for 'raise'.
64573
64574 2006-09-26  Jim Meyering  <jim@meyering.net>
64575
64576         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64577         when we detect Darwin 8.7.0's acl_get_file bug.
64578         Rearrange to perform the new (below) run-test while $LIBS
64579         contains any acl-related library.  Set USE_ACL at the end.
64580         (gl_ACL_GET_FILE): New function.
64581
64582 2006-09-26  Eric Blake  <ebb9@byu.net>
64583
64584         * lib/verror.c: Include <config.h> unconditionally.
64585
64586 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * modules/clock-time (Maintainer): Add self.
64589         * modules/getlogin_r (Depends-on): Add extensions.
64590
64591 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64592
64593         * modules/clock-time: New module.
64594         * modules/nanosleep (Depends-on): Add clock-time.
64595         * modules/gethrxtime (Depends-on): Likewise.
64596         * modules/gettime (Depends-on): Likewise.
64597         * modules/settime (Depends-on): Likewise.
64598
64599         * modules/fts-lgpl: Depend on openat.
64600         * modules/mkancesdirs: Depend on savewd.
64601         * modules/mkdir-p: Likewise.
64602
64603 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64604
64605         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64606
64607         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64608         `gl_have_arbitrary_file_name_length_limit' to
64609         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64610         actually works between configure runs.
64611
64612 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64613             Bruno Haible  <bruno@clisp.org>
64614
64615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64616
64617 2006-09-25  Jim Meyering  <jim@meyering.net>
64618
64619         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64620         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64621
64622 2006-09-25  Eric Blake  <ebb9@byu.net>
64623
64624         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64625         exec's in 2006-09-18 patch when shuffling fds.
64626
64627 2006-09-25  Bruno Haible  <bruno@clisp.org>
64628
64629         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64630         Reported by Jim Meyering.
64631
64632 2006-09-24  Jim Meyering  <jim@meyering.net>
64633
64634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64635         compare a pointer against a literal "0".  That caused failures with
64636         at least HP-UX's hpcc.
64637
64638 2006-09-22  Simon Josefsson  <jas@extundo.com>
64639
64640         * modules/gc-sha1:
64641         * modules/gc-md4:
64642         * modules/gc-hmac-sha1:
64643         * modules/gc-hmac-md5:
64644         * modules/gc-des:
64645         * modules/gc-arcfour: Distribute more files.
64646
64647 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64648
64649         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64650         (gl_linked_iterator_from_to): Initialize struct completely.
64651         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64652         (gl_tree_iterator_from_to): Likewise
64653         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64654         * lib/gl_array_list.c [lint] (gl_array_iterator)
64655         (gl_array_iterator_from_to): Likewise.
64656         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64657         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64658         (gl_carray_iterator_from_to): Likewise.
64659
64660         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64661         * lib/md4.c (md4_process_block): Remove unused variable.
64662         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64663         parentheses for clarity.
64664
64665 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64666
64667         * modules/bison-i18n (Depends-on): Add gettext.
64668
64669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64670
64671         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64672         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64673         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64674         also add missing comma that caused broken test.
64675         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64676         stdlib.h, for `abort'.
64677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64678         variables.
64679         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64680         include unistd.h if present, for `rmdir'.
64681         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64682         variables.
64683         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64684         in the process include standard headers for prototypes.
64685         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64686         gets declared on GNU/Linux.
64687         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64688         unistd.h, for `rmdir'.
64689         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64690
64691         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64692         always true.
64693         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64694
64695         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64696
64697 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64698
64699         * gnulib-tool (func_version): Create output all at once.  This
64700         may help avoid triggering unnecessary SIGPIPEs, and at any
64701         rate it doesn't hurt.
64702
64703 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64704             Bruno Haible  <bruno@clisp.org>
64705
64706         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64707         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64708         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64709
64710         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64711         (gl_FUNC_VASPRINTF): Invoke it.
64712
64713 2006-09-22  Bruno Haible  <bruno@clisp.org>
64714
64715         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64716         getloadavg.c as first argument.
64717
64718 2006-09-22  Bruno Haible  <bruno@clisp.org>
64719
64720         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64721         at the beginning of the gl_INIT macro.
64722         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64723         gl_GETLOADAVG.
64724
64725 2006-09-22  Bruno Haible  <bruno@clisp.org>
64726
64727         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64728         module.
64729         Suggested by Ralf Wildenhues.
64730
64731 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         Import this patch from libc:
64734
64735         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64736
64737         * lib/regex_internal.c (re_string_reconstruct): Handle
64738         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64739         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64740         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64741         re_string_context_at.
64742
64743         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64744         now requires it.
64745         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64746         gl_REGEX now does it for us.
64747         (gl_REGEX): Add test taken from
64748         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64749
64750         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64751         Check that large offsets work.  Modernize Autoconf usages.
64752         Prefer "yes" to mean a good thing rather than a bad.
64753         Don't put "#define mkstemp" in config.h, as this might interfere
64754         with standard system headers that "#define mkstemp mkstemp64".
64755
64756         * modules/mkstemp (Depends-on): Add extensions, so that
64757         mkstemp is visible on some platforms.
64758         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64759         (Include): Change to "mkstemp.h" from <stdlib.h>.
64760         (Files): Add mkstemp.h.
64761
64762         * lib/mkstemp.h: New file, since some standard headers
64763         #define mkstemp.
64764         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64765         Include "mkstemp.h".
64766         Make the _LIBC code resemble glibc original more,
64767         e.g., use K&R style.
64768         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64769         (mkstemp): Remove, since mkstemp.h does this for us.
64770         * lib/stdlib--.h: Include mkstemp.h.
64771
64772         Import this patch from libc:
64773
64774         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64775
64776         * lib/tempname.c (__gen_tempname): Change attempts_min
64777         into a macro.  Use preprocessor to decide how to initialize
64778         attempts [Coverity CID 67].
64779
64780 2006-09-20  Bruno Haible  <bruno@clisp.org>
64781
64782         * lib/mkdtemp.c: Import from libc.
64783         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64784                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64785                 attempts_min into a macro.  Use preprocessor to decide how to
64786                 initialize attempts [Coverity CID 67].
64787         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64788                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64789                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64790
64791 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64792
64793         * gnulib-tool (func_exit): New function, to allow to pass the
64794         exit status portably through the trap.  Use everywhere.
64795         (--help, --version): Signal a write error.
64796         (trap): catch SIGPIPE, for write errors.
64797         Exit at the end of the trap, with the correct exit status.
64798
64799 2006-09-19  Karl Berry  <karl@gnu.org>
64800
64801         * doc/gnulib.texi: note about the license texinfo files.
64802
64803 2006-09-19  Eric Blake  <ebb9@byu.net>
64804
64805         * gnulib-tool: Avoid space-tab.
64806
64807 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64810         that prevented coreutils 6.1 from building.  Problem reported
64811         by Petter Reinholdtsen.
64812
64813 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64814
64815         * gnulib-tool (avoidlist): Fix typo that broke options like
64816         --avoid=lock that are used by coreutils bootstrap.
64817
64818 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64819
64820         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64821         more systematically.
64822
64823 2006-09-18  Jim Meyering  <jim@meyering.net>
64824
64825         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64826
64827 2006-09-18  Bruno Haible  <bruno@clisp.org>
64828
64829         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64830
64831 2006-09-18  Bruno Haible  <bruno@clisp.org>
64832
64833         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64834         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64835         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64836         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64837         * m4/gettext.m4: Require autoconf >= 2.52.
64838         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64839         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64840         of gl_cv_header_inttypes_h.
64841
64842 2006-09-18  Bruno Haible  <bruno@clisp.org>
64843
64844         * lib/javaversion.c: Include configmake.h.
64845
64846 2006-09-18  Bruno Haible  <bruno@clisp.org>
64847
64848         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64849         avoid that the while loops be executed in a subshell.
64850
64851 2006-09-18  Bruno Haible  <bruno@clisp.org>
64852
64853         * MODULES.html.sh (func_module): Break long lines.
64854         Suggested by Bruce Korb <bkorb@gnu.org>.
64855
64856 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64857
64858         Speed up by a factor of 1.12.
64859         * gnulib-tool (nl): New variable.
64860         (func_import): Rewrite include directive extraction to only read each
64861         directive once.
64862
64863 2006-09-17  Bruno Haible  <bruno@clisp.org>
64864
64865         * modules/javaversion (Makefile.am): Remove DEFS setting.
64866         (Depends-on): Add configmake, for PKGDATADIR definition.
64867
64868 2006-09-17  Bruno Haible  <bruno@clisp.org>
64869
64870         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64871
64872 2006-09-17  Bruno Haible  <bruno@clisp.org>
64873
64874         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64875         (func_modules_transitive_closure, func_modules_add_dummy,
64876         func_modules_to_filelist, func_import, func_create_testdir,
64877         func_create_megatestdir, ...): Use it wherever possible.
64878         Suggested by Ralf Wildenhues.
64879
64880 2006-09-16  Karl Berry  <karl@gnu.org>
64881
64882         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64883         to avoid sectioning errors.
64884         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64885         [ifinfo]: blank line after @center-ed titles.
64886         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64887         Spell FSF address consistently with others.
64888         (These changes approved by rms.)
64889
64890 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64891
64892         Speed up by a factor of 1.61.
64893         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64894         already checked module names again.
64895
64896 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64897
64898         Speed up by a factor of 1.13.
64899         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64900         for new_files, and the input to func_add_or_update.
64901
64902 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64903
64904         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64905         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64906
64907 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * modules/mkancesdirs (Depends-on): Add fcntl.
64910         * modules/savewd: New file.
64911         * MODULES.html.sh (File system functions): Add savewd.
64912
64913         * modules/configmake (Makefile.am): Add support for the
64914         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64915
64916 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * m4/savewd.m4: New file.
64919
64920 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64921
64922         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64923         (dirchownmod): New arg FD.  All callers changed.
64924         Use FD rather than opening the directory ourself, as opening is
64925         now the caller's responsibility.
64926         * lib/dirchownmod.h: Likewise.
64927         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64928         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64929         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64930         (test_dir): Remove.
64931         (mkancesdirs): Return length of prefix of FILE that has already
64932         been made, or -2 if there is a child doing the work.  Redo
64933         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64934         ".", and treat ".." specially since it might stray back into
64935         already-created areas.  Use a subprocess if necessary.  New arg
64936         WD; all users changed.  MAKE_DIR function should now return 1
64937         if it creates a directory that is not readable.  Return -2 if
64938         a child process is spun off.
64939         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64940         Adjust signature to match code.
64941         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64942         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64943         all users changed.
64944         * lib/savewd.c, lib/savewd.h: New files.
64945
64946 2006-09-15  Jim Meyering  <jim@meyering.net>
64947
64948         * modules/rename-dest-slash: New module.
64949         * MODULES.html.sh (posix_compat): Add it here.
64950
64951         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64952
64953 2006-09-15  Jim Meyering  <jim@meyering.net>
64954
64955         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64956         file.
64957
64958         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64959
64960 2006-09-15  Jim Meyering  <jim@meyering.net>
64961
64962         * lib/rename-dest-slash.c (has_trailing_slash): Use
64963         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64964         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64965         test before testing whether SRC is a directory.
64966         Suggestions from Bruno Haible.
64967
64968         Avoid a warning about an unused variable.
64969         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64970         into the #ifdef block where it's used.
64971
64972         * lib/rename-dest-slash.c: New file.
64973
64974 2006-09-14  Bruno Haible  <bruno@clisp.org>
64975
64976         * lib/allocsa.c: Include <config.h> unconditionally.
64977         * lib/asnprintf.c: Likewise.
64978         * lib/asprintf.c: Likewise.
64979         * lib/c-strcasecmp.c: Likewise.
64980         * lib/c-strcasestr.c: Likewise.
64981         * lib/c-strncasecmp.c: Likewise.
64982         * lib/c-strstr.c: Likewise.
64983         * lib/classpath.c: Likewise.
64984         * lib/clean-temp.c: Likewise.
64985         * lib/concatpath.c: Likewise.
64986         * lib/copy-file.c: Likewise.
64987         * lib/csharpcomp.c: Likewise.
64988         * lib/csharpexec.c: Likewise.
64989         * lib/execute.c: Likewise.
64990         * lib/fatal-signal.c: Likewise.
64991         * lib/findprog.c: Likewise.
64992         * lib/fwriteerror.c: Likewise.
64993         * lib/gl_array_list.c: Likewise.
64994         * lib/gl_array_oset.c: Likewise.
64995         * lib/gl_avltree_list.c: Likewise.
64996         * lib/gl_avltree_oset.c: Likewise.
64997         * lib/gl_avltreehash_list.c: Likewise.
64998         * lib/gl_carray_list.c: Likewise.
64999         * lib/gl_linked_list.c: Likewise.
65000         * lib/gl_linkedhash_list.c: Likewise.
65001         * lib/gl_list.c: Likewise.
65002         * lib/gl_oset.c: Likewise.
65003         * lib/gl_rbtree_list.c: Likewise.
65004         * lib/gl_rbtree_oset.c: Likewise.
65005         * lib/gl_rbtreehash_list.c: Likewise.
65006         * lib/imaxabs.c: Likewise.
65007         * lib/imaxdiv.c: Likewise.
65008         * lib/javacomp.c: Likewise.
65009         * lib/javaexec.c: Likewise.
65010         * lib/javaversion.c: Likewise.
65011         * lib/linebreak.c: Likewise.
65012         * lib/localcharset.c: Likewise.
65013         * lib/lock.c: Likewise.
65014         * lib/mbchar.c: Likewise.
65015         * lib/mbswidth.c: Likewise.
65016         * lib/mkdtemp.c: Likewise.
65017         * lib/pipe.c: Likewise.
65018         * lib/printf-args.c: Likewise.
65019         * lib/printf-parse.c: Likewise.
65020         * lib/progname.c: Likewise.
65021         * lib/progreloc.c: Likewise.
65022         * lib/readlink.c: Likewise.
65023         * lib/sh-quote.c: Likewise.
65024         * lib/stpcpy.c: Likewise.
65025         * lib/stpncpy.c: Likewise.
65026         * lib/strcasecmp.c: Likewise.
65027         * lib/strcasestr.c: Likewise.
65028         * lib/strcspn.c: Likewise.
65029         * lib/striconv.c: Likewise.
65030         * lib/strncasecmp.c: Likewise.
65031         * lib/strnlen1.c: Likewise.
65032         * lib/strstr.c: Likewise.
65033         * lib/strtok_r.c: Likewise.
65034         * lib/tls.c: Likewise.
65035         * lib/tmpdir.c: Likewise.
65036         * lib/unicodeio.c: Likewise.
65037         * lib/unsetenv.c: Likewise.
65038         * lib/vasnprintf.c: Likewise.
65039         * lib/vasprintf.c: Likewise.
65040         * lib/wait-process.c: Likewise.
65041         * lib/xallocsa.c: Likewise.
65042         * lib/xsetenv.c: Likewise.
65043         * lib/xstriconv.c: Likewise.
65044
65045 2006-09-13  Simon Josefsson  <jas@extundo.com>
65046
65047         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65048         that internally, suggested by Ralf Wildenhues
65049         <Ralf.Wildenhues@gmx.de>.
65050
65051 2006-09-13  Simon Josefsson  <jas@extundo.com>
65052
65053         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65054         @LIBOBJS@.
65055         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65056
65057 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65060         longer worry about uses that don't define HAVE_CONFIG_H.
65061         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65062         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65063         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65064         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65065         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65066         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65067         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65068         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65069         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65070         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65071         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65072         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65073         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65074         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65075         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65076         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65077         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65078         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65079         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65080         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65081         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65082         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65083         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65084         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65085         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65086         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65087         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65088         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65089         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65090         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65091         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65092         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65093         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65094         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65095         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65096         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65097         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65098         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65099         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65100         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65101         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65102         Likewise.
65103
65104 2006-09-13  Eric Blake  <ebb9@byu.net>
65105
65106         * lib/getopt.c: Fix typo in last commit.
65107
65108 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65109
65110         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65111         dgettext.
65112
65113 2006-09-12  Jim Meyering  <jim@meyering.net>
65114
65115         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65116         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65117         Reported by Nelson H. F. Beebe.
65118
65119 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65120
65121         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65122         program_invocation_name and program_invocation_short_name are
65123         initialized.
65124         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65125         and program_invocation_short_name to argp.h, so they are visible
65126         to user programs.
65127         * lib/argp.h: Likewise
65128
65129 2006-09-10  Bruno Haible  <bruno@clisp.org>
65130
65131         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65132         m4/inttypes_h.m4, m4/uintmax_t.m4.
65133
65134 2006-09-10  Bruno Haible  <bruno@clisp.org>
65135
65136         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65137         gl_AC_TYPE_UINTMAX_T.
65138
65139 2006-09-10  Bruno Haible  <bruno@clisp.org>
65140
65141         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65142
65143 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65144
65145         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65146         convention.  Text proposed by Bruno Haible.
65147         (struct argp_option): Document the use of N_() wrappers.
65148
65149         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65150         '\v', and translate the two parts separately, instead of feeding
65151         the whole string to gettext.  This allows to exclude
65152         '\v' from the strings visible to the translator by writing doc
65153         strings as N_("..") "\v" N_("..").
65154
65155 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * config/srclist.txt: Undo latest change; the bug was fixed.
65158
65159 2006-09-09  Bruno Haible  <bruno@clisp.org>
65160
65161         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65162         assignments if building a library without libtool.
65163         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65164         in func_emit_lib_Makefile_am.
65165         (func_import): When building a static library libfoo.a, arrange to
65166         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65167         (func_create_testdir): Likewise.
65168         * modules/gc (configure.ac, Makefile.am): If building statically,
65169         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65170         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65171         * modules/striconv (configure.ac, Makefile.am): Likewise.
65172         Based on a suggestion by Ralf Wildenhues.
65173
65174 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65177         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65178         Also:
65179
65180         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65181         Add year_2050_test to catch glibc bug 2821
65182         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65183
65184         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65185         Prefer #ifdef to #if.
65186
65187         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65188         Return from 'main' instead of calling 'exit'.
65189
65190 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65193         returned the maximum time_t value rather than (time_t) -1.
65194         Problem originally reported by William Bardwell
65195         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65196
65197         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65198         Moved to here ...
65199         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65200         ... from here.
65201
65202 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65205         2821 is fixed.
65206
65207 2006-09-08  Jim Meyering  <jim@meyering.net>
65208
65209         Don't make generated files read-only.  That would bother too many
65210         people.  However, do retain the ability to work when targets are
65211         read-only: remove the destination and temporary files before writing
65212         them (when generated via sed or echo), or by using the -f option for
65213         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65214         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65215         * modules/byteswap, modules/configmake, modules/fcntl:
65216         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65217         * modules/localcharset, modules/netinet_in, modules/poll:
65218         * modules/stdbool, modules/stdint, modules/sys_select:
65219         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65220
65221 2006-09-08  Jim Meyering  <jim@meyering.net>
65222
65223         Avoid new build failure on FreeBSD 6.0.
65224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65225         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65226         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65227
65228 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65229
65230         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65231
65232 2006-09-07  Jim Meyering  <jim@meyering.net>
65233
65234         Fix global typo in last change: use chmod u-w, not chmod u-x.
65235         Spotted by Paul Eggert and Bruce Korb.
65236         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65237         * modules/byteswap, modules/configmake, modules/fcntl:
65238         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65239         * modules/localcharset, modules/netinet_in, modules/poll:
65240         * modules/stdbool, modules/stdint, modules/sys_select:
65241         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65242
65243 2006-09-06  Jim Meyering  <jim@meyering.net>
65244
65245         Make generated files be read-only.
65246         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65247         Ensure that each generated file is now read-only.
65248         * modules/argz: Likewise.
65249         * modules/arpa_inet: Likewise.
65250         * modules/byteswap: Likewise.
65251         * modules/configmake: Likewise.
65252         * modules/fcntl: Likewise.
65253         * modules/fnmatch: Likewise.
65254         * modules/getopt: Likewise.
65255         * modules/glob: Likewise.
65256         * modules/inttypes: Likewise.
65257         * modules/netinet_in: Likewise.
65258         * modules/poll: Likewise.
65259         * modules/stdbool: Likewise.
65260         * modules/stdint: Likewise.
65261         * modules/sys_select: Likewise.
65262         * modules/sys_socket: Likewise.
65263         * modules/sys_stat: Likewise.
65264         * modules/sysexits: Likewise.
65265         * modules/localcharset: Same as above, but continue using temporary
65266         file named "t-$@" (why different?) rather than the "$@-t" used
65267         everywhere else.
65268
65269         * modules/sysexits (Makefile.am): Replace literal occurrences
65270         of "sysexit.h" more readable, and more consistent, "$@".
65271
65272 2006-09-06  Bruno Haible  <bruno@clisp.org>
65273
65274         * modules/striconv: New file.
65275         * modules/xstriconv: New file.
65276         * MODULES.html.sh (Internationalization functions): Add striconv,
65277         xstriconv.
65278
65279 2006-09-06  Bruno Haible  <bruno@clisp.org>
65280
65281         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65282         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65283         not using libtool correctly.
65284
65285 2006-09-06  Bruno Haible  <bruno@clisp.org>
65286
65287         * lib/striconv.h: New file.
65288         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65289         iconvstring.c.
65290         * lib/xstriconv.h: New file.
65291         * lib/xstriconv.c: New file.
65292
65293 2006-09-06  Bruno Haible  <bruno@clisp.org>
65294
65295         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65296         lib_..._LDFLAGS.
65297
65298 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65299
65300         * lib/argz_.h: Sync from Libtool.
65301
65302         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65303                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65304
65305         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65306
65307 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65308
65309         * modules/trim: New file.
65310
65311 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65312
65313         * lib/trim.h: New file.
65314         * lib/trim.c: New file.
65315
65316 2006-09-05  Bruno Haible  <bruno@clisp.org>
65317
65318         * MODULES.html.sh (String handling): Add trim.
65319
65320 2006-09-04  Karl Berry  <karl@gnu.org>
65321
65322         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65323         until next release.
65324
65325 2006-09-03  Bruno Haible  <bruno@clisp.org>
65326
65327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65328         correctly.
65329
65330 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65331
65332         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65333         not gl_GETLOADAVG.  Omit unneeded semicolons.
65334         Problems reported by Ralf Wildenhues in
65335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65336         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65337         at the end, which is the usual gnulib style.
65338
65339         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65340         of doing all the work ourselves.
65341         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65342         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65343
65344 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65345
65346         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65347         Problem reported by Ralf Wildenhues in
65348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65349
65350         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65351         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65352
65353 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65354
65355         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65356         yesterday's patch by changing test -n to test -z.
65357
65358 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65361         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65362         the former is now obsolescent.
65363
65364         * modules/chdir-long (Depends-on): Add fcntl.
65365
65366 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65367
65368         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65369         obsolescent, and programs should use gnulib instead.
65370         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65371         but with prefixes changed.
65372
65373 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65374
65375         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65376         or stdbool.h, because they might not exist while configuring.
65377
65378         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65379         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65380         does that for us.
65381         (O_DIRECTORY): Remove.
65382
65383 2006-08-31  Eric Blake  <ebb9@byu.net>
65384
65385         * gnulib-tool: Don't let emacs change spaces to TAB.
65386
65387 2006-08-31  Bruno Haible  <bruno@clisp.org>
65388
65389         * gnulib-tool: When calling func_import more than once, do it in a
65390         subshell.
65391         Reported by Eric Blake <ebb9@byu.net>.
65392
65393 2006-08-31  Bruno Haible  <bruno@clisp.org>
65394
65395         * gnulib-tool (nl): Remove variable.
65396         (sed_transform_lib_file): Use more robust test for config-h module.
65397         (func_import): Fix typo in 2006-08-25 patch.
65398
65399 2006-08-31  Bruno Haible  <bruno@clisp.org>
65400
65401         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65402         specified, augment Makefile.am variables instead of assigning them.
65403
65404 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         Work around a bug in both the Linux and SunOS 64-bit kernels:
65407         nanosleep mishandles sleeps for longer than 2**31 seconds.
65408         Problem reported by Frank v Waveren in
65409         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65411         Check for nanosleep bug.
65412         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65413
65414 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         Work around a bug in both the Linux and SunOS 64-bit kernels:
65417         nanosleep mishandles sleeps for longer than 2**31 seconds.
65418         Problem reported by Frank v Waveren in
65419         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65420         * lib/nanosleep.c (BILLION): New constant.
65421         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65422         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65423         implementation.
65424
65425 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * modules/nanosleep (Depends-on): Add gettime.
65428
65429 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65430         and Simon Josefsson  <jas@extundo.com>
65431         and Oskar Liljeblad  <oskar@osk.mine.nu>
65432
65433         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65434         * gnulib-tool (func_import): New license type 'unmodifiable license
65435         text'.
65436         * modules/fdl: Use it.  Longer description.
65437         * module/gpl, module/lgpl: New files.
65438
65439 2006-08-30  Jim Meyering  <jim@meyering.net>
65440
65441         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65442         shadowing the parameter.
65443
65444 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65445
65446         Sync from Libtool:
65447
65448         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65449
65450         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65451         sharing with gnulib.  Report by Eric Blake.
65452
65453 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * modules/isapipe: New file.
65456         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65457
65458 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * modules/configmake (Makefile.am): Add a comment, and omit
65461         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65462         by Bruno Haible.
65463
65464 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * m4/isapipe.m4: New file.
65467
65468 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65469
65470         * lib/isapipe.c, lib/isapipe.h: New files.
65471
65472 2006-08-29  Jim Meyering  <jim@meyering.net>
65473
65474         * modules/configmake (Makefile.am): Make configmake.h depend on
65475         Makefile.  Otherwise, a stale configmake.h could hang around.
65476
65477 2006-08-29  Eric Blake  <ebb9@byu.net>
65478
65479         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65480         resolution of upstream bug 3044.
65481
65482 2006-08-29  Bruno Haible  <bruno@clisp.org>
65483
65484         * modules/localcharset (Depends-on): Add configmake.
65485         (Makefile.am): Remove setting of LIBDIR through DEFS.
65486
65487 2006-08-29  Bruno Haible  <bruno@clisp.org>
65488
65489         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65490         defined.
65491
65492 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65493
65494         * modules/fcntl: New file.
65495         * modules/chdir-safer (Depends-on): Add fcntl.
65496         * modules/fts: Likewise.
65497         * modules/mkdir-p: Likewise.
65498
65499         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65500         This undoes the most recent change, since we're now addressing the
65501         problem in a different way.
65502
65503         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65504         into output, since the output might be called Makefile.am even
65505         if $makefile_name is something different.
65506         (func_import): Use $makefile_am rather than
65507         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65508         empty.
65509
65510         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65511
65512 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65513
65514         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65515         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65516         recent change to stdint.m4, since we're now addressing the problem in a
65517         different way.
65518
65519 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65520
65521         * m4/fcntl_h.m4: New file.
65522
65523 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65524
65525         * lib/fcntl_.h: New file.
65526         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65527         the fcntl module.
65528         * lib/dirchownmod.c: Likewise.
65529         * lib/fts.c: Likewise.
65530
65531         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65532         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65533         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65534         just before including <inttypes.h>, to avoid circular inclusion.
65535
65536 2006-08-28  Jim Meyering  <jim@meyering.net>
65537
65538         * doc/visibility.texi: Actually read and correct the grammar of the
65539         sentence affected by yesterday's change.
65540
65541 2006-08-28  Eric Blake  <ebb9@byu.net>
65542
65543         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65544         needs wrapper.
65545
65546 2006-08-28  Eric Blake  <ebb9@byu.net>
65547
65548         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65549
65550 2006-08-28  Eric Blake  <ebb9@byu.net>
65551
65552         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65553
65554 2006-08-28  Bruno Haible  <bruno@clisp.org>
65555
65556         * modules/c-strstr: New file, from GNU gettext.
65557         * MODULES.html.sh (String handling): Add c-strstr.
65558
65559 2006-08-28  Bruno Haible  <bruno@clisp.org>
65560
65561         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65562         macros.
65563         Reported by Eric Blake.
65564
65565 2006-08-28  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65568         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65569         * lib/vasprintf.c: Include errno.h, limits.h.
65570         (EOVERFLOW): New fallback definition.
65571         (vasprintf): Test here whether the string length is > INT_MAX.
65572         * lib/vsnprintf.c: Include errno.h, limits.h.
65573         (EOVERFLOW): New fallback definition.
65574         (vsnprintf): Fix bug when generated string was too long for the buffer.
65575         Test here whether the string length is > INT_MAX.
65576
65577 2006-08-28  Bruno Haible  <bruno@clisp.org>
65578
65579         * lib/inttypes_.h (SCNX*): Remove definitions.
65580         Reported by Eric Blake.
65581
65582 2006-08-28  Bruno Haible  <bruno@clisp.org>
65583
65584         * lib/c-strstr.h: New file, from GNU gettext.
65585         * lib/c-strstr.c: New file, from GNU gettext.
65586
65587 2006-08-28  Bruno Haible  <bruno@clisp.org>
65588
65589         * gnulib-tool: Reorder some statements.
65590
65591 2006-08-28  Bruno Haible  <bruno@clisp.org>
65592
65593         * gnulib-tool: New option --makefile-name.
65594         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65595         $makefile_name.
65596         (func_import): Write $makefile_name to the cache file, and read it from
65597         there unless explicitly specified. Use $makefile_name as file name
65598         instead of Makefile.am. Adjust the recommendations accordingly.
65599
65600 2006-08-28  Bruno Haible  <bruno@clisp.org>
65601
65602         * gnulib-tool (func_verify_module): Check against misapplying patch.
65603
65604 2006-08-28  Bruno Haible  <bruno@clisp.org>
65605
65606         * gnulib-tool (func_relativize, func_relconcat): New functions.
65607         Give an error if --local-dir is given with --update.
65608         Remove trailing slashes from $local_gnulib_dir.
65609         (func_import): Store the relativized $local_gnulib_dir in
65610         gnulib-cache.m4, and read it from there if not specified explicitly.
65611
65612 2006-08-28  Bruno Haible  <bruno@clisp.org>
65613
65614         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65615         is the current directory. Respect also $local_gnulib_dir.
65616
65617 2006-08-28  Bruno Haible  <bruno@clisp.org>
65618             Simon Josefsson  <jas@extundo.com>
65619
65620         BeOS portability.
65621         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65622
65623 2006-08-27  Jim Meyering  <jim@meyering.net>
65624
65625         * doc/visibility.texi: Remove duplicate word: "pointer".
65626
65627 2006-08-26  Bruno Haible  <bruno@clisp.org>
65628
65629         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65630         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65631         (Makefile.am): Create inttypes.h from inttypes_.h.
65632         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65633
65634         * modules/imaxabs: New file.
65635
65636         * modules/imaxdiv: New file.
65637
65638 2006-08-26  Bruno Haible  <bruno@clisp.org>
65639
65640         * m4/inttypes.m4: New file.
65641         * m4/_inttypes_h.m4: Remove file.
65642         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65643         PRI_MACROS_BROKEN.
65644         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65645
65646         * m4/imaxabs.m4: New file.
65647
65648         * m4/imaxdiv.m4: New file.
65649
65650 2006-08-26  Bruno Haible  <bruno@clisp.org>
65651
65652         * lib/inttypes_.h: New file.
65653         * lib/inttypes.h: Remove file.
65654         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65655
65656         * lib/imaxabs.c: New file.
65657
65658         * lib/imaxdiv.c: New file.
65659
65660 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65661
65662         New config-h module, so that "make" output needn't be cluttered
65663         by -DHAVE_CONFIG_H.
65664         * MODULES.html.sh (Support for building libraries and executables):
65665         Add config-h.
65666         * modules/config-h: New file.
65667         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65668         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65669         the config-h module is used.
65670
65671         New configmake module, so that "make" output needn't be cluttered
65672         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65673         * MODULES.html.sh (Support for building libraries and executables):
65674         Add configmake.
65675         * modules/configmake: New file.
65676
65677 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * m4/config-h.m4: New file.
65680
65681 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65682
65683         * config/srclist.txt: Add elisp-comp.
65684
65685 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * MODULES.html.sh (Support for building libraries and executables):
65688         Add elisp-comp.
65689         * build-aux/elisp-comp: New file.
65690         * modules/elisp-comp: New file.
65691
65692 2006-08-24  Bruno Haible  <bruno@clisp.org>
65693
65694         * gnulib-tool (func_create_testdir): Use non-default values of
65695         sourcebase and m4base.
65696
65697 2006-08-24  Bruno Haible  <bruno@clisp.org>
65698
65699         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65700         HTML structure.
65701
65702 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         * modules/openat (Depends-on): Add lchown.
65705
65706 2006-08-23  Bruno Haible  <bruno@clisp.org>
65707
65708         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65709         of gl_LOCK_EARLY instead of gl_LOCK.
65710
65711 2006-08-23  Bruno Haible  <bruno@clisp.org>
65712
65713         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65714         on OSF/1 to no.
65715         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65716
65717 2006-08-23  Bruno Haible  <bruno@clisp.org>
65718
65719         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65720         as unusable.
65721
65722         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65723         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65724         (gl_LOCK): New macro.
65725
65726 2006-08-22  Simon Josefsson  <jas@extundo.com>
65727
65728         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65729         to md5 module.
65730
65731 2006-08-22  Simon Josefsson  <jas@extundo.com>
65732
65733         * MODULES.html.sh: Add "Support for maintaining and release
65734         projects".
65735
65736         * build-aux/gnupload: New file, from coreutils.
65737
65738 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65739
65740         Avoid the need for AC_LIBSOURCES in m4 macros.
65741         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65742         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65743         * modules/check-version (EXTRA_DIST): Add check-version.h.
65744         * modules/crc (EXTRA_DIST): Add crc.h.
65745         * modules/des (EXTRA_DIST): Add des.h.
65746         * modules/gc (EXTRA_DIST): Add gc.h.
65747         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65748         * modules/getline (EXTRA_DIST): Add getline.h.
65749         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65750         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65751         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65752         * modules/md2 (EXTRA_DIST): Add md2.h.
65753         * modules/md4 (EXTRA_DIST): Add md4.h.
65754         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65755         * modules/read-file (EXTRA_DIST): Add read-file.h.
65756         * modules/readline (EXTRA_DIST): Add readline.h.
65757         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65758         rijndael-api-fst.h.
65759
65760 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * m4/rijndael.m4 (gl_ARCFOUR):
65763         * m4/arctwo.m4 (gl_ARCTWO):
65764         * m4/check-version.m4 (gl_CHECK_VERSION):
65765         * m4/crc.m4 (gl_CRC):
65766         * m4/des.m4 (gl_DES):
65767         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65768         * m4/gc.m4 (gl_GC):
65769         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65770         * m4/getline.m4 (gl_FUNC_GETLINE):
65771         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65772         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65773         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65774         * m4/md2.m4 (gl_MD2):
65775         * m4/md4.m4 (gl_MD4):
65776         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65777         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65778         * m4/readline.m4 (gl_FUNC_READLINE):
65779         * m4/rijndael.m4 (gl_RIJNDAEL):
65780         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65781         to get the necessary .h files and whatnot.
65782
65783 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65786         gnulib rather than the other way around.
65787         * config/srclistvars.sh (COREUTILS): Remove.
65788
65789 2006-08-22  Jim Meyering  <jim@meyering.net>
65790
65791         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65792
65793         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65794
65795 2006-08-22  Eric Blake  <ebb9@byu.net>
65796
65797         * modules/regexprops-generic: New file.
65798         * MODULES.html.sh (Support for building documentation): List it.
65799
65800 2006-08-22  Eric Blake  <ebb9@byu.net>
65801
65802         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65803         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65804         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65805         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65806
65807 2006-08-22  Bruno Haible  <bruno@clisp.org>
65808
65809         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65810         and lib_LTLIBRARIES like the other lib_* variables.
65811
65812 2006-08-22  Bruno Haible  <bruno@clisp.org>
65813
65814         * build-aux/x-to-1.in: New file, from GNU gettext.
65815
65816 2006-08-22  Bruno Haible  <bruno@clisp.org>
65817
65818         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65819         <utmpx.h> exists.
65820
65821 2006-08-22  Bruno Haible  <bruno@clisp.org>
65822
65823         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65824         <utmpx.h> exists.
65825
65826 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65827
65828         BeOS portability.
65829         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65830         exist.
65831         Problem reported by Bruno Haible.
65832
65833 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65834
65835         Avoid the need for AC_LIBSOURCES in m4 macros.
65836         * modules/acl (EXTRA_DIST): Add acl.h.
65837         * modules/argmatch (Files): Add m4/argmatch.m4.
65838         (configure.ac): Add gl_ARGMATCH.
65839         (EXTRA_DIST): Renamed from lib_SOURCES, for
65840         consistency with the other modules.  Remove argmatch.c.
65841         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65842         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65843         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65844         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65845         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65846         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65847         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65848         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65849         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65850         * modules/closeout (EXTRA_DIST): Add closeout.h.
65851         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65852         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65853         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65854         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65855         dirname.h; remove basename.c and stripslash.c.
65856         * modules/exclude (EXTRA_DIST): Add exclude.h.
65857         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65858         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65859         * modules/file-type (EXTRA_DIST): Add file-type.h.
65860         * modules/filemode (EXTRA_DIST): Add filemode.h.
65861         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65862         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65863         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65864         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65865         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65866         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65867         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65868         * modules/getdate (EXTRA_DIST): Add getdate.c.
65869         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65870         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65871         * modules/getpass (EXTRA_DIST): Add getpass.h.
65872         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65873         * modules/group-member (EXTRA_DIST): Add group-member.h.
65874         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65875         * modules/hash (EXTRA_DIST): Add hash.h.
65876         * modules/human (EXTRA_DIST): Add human.h.
65877         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65878         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65879         * modules/lchown (EXTRA_DIST): Add lchown.h.
65880         * modules/long-options (EXTRA_DIST): Add long-options.h.
65881         * modules/lstat (EXTRA_DIST): Add lstat.h.
65882         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65883         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65884         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65885         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65886         * modules/memxor (EXTRA_DIST): Add memxor.h.
65887         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65888         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65889         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65890         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65891         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65892         * modules/physmem (EXTRA_DIST): Add physmem.h.
65893         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65894         * modules/posixver (EXTRA_DIST): Add posixver.h.
65895         * modules/quote (EXTRA_DIST): Add quote.h.
65896         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65897         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65898         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65899         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65900         regex_internal.h regexec.c.
65901         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65902         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65903         * modules/same (EXTRA_DIST): Add same.h.
65904         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65905         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65906         * modules/savedir (EXTRA_DIST): Add savedir.h.
65907         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65908         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65909         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65910         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65911         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65912         * modules/strdup (EXTRA_DIST): Add strdup.h.
65913         * modules/strftime (EXTRA_DIST): Add strftime.h.
65914         * modules/strndup (EXTRA_DIST): Add strndup.h.
65915         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65916         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65917         * modules/time_r (EXTRA_DIST): Add time_r.h.
65918         * modules/timespec (EXTRA_DIST): Add timespec.h.
65919         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65920         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65921         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65922         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65923         * modules/userspec (EXTRA_DIST): Add userspec.h.
65924         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65925         * modules/utimens (EXTRA_DIST): Add utimens.h.
65926         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65927         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65928         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65929         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65930         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65931         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65932         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65933         * modules/yesno (EXTRA_DIST): Add yesno.h.
65934
65935 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65936
65937         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65938
65939         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65940         * m4/dev-ino.m4, same-inode.m4: Remove.
65941
65942         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65943         * m4/acl.m4 (AC_FUNC_ACL):
65944         * m4/backupfile.m4 (gl_BACKUPFILE):
65945         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65946         * m4/canon-host.m4 (gl_CANON_HOST):
65947         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65949         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65950         * m4/cloexec.m4 (gl_CLOEXEC):
65951         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65952         * m4/closeout.m4 (gl_CLOSEOUT):
65953         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65954         * m4/dirname.m4 (gl_DIRNAME):
65955         * m4/exclude.m4 (gl_EXCLUDE):
65956         * m4/exitfail.m4 (gl_EXITFAIL):
65957         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65958         * m4/file-type.m4 (gl_FILE_TYPE):
65959         * m4/filemode.m4 (gl_FILEMODE):
65960         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65961         * m4/fpending.m4 (gl_FUNC_FPENDING):
65962         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65963         * m4/fts.m4 (gl_FUNC_FTS):
65964         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65965         * m4/getdate.m4 (gl_GETDATE):
65966         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65967         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65968         * m4/getpass.m4 (gl_FUNC_GETPASS):
65969         * m4/gettime.m4 (gl_GETTIME):
65970         * m4/getugroups.m4 (gl_GETUGROUPS):
65971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65972         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65973         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65974         * m4/hash.m4 (gl_HASH):
65975         * m4/idcache.m4 (gl_IDCACHE):
65976         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65977         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65978         * m4/long-options.m4 (gl_LONG_OPTIONS):
65979         * m4/lstat.m4 (gl_FUNC_LSTAT):
65980         * m4/md5.m4 (gl_MD5):
65981         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65982         * m4/memcoll.m4 (gl_MEMCOLL):
65983         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65984         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65985         * m4/memxor.m4 (gl_MEMXOR):
65986         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65987         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65988         * m4/modechange.m4 (gl_MODECHANGE):
65989         * m4/mountlist.m4 (gl_MOUNTLIST):
65990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65991         * m4/openat.m4 (gl_FUNC_OPENAT):
65992         * m4/pathmax.m4 (gl_PATHMAX):
65993         * m4/physmem.m4 (gl_PHYSMEM):
65994         * m4/posixtm.m4 (gl_POSIXTM):
65995         * m4/posixver.m4 (gl_POSIXVER):
65996         * m4/quote.m4 (gl_QUOTE):
65997         * m4/quotearg.m4 (gl_QUOTEARG):
65998         * m4/readtokens.m4 (gl_READTOKENS):
65999         * m4/readutmp.m4 (gl_READUTMP):
66000         * m4/regex.m4 (gl_REGEX):
66001         * m4/safe-read.m4 (gl_SAFE_READ):
66002         * m4/safe-write.m4 (gl_SAFE_WRITE):
66003         * m4/same.m4 (gl_SAME):
66004         * m4/save-cwd.m4 (gl_SAVE_CWD):
66005         * m4/savedir.m4 (gl_SAVEDIR):
66006         * m4/settime.m4 (gl_SETTIME):
66007         * m4/sha1.m4 (gl_SHA1):
66008         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66009         * m4/stat-macros.m4 (gl_STAT_MACROS):
66010         * m4/stat-time.m4 (gl_STAT_TIME):
66011         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66012         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66013         * m4/strdup.m4 (gl_FUNC_STRDUP):
66014         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66015         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66016         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66017         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66018         * m4/time_r.m4 (gl_TIME_R):
66019         * m4/timespec.m4 (gl_TIMESPEC):
66020         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66021         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66022         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66023         * m4/userspec.m4 (gl_USERSPEC):
66024         * m4/utimecmp.m4 (gl_UTIMECMP):
66025         * m4/utimens.m4 (gl_UTIMENS):
66026         * m4/xalloc.m4 (gl_XALLOC):
66027         * m4/xgetcwd.m4 (gl_XGETCWD):
66028         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66029         * m4/xreadlink.m4 (gl_XREADLINK):
66030         * m4/xstrtod.m4 (gl_XSTRTOD):
66031         * m4/yesno.m4 (gl_YESNO):
66032         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66033         to get the necessary .h files and whatnot.
66034
66035 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66036             Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66039         /bin/sh understanding of '!' conditional negation.
66040
66041 2006-08-21  Jim Meyering  <jim@meyering.net>
66042
66043         * modules/openat (Depends-on): Really alphabetize.
66044
66045         * modules/acl (Depends-on): Add error and quote.
66046
66047         * check-module (find_included_lib_files): Add at-func.c to the
66048         ok-to-include-more-than-once white list.
66049
66050         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66051
66052 2006-08-21  Bruno Haible  <bruno@clisp.org>
66053
66054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66055         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66056         Reported by Martin Lambers <marlam@marlam.de>.
66057
66058 2006-08-21  Bruno Haible  <bruno@clisp.org>
66059
66060         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66061         specify an installation location, don't emit a noinst_LIBRARIES or
66062         noinst_LTLIBRARIES assignment.
66063
66064 2006-08-21  Bruno Haible  <bruno@clisp.org>
66065
66066         BeOS portability.
66067         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66068         BeOS has mbrtowc() but no <wctype.h>.
66069
66070 2006-08-21  Bruno Haible  <bruno@clisp.org>
66071
66072         BeOS portability.
66073         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66074         exist.
66075
66076 2006-08-21  Bruno Haible  <bruno@clisp.org>
66077
66078         BeOS portability.
66079         * lib/mbchar.h: Include <wctype.h> only if it exists.
66080
66081 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66082
66083         Remove files that are no longer needed by their respective modules.
66084         * m4/obstack.m4: Remove.
66085         * m4/strerror_r.m4: Remove.
66086         * m4/uint32_t.m4: Remove.
66087         * m4/uintptr_t.m4: Remove.
66088         * m4/ullong_max.m4: Remove.
66089         * m4/xstrtoimax.m4: Remove.
66090         * m4/xstrtoumax.m4: Remove.
66091
66092         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66093         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66094         dependencies now capture this.
66095
66096         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66097         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66098         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66099         * m4/human.m4 (gl_HUMAN): Likewise.
66100         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66101         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66102
66103         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66104
66105         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66106         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66107         stdint.
66108         * m4/human.m4 (gl_HUMAN): Likewise.
66109         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66110         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66111         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66112         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66113         * m4/xstrtol (gl_XSTRTOL): Likewise.
66114
66115         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66116         AC_TYPE_LONG_LONG_INT.
66117         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66118         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66119         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66120         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66121
66122         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66123         on stdbool.
66124
66125         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66126         (gl_PREREQ_XSTRTOUL): Remove.
66127
66128         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66129
66130         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66131         mode.
66132
66133 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66134
66135         Add and change modules to make it easier for coreutils to use
66136         gnulib-tool.
66137         * modules/backupfile (Files): Remove m4/d-ino.m4.
66138         (Depends-on): Add d-ino.
66139         * modules/cycle-check (Depends-on): Add stdint.
66140         (lib_SOURCES): Add cycle-check.h.
66141         * modules/d-ino: New module.
66142         * modules/d-type: New module.
66143         * modules/error (Files): Remove m4/strerror_r.m4.
66144         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66145         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66146         m4/inttypes_h.m4, m4/uintmax_t.m4.
66147         (Depends-on): Add stdint.
66148         (lib_SOURCES): Add fsusage.h.
66149         * modules/getcwd (Files): Remove d-ino.m4.
66150         (Depends-on): Add d-ino.
66151         * modules/getndelim2 (Depends-on): Add stdint.
66152         * modules/glob (Files): Remove m4/d-type.m4.
66153         (Depends-on): Add d-type.
66154         * modules/host-os: New module.
66155         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66156         m4/inttypes_h.m4, m4/uintmax_t.m4.
66157         * Depends-on: Add stdint.
66158         (lib_SOURCES): Add human.h.
66159         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66160         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66161         m4/uintmax_t.m4, m4/ulonglong.m4.
66162         (Depends-on): Add stdint.
66163         (EXTRA_DIST): Add inttostr.h.
66164         * modules/lchmod: New module.
66165         * modules/link-follow: New module.
66166         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66167         (Depends-on): Add lchmod.
66168         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66169         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66170         (Depends-on): Add stdint.
66171         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66172         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66173         (Depends-on): Add stdint.
66174         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66175         * modules/perl: New module.
66176         * modules/regex (Depends-on): Add stdint.
66177         * modules/rmdir-errno: New module.
66178         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66179         m4/intmax_t.m4.
66180         (Depends-on): Add stdint.
66181         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66182         m4/uintmax_t.m4.
66183         (Depends-on): Add stdint.
66184         * modules/unlink-busy: New module.
66185         * modules/utimecmp (Depends-on): Add stdint.
66186         * modules/uptime: New module.
66187         * modules/winsz-ioctl: New module.
66188         * modules/winsz-termios: New module.
66189         * modules/xnanosleep (Depends-on): Add nanosleep.
66190         * modules/ullong_max: Remove.
66191         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66192         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66193         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66194         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66195         (Depends-on): Add inttypes.
66196         (lib_SOURCES): Add xstrtol.h.
66197         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66198         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66199         * MODULES.html.sh: Move 'assert' into the assert section.
66200         Move 'dummy' into the linking section.
66201         Remove ullong_max.
66202         Add section for compatibility checks for POSIX:2001 functions,
66203         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66204         winsz-ioctl, and winsz-termios into it.
66205         Add lchmod.
66206         Add top-level Misc section and put host-os, perl, and uptime
66207         into it.
66208
66209 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66212         now assume the stdint module.  Do not include inttypes.h.
66213         * lib/fsusage.h: Likewise.
66214         * lib/getndelim2.c: Likewise.
66215         * lib/human.h: Likewise.
66216         * lib/inttostr.h: Likewise.
66217         * lib/obstack.c: Likewise.
66218         * lib/regex_internal.h: Likewise.
66219         * lib/tempname.c: Likewise.
66220         * lib/utimecmp.c: Likewise.
66221         * lib/xstrtol.h: Likewise.
66222
66223         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66224
66225         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66226         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66227         * lib/xtime.h: Likewise.
66228
66229 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66230
66231         * modules/openat (Files): Add lib/fchmodat.c.
66232         Fixes problem reported by Jay Youngman.
66233
66234 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66237         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66238
66239 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66240             Bruno Haible  <bruno@clisp.org>
66241
66242         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66243         and is a script that invokes bison. Tighten the code. Add comments.
66244
66245 2006-08-18  Jim Meyering  <jim@meyering.net>
66246
66247         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66248         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66249         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66250         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66251
66252 2006-08-18  Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/bison-i18n: New file.
66255         * MODULES.html.sh (Internationalization functions): Add it.
66256
66257 2006-08-18  Bruno Haible  <bruno@clisp.org>
66258
66259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66260         sys/statvfs.h. When getmntinfo was found, check its declaration and
66261         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66262
66263 2006-08-18  Bruno Haible  <bruno@clisp.org>
66264
66265         * m4/bison-i18n.m4: New file, from bison.
66266
66267 2006-08-18  Bruno Haible  <bruno@clisp.org>
66268
66269         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66270         (ME_DUMMY): Treat "kernfs" as a dummy.
66271         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66272
66273 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66274
66275         Update from coreutils.
66276
66277         2006-08-15  Jim Meyering  <jim@meyering.net>
66278
66279         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66280
66281         2006-01-17  Jim Meyering  <jim@meyering.net>
66282
66283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66284
66285         2006-01-11  Jim Meyering  <jim@meyering.net>
66286
66287         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66288         Check for the lchmod function.
66289
66290 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         Update from coreutils.
66293
66294         * lib/__fpending.h: Add copyright notice.
66295         * lib/fprintftime.h: Likewise.
66296         * lib/savedir.c: Use (C) in copyright notice.
66297         * lib/savedir.h: Likewise.
66298
66299         2006-08-15  Jim Meyering  <jim@meyering.net>
66300
66301         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66302         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66303         in support of the EXPECTED_ERRNO macro.
66304         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66305         definitions.  Instead, define the appropriate symbols and include
66306         "at-func.c".
66307         * lib/mkdirat.c (mkdirat): Likewise.
66308         * lib/fchmodat.c (fchmodat): Likewise.
66309         (ENOSYS): Remove definition.
66310         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66311         it.  Don't include "unistd--.h" -- it wasn't ever used.
66312
66313         2006-01-17  Jim Meyering  <jim@meyering.net>
66314
66315         Rewrite fts.c not to change the current working directory,
66316         by using openat, fstatat, fdopendir, etc..
66317
66318         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66319         (HAVE_OPENAT_SUPPORT): Define.
66320         [_LIBC] (fchdir): Don't undef or define; no longer used.
66321         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66322         Now, this `function' always succeeds, and consumes its file descriptor
66323         parameter -- so callers must not close such FDs.  Update callers.
66324         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66325         (diropen): Add parameter, SP.  Adjust all callers.
66326         Implement using diropen_fd, rather than open.
66327         (fts_open): Initialize new member, fts_cwd_fd.
66328         Remove fts_rft-setting code.
66329         (fts_close): Close fts_cwd_fd, if necessary.
66330         (__opendir2): Define in terms of opendir or opendirat,
66331         depending on whether the FST_NOCHDIR flag is set.
66332         (fts_build): Since fts_safe_changedir consumes its FD, and since
66333         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66334         and close the dup'd file descriptor upon failure.
66335         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66336         (fts_safe_changedir): Tweak semantics to reflect that this function
66337         now calls cwd_advance_fd and hence consumes its FD argument.
66338         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66339         [struct FTS] (fts_rft): Remove now-unused member.
66340         [struct FTS] (fts_cycle.state): Improve comment.
66341
66342         * lib/openat.c (openat_needs_fchdir): New function.
66343         * lib/openat.h (openat_needs_fchdir): Declare it.
66344
66345 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66348         Problem and fix reported by Pádraig Brady in
66349         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66350
66351 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66352
66353         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66354
66355 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * lib/memcoll.c (memcoll): Optimize for the common case where the
66358         arguments are bytewise equal.
66359
66360 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66361
66362         * doc/regexprops-generic.texi: Add a copyright notice.
66363
66364 2006-08-15  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/tmpdir (License): Change to LGPL.
66367
66368 2006-08-15  Bruno Haible  <bruno@clisp.org>
66369
66370         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66371         module.
66372
66373 2006-08-14  Simon Josefsson  <jas@extundo.com>
66374
66375         * config/srclist.txt: Add gnupload.
66376
66377 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         Change copyright notice from LGPL 2 to GPL 2, since that's the
66380         standard form used in the gnulib repository.
66381         * tests/test-lock.c: Likewise.
66382         * tests/test-stdint.c: Likewise.
66383         * tests/test-tls.c: Likewise.
66384
66385         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66386         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66387         Add copyright notice.
66388
66389         * check-module: Add copyright notice.  Output a copyright
66390         notice if "--version" is specified.
66391         * modules/COPYING: New file.
66392         * tests/test-getaddrinfo.c: Add copyright notice.
66393         * tests/test-verify.c: Likewise.
66394
66395 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         Change copyright notice from LGPL 2 to GPL 2, since that's the
66398         standard form used in the gnulib repository.
66399         * lib/lock.c: LGPL -> GPL.
66400         * lib/lock.h: Likewise.
66401         * lib/strnlen1.c: Likewise.
66402         * lib/strnlen1.h: Likewise.
66403         * lib/tls.c: Likewise.
66404         * lib/tls.h: Likewise.
66405         * lib/tmpdir.c: Likewise.
66406
66407         * lib/TODO: Remove; this belongs only in coreutils.
66408
66409 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         Add copyright notices to long-enough files that lack them, since
66412         otherwise the files aren't clearly free.  Use the same notice that
66413         getdate.texi already uses.
66414         * doc/alloca-opt.texi: Add copyright notice.
66415         * doc/alloca.texi: Likewise.
66416         * doc/ctime.texi: Likewise.
66417         * doc/functions.texi: Likewise.
66418         * doc/gcd.texi: Likewise.
66419         * doc/gnulib-tool.texi: Likewise.
66420         * doc/inet_ntoa.texi: Likewise.
66421         * doc/visibility.texi: Likewise.
66422
66423         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66424         * doc/quote.texi: Add copyright notice.
66425
66426         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66427         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66428         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66429         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66430         is now obsolete, and give a pointer to the Sun list.
66431         Add copyright notice.
66432
66433 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         * config/srclistvars.sh: Add copyright notice.
66436
66437 2006-08-14  Eric Blake  <ebb9@byu.net>
66438
66439         Import the following change from libc:
66440
66441         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66442
66443         Upstream bug 2997.
66444         * lib/misc/error.c: Add space between program name and message if file
66445         name is missing.
66446
66447 2006-08-12  Karl Berry  <karl@gnu.org>
66448
66449         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66450         remove, these originate in gnulib now.
66451
66452 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66453
66454         * doc/Makefile (standards.info standards.html standards.dvi):
66455         Also depend on make-stds.texi.
66456
66457 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66460         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66461
66462         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66463         in wchar_t.  Problem reported by Eric Blake.
66464
66465         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66466         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66467         Also, help the compiler to keep LEN in a register.
66468
66469 2006-08-11  Eric Blake  <ebb9@byu.net>
66470
66471         * users.txt: Sort.  Add tar.
66472
66473 2006-08-11  Bruno Haible  <bruno@clisp.org>
66474
66475         * users.txt: New file.
66476
66477 2006-08-11  Bruno Haible  <bruno@clisp.org>
66478
66479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66480         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66481
66482 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         * modules/snprintf (Depends-on): Remove minmax.
66485         (Maintainer): Add self and Bruno.
66486
66487 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66490         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66491         (EOVERFLOW): Define if the system does not.
66492         Do not include "minmax.h"; it wasn't used.
66493         (snprintf): Don't assume size_t promotes to an unsigned type.
66494         Fix bug when generated string was too long for the buffer: the
66495         buffer's contents are supposed to be the initial prefix of the
66496         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66497         exceeds INT_MAX; do the check ourselves.
66498
66499         Import the following changes from libc:
66500
66501         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66502
66503         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66504         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66505         set wc to the byte which couldn't be converted.
66506         (re_string_reconstruct): Don't clear valid_raw_len before calling
66507         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66508         tip_context using re_string_context_at.
66509
66510         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66511
66512         * lib/posix/regex.h: g++ still cannot handled [restrict].
66513
66514         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66515
66516         * lib/posix/regex.h: Remove special handling for VMS.
66517
66518 2006-08-10  Jim Meyering  <jim@meyering.net>
66519
66520         * modules/same-inode: New module.
66521         * modules/dev-ino: New module.
66522         * modules/cycle-check: Depend on these modules, rather than simply
66523         including their .h files.
66524         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66525         required via m4/cycle-check.m4.
66526         * modules/same: Depend on new same-inode module, rather than
66527         including same-inode.h.
66528         * modules/chdir-safer: New file.
66529
66530         * modules/chown (Depends-on): Add stat-macros.
66531
66532 2006-08-10  Jim Meyering  <jim@meyering.net>
66533
66534         * m4/cycle-check.m4: New file.
66535         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66536         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66537
66538 2006-08-10  Eric Blake  <ebb9@byu.net>
66539
66540         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66541         in from original proposal.
66542
66543 2006-08-10  Eric Blake  <ebb9@byu.net>
66544         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66545
66546         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66547         namespace.
66548
66549 2006-08-10  Bruno Haible  <bruno@clisp.org>
66550
66551         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66552         as well.
66553
66554 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66555
66556         Sync from coreutils.
66557
66558         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66559
66560         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66561         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66562
66563 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * modules/restrict: Remove; no longer needed now that we assume
66566         Autoconf 2.59 or later.
66567         * MODULES.html.sh: Remove 'restrict'.
66568         * modules/argp (Depends-on): Remove 'restrict'.
66569         * modules/base64 (Depends-on): Likewise.
66570         * modules/gc (Depends-on): Likewise.
66571         * modules/getaddrinfo (Depends-on): Likewise.
66572         * modules/glob (Depends-on): Likewise.
66573         * modules/inet_ntop (Depends-on): Likewise.
66574         * modules/inet_pton (Depends-on): Likewise.
66575         * modules/memxor (Depends-on): Likewise.
66576         * modules/regex (Depends-on): Likewise.
66577         * modules/strtok_r (Depends-on): Likewise.
66578         * modules/time_r (Depends-on): Likewise.
66579
66580 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66583         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66584         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66585         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66586         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66587         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66588         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66589         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66590
66591         Merge from coreutils.
66592         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66593         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66594         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66595         * m4/time_r.m4 (gl_TIME_R): Likewise.
66596
66597 2006-08-09  Karl Berry  <karl@gnu.org>
66598
66599         * config/srclist.txt: no more gettext-tools, per Bruno.
66600
66601 2006-08-08  Eric Blake  <ebb9@byu.net>
66602
66603         * modules/verror: New module.
66604         * MODULES.html.sh: Document it.
66605
66606 2006-08-08  Eric Blake  <ebb9@byu.net>
66607
66608         * lib/verror.h, lib/verror.c: New files.
66609
66610 2006-08-08  Eric Blake  <ebb9@byu.net>
66611
66612         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66613         verror_at_line output complies with GNU Coding Standards even when
66614         file is NULL.
66615
66616 2006-08-07  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66619         versions of AIX.
66620         Reported by Ralf Wildenhues.
66621
66622 2006-08-07  Bruno Haible  <bruno@clisp.org>
66623
66624         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66625         in an AC_DEFUN. Needed so that the autoconf snippets can use
66626         AC_REQUIRE.
66627
66628 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66629
66630         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66631         Initialize pkgdata_DATA.
66632         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66633         overriding it.
66634
66635 2006-08-06  Eric Blake  <ebb9@byu.net>
66636
66637         * lib/error.h: Fold in some upstream changes from glibc.
66638         * lib/error.c: Likewise.
66639
66640 2006-08-04  Bruno Haible  <bruno@clisp.org>
66641
66642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66643         Make the mostlyclean-local rule depend on mostlyclean-generic.
66644         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66645
66646 2006-07-31  Bruno Haible  <bruno@clisp.org>
66647
66648         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66649         <stdlib.h>, <string.h>.
66650
66651 2006-07-30  Bruno Haible  <bruno@clisp.org>
66652
66653         * modules/readlink (License): Change to LGPL.
66654
66655 2006-07-30  Bruno Haible  <bruno@clisp.org>
66656
66657         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66658         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66659         set PKGDATADIR to point to it.
66660
66661 2006-07-30  Bruno Haible  <bruno@clisp.org>
66662
66663         * modules/csharpexec (configure.ac): Comment out macro invocation.
66664         * modules/javaexec (configure.ac): Likewise.
66665         * modules/javacomp-script (configure.ac): Likewise.
66666
66667         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66668
66669 2006-07-30  Bruno Haible  <bruno@clisp.org>
66670
66671         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66672         linked-list.
66673
66674 2006-07-30  Bruno Haible  <bruno@clisp.org>
66675
66676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66677
66678 2006-07-30  Bruno Haible  <bruno@clisp.org>
66679
66680         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66681         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66682         get removed.
66683
66684 2006-07-29  Bruno Haible  <bruno@clisp.org>
66685
66686         Make it possible for gnulib-tool to work with locally modified or
66687         augmented gnulib repositories.
66688         * gnulib-tool (func_usage): Document --local-dir option.
66689         (local_gnulib_dir): New variable.
66690         Handle --local-dir option.
66691         (func_lookup_file): New function.
66692         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66693         (func_get_description, func_get_filelist, func_get_description,
66694         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66695         func_get_automake_snippet, func_get_include_directive,
66696         func_get_license, func_get_maintainer): Use func_lookup_file.
66697         (func_import, func_create_testdir): Use func_lookup_file.
66698
66699 2006-07-29  Bruno Haible  <bruno@clisp.org>
66700
66701         * modules/setenv (Depends-on): Add unistd.
66702
66703 2006-07-29  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66706
66707 2006-07-29  Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66710
66711 2006-07-29  Bruno Haible  <bruno@clisp.org>
66712
66713         * gnulib-tool (import, update): If there is no Makefile.am, look at
66714         aclocal.m4, instead of bailing out.
66715
66716 2006-07-29  Bruno Haible  <bruno@clisp.org>
66717
66718         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66719         Categorize the options by when they are useful.
66720
66721 2006-07-29  Bruno Haible  <bruno@clisp.org>
66722
66723         * gnulib-tool (func_usage): Document option --no-libtool.
66724         Handle option --no-libtool.
66725         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66726         for changed semantics of $libtool variable.
66727         (func_import): Likewise. If libtool is not used, show this through
66728         an option --no-libtool.
66729         (func_create_testdir): Update.
66730
66731 2006-07-29  Bruno Haible  <bruno@clisp.org>
66732
66733         * gnulib-tool (func_import): Extend error message about missing
66734         --doc-base.
66735
66736 2006-07-29  Bruno Haible  <bruno@clisp.org>
66737
66738         * gnulib-tool (func_import): Don't create the $docbase directory if
66739         there is no file to store there.
66740
66741 2006-07-29  Bruno Haible  <bruno@clisp.org>
66742
66743         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66744         relevant, look for configure.ac there, not in the current directory.
66745         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66746
66747 2006-07-29  Bruno Haible  <bruno@clisp.org>
66748
66749         * gnulib-tool (SORT): New variable.
66750         (func_usage): Undocument --assume-autoconf option.
66751         Remove --assume-autoconf option handling.
66752         (autoconf_minversion): Determine from the contents of configure.ac.
66753         (func_import): Remove autoconf_minversion handling.
66754         Suggested by Eric Blake.
66755
66756 2006-07-29  Bruno Haible  <bruno@clisp.org>
66757
66758         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66759
66760 2006-07-29  Bruno Haible  <bruno@clisp.org>
66761
66762         * config/srclist.txt (*setenv.[ch]): Remove rules.
66763
66764 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66765
66766         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66767
66768 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66769
66770         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66771         arpa/inet.h.
66772
66773 2006-07-28  Simon Josefsson  <jas@extundo.com>
66774
66775         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66776         * modules/inet_pton (Depends-on): Likewise.
66777
66778 2006-07-28  Simon Josefsson  <jas@extundo.com>
66779
66780         * m4/netinet_in_h.m4: New file.
66781
66782 2006-07-28  Simon Josefsson  <jas@extundo.com>
66783
66784         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66785         #include's.
66786
66787 2006-07-28  Simon Josefsson  <jas@extundo.com>
66788
66789         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66790         #include's.
66791
66792 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66795         setgid on directories only if they set these bits.
66796         * lib/modechange.h: Remove obsolete comment about masks.
66797
66798 2006-07-28  Eric Blake  <ebb9@byu.net>
66799
66800         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66801         macro expansion.
66802
66803 2006-07-28  Bruno Haible  <bruno@clisp.org>
66804
66805         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66806
66807 2006-07-28  Bruno Haible  <bruno@clisp.org>
66808
66809         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66810
66811 2006-07-28  Bruno Haible  <bruno@clisp.org>
66812
66813         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66814         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66815         Define fallbacks.
66816         Avoids link error on FreeBSD 4.x.
66817         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66818
66819         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66820         encoding.
66821         * lib/mbswidth.c (iswcntrl): Likewise.
66822
66823 2006-07-27  Bruno Haible  <bruno@clisp.org>
66824
66825         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66826         test.
66827
66828 2006-07-27  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66831         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66832         defined.
66833
66834 2006-07-26  Eric Blake  <ebb9@byu.net>
66835
66836         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66837
66838 2006-07-26  Eric Blake  <ebb9@byu.net>
66839
66840         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66841         like mingw that lack mkstemp.
66842         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66843         avoid compilation warning on mingw.
66844
66845 2006-07-26  Bruno Haible  <bruno@clisp.org>
66846
66847         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66848         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66849         INT_FAST*_MIN, INTPTR_MIN.
66850
66851 2006-07-25  Bruno Haible  <bruno@clisp.org>
66852
66853         * modules/version-etc (Depends-on): Add stdarg.
66854
66855 2006-07-25  Bruno Haible  <bruno@clisp.org>
66856
66857         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66858         complex commands.
66859
66860 2006-07-25  Bruno Haible  <bruno@clisp.org>
66861
66862         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66863         defined in <stdarg.h> or config.h.
66864
66865 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66868         (gl_STDIO_SAFER): Remove.
66869
66870 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * MODULES.html.sh (File stream based Input/Output):
66873         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66874         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66875         * modules/fopen-safer, modules/tmpfile-safer: New files.
66876         * modules/stdio-safer: Remove.
66877
66878 2006-07-24  Bruno Haible  <bruno@clisp.org>
66879
66880         * modules/tmpdir: New file.
66881         * MODULES.html.sh (File system functions): Add it.
66882
66883 2006-07-24  Bruno Haible  <bruno@clisp.org>
66884
66885         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66886         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66887
66888 2006-07-24  Bruno Haible  <bruno@clisp.org>
66889
66890         * modules/clean-temp: New file.
66891
66892 2006-07-24  Bruno Haible  <bruno@clisp.org>
66893
66894         * m4/tmpdir.m4: New file, from GNU gettext.
66895
66896 2006-07-24  Bruno Haible  <bruno@clisp.org>
66897
66898         * lib/tmpdir.h: New file, from GNU gettext.
66899         * lib/tmpdir.c: New file, from GNU gettext.
66900
66901 2006-07-24  Bruno Haible  <bruno@clisp.org>
66902
66903         * lib/clean-temp.h: New file, from GNU gettext.
66904         * lib/clean-temp.c: New file, from GNU gettext.
66905
66906 2006-07-23  Eric Blake  <ebb9@byu.net>
66907
66908         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66909         (Depends-on): Add binary-io.
66910
66911 2006-07-23  Eric Blake  <ebb9@byu.net>
66912
66913         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66914
66915 2006-07-23  Eric Blake  <ebb9@byu.net>
66916
66917         * lib/tmpfile-safer.c: New file.
66918         * lib/stdio-safer.h (fopen_safer): Add prototype.
66919         * lib/stdio--.h (tmpfile): Make safer.
66920
66921 2006-07-23  Bruno Haible  <bruno@clisp.org>
66922
66923         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66924         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66925         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66926         gl_linked_remove_at): Use it.
66927
66928 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66929         and Simon Josefsson <jas@extundo.com>
66930
66931         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66932
66933         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66934
66935 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * modules/close-stream: New file.
66938         * modules/closeout (Description): Make it clear that it exits
66939         with a diagnostic on error.
66940         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66941         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66942
66943 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66944
66945         * m4/close-stream.m4: New file.
66946
66947 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66948
66949         * lib/close-stream.c, lib/close-stream.h: New files.
66950
66951 2006-07-22  Bruno Haible  <bruno@clisp.org>
66952
66953         Merge from GNU gettext 0.15.
66954
66955         2006-05-01  Bruno Haible  <bruno@clisp.org>
66956
66957                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66958
66959         2006-07-22  Bruno Haible  <bruno@clisp.org>
66960
66961                 * modules/javaversion: New file.
66962                 * MODULES.html.sh (Java): Add javaversion.
66963
66964         2006-03-12  Bruno Haible  <bruno@clisp.org>
66965
66966                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66967
66968         2005-12-04  Bruno Haible  <bruno@clisp.org>
66969
66970                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66971                 (untested).
66972
66973         2006-06-21  Bruno Haible  <bruno@clisp.org>
66974
66975                 Avoid warnings from recent versions of mcs.
66976                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66977                 -o, -L, -r any more. Use options documented since mcs-1.0
66978                 instead. Similarly for -g.
66979
66980         2005-12-04  Bruno Haible  <bruno@clisp.org>
66981
66982                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66983                 .resources, not .resource.
66984
66985         2005-07-09  Bruno Haible  <bruno@clisp.org>
66986
66987                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66988                 add a .dll suffix.
66989                 Reported by Mark Junker <mjscod@gmx.de>.
66990
66991         2006-07-22  Bruno Haible  <bruno@clisp.org>
66992
66993                 * modules/gettext: Upgrade to gettext-0.15.
66994                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66995                 m4/visibility.m4.
66996                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66997
66998 2006-07-22  Bruno Haible  <bruno@clisp.org>
66999
67000         Merge from GNU gettext 0.15.
67001
67002         2006-03-25  Bruno Haible  <bruno@clisp.org>
67003
67004                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67005
67006         2006-07-21  Bruno Haible  <bruno@clisp.org>
67007
67008                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67009                 "1.1".
67010
67011         2006-05-09  Bruno Haible  <bruno@clisp.org>
67012
67013                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67014                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67015                 for the conftestver execution.
67016
67017         2006-05-01  Bruno Haible  <bruno@clisp.org>
67018
67019                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67020                 optional target-version argument. Verify that the compiler
67021                 groks source of the specified source-version, or add -source
67022                 option as necessary. Verify that the compiler produces
67023                 bytecode in the specified target-version, or add -target and
67024                 -source options as necessary. Make the result of the test
67025                 available as variable CONF_JAVAC. Also log error output in
67026                 config.log.
67027
67028         2006-03-11  Bruno Haible  <bruno@clisp.org>
67029
67030                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67031
67032         2006-05-09  Bruno Haible  <bruno@clisp.org>
67033
67034                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67035                 CLASSPATH_SEPARATOR to a semicolon.
67036
67037         2006-03-12  Bruno Haible  <bruno@clisp.org>
67038
67039                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67040                 available as variable CONF_JAVA, for subsequent autoconf
67041                 tests. Also log error output in config.log.
67042
67043         2006-07-19  Bruno Haible  <bruno@clisp.org>
67044
67045                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67046                 that getline works on glibc2 systems. Needed to avoid trouble
67047                 in relocatable.c.
67048                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67049
67050         2005-12-04  Bruno Haible  <bruno@clisp.org>
67051
67052                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67053                 launcher (untested).
67054
67055         2005-12-04  Bruno Haible  <bruno@clisp.org>
67056
67057                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67058
67059         2006-07-22  Bruno Haible  <bruno@clisp.org>
67060
67061                 * gettext.m4: Update from GNU gettext-0.15.
67062                 * nls.m4: Likewise.
67063                 * po.m4: Likewise.
67064                 * inttypes-pri.m4: Likewise.
67065                 * inttypes-h.m4: Renamed from inttypes.m4.
67066                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67067
67068 2006-07-22  Bruno Haible  <bruno@clisp.org>
67069
67070         Merge from GNU gettext 0.15.
67071
67072         2005-07-05  Bruno Haible  <bruno@clisp.org>
67073
67074                 * printf-args.c (printf_fetchargs): Work around broken
67075                 definition of wint_t on mingw.
67076
67077         2005-02-12  Bruno Haible  <bruno@clisp.org>
67078
67079                 * xallocsa.h: Add extern "C" for C++.
67080
67081         2006-05-17  Bruno Haible  <bruno@clisp.org>
67082
67083                 Cygwin portability.
67084                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67085
67086         2006-04-30  Bruno Haible  <bruno@clisp.org>
67087
67088                 * progreloc.c: Include <mach-o/dyld.h> if available.
67089                 (find_executable): Use _NSGetExecutablePath when possible.
67090
67091         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67092
67093                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67094                 function.
67095
67096         2005-12-29  Bruno Haible  <bruno@clisp.org>
67097
67098                 * progreloc.c (set_program_name_and_installdir): Fix
67099                 compilation error.
67100
67101         2005-12-04  Bruno Haible  <bruno@clisp.org>
67102
67103                 Cygwin portability.
67104                 * progreloc.c: Include <windows.h> also on Cygwin.
67105                 (find_executable): Add support for Cygwin.
67106                 (set_program_name_and_installdir): Handle also platforms with
67107                 nonempty EXEEXT.
67108
67109         2006-07-11  Bruno Haible  <bruno@clisp.org>
67110
67111                 * javacomp.c: Fix a comment.
67112                 Reported by Jim Meyering.
67113
67114         2006-04-30  Bruno Haible  <bruno@clisp.org>
67115
67116                 * javacomp.h (compile_java_class): Add source_version,
67117                 target_version arguments.
67118                 * javacomp.c: Rewritten to choose only a compiler that
67119                 respects the specified source_version and target_version.
67120
67121         2006-06-27  Bruno Haible  <bruno@clisp.org>
67122
67123                 Assume correct S_ISDIR macro.
67124                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67125
67126         2006-07-22  Bruno Haible  <bruno@clisp.org>
67127
67128                 * javaversion.h: New file, from GNU gettext.
67129                 * javaversion.c: New file, from GNU gettext.
67130                 * javaversion.java: New file, from GNU gettext.
67131                 * javaversion.class: New file, from GNU gettext.
67132
67133         2006-05-17  Bruno Haible  <bruno@clisp.org>
67134
67135                 Cygwin portability.
67136                 * javaexec.c (execute_java_class): Test for jview program
67137                 also on Cygwin.
67138
67139         2006-04-09  Bruno Haible  <bruno@clisp.org>
67140
67141                 * fatal-signal.c: Don't include string.h.
67142                 (at_fatal_signal): Use a copying loop instead of memcpy.
67143
67144         2005-12-04  Bruno Haible  <bruno@clisp.org>
67145
67146                 * csharpexec.c: Add support for 'clix' launcher (untested).
67147                 (execute_csharp_using_sscli): New function.
67148                 (execute_csharp_program): Call it.
67149
67150         2006-06-21  Bruno Haible  <bruno@clisp.org>
67151
67152                 Avoid warnings from recent versions of mcs.
67153                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67154                 -o, -L, -r any more. Use options documented since mcs-1.0
67155                 instead. Similarly for -g.
67156
67157         2005-07-09  Bruno Haible  <bruno@clisp.org>
67158
67159                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67160                 add a .dll suffix.
67161                 Reported by Mark Junker <mjscod@gmx.de>.
67162
67163         2006-06-17  Bruno Haible  <bruno@clisp.org>
67164
67165                 * config.charset: Update for NetBSD 3.0.
67166
67167         2006-05-17  Bruno Haible  <bruno@clisp.org>
67168
67169                 Cygwin portability.
67170                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67171
67172         2006-05-16  Bruno Haible  <bruno@clisp.org>
67173
67174                 * localcharset.c [CYGWIN]: Include <windows.h>.
67175                 (get_charset_aliases): For Cygwin, return the same CPxxx
67176                 aliases list as under WIN32.
67177                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67178                 the environment variables. Fall back to GetACP().
67179
67180         2006-04-05  Bruno Haible  <bruno@clisp.org>
67181
67182                 * config.charset: Update Juan Manuel Guerrero's address.
67183
67184         2005-02-12  Bruno Haible  <bruno@clisp.org>
67185
67186                 * allocsa.h: Add extern "C" for C++.
67187
67188         2005-02-10  Bruno Haible  <bruno@clisp.org>
67189
67190                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67191                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67192
67193         2006-07-22  Bruno Haible  <bruno@clisp.org>
67194
67195                 * gettext.h: Update to GNU gettext-0.15.
67196
67197 2006-07-22  Bruno Haible  <bruno@clisp.org>
67198
67199         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67200         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67201         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67202
67203 2006-07-21  Eric Blake  <ebb9@byu.net>
67204
67205         * modules/stdlib-safer: New file.
67206         * MODULES.html.sh (File stream based Input/Output): Add
67207         stdlib-safer.
67208
67209 2006-07-21  Eric Blake  <ebb9@byu.net>
67210
67211         * lib/stdlib-safer.h: New file from coreutils, required by
67212         stdlib--.h.
67213
67214 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67215
67216         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67217
67218 2006-07-20  Bruno Haible  <bruno@clisp.org>
67219
67220         * gnulib-tool: Recognize new option --assume-autoconf.
67221         (autoconf_minversion): New variable.
67222         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67223
67224 2006-07-20  Bruno Haible  <bruno@clisp.org>
67225
67226         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67227
67228 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67229
67230         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67231         Reindent and repaginate.
67232
67233 2006-07-19  Derek Price  <derek@ximbiot.com>
67234
67235         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67236         Correct grammar.
67237
67238 2006-07-17  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/list: New file.
67241         * modules/array-list: New file.
67242         * modules/carray-list, modules/carray-list-tests: New files.
67243         * modules/linked-list, modules/linked-list-tests: New files.
67244         * modules/avltree-list, modules/avltree-list-tests: New files.
67245         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67246         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67247         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67248         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67249         * modules/oset: New file.
67250         * modules/array-oset: New file.
67251         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67252         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67253         * tests/test-carray_list.c: New file.
67254         * tests/test-linked_list.c: New file.
67255         * tests/test-avltree_list.c: New file.
67256         * tests/test-rbtree_list.c: New file.
67257         * tests/test-linkedhash_list.c: New file.
67258         * tests/test-avltreehash_list.c: New file.
67259         * tests/test-rbtreehash_list.c: New file.
67260         * tests/test-avltree_oset.c: New file.
67261         * tests/test-rbtree_oset.c: New file.
67262         * MODULES.html.sh (Container data structures): New section.
67263
67264 2006-07-17  Bruno Haible  <bruno@clisp.org>
67265
67266         * m4/gl_list.m4: New file.
67267
67268 2006-07-17  Bruno Haible  <bruno@clisp.org>
67269
67270         * lib/gl_list.h: New file.
67271         * lib/gl_list.c: New file.
67272         * lib/gl_array_list.h: New file.
67273         * lib/gl_array_list.c: New file.
67274         * lib/gl_carray_list.h: New file.
67275         * lib/gl_carray_list.c: New file.
67276         * lib/gl_linked_list.h: New file.
67277         * lib/gl_linked_list.c: New file.
67278         * lib/gl_anylinked_list1.h: New file.
67279         * lib/gl_anylinked_list2.h: New file.
67280         * lib/gl_avltree_list.h: New file.
67281         * lib/gl_avltree_list.c: New file.
67282         * lib/gl_anyavltree_list1.h: New file.
67283         * lib/gl_anyavltree_list2.h: New file.
67284         * lib/gl_rbtree_list.h: New file.
67285         * lib/gl_rbtree_list.c: New file.
67286         * lib/gl_anyrbtree_list1.h: New file.
67287         * lib/gl_anyrbtree_list2.h: New file.
67288         * lib/gl_anytree_list1.h: New file.
67289         * lib/gl_anytree_list2.h: New file.
67290         * lib/gl_linkedhash_list.h: New file.
67291         * lib/gl_linkedhash_list.c: New file.
67292         * lib/gl_anyhash_list1.h: New file.
67293         * lib/gl_anyhash_list2.h: New file.
67294         * lib/gl_avltreehash_list.h: New file.
67295         * lib/gl_avltreehash_list.c: New file.
67296         * lib/gl_rbtreehash_list.h: New file.
67297         * lib/gl_rbtreehash_list.c: New file.
67298         * lib/gl_anytreehash_list1.h: New file.
67299         * lib/gl_anytreehash_list2.h: New file.
67300
67301         * lib/gl_oset.h: New file.
67302         * lib/gl_oset.c: New file.
67303         * lib/gl_array_oset.h: New file.
67304         * lib/gl_array_oset.c: New file.
67305         * lib/gl_avltree_oset.h: New file.
67306         * lib/gl_avltree_oset.c: New file.
67307         * lib/gl_rbtree_oset.h: New file.
67308         * lib/gl_rbtree_oset.c: New file.
67309         * lib/gl_anytree_oset.h: New file.
67310
67311 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * m4/mkancesdirs.m4: New file.
67314         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67315         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67316         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67317         it.
67318
67319 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67322         * lib/mkancesdirs.h: New files.
67323         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67324         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67325         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67326         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67327         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67328         callers changed.  Revamp internals significantly, by not
67329         attempting to create directories that are temporarily more
67330         permissive than the final results.  Do not attempt to use
67331         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67332         This removes some race conditions, fixes some bugs, and simplifies
67333         things.  Use new dirchownmod function to do owner and mode changes.
67334         * lib/mkdir-p.h: Likewise.
67335         * lib/modechange.c (octal_to_mode): New function.
67336         (struct mode_change): New member mentioned.
67337         (make_node_op_equals): New arg mentioned.  All callers changed.
67338         (mode_compile): Keep track of which mode bits the user has explicitly
67339         mentioned.
67340         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67341         New arg PMODE_BITS, to keep track of which mode bits the user
67342         mentioned; it treats S_ISUID and S_ISGID speciall.
67343         All callers changed.
67344         * lib/modechange.h: Likewise.
67345
67346 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * MODULES.html.sh: Add mkancestors.
67349         * modules/mkancesdirs: New module.
67350         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67351         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67352         The chdir-safer and afs files are now orphans; I'll remove them
67353         unless someone speaks up.
67354         Add lib/dirchownmod.c, lib/dirchownmod.h.
67355         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67356         Add lchown, mkancesdirs.
67357         (Maintainer): Add self.
67358
67359 2006-07-15  Karl Berry  <karl@gnu.org>
67360
67361         * gnulib-tool: help message wording/arrangement.
67362
67363 2006-07-14  Simon Josefsson  <jas@extundo.com>
67364
67365         * doc/gnulib.texi (Libtool and Windows): New section.
67366
67367 2006-07-12  Simon Josefsson  <jas@extundo.com>
67368
67369         * modules/gendocs (License): Fix license, approved by Karl.
67370
67371 2006-07-12  Eric Blake  <ebb9@byu.net>
67372
67373         * MODULES.html.sh: Add gendocs.
67374
67375 2006-07-11  Eric Blake  <ebb9@byu.net>
67376
67377         * modules/fdl: New module, to install doc/fdl.texi.
67378         * MODULES.html.sh: Add new section for documentation modules.
67379         * gnulib-tool: Avoid space-tab.
67380         (--doc-base): New option, to manage files from doc.
67381
67382 2006-07-11  Eric Blake  <ebb9@byu.net>
67383
67384         * m4/absolute-header.m4: Fix comments to match recent change.
67385
67386 2006-07-11  Eric Blake  <ebb9@byu.net>
67387
67388         * gnulib-tool: List --doc-base before --tests-base.
67389
67390 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67391
67392         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67393
67394 2006-07-11  Bruno Haible  <bruno@clisp.org>
67395
67396         * README: Mention where to put documentation.
67397
67398 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67399
67400         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67401
67402 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67403
67404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67405         to stdint.m4.
67406
67407 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67408
67409         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67410         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67411         "no/such/file/stdint.h" when there is no such file, so that
67412         the resulting C code can be parsed by dodgy compilers.
67413         Problems reported by Bob Proulx.
67414
67415 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67416
67417         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67418         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67419         macros into the GNU _D_EXACT_NAMLEN.
67420         * lib/savedir.c:  Likewise.
67421         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67422
67423 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67424         and Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67427         * m4/savedir.m4:
67428         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67429         macros into the GNU _D_EXACT_NAMLEN.
67430
67431 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67432
67433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67434         around the absolute name, to work around a problem with the HP-UX
67435         11.23 native C compiler, reported by Bob Proulx.
67436
67437 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         * doc/maintain.texi, make-stds.texi: Sync from
67440         <http://savannah.gnu.org/projects/gnustandards>.
67441
67442 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67445
67446 2006-07-09  Jim Meyering  <jim@meyering.net>
67447
67448         * m4/glob.m4: Remove a doubled word in a comment.
67449
67450 2006-07-09  Jim Meyering  <jim@meyering.net>
67451
67452         * lib/argp-pv.c: Remove a doubled word in a comment.
67453         * lib/check-version.c (check_version): Likewise.
67454         * lib/javacomp.c (compile_java_class): Likewise.
67455
67456 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67457
67458         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67459         for the benefit of people using Autoconf 2.60.  If you want to
67460         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67461         (or m4/onceonly.m4, if pre-2.57) manually.
67462
67463 2006-07-08  Jim Meyering  <jim@meyering.net>
67464
67465         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67466         comment.
67467         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67468         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67469         comment.
67470
67471 2006-07-08  Jim Meyering  <jim@meyering.net>
67472
67473         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67474
67475 2006-07-07  Simon Josefsson  <jas@extundo.com>
67476
67477         * tests/test-crc.c: Change expected crc value, the test vector
67478         were probably computed using the old broken crc.c?
67479
67480 2006-07-06  Simon Josefsson  <jas@extundo.com>
67481
67482         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67483         now the canonical place for the M4 file).
67484
67485         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67486         from the sys_socket dependency now.
67487
67488         * modules/inet_pton (Files): Ditto.
67489
67490         * modules/inet_ntop (Files): Ditto.
67491
67492 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67493
67494         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67495         not gl_PREREQ_GETUSERSHELL.
67496
67497 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67498
67499         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67500         with only one argument, for Autoconf 2.60.
67501         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67502         expand to nothing, so add a shell command to avoid syntax error.
67503         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67504
67505 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67506
67507         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67508
67509 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67512         no longer needed.  Check for isblank decl.
67513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67514         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67515         of existence.
67516
67517 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * lib/getloadavg.c: Use __VMS, not VMS.
67520         * lib/getopt.c: Likewise.
67521         * lib/getpagesize.h: Likewise.
67522         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67523         and probably does not work.
67524
67525 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * lib/.cppi-disable: Add wcwidth.
67528         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67529         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67530         (ISGRAPH): Remove.  All uses changed to isgraph.
67531         (FOLD) [!defined _LIBC]: Remove special case.
67532         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67533         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67534         HAVE_ISBLANK.
67535         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67536         case.
67537
67538 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67539
67540         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67541         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67542         brackets.  Other minor changes to suppress some compiler
67543         warnings.
67544
67545 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67546         and Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67549         of invoking obsolescent AC_HEADER_DIRENT macro.
67550         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67551         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67552         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67553         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67554         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67555         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67556         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67557         * m4/readdir.m4: Remove; no longer needed.
67558
67559 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67560         and Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67563         Don't worry about this obsolete case any more.
67564         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67565         directories.
67566         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67567         worry about this obsolete case any more.
67568         * lib/fts.c: Likewise.
67569         * lib/getcwd.c: Likewise.
67570         * lib/glob.h: Likewise.
67571         * lib/savedir.c: Likewise.
67572
67573 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67576         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67577         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67578         needed.
67579         All uses removed.
67580         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67581         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67582         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67583         needed.
67584         * m4/getdate.m4 (gl_GETDATE): Likewise.
67585         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67586         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67587         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67588         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67589         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67590         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67591         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67592         needed.
67593
67594 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67595
67596         * lib/memcasecmp.c: Include <limits.h>.
67597         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67598         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67599         Don't assume isdigit succeeds only on '0' through '9'.
67600
67601 2006-07-05  Eric Blake  <ebb9@byu.net>
67602
67603         * modules/getaddrinfo (Depends-on): Add snprintf.
67604
67605 2006-07-05  Eric Blake  <ebb9@byu.net>
67606
67607         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67608         to avoid 'header present but could not be compiled' on cygwin.
67609
67610 2006-07-05  Eric Blake  <ebb9@byu.net>
67611
67612         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67613         missing from netdb.h.
67614         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67615
67616 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67617
67618         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67619         no longer needed.
67620         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67621         * m4/getdate.m4 (gl_GETDATE): Likewise.
67622         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67623         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67624         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67625         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67627
67628 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67629
67630         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67631         All uses of is_space replaced by isspace.
67632         * lib/exit.h: Don't talk about STDC_HEADERS.
67633         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67634         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67635         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67636         replaced by isprint etc.
67637         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67638         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67639         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67640         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67641         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67642         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67643
67644 2006-07-05  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67647         the function exists, before testing against AIX.
67648         Reported by Martin Lambers <marlam@marlam.de>.
67649
67650 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67653         From Mark D. Baushke.
67654
67655 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67658         to the absolute name, not just one, to bypass Sun C 5.8's
67659         "warning: #include of /usr/include/... may be non-portable".
67660
67661 2006-07-04  Eric Blake  <ebb9@byu.net>
67662
67663         * modules/dirname-tests: New test module.
67664         * tests/test-dirname.c: New file, replacing dirname.c
67665         TEST_DIRNAME section that was recently deleted.
67666
67667 2006-07-04  Bruno Haible  <bruno@clisp.org>
67668
67669         Assume ANSI C header files and <ctype.h> functions.
67670         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67671         (mbsnwidth): Use isprint, iscntrl instead.
67672
67673 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         Merge from coreutils.
67676         * MODULES.html.sh: Add xstrtold.
67677         * modules/xstrtold: New file.
67678         * modules/cycle-check (Files): Add lib/same-inode.h.
67679         * modules/dirname (Files): Add m4/double-slash-root.m4.
67680         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67681         * modules/mkdir-p (Files): Add lib/same-inode.h.
67682         * modules/same (Files): Add lib/same-inode.h.
67683
67684 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67687         This is to keep the terminology clean; POSIX talks about
67688         "absolute pathnames", not "full pathnames", but the GNU
67689         Coding Standards say to use "path" for something else;
67690         so use "absolute" to keep both sides happy.
67691         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67692         Set gl_absolute_header, not gl_full_header_path.
67693         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67694         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67695         All uses changed.
67696
67697         Merge from coreutils.
67698
67699         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67702         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67703         want to require the building of c-strtod.o.
67704         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67705         needs -lm directly.
67706         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67707
67708         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67709
67710         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67711         --as-needed option if available.  Problem reported by Albert Chin in
67712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67713         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67714         cc merely issues a bunch of annoying warnings for --as-needed
67715         (this problem was reported by Bob Proulx).  Also, try linking with
67716         -lm to detect a bug in binutils 2.16 (this problem was reported
67717         by Ralf Wildenhues).
67718
67719         2006-06-18  Jim Meyering  <jim@meyering.net>
67720
67721         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67722         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67723         macro.
67724         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67725         also check for glibc-2.4's abort-inducing bug.
67726
67727         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67728         Low-probability clean-up should be to use rmdir to get rid of
67729         the just-created directory, not unlink.
67730
67731         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67732         configure fail, and request a bug report to inform us about it.
67733         Add a comment that, barring reports to the contrary, in 2007 we'll
67734         assume ftruncate is universally available.
67735
67736         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67737
67738         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67739
67740         2006-03-12  Jim Meyering  <jim@meyering.net>
67741
67742         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67743         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67744         * m4/same.m4 (gl_SAME): Likewise.
67745         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67746
67747         2006-03-11  Eric Blake  <ebb9@byu.net>
67748
67749         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67750         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67751         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67752         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67753
67754 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67755
67756         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67757         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67758         reported by Mark D. Baushke, one in
67759         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67760
67761         Merge from coreutils.
67762
67763         * lib/.cppi-disable: Add stdint_.h.
67764         * lib/.cvsignore: Add stdint.h.
67765
67766         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67767
67768         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67769         both double and long double versions.
67770         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67771         * lib/xstrtold.c: New file.
67772         * lib/xstrtod.h (xstrtold): New decl.
67773
67774         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * lib/filemode.c (setst): Remove.
67777         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67778         (arguably) clearer, and the generated code is a bit smaller on my
67779         Debian GNU/Linux stable x86 host.
67780
67781         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67782
67783         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67784         Assume that filemode.h includes sys/types.h and sys/stat.h.
67785         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67786         (ftypelet): Reorder to put common cases first, for efficiency.
67787         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67788         to do 'M'.
67789         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67790         of 10, for compatibility with FreeBSD.  All callers changed.
67791         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67792         types that can't be deduced solely from st_mode.  First arg is now a
67793         const pointer.
67794         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67795         (strmode): Renamed from mode_string.
67796         (filemodestring): New decl.
67797         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67798         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67799         needed.
67800         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67801
67802         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67805         fsusage.h now does that.  Include fsusage.h first, to test interface.
67806         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67807         at most one method (the old code could have generated decls that
67808         didn't conform to C89, not that this was ever exercised).
67809         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67810
67811         2006-03-19  Jim Meyering  <jim@meyering.net>
67812
67813         Work even in a chroot where d_ino values for entries in "/"
67814         don't match the stat.st_ino values for the same names.
67815         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67816         number, iterate through all entries again, using lstat instead.
67817         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67818         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67819
67820         * lib/getcwd.c (__getcwd): Clarify a comment.
67821         Use memcpy in place of a call to strcpy.
67822
67823         2006-03-12  Jim Meyering  <jim@meyering.net>
67824
67825         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67826         matches that of the current directory (which we're about to chdir ".."
67827         out of), then save the dev-ino of the parent, instead.
67828
67829         * lib/same-inode.h (SAME_INODE): New file/macro.
67830         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67831         Include "same-inode.h", instead.
67832         * lib/same.c: Likewise.
67833         * lib/cycle-check.h: Include "same-inode.h".
67834         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67835         * lib/cycle-check.c (SAME_INODE): Remove definition.
67836         * lib/root-dev-ino.h: Include "same-inode.h".
67837
67838         2006-03-11  Eric Blake  <ebb9@byu.net>
67839
67840         * lib/same.c (same_name): s/base_name/last_component/
67841         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67842         * lib/filenamecat.c (file_name_concat): Likewise.
67843
67844         2006-03-11  Eric Blake  <ebb9@byu.net>,
67845                     Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67848         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67849         drive prefix.
67850         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67851         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67852         (last_component): New method.
67853         * lib/dirname.c (dir_len): Determine when drive letters need a
67854         subsequent slash.  Preserve // when it is special.
67855         (dir_name): Don't append dot when drive letter is absolute.
67856         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67857         * lib/basename.c (base_name): New semantics - malloc the result.
67858         Preserve // when it is special.  Preserve relative files that look
67859         like drive letters.
67860         (base_len): Preserve // when it is special.
67861         (last_component): New method, similar to old base_name semantics.
67862         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67863         base_name.  Strip redundant slashes from ///.
67864
67865 2006-07-03  Jim Meyering  <jim@meyering.net>
67866
67867         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67868         macro is used before the first cycle_check call.
67869
67870 2006-07-03  Eric Blake  <ebb9@byu.net>
67871
67872         * modules/dirname (Depends-on): Add xstrndup.
67873
67874 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67877         test cases, so that config.log is a bit easier to follow.
67878
67879 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67880
67881         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67882         both are 64 bits, since this seems to be the tradition, and this
67883         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67884         we ever run into a host that prefers long long to long in this
67885         case, we'll need another configure-time test.  Problem reported by
67886         Jim Meyering.
67887
67888 2006-07-02  Eric Blake  <ebb9@byu.net>
67889
67890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67891
67892 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * modules/inttypes (Depends-on): No longer depends on stdint.
67895         * modules/stdint (Description): Say more about assumptions.
67896         Say that the fast types might differ.  Say macros are used.
67897         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67898         (Makefile.am): Revise list of substituted symbols to match
67899         new stdint.m4.
67900         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67901         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67902         * tests/test-stdint.c (verify_same_types)
67903         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67904         the code conforms to C99/C89.
67905         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67906         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67907
67908 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67911         but fix a bug, by requiring at least 64 bits.
67912         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67913         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67914         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67915         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67916
67917         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67918         changes.  Make 2.59 a prerequisite.  Check and substitute for
67919         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67920         inttypes.h.  Do not use special include files; just use the
67921         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67922         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67923         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67924         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67925         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67926         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67927         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67928         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67929         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67930         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67931         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67932         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67933         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67934         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67935         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67936         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67937         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67938         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67939         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67940         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67941         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67942         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67943         not check for things that C99 does not require, e.g., int8_t.  If
67944         a test isn't needed unless <stdint.h> isn't working, and is
67945         unlikely to be needed for any other reason, then don't do it
67946         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67947         size_t, since we assume C89 freestanding at least.  Do not check
67948         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67949         the right thing even if the types are not defined.  Instead use:
67950         (gl_STDINT_TYPE_PROPERTIES): New macro.
67951         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67952         testing whether <sys/types.h> clashes, as Autoconf does this for
67953         us now.  All uses removed.
67954         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67955         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67956         (gl_CHECK_TYPE_SAME):
67957         Remove; no longer needed.
67958         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67959         exists, since we'll return 0 anyway in that case.
67960         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67961
67962 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67965         possible collision with system files.
67966         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67967         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67968         WCHAR_MIN and WCHAR_MAX in this case.
67969         (<stddef.h>): Do not include; no longer needed.
67970         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67971         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67972         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67973         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67974         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67975         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67976         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67977         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67978         !defined(__c99))]: Include in this case too, since it's harmless
67979         now.
67980         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67981         dangerous to do so.
67982         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67983         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67984         (_STDINT_MIN, _STDINT_MAX): New macros.
67985         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67986         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67987         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67988         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67989         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67990         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67991         macros, not typedefs; this simplifies things quite a bit.
67992         Use long int for all types narrower than int64_t.
67993         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67994         Define in terms of long long int or int64_t or long int,
67995         not int64_t or int32_t.  This saves some compile-time testing.
67996         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67997         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67998         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67999         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68000         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68001         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68002         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68003         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68004         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68005         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68006         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68007         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68008         undef any previous version and define our own version, for
68009         simplicity and consistency with the new macros for types.
68010         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68011         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68012         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68013         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68014         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68015         @WINT_T_SUFFIX@ to keep things simple here.
68016         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68017         Simplify by assuming typical 8/16/32/64 host, since we're
68018         already doing that elsewhere anyway.
68019         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68020         and assume long long int is 64 bits if available.  This
68021         speeds up 'configure'.
68022
68023 2006-07-01  Eric Blake  <ebb9@byu.net>
68024
68025         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68026         Reported by Andreas Buening.
68027
68028 2006-07-01  Eric Blake  <ebb9@byu.net>
68029
68030         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68031
68032 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68033
68034         * lib/getaddrinfo.c: fixed typo
68035
68036 2006-06-29  Jim Meyering  <jim@meyering.net>
68037
68038         * modules/strftime (Maintainer): Add my name, since with the
68039         FPRINTFTIME changes strftime.c has forked from glibc.
68040
68041 2006-06-29  Eric Blake  <ebb9@byu.net>
68042
68043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68044
68045 2006-06-29  Eric Blake  <ebb9@byu.net>
68046
68047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68048
68049 2006-06-29  Eric Blake  <ebb9@byu.net>
68050
68051         * lib/stat_.h: New file.
68052
68053 2006-06-29  Eric Blake  <ebb9@byu.net>
68054
68055         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68056         unused static function.
68057
68058 2006-06-29  Eric Blake  <ebb9@byu.net>
68059
68060         * doc/functions.texi (Function Portability): Document missing lstat
68061         on mingw.
68062
68063 2006-06-29  Eric Blake  <ebb9@byu.net>
68064
68065         * MODULES.html.sh: Add sys_stat.
68066         * modules/sys_stat: New module.
68067         * modules/mkstemp (Depends-on): Add sys_stat.
68068
68069 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68070
68071         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68072
68073 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68074
68075         * m4/c-bs-a.m4: Removed.
68076
68077 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68078
68079         * lib/strftime.c: Assume strftime() exists.
68080
68081 2006-06-29  Derek Price  <derek@ximbiot.com>
68082
68083         * modules/c-bs-a: Removed - \a is C89.
68084         * MODULES.html.sh: Remove c-bs-a.
68085
68086 2006-06-29  Bruno Haible  <bruno@clisp.org>
68087
68088         * modules/wcwidth (License): Change to LGPL.
68089
68090 2006-06-28  Simon Josefsson  <jas@extundo.com>
68091
68092         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68093         on _WIN32.
68094
68095         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68096         getnameinfo.
68097
68098 2006-06-28  Simon Josefsson  <jas@extundo.com>
68099
68100         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68101
68102 2006-06-28  Simon Josefsson  <jas@extundo.com>
68103
68104         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68105         functions there.  It will succeed on Windows XP, but on Windows
68106         2000 and (presumably) earlier, it will fail, and use the internal
68107         re-implementation.
68108         (use_win32_p): New function.
68109         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68110         Support AI_NUMERICSERV to disable getservbyname.
68111         (getnameinfo): New function, only supports
68112         NI_NUMERICHOST|NI_NUMERICSERV for now.
68113
68114         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68115         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68116         getnameinfo.
68117
68118 2006-06-28  Eric Blake  <ebb9@byu.net>
68119
68120         * modules/wcwidth: New file.
68121         * modules/mbchar (Depends-on): Add wcwidth.
68122         * modules/mbswidth (Depends-on): Add wcwidth.
68123         * MODULES.html.sh: Add wcwidth.
68124
68125 2006-06-28  Eric Blake  <ebb9@byu.net>
68126
68127         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68129
68130 2006-06-28  Eric Blake  <ebb9@byu.net>
68131
68132         * lib/xvasprintf.h: Fix comments.
68133
68134 2006-06-28  Eric Blake  <ebb9@byu.net>
68135
68136         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68137         * lib/mbswidth.c (wcwidth): Move from here...
68138         * lib/wcwidth.h: ...to this new file.
68139
68140 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68141
68142         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68143
68144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68145         it's obsolete.
68146         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68147
68148 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68149
68150         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68151         Autoconf 2.60 says this stuff was obsolete.
68152
68153 2006-06-28  Bruno Haible  <bruno@clisp.org>
68154
68155         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68156
68157 2006-06-28  Bruno Haible  <bruno@clisp.org>
68158
68159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68160         gt_TYPE_WCHAR_T.
68161
68162 2006-06-28  Bruno Haible  <bruno@clisp.org>
68163
68164         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68165         declaration for wcwidth.
68166         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68167
68168 2006-06-28  Bruno Haible  <bruno@clisp.org>
68169
68170         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68171         (mkdir): Define using _mkdir.
68172
68173 2006-06-28  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/getaddrinfo.h: Fix POSIX URL.
68176         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68177         _WIN32.
68178         (use_win32_p): Make static.
68179         (getaddrinfo): Reject service name if it is empty or does not consist
68180         solely of decimal digits, or if its value is > 65535.
68181         (getnameinfo): Remove useless casts.
68182
68183 2006-06-27  Simon Josefsson  <jas@extundo.com>
68184
68185         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68186         Eggert and Martin Lambers.
68187
68188 2006-06-27  Simon Josefsson  <jas@extundo.com>
68189
68190         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68191         Eggert and Martin Lambers.
68192
68193 2006-06-27  Bruno Haible  <bruno@clisp.org>
68194
68195         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68196         result to 0, not to empty.
68197         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68198
68199 2006-06-27  Bruno Haible  <bruno@clisp.org>
68200
68201         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68202
68203 2006-06-26  Simon Josefsson  <jas@extundo.com>
68204
68205         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68206         present.
68207
68208 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68211         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68213
68214 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68215
68216         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68217
68218 2006-06-26  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68221
68222 2006-06-26  Bruno Haible  <bruno@clisp.org>
68223
68224         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68225
68226 2006-06-26  Bruno Haible  <bruno@clisp.org>
68227
68228         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68229         SGI C compiler in pre-C99 mode.
68230         Suggested by Mark D. Baushke and Larry Jones.
68231
68232 2006-06-26  Bruno Haible  <bruno@clisp.org>
68233
68234         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68235         WCHAR_MAX.
68236         Reported by Mark D. Baushke and Larry Jones.
68237
68238 2006-06-26  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68241         in pre-C99 mode.
68242         Suggested by Mark D. Baushke and Larry Jones.
68243
68244 2006-06-23  Simon Josefsson  <jas@extundo.com>
68245             Bruno Haible  <bruno@clisp.org>
68246
68247         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68248         Emit mostlyclean-local rule.
68249         (func_emit_tests_Makefile_am): Likewise.
68250         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68251
68252 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68253
68254         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68255
68256 2006-06-23  Bruno Haible  <bruno@clisp.org>
68257
68258         * tests/test-stdint.c: Update to match ISO C 99 Technical
68259         Corrigendum 1.
68260
68261 2006-06-23  Bruno Haible  <bruno@clisp.org>
68262
68263         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68264
68265 2006-06-23  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/stdint_.h: Treat IRIX like OpenBSD.
68268
68269 2006-06-23  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68272         ISO C 99 Technical Corrigendum 1.
68273
68274 2006-06-22  Simon Josefsson  <jas@extundo.com>
68275
68276         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68277         MinGW.
68278
68279 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68282         needed.  Some compiler complained about some of them.  Problem reported
68283         by Larry Jones in
68284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68285
68286 2006-06-21  Simon Josefsson  <jas@extundo.com>
68287
68288         * tests/test-getaddrinfo.c: New file.
68289
68290         * modules/getaddrinfo-tests: New file.
68291
68292         * MODULES.html.sh: Add inet_pton.
68293
68294         * modules/inet_pton: New file.
68295
68296 2006-06-21  Simon Josefsson  <jas@extundo.com>
68297
68298         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68299         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68300         of using the (limited) gnulib implementation on Windows XP.
68301
68302         * m4/inet_pton.m4: New file.
68303
68304 2006-06-21  Simon Josefsson  <jas@extundo.com>
68305
68306         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68307         variable.
68308
68309         * lib/socket_.h: Don't define WINVER.
68310
68311         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68312         slightly modified to work in gnulib.
68313
68314 2006-06-21  Simon Josefsson  <jas@extundo.com>
68315
68316         * doc/gnulib.texi (Windows sockets): Add.
68317
68318 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68319
68320         * lib/read-file.c (fread_file): Start with buffer allocation of
68321         0 bytes rather than 1 byte; this simplifies the code.
68322         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68323         code to free buffer and save/restore errno.
68324         (internal_read_file): Remove unused local.
68325
68326 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68329         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68330         Problem reported by Denis Excoffier in
68331         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68332
68333 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68334
68335         * modules/sys_socket, modules/socklen: Include sys/types since
68336         FreeBSD 4.x's sys/socket.h needs it.
68337
68338 2006-06-19  Simon Josefsson  <jas@extundo.com>
68339
68340         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68341
68342 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68345
68346 2006-06-19  Bruno Haible  <bruno@clisp.org>
68347
68348         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68349         and FULL_PATH_INTTYPES_H in angle brackets.
68350         Reported by Mark D. Baushke <mdb@gnu.org>.
68351
68352 2006-06-17  Eric Blake  <ebb9@byu.net>
68353
68354         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68355         errno.
68356
68357 2006-06-17  Bruno Haible  <bruno@clisp.org>
68358
68359         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68360         <sys/inttypes.h>.
68361
68362 2006-06-17  Bruno Haible  <bruno@clisp.org>
68363
68364         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68365         whether errno is declared. Assume <errno.h> declares errno.
68366
68367 2006-06-17  Bruno Haible  <bruno@clisp.org>
68368
68369         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68370
68371 2006-06-17  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68374         problem on Solaris 2.5.1.
68375
68376 2006-06-16  Eric Blake  <ebb9@byu.net>
68377
68378         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68379         * lib/unicodeio.c [!defined errno]: Likewise.
68380         * lib/strtol.c [!defined errno]: Likewise.
68381         * lib/strtod.c [!defined errno]: Likewise.
68382
68383 2006-06-15  Eric Blake  <ebb9@byu.net>
68384
68385         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68386
68387 2006-06-15  Eric Blake  <ebb9@byu.net>
68388
68389         * config/srclist.txt (ssize_t.m4): Lose sync.
68390
68391 2006-06-15  Bruno Haible  <bruno@clisp.org>
68392
68393         * modules/stdint (Files): Include m4/full-header-path.m4,
68394         m4/size_max.m4, m4/wchar_t.m4.
68395         (Makefile.am): Many more substitutions.
68396         * modules/stdint-tests: New file.
68397         * tests/test-stdint.c: New file.
68398
68399 2006-06-15  Bruno Haible  <bruno@clisp.org>
68400
68401         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68402         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68403         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68404         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68405         gl_CHECK_TYPE_SAME): New macros.
68406
68407 2006-06-15  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68410
68411 2006-06-15  Bruno Haible  <bruno@clisp.org>
68412
68413         * lib/stdint_.h: Rewritten to be fully auto-configured.
68414         Fixes bug on HP-UX/IA64.
68415
68416 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * lib/getdate.y (__attribute__): Don't define if already defined.
68419         Problem reported by Larry Jones.
68420         * lib/utimens.c (__attribute__): Likewise.
68421
68422 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68423
68424         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68425         reported by Andreas Schwab.
68426
68427 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68428             Bruno Haible  <bruno@clisp.org>
68429
68430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68431         check for the declaration of strnlen and a run test that exposes the
68432         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68433         rpl_strndup.
68434
68435 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68436             Bruno Haible  <bruno@clisp.org>
68437
68438         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68439
68440 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68441
68442         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68443         compile test, for Tru64 4.0D.
68444
68445 2006-05-28  Karl Berry  <karl@gnu.org>
68446
68447         * config/srclist.txt (printf-args.c): lose sync.
68448
68449 2006-05-26  Martin Lambers  <marlam@marlam.de>
68450
68451         * lib/getpass.c: Updates the test for the native W32 API, and adds
68452         missing includes, thus fixing compilation warnings.
68453
68454 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68455
68456         * lib/exclude.c (exclude_fnmatch): New function.
68457         (excluded_file_name): Call exclude_fnmatch.
68458         * lib/exclude.h (excluded_file_name): New prototype
68459
68460 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/tempname.c (small_open, large_open): New macros.
68463         (__open, __open64) [!_LIBC]: Remove.
68464         (__gen_tempname): Use small_open and large_open instead of __open
68465         and __open64.  This fixes a portability bug on HP-UX 11.11i
68466         reported by Simon Wing-Tang in
68467         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68468
68469 2006-05-24  Bruno Haible  <bruno@clisp.org>
68470
68471         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68472         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68473         Reported by Thorsten Maerz <torte@netztorte.de> via
68474         Aaron Stone <aaron@serendipity.cx>.
68475
68476 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68479         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68480         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68481         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68482         not really conditional on the cache.
68483         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68484
68485 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68488         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68489         (my_usleep): Don't mishandle maximum value.
68490
68491 2006-05-19  Jim Meyering  <jim@meyering.net>
68492
68493         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68494
68495 2006-05-17  Bruno Haible  <bruno@clisp.org>
68496
68497         Cygwin portability.
68498         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68499
68500 2006-05-17  Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/stdint_.h: Fix recognition of Cygwin.
68503
68504 2006-05-15  Bruno Haible  <bruno@clisp.org>
68505
68506         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68507         on libtool patch by Ralf Wildenhues.
68508
68509 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68512         test for C99 conformance; (bool) 0.5 is an integer constant
68513         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68514         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68515
68516 2006-05-11  Simon Josefsson  <jas@extundo.com>
68517
68518         * m4/xvasprintf.m4: Fix obvious typo.
68519
68520 2006-05-11  Jim Meyering  <jim@meyering.net>
68521
68522         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68523         James Lemley.
68524
68525 2006-05-10  Simon Josefsson  <jas@extundo.com>
68526
68527         * lib/md4.c: Typo fix, update copyright years.
68528         (K1, K2): Don't use L because it turn computations into 64-bit on
68529         64-bit platforms.
68530
68531 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68534         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68535         unwanted sign propagation, e.g., on hosts with 64-bit int.
68536         There still are some problems with reeelly weird theoretical hosts
68537         (e.g., 33-bit int) but it's not worth worrying about now.
68538         * lib/sha1.c (rol): Likewise.
68539         (K1, K2, K3, K4): Remove unnecessary L suffix.
68540
68541 2006-05-10  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/des.c: Cast to avoid warnings.
68544
68545 2006-05-09  Bruno Haible  <bruno@clisp.org>
68546
68547         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68548         (Depends-on): Depend also on xsize, stdarg.
68549         (configure.ac): Add gl_XVASPRINTF.
68550
68551 2006-05-09  Bruno Haible  <bruno@clisp.org>
68552
68553         * m4/xvasprintf.m4: New file.
68554
68555 2006-05-09  Bruno Haible  <bruno@clisp.org>
68556
68557         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68558         (EOVERFLOW): Define fallback value.
68559         (xstrcat): New function.
68560         (xvasprintf): Recognize the special case of a string concatenation.
68561
68562 2006-05-08  Eric Blake  <ebb9@byu.net>
68563
68564         * gnulib-tool (func_version): Base copyright year on CVS date.
68565         (func_emit_copyright_notice): New function.
68566         (func_emit_lib_Makefile_am): Use it.
68567         (func_emit_tests_Makefile_am): Likewise.
68568         (func_import): Likewise.
68569
68570 2006-05-08  Bruno Haible  <bruno@clisp.org>
68571
68572         * modules/stdarg: New file.
68573         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68574
68575 2006-05-08  Bruno Haible  <bruno@clisp.org>
68576
68577         * m4/stdarg.m4: New file, from GNU gettext.
68578
68579 2006-05-08  Bruno Haible  <bruno@clisp.org>
68580
68581         * config/srclist.txt (build-aux/config.rpath): different from latest
68582         release.
68583
68584 2006-05-08  Bruno Haible  <bruno@clisp.org>
68585
68586         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68587
68588 2006-05-05  Jim Meyering  <jim@meyering.net>
68589
68590         * m4/warning.m4: New file, derived from bison's file by the same name.
68591
68592 2006-05-03  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/stdint_.h: Shorter URL.
68595         * lib/inttypes.h: Likewise.
68596
68597 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68600
68601 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68602
68603         * lib/verify.h: Document the internals better.  Most of this change
68604         was written by Bruno Haible.
68605
68606 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * doc/verify.texi: New file, partly based on a proposal by
68609         Bruno Haible.
68610
68611 2006-05-02  Bruno Haible  <bruno@clisp.org>
68612
68613         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68614         test from here...
68615         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68616
68617 2006-04-29  Bruno Haible  <bruno@clisp.org>
68618
68619         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68620         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68621
68622 2006-04-29  Bruno Haible  <bruno@clisp.org>
68623
68624         * gnulib-tool: Make --update option actually work.
68625
68626 2006-04-29  Bruno Haible  <bruno@clisp.org>
68627
68628         * doc/gcd.texi: New file.
68629         * doc/gnulib.texi: Include it.
68630
68631 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * lib/getdate.y (get_date): When adding relative date, start with the
68634         initial time, not with the result of the first mktime call.
68635
68636 2006-04-25  Bruno Haible  <bruno@clisp.org>
68637
68638         * gnulib-tool (func_import): Output the include directives in three
68639         blocks, sorted separately.
68640         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68641
68642 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68645         to define main with arguments, for C++.  Reported by Eric Blake.
68646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68647         Prefer 'int main ()' to 'int main (void)', for C++.
68648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68649         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68650         for 'main', for C99 and C++.
68651
68652 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68655         Don't assume that exit status -1 is valid.
68656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68657         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68658         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68659         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68660         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68661         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68662         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68663         functions can be used without declaring them, or that you can
68664         exit with status -1.
68665         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68666
68667 2006-04-24  Karl Berry  <karl@gnu.org>
68668
68669         * config/srclist.txt (longdouble.m4): sync lost.
68670
68671 2006-04-24  Eric Blake  <ebb9@byu.net>
68672
68673         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68674
68675 2006-04-24  Bruno Haible  <bruno@clisp.org>
68676
68677         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68678         poll() implementation in AIX.
68679         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68680
68681 2006-04-24  Bruno Haible  <bruno@clisp.org>
68682
68683         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68684         assigned exactly once.
68685
68686 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68687             Bruno Haible  <bruno@clisp.org>
68688
68689         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68690         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68691         for AM_CPPFLAGS.
68692
68693 2006-04-23  Bruno Haible  <bruno@clisp.org>
68694
68695         * modules/copy-file: Depend on unistd.
68696         * modules/execute: Likewise.
68697         * modules/fatal-signal: Likewise.
68698         * modules/findprog: Likewise.
68699         * modules/mkdtemp : Likewise.
68700         * modules/pipe: Likewise.
68701         * modules/wait-process: Likewise.
68702
68703 2006-04-23  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68706         condition was already detected.
68707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68708
68709 2006-04-23  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/copy-file.c: Include <unistd.h> unconditionally.
68712         * lib/execute.c: Likewise.
68713         * lib/fatal-signal.c: Likewise.
68714         * lib/findprog.c: Likewise.
68715         * lib/mkdtemp.c: Likewise.
68716         * lib/pipe.h: Likewise.
68717         * lib/pipe.c: Likewise.
68718         * lib/wait-process.h: Likewise.
68719
68720 2006-04-23  Bruno Haible  <bruno@clisp.org>
68721
68722         * gnulib-tool (func_usage): Fix --import description. Document
68723         --update.
68724         (func_import): Create temporary file in a temporary directory, if
68725         --dry-run is specified. Silence errors from 'grep' when there are no
68726         m4 files in $m4dir.
68727         (func_create_testdir): Silence errors from 'grep' when there are no
68728         m4 files in $m4dir.
68729         Reported by Karl Berry <karl@freefriends.org>.
68730
68731 2006-04-20  Bruno Haible  <bruno@clisp.org>
68732
68733         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68734         one argument, so that the code will be portable to Autoconf 2.60.
68735         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68737         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68738
68739 2006-04-19  Derek Price  <derek@ximbiot.com>
68740             Eric Blake  <ebb9@byu.net>
68741
68742         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68743         rather than "/full/path.h".  Update comment to match.  Shorten &
68744         generalize m4_translit call via AS_TR_CPP.
68745
68746 2006-04-19  Derek Price  <derek@ximbiot.com>
68747             Eric Blake  <ebb9@byu.net>
68748
68749         * lib/inttypes.h: Correct grammar in comment.
68750
68751 2006-04-18  Derek Price  <derek@ximbiot.com>
68752             Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         * modules/inttypes: New file.
68755         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68756
68757 2006-04-18  Derek Price  <derek@ximbiot.com>
68758             Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68761         New files.
68762
68763 2006-04-18  Derek Price  <derek@ximbiot.com>
68764             Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * lib/inttypes.h: New file.
68767         * lib/strtoimax.c: Assume <inttypes.h>.
68768
68769 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68772         isn't mounted.  Problem reported by Kir Kolyshkin.
68773
68774 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68777         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68778         Derek R. Price.
68779         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68780         implementation.
68781
68782 2006-04-12  Eric Blake  <ebb9@byu.net>
68783
68784         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68785         is now done automatically by the corresponding Autoconf macro.
68786
68787 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68790         time_r.h.
68791
68792 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         Merge regex changes from libc, removing some of our
68795         POSIX-conformance changes that were rejected and redoing them in a
68796         less-intrusive way.
68797
68798         * lib/regcomp.c (re_compile_internal, init_dfa):
68799         Length arg is now size_t, not Idx.  All uses changed.
68800         (peek_token): Forward decl now says internal_function.
68801         (__re_error_msgid, __re_error_msgid_idx):
68802         Now static rather than extern with attribute_hidden.
68803         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68804         For some reason libc prefers K&R style defns for external functions.
68805         (regerror) [!defined _LIBC]: Likewise.
68806         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68807         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68808         (build_range_exp, build_collating_symbol):
68809         Use K&R-style defn.
68810         (re_compile_fastmap): Use '\0' to memset, not 0.
68811         (utf8_sb_map): Make the calculations more obvious.
68812         (init_dfa, parse_bracket_exp, build_charclass_op):
68813         Call calloc and cast result, as glibc does.
68814         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68815         (build_range_exp, build_collating_symbol):
68816         Now internal functions.
68817
68818         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68819
68820         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68821         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68822         Don't depend on VMS; depend on __VMS instead, for POSIX
68823         namespace cleanness.
68824         (regoff_t): Define to ssize_t, not long int.
68825
68826         Remove the REG_ macros named below.  Instead, make the old names
68827         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68828         __USE_GNU_REGEX.
68829         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68830         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68831         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68832         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68833         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68834         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68835         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68836         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68837         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68838         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68839         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68840         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68841         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68842         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68843         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68844         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68845         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68846         (REG_NREGS):
68847         Remove.  All uses replaced by the old RE_* names.
68848         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68849         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68850         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68851         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68852         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68853         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68854         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68855         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68856         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68857         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68858         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68859         Don't bother having these macros be independent of each others'
68860         values, since they no longer exist in the POSIX name space.
68861
68862         Rename the following member names back to their old names,
68863         unless !__USE_GNU_REGEX.  All uses changed back.
68864         (buffer): Renamed from re_buffer.
68865         (allocated): Renamed from re_allocated.
68866         (used): Renamed from re_used.
68867         (syntax): Renamed from re_syntax.
68868         (fastmap): Renamed from re_fastmap.
68869         (translate): Renamed from re_translate.
68870         (can_be_null): Renamed from re_can_be_null.
68871         (regs_allocated): Renamed from re_regs_allocated.
68872         (fastmap_accurate): Renamed from re_fastmap_accurate.
68873         (no_sub): Renamed from re_no_sub.
68874         (not_bol): Renamed from re_not_bol.
68875         (not_eol): Renamed from re_not_eol.
68876         (newline_anchor): Renamed from re_newline_anchor.
68877         (num_regs): Renamed from rm_num_regs.
68878         (start): Renamed from rm_start.
68879         (end): Renamed from rm_end.
68880
68881         (free_state): Move up a bit.
68882
68883         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68884         #define to be empty.
68885         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68886         when that is what is intended.
68887         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68888         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68889         (MAX): New macro.
68890         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68891         All uses changed back to re_malloc, etc.  It's now the caller's
68892         responsibility to check for overflow; all callers changed.
68893         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68894         (re_x2nrealloc): Remove.
68895         (free_state): Remove decl.
68896
68897         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68898         (re_set_registers, re_exec):
68899         Use K&R-style defn.
68900
68901         2006-01-31  Roland McGrath  <roland@redhat.com>
68902
68903         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68904         Reported by Mike Frysinger <vapier@gentoo.org>.
68905
68906         2006-01-15  Andreas Jaeger  <aj@suse.de>
68907
68908         [BZ #1950]
68909         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68910         build_wcs_upper_buffer change.
68911         (build_wcs_upper_buffer): Change return type.
68912
68913         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68914
68915         * lib/regex_internal.h: Include <stdint.h> if available.
68916
68917         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68918
68919         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68920
68921         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68922
68923         * lib/regcomp.c: Adjust for changed secondary hash function.
68924
68925         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68926
68927         * lib/regex.h: Pretty printing.
68928         Clean up namespace a bit.
68929
68930         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68931
68932         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68933         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68934
68935         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68936                     Ulrich Drepper  <drepper@redhat.com>
68937
68938         [BZ #1302]
68939         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68940         changed.
68941         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68942
68943         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68944
68945         [BZ #281]
68946         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68947         * lib/regcomp.c: Remove unnecessary uses of
68948         unsigned RE_TRANSLATE_TYPE.
68949         * lib/regex_internal.h: Likewise.
68950         * lib/regex_internal.c: Likewise.
68951         * lib/regexec.c: Likewise.
68952         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68953
68954         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68955
68956         * lib/regexec.c (find_recover_state): Remove unnecessary
68957         initialization.
68958         (transit_state_bkref): Make DFA a const pointer.
68959         (get_subexp): Likewise.
68960         (check_arrival): Likewise.
68961         (update_cur_sifted_state): Likewise.
68962         (re_search_internal): Likewise.
68963         (prune_impossible_nodes): Likewise.
68964         (acquire_init_state_context): Likewise.
68965         (proceed_next_node): Likewise.
68966         (set_regs): Likewise.
68967         (free_fail_stack_return): Likewise.
68968         (check_arrival_expand_ecl): Mark DFA parameter as const.
68969         (check_arrival_expand_ecl_sub): Likewise.
68970         (check_subexp_limits): Likewise.
68971         (sub_epsilon_src_nodes):  Likewise.
68972         (add_epsilon_src_nodes):  Likewise.
68973         (merge_state_array): Likewise.
68974         (update_regs): Likewise.
68975         (build_trtable): Likewise.
68976         (sift_states_backward): Mark MCTX parameter as const.
68977         (build_sifted_states): Likewise.
68978         (update_cur_sifted_state): Likewise.
68979         (sift_states_mkref): Likewise.
68980         (check_arrival_expand_ecl): Mark eclosure as const.
68981         (check_dst_limits_calc_pos_1): Likewise.
68982         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68983         pointer.
68984
68985         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68986
68987         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68988         (transit_state_sb): Likewise.
68989         (transit_state_mb): Likewise.
68990         (sift_states_iter_mb): Likewise.
68991         (check_arrival_add_next_nodes): Likewise.
68992         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68993         [_LIBC] (re_search_2_stub): Use mempcpy.
68994
68995         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68996         mbrtowc for very simple UTF-8 case.
68997
68998         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68999         a pointer-to-const.
69000         (re_acquire_state_context): Likewise.
69001         * lib/regex_internal.h: Adjust prototypes.
69002
69003         * lib/regex.c: Prevent using C++ compilers.
69004
69005         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69006         (re_acquire_state_context): Likewise.
69007
69008 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * modules/regex (Depends-on): Add ssize_t.
69011
69012 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69013
69014         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69015         translation table.
69016
69017 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69020
69021 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69022             Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69025         <sys/types.h> and <inttypes.h>.
69026
69027 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69028
69029         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69030         `__error_t_defined', so argp.h will not typedef the former.
69031
69032 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69035         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69036         glibc names.  Even if glibc is changed to conform to POSIX, the
69037         traditional names will be available anyway, since regex depends on
69038         the extensions module.  Also, fix a longstanding typo in the
69039         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69040         reported by Emanuele Giaquinta.  Also, change sense of cached
69041         variable, so that the message makes sense.
69042
69043 2006-03-24  Simon Josefsson  <jas@extundo.com>
69044
69045         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69046         including some doc fixes.
69047         (base64_encode_alloc): Fix +1 bug on allocation failures.
69048
69049 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69050
69051         * lib/base64.c (base64_encode): Do not read past end of array with
69052         unsanitized input on systems with CHAR_BIT > 8.
69053
69054 2006-03-24  Eric Blake  <ebb9@byu.net>
69055
69056         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69057
69058 2006-03-22  Karl Berry  <karl@gnu.org>
69059
69060         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69061         * config/srclistvars.sh (COREUTILS): new var.
69062
69063 2006-03-17  Jim Meyering  <jim@meyering.net>
69064
69065         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69066         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69067
69068 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69071         no longer needs it.  Instead, check that regoff_t is as least
69072         as wide as ptrdiff_t.
69073
69074         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69075         so that our regex.h stays compatible with the installed regex.
69076         This is helpful for installers who configure --without-included-regex.
69077         Problem reported by Emanuele Giaquinta.
69078
69079 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69082         Typedef to long int, not to off_, as POSIX will likely change
69083         in that direction.
69084
69085 2006-03-15  Eric Blake  <ebb9@byu.net>
69086
69087         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69088
69089 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69090
69091         * lib/argp-help.c (validate_uparams): Fix typo
69092         * lib/argp-parse.c (argp_default_options): Consistently begin help
69093         messages with a lowercase letter.
69094
69095 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69096
69097         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69098         overrun buffers and shouldn't be used (much as gets shouldn't be
69099         used).
69100         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69101
69102 2006-03-08  Simon Josefsson  <jas@extundo.com>
69103
69104         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69105         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69106
69107 2006-03-08  Simon Josefsson  <jas@extundo.com>
69108
69109         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69110         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69111
69112 2006-03-08  Simon Josefsson  <jas@extundo.com>
69113
69114         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69115         signal that configure disabled the device.
69116
69117 2006-03-08  Simon Josefsson  <jas@extundo.com>
69118
69119         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69120         languages.
69121
69122 2006-03-07  Simon Josefsson  <jas@extundo.com>
69123
69124         * modules/getopt (Depends-on): Add unistd.
69125
69126         * modules/unistd: New file.
69127
69128 2006-03-07  Simon Josefsson  <jas@extundo.com>
69129
69130         * modules/gc-random: New file.
69131
69132 2006-03-07  Simon Josefsson  <jas@extundo.com>
69133
69134         * m4/unistd_h.m4: New file.
69135
69136 2006-03-07  Simon Josefsson  <jas@extundo.com>
69137
69138         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69139         test to be side-effect free by storing the result in the cache
69140         variable gl_cv_lib_readline, and moving the assignment of
69141         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69142         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69143
69144 2006-03-07  Simon Josefsson  <jas@extundo.com>
69145
69146         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69147         error on missing devices (the functions will return an error).
69148
69149         * m4/gc.m4: Move random stuff to gc-random.m4
69150
69151 2006-03-07  Simon Josefsson  <jas@extundo.com>
69152
69153         * lib/unistd_.h: New file.
69154
69155 2006-03-07  Simon Josefsson  <jas@extundo.com>
69156
69157         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69158
69159 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69162         Problem reported by Juan Manuel Guerrero.
69163
69164 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69167         the unistd module.
69168         * lib/getlogin_r.c: Likewise.
69169         * lib/getlogin_r.h: Likewise.
69170         * lib/glob.c: Likewise.
69171         * lib/pagealign_alloc.c: Likewise.
69172         * lib/unistd_.h: Remove; no longer needed.
69173
69174 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69175
69176         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69177         Add unistd.
69178         * modules/c-stack (Depends-on): Add unistd.
69179         * modules/getlogin_r: Likewise.
69180         * modules/glob: Likewise.
69181         * modules/pagealign_alloc: Likewise.
69182         * modules/unistd (Files): Remove lib/unistd_.h.
69183         (EXTRA_DIST): Remove.
69184         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69185         need unistd_.h.
69186         (MOSTLYCLEANFILES): Remove unistd.h-t.
69187
69188 2006-03-03  Simon Josefsson  <jas@extundo.com>
69189
69190         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69191
69192 2006-03-03  Simon Josefsson  <jas@extundo.com>
69193
69194         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69195         libidn and bison.
69196
69197 2006-03-03  Simon Josefsson  <jas@extundo.com>
69198
69199         * build-aux/maint.mk: Add indent target.
69200
69201 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69202
69203         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69204         our replacement poll.h in any case, to avoid a differing
69205         declaration from a system header.  Seen on AIX.
69206
69207 2006-03-01  Simon Josefsson  <jas@extundo.com>
69208
69209         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69210         <kasal@ucw.cz>.
69211
69212 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * modules/gettime (Depends-on): Add extensions module.
69215         * modules/nanosleep (Depends-on): Likewise.
69216         * modules/settime (Depends-on): Likewise.
69217
69218 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69219
69220         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69221         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69222         pedantically.
69223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69224         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69225
69226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69227         not "==".  Reported by Ralf Wildenhues.
69228
69229 2006-03-01  Karl Berry  <karl@gnu.org>
69230
69231         * doc/Copyright/request-*: new files, synced from gnuorg.
69232
69233 2006-03-01  Karl Berry  <karl@gnu.org>
69234
69235         * config/srclist.txt (Copyright/*): new entries.
69236
69237 2006-02-28  Simon Josefsson  <jas@extundo.com>
69238
69239         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69240
69241 2006-02-27  Simon Josefsson  <jas@extundo.com>
69242
69243         * lib/base64.h: Indent #define's.  From Jim Meyering
69244         <jim@meyering.net>.
69245
69246 2006-02-27  Jim Meyering  <jim@meyering.net>
69247
69248         Revert the change of 2006-02-24, so these files can continue
69249         to be sync'd from gettext.
69250         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69251         of `config.h'.
69252
69253 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69254
69255         * modules/intprops: New file.
69256         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69257         Add intprops.
69258         * modules/getloadavg (Files): Remove lib/intprops.h.
69259         (Depends-on): Add intprops.
69260         * modules/human: Likewise.
69261         * modules/inttostr: Likewise.
69262         * modules/openat: Likewise.
69263         * modules/sig2str: Likewise.
69264         * modules/userspec: Likewise.
69265         * modules/utimecmp: Likewise.
69266         * modules/xnanosleep: Likewise.
69267         * modules/xstrtol: Likewise.
69268
69269 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69270
69271         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69272         * modules/lock-tests (TESTS): Use $(EXEEXT).
69273         * modules/tls-tests: Likewise.
69274         * modules/argp-tests: Likewise.
69275         (check_PROGRAMS): New var, replacing...
69276         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69277
69278 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69279
69280         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69281         `config.h'.
69282
69283 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69286
69287 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69288
69289         Sync from coreutils.
69290         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69291         gl_CHDIR_SAFER.
69292
69293 2006-02-22  Jim Meyering  <jim@meyering.net>
69294
69295         Sync from coreutils.
69296         * m4/chdir-safer.m4: New file.
69297
69298 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69301         AT_FDCWD exceeds INT_MAX.
69302         * lib/openat.h (AT_FDCWD): Likewise.
69303
69304 2006-02-17  Eric Blake  <address@hidden>
69305
69306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69307
69308 2006-02-16  Simon Josefsson  <jas@extundo.com>
69309
69310         * modules/getaddrinfo (Depends-on): Add sys_socket.
69311
69312 2006-02-15  Simon Josefsson  <jas@extundo.com>
69313
69314         * build-aux/maint.mk: Add dsyntax-check rule.
69315
69316 2006-02-15  Eric Blake  <ebb9@byu.net>
69317
69318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69319         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69320         'present but cannot compile' warnings on cygwin.
69321         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69322         use ws2tcpip.h if sys/socket.h works.
69323         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69324         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69325
69326 2006-02-14  Simon Josefsson  <jas@extundo.com>
69327
69328         * modules/maintainer-makefile (Files): Rename.
69329
69330         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69331         and (the local) Makefile.cfg to maint-cfg.mk.
69332
69333         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69334         to the latter.
69335
69336         * modules/maintainer-makefile: New module.
69337
69338         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69339         severaly stripped to make it possible to build it up from scratch
69340         with reliable tests.
69341
69342         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69343         fixes to permit overriding the default actions when configure and
69344         makefile are not available.
69345
69346 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         Sync from coreutils.
69349         * modules/lstat (Depends-on): Don't depend on xalloc.
69350         (License): Change from GPL to LGPL, since this is now simply a
69351         replacement for a libc function.
69352
69353 2006-02-14  Jim Meyering  <jim@meyering.net>
69354
69355         Sync from coreutils.
69356
69357         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69358         failure on deficient systems, and simplify gnulib lgpl dependencies.
69359         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69360         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69361
69362         * lib/xalloc-die.c: Remove unused definition of N_.
69363
69364 2006-02-14  Jim Meyering  <jim@meyering.net>
69365
69366         Sync from coreutils.
69367         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69368         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69369         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69370         double-quote uses of that variable, to accommodate the rare case in
69371         which getmntent is available in none of the libraries checked.  This
69372         happens at least on FreeBSD 5.0.
69373
69374 2006-02-13  Simon Josefsson  <jas@extundo.com>
69375
69376         * gnulib-tool (Usage): Fix --import, from
69377         karl@freefriends.org (Karl Berry).
69378
69379 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69380
69381         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69382
69383 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69384
69385         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69386         "autoupdate" on 2005-12-12.
69387
69388 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * modules/closeout (Depends-on): Remove atexit.
69391
69392 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69395         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69396
69397 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69400         __EXTENSIONS__ if this causes compilation to fail.  Problem
69401         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69402         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69403
69404 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69407         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69409         All uses changed.
69410
69411 2006-01-26  Simon Josefsson  <jas@extundo.com>
69412
69413         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69414         prototype is visible on mingw32.
69415
69416         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69417         for mingw32.
69418
69419         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69420         mingw32).
69421
69422 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69425         attempt to open for write; this always fails, at least on POSIX
69426         hosts.  This reinstates the 2006-01-09 change, which was
69427         inadvertently removed.
69428
69429 2006-01-26  Bruno Haible  <bruno@clisp.org>
69430
69431         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69432         Reported by Paul Eggert.
69433
69434 2006-01-26  Bruno Haible  <bruno@clisp.org>
69435             Paul Eggert  <eggert@cs.ucla.edu>
69436
69437         * lib/stdbool_.h (_Bool)
69438         [(! (defined __cplusplus || defined __BEOS__)
69439           && !defined __GNUC__
69440           && !(defined __HP_cc || defined __xlc__
69441                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69442                || defined __sgi))]:
69443         #define to signed char in these cases too; this simplifies
69444         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69445         etc., separately) and makes it more conservative.
69446
69447 2006-01-25  Simon Josefsson  <jas@extundo.com>
69448
69449         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69450         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69451         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69452
69453 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69454
69455         * lib/argp-namefrob.h: Bugfix. Remove stray #
69456
69457 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69460         so that we test the test.
69461         Check for yet another HP-UX cc bug involving *bool |= bool.
69462
69463 2006-01-25  Karl Berry  <karl@gnu.org>
69464
69465         * config/srclist.txt (vasnprintf.c): sync lost.
69466
69467 2006-01-25  Jim Meyering  <jim@meyering.net>
69468
69469         Sync from the stable (b5) branch of coreutils:
69470
69471         * lib/fts.c (fts_children): Don't let close() clobber errno from
69472         failed fchdir().
69473
69474         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69475         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69476         a dangling symlink.  That can also happen at least for ELOOP.
69477         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69478         FYI, this bug predates the inclusion of fts.c in coreutils.
69479
69480         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69481         in their own block, so pre-c99 compilers don't object.
69482
69483         Avoid the double-free (first in fts_read, second in fts_close) that
69484         would occur when an `active' directory is made inaccessible (e.g.,
69485         via chmod a-x) during a traversal.
69486         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69487         before returning.  Reproduce this failure by
69488         mkdir -p a/b; cd a; chmod a-x . b
69489         Reported by Stavros Passas.
69490
69491 2006-01-25  Jim Meyering  <jim@meyering.net>
69492
69493         * lib/fileblocks.c: Remove more useless parentheses.
69494         * lib/readutmp.h: Likewise.
69495
69496 2006-01-25  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69499         warnings.
69500         Reported by Paul Eggert.
69501
69502 2006-01-25  Bruno Haible  <bruno@clisp.org>
69503
69504         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69505         rid of a trap command. For Solaris sh.
69506         Reported by Mark D. Baushke <mdb@gnu.org>.
69507
69508 2006-01-24  Simon Josefsson  <jas@extundo.com>
69509
69510         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69511         Bruno.
69512
69513 2006-01-24  Karl Berry  <karl@gnu.org>
69514
69515         * config/srclist.txt (argp-namefrob.h): sync lost.
69516
69517 2006-01-24  Jim Meyering  <jim@meyering.net>
69518
69519         * modules/openat (Files): Add lib/intprops.h.
69520         From Mark D. Baushke.
69521
69522 2006-01-24  Jim Meyering  <jim@meyering.net>
69523
69524         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69525         Reported by Mark D. Baushke.
69526
69527 2006-01-24  Jim Meyering  <jim@meyering.net>
69528
69529         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69530
69531 2006-01-24  Bruno Haible  <bruno@clisp.org>
69532
69533         * modules/strnlen (Maintainer): Change from glibc to all.
69534
69535 2006-01-24  Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69538         Patch by Paul Eggert.
69539
69540 2006-01-24  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69543         already has it.
69544         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69545         2005-11-26.
69546
69547         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69548         'signed char' to avoid problems with the built-in _Bool type.
69549         Reported by Paul Eggert on 2005-11-26.
69550
69551 2006-01-24  Bruno Haible  <bruno@clisp.org>
69552
69553         * gnulib-tool (func_import): Avoid constructing complicated sed
69554         expressions inside backquote.
69555         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69556
69557 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69558
69559         These changes imported from libc.
69560         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69561         test and two separate function calls.
69562         * lib/strndup.c (__strndup): Add libc_hidden_def.
69563
69564 2006-01-23  Simon Josefsson  <jas@extundo.com>
69565
69566         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69567         Remove the test_*_SOURCES variable: automake infers it by default.
69568         * modules/tls-tests: Likewise.
69569
69570 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         Work around porting bugs reported by Dieter in
69573         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69574         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69575         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69576         Include "getopt.h" first, to check interface.
69577         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69578         !HAVE_DECL_GETENV.
69579         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69580         (__strndup): Revert to K&R-style function dfns, the glibc style.
69581         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69582         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69583         Include strnlen.h first, to get prototype properly.
69584         (strnlen): Renamed from __strnlen.
69585         Remove weak alias.
69586
69587 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69590
69591 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69592
69593         * config/srclist.txt: Adjust to reflect glibc reorganization.
69594         This affects only comments.
69595
69596 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69597
69598          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69599          Reported by Bruce Korb <bkorb@gnu.org>.
69600
69601 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69604         to pacify gcc -Wswitch-default.
69605
69606 2006-01-22  Bruno Haible  <bruno@clisp.org>
69607
69608         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69609         temporary buffer for sprintf, take into account the precision also
69610         for 'd', 'i', 'u', 'o', 'x', 'X'.
69611
69612 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69613
69614         * modules/argp-tests: New module
69615         * tests/test-argp.c: New file
69616         * tests/test-argp-2.sh: New file
69617
69618 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69619
69620         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69621         (__argp_base_name): Removed
69622         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69623         typo.
69624         (__argp_base_name): Provide macro definition or extern declaration
69625         depending on the configuration
69626
69627 2006-01-20  Simon Josefsson  <jas@extundo.com>
69628
69629         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69630
69631 2006-01-20  Simon Josefsson  <jas@extundo.com>
69632
69633         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69634
69635 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69638         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69639         Suggested by Bruno Haible.
69640
69641 2006-01-20  Karl Berry  <karl@gnu.org>
69642
69643         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69644         until changes propagate, I guess.
69645
69646 2006-01-19  Simon Josefsson  <jas@extundo.com>
69647
69648         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69649
69650 2006-01-19  Simon Josefsson  <jas@extundo.com>
69651
69652         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69653
69654 2006-01-19  Simon Josefsson  <jas@extundo.com>
69655
69656         * gnulib-tool: Set check_PROGRAMS.
69657
69658         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69659         modules/des-tests, modules/gc-arcfour-tests,
69660         modules/gc-arctwo-tests, modules/gc-des-tests,
69661         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69662         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69663         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69664         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69665         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69666         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69667         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69668         test_*_SOURCES.
69669
69670 2006-01-18  Simon Josefsson  <jas@extundo.com>
69671
69672         * modules/socklen (Depends-on): Depend on sys_socket.
69673
69674 2006-01-18  Simon Josefsson  <jas@extundo.com>
69675
69676         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69677         modules/des-tests, modules/gc-arcfour-tests,
69678         modules/gc-arctwo-tests, modules/gc-des-tests,
69679         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69680         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69681         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69682         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69683         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69684         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69685         $(EXEEXT) to automake TESTS variable, for mingw32.
69686
69687 2006-01-17  Simon Josefsson  <jas@extundo.com>
69688
69689         * modules/socklen (Include): Need sys/socket.h.
69690
69691 2006-01-17  Bruno Haible  <bruno@clisp.org>
69692
69693         * modules/ssize_t (Include): Add <sys/types.h>.
69694
69695 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69698         it's not portable and it doesn't work with cross-compiles.
69699         Problem reported by Bruno Haible.  Fix missing-$ typo in
69700         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69701         -zignore from being used with Sun's C compiler.
69702
69703 2006-01-12  Simon Josefsson  <jas@extundo.com>
69704
69705         * lib/base64.c: Fix warning, reported by Bruno Haible
69706         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69707
69708 2006-01-12  Bruno Haible  <bruno@clisp.org>
69709
69710         * modules/ldd: New file.
69711         * build-aux/ldd.sh.in: New file.
69712         * MODULES.html.sh (Support for building libraries and executables): Add
69713         ldd.
69714
69715 2006-01-12  Bruno Haible  <bruno@clisp.org>
69716
69717         * m4/ldd.m4: New file.
69718
69719 2006-01-12  Bruno Haible  <bruno@clisp.org>
69720
69721         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69722         endless loop while replacing $auxdir with build-aux.
69723
69724 2006-01-11  Simon Josefsson  <jas@extundo.com>
69725
69726         * lib/stdint_.h (SIZE_MAX): Add missing (.
69727
69728 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         Sync from coreutils.
69731         * lib/md5.c: Fix commentary typos.
69732         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69733         * lib/md5.h (__attribute__): Remove; unused.
69734         * lib/sha1.c: Fix commentary to match md5 better.
69735         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69736         so that we don't need to worry about alignment.  All uses changed.
69737         This merges the 2005-10-28 md5 change into sha1.
69738
69739 2006-01-11  Jim Meyering  <jim@meyering.net>
69740
69741         Sync from coreutils.
69742         * lib/md5.c (OP): Fix spacing.
69743
69744 2006-01-11  Bruno Haible  <bruno@clisp.org>
69745
69746         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69747         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69748         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69749
69750 2006-01-11  Bruno Haible  <bruno@clisp.org>
69751
69752         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69753         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69754         the "early" section as well.
69755
69756 2006-01-11  Bruno Haible  <bruno@clisp.org>
69757
69758         Avoid "ar: no archive members specified" error on MacOS X.
69759         * gnulib-tool (func_modules_add_dummy): New function.
69760         (func_import, func_create_testdir): Invoke it.
69761
69762 2006-01-11  Bruno Haible  <bruno@clisp.org>
69763
69764         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69765         with $auxdir in AC_CONFIG_FILES statements.
69766
69767 2006-01-11  Bruno Haible  <bruno@clisp.org>
69768
69769         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69770         Initialize also noinst_HEADERS to empty.
69771
69772 2006-01-11  Bruno Haible  <bruno@clisp.org>
69773
69774         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69775         variables.
69776         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69777         autoreconf.
69778
69779 2006-01-11  Bruno Haible  <bruno@clisp.org>
69780
69781         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69782         overridable by the user.
69783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69784
69785 2006-01-10  Simon Josefsson  <jas@extundo.com>
69786
69787         * modules/sys_socket: New file.
69788
69789 2006-01-10  Simon Josefsson  <jas@extundo.com>
69790
69791         * m4/sys_socket_h.m4: New file.
69792
69793 2006-01-10  Simon Josefsson  <jas@extundo.com>
69794
69795         * lib/socket_.h: New file.
69796
69797 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * modules/readutmp (Maintainer): Add myself.
69800
69801 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69804         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69805         People who are still concerned with buggy memcmp implementations
69806         can invoke gl_FUNC_MEMCMP themselves.
69807
69808 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * lib/regex_internal.h (BITSET_WORD_BITS):
69811         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69812         preprocessor mishandles large unsigned values as if they were signed.
69813         Problem reported by Claudio Fontana in
69814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69815
69816 2006-01-10  Jim Meyering  <jim@meyering.net>
69817
69818         Avoid the double-free (first in fts_read, second in fts_close) that
69819         would occur when an `active' directory is made inaccessible (e.g.,
69820         via chmod a-x) during a traversal.
69821         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69822         before returning.  Reproduce this failure by
69823         mkdir -p a/b; cd a; chmod a-x . b
69824         Reported by Stavros Passas.
69825
69826         Sync from coreutils.
69827         * lib/sha1.c: Tweak grammar in a comment.
69828
69829 2006-01-10  Jim Meyering  <jim@meyering.net>
69830
69831         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69832         Patch by Joerg Sonnenberger.
69833
69834 2006-01-10  Bruno Haible  <bruno@clisp.org>
69835
69836         * modules/readutmp: Depend on module free.
69837         * modules/strtok_r: Depend on module restrict.
69838
69839 2006-01-10  Bruno Haible  <bruno@clisp.org>
69840
69841         * modules/gettext (configure.ac): Add an invocation of
69842         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69843
69844 2006-01-10  Bruno Haible  <bruno@clisp.org>
69845
69846         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69847         Reported by Werner Lemberg <wl@gnu.org>.
69848
69849 2006-01-10  Bruno Haible  <bruno@clisp.org>
69850
69851         * lib/localcharset.c: Update from GNU gettext.
69852
69853 2006-01-10  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/argp.h (__const): Remove macro. Use const instead.
69856         * lib/argp-fmtstream.h (__const): Likewise.
69857         * lib/glob_.h (__const): Remove macro.
69858         * lib/glob-libc.h: Use const instead of __const.
69859
69860 2006-01-10  Bruno Haible  <bruno@clisp.org>
69861
69862         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69863         variable.
69864         Needed to avoid an automake error regarding the 'gettext' module.
69865
69866 2006-01-09  Simon Josefsson  <jas@extundo.com>
69867
69868         * modules/inet_ntop (Depends-on): Add restrict.
69869
69870 2006-01-09  Simon Josefsson  <jas@extundo.com>
69871
69872         * modules/gc-rijndael-tests (License): Put under LGPL.
69873
69874         * modules/gc-des-tests (License): Likewise.
69875
69876         * modules/gc-arcfour-tests (License): Likewise.
69877
69878         * modules/gc-arctwo-tests (License): Likewise.
69879
69880         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69881
69882         * modules/gc-hmac-sha1-tests (Files): Likewise.
69883
69884         * modules/gc-hmac-md5-tests (License): Likewise.
69885
69886         * modules/gc-sha1-tests (License): Likewise.
69887
69888         * modules/gc-md5-tests (License): Likewise.
69889
69890         * modules/gc-md4-tests (License): Likewise.
69891
69892         * modules/gc-md2-tests (License): Likewise.
69893
69894         * modules/gc-tests (License): Likewise.
69895
69896         * modules/des-tests (License): Likewise.
69897
69898         * modules/md4-tests (License): Likewise.
69899
69900         * modules/md2-tests (License): Likewise.
69901
69902 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         Sync from coreutils:
69905
69906         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69907         * modules/lib-ignore: New file.
69908         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69909         chdir-safer.m4, lchmod.m4.
69910         * modules/openat: Add mkdirat.c, openat-priv.h.
69911
69912 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         Sync from coreutils.
69915         * m4/lib-ignore.m4: New file.
69916         * m4/lchmod.m4: New file.
69917
69918 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         Sync from coreutils.
69921         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69922         for write access: POSIX says that must fail.
69923         * lib/fts.c (diropen): Likewise.
69924         * lib/save-cwd.c (save_cwd): Likewise.
69925         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69926         well, for minor improvements on hosts that lack O_DIRECTORY.
69927         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69928         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69929         Fall back on chown if open failed with EACCES.
69930
69931         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69932         Report an error at compile-time if only a 1-second nominal clock
69933         resolution is found.
69934
69935         * lib/lchmod.h: New file.
69936         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69937         (make_dir_parents): Use lchown rather than chown, and
69938         lchmod rather than chmod.
69939
69940         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69941         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69942         "proc" reported by n0dalus.
69943
69944         * lib/mountlist.c: Include <limits.h>.
69945         (dev_from_mount_options)
69946         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69947         New function.  It no longer assumes "dev=" has the System V meaning
69948         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69949         (read_file_system_list)
69950         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69951         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69952         dev= in that case.
69953
69954         * lib/posixtm.h (PDS_PRE_2000): New macro.
69955         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69956         allow_century.  All usages changed.  Reject dates outside the range
69957         1969-1999 if PDS_PRE_2000 is used.
69958
69959 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         Sync from coreutils.
69962         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69963         (Time of day items): Mention the possibility of leap seconds.
69964         Problem reported by Dr. David Alan Gilbert.
69965
69966 2006-01-09  Jim Meyering  <jim@meyering.net>
69967
69968         Sync from coreutils.
69969
69970         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69971
69972         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69973
69974         * lib/modechange.c (mode_compile): Reject an invalid mode string
69975         that starts with an octal digit.  From Andreas Gruenbacher.
69976
69977         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69978         and dup to open_safer and dup_safer, respectively.
69979         (openat_permissive): Fix typo in comment.
69980
69981         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69982         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69983         (_): Remove; no longer needed.
69984         (openat): Renamed from rpl_openat; no need for rpl_openat
69985         since openat.h renames openat for us.
69986         Replace most of the body with a call to openat_permissive,
69987         to avoid duplicate code.
69988         Port to (probably hypothetical) environments were mode_t is
69989         wider than int.
69990         (openat_permissive): Require mode arg, so that we can check
69991         types better.  Put it just after flags.  Change cwd failure
69992         indicator from pointer-to-bool to pointer-to-errno-value.
69993         All callers changed.
69994         Invoke openat_save_fail and/or openat_restore_fail if
69995         cwd_errno is null, so that openat can call us.
69996         (openat_permissive, fdopendir, fstatat, unlinkat):
69997         Simplify errno handling to avoid some duplicate code,
69998         as it's OK to set errno on success.
69999         * lib/openat.h: Revamp code so that function macros depend on
70000         __OPENAT_PREFIX only, not also on AT_FDCWD.
70001         (openat_ro): Remove.  Caller changed to use openat_permissive.
70002         (openat_permissive): Now a macro, if not a function.
70003         (openat_restore_fail, openat_save_fail): Now always functions,
70004         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70005
70006         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70007         and openat.c.
70008         * lib/mkdirat.c: Include openat-priv.h.
70009         Remove definitions of macros defined therein.
70010         * lib/openat.c: Likewise.
70011
70012         * lib/mkdirat.c (mkdirat): New file and function.
70013         * lib/openat.h (mkdirat): Declare.
70014
70015         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70016
70017         * lib/openat.h (openat_permissive): Declare.
70018         (openat_ro): Define.
70019
70020         * lib/openat.c (EXPECTED_ERRNO): New macro.
70021         (openat_permissive): New function -- used in remove.c rewrite.
70022         (all functions): Set errno just before returning, only if there
70023         was an actual failure.
70024         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70025
70026         Emulate openat-family functions using Linux's procfs, if possible.
70027         Idea and some code based on Ulrich Drepper's glibc changes.
70028
70029         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70030         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70031         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70032         before falling back on save_cwd and restore_cwd.
70033         (fdopendir, fstatat, unlinkat): Likewise.
70034
70035         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70036         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70037
70038         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70039         as second argument to va_arg.  Otherwise, some versions of gcc
70040         warn that `if this code is reached, the program will abort'.
70041
70042 2006-01-09  Jim Meyering  <jim@meyering.net>
70043
70044         Sync from coreutils.
70045         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70046         Require openat-priv.h.
70047
70048 2006-01-09  Bruno Haible  <bruno@clisp.org>
70049
70050         * modules/strnlen (Include): Use strnlen.h.
70051
70052 2006-01-09  Bruno Haible  <bruno@clisp.org>
70053
70054         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70055
70056 2006-01-09  Bruno Haible  <bruno@clisp.org>
70057
70058         * lib/sysexit_.h (EX_OK): New macro.
70059         Suggested by Martin Lambers <marlam@marlam.de>.
70060
70061 2006-01-09  Bruno Haible  <bruno@clisp.org>
70062
70063         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70064         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70065
70066 2006-01-09  Bruno Haible  <bruno@clisp.org>
70067
70068         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70069         numbers.
70070
70071 2006-01-09  Bruno Haible  <bruno@clisp.org>
70072
70073         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70074         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70075         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70076         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70077
70078 2006-01-09  Bruno Haible  <bruno@clisp.org>
70079
70080         * build-aux/javacomp.sh.in: New file, moved from lib/.
70081         * modules/javacomp-script (Files): Update.
70082         (configure.ac): Add AC_CONFIG_FILES invocation.
70083         (EXTRA_DIST): Remove variable.
70084
70085         * build-aux/javaexec.sh.in: New file, moved from lib/.
70086         * modules/javaexec (Files): Update.
70087         (configure.ac): Add AC_CONFIG_FILES invocation.
70088         (EXTRA_DIST): Remove javaexec.sh.in.
70089
70090         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70091         * modules/csharpcomp-script (Files): Update.
70092         (configure.ac): Add AC_CONFIG_FILES invocation.
70093         (EXTRA_DIST): Remove variable.
70094
70095         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70096         * modules/csharpexec (Files): Update.
70097         (configure.ac): Add AC_CONFIG_FILES invocation.
70098         (EXTRA_DIST): Remove csharpexec.sh.in.
70099
70100 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70101
70102         Sync from coreutils.
70103
70104         Add POSIX ACL support
70105         * lib/acl.h (copy_acl, set_acl): Add declarations.
70106         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70107         systems other than Linux.
70108         (chmod_or_fchmod): New function: use fchmod when possible,
70109         and chmod otherwise.
70110         (file_has_acl): Add a POSIX ACL implementation, with a
70111         Linux-specific subcase.
70112         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70113         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70114         acls are unsupported.
70115         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70116         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70117         are unsupported.
70118
70119 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70120
70121         Sync from coreutils.
70122         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70123
70124 2006-01-07  Bruno Haible  <bruno@clisp.org>
70125
70126         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70127         gl_EARLY.
70128
70129 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70130
70131         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70132         Problem reported for Mingw by Mark Junker.
70133
70134 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * README: Gnulib normally doesn't generate a tarball.
70137
70138 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70141         long int, not int, for nanosecond counts, so that people who are
70142         used to POSIX struct timespec won't be surprised.  Reported by Jim
70143         Meyering.
70144
70145 2005-12-28  Bruno Haible  <bruno@clisp.org>
70146
70147         * build-aux/config.rpath: Update from GNU gettext.
70148
70149 2005-12-16  Jim Meyering  <jim@meyering.net>
70150
70151         * modules/fprintftime: New module.
70152         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70153
70154 2005-12-16  Jim Meyering  <jim@meyering.net>
70155
70156         * m4/fprintftime.m4: New file.
70157
70158 2005-12-16  Jim Meyering  <jim@meyering.net>
70159
70160         * lib/fprintftime.c, lib/fprintftime.h: New files.
70161
70162 2005-12-15  Simon Josefsson  <jas@extundo.com>
70163
70164         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70165         new m4/socklen.m4.
70166
70167 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70168
70169         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70170         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70171
70172 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70173
70174         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70175         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70176         struct uparams is valid. Fall back to the default values if it is
70177         not.
70178
70179 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70180
70181         * modules/argp (Files): Add argp-pin.c
70182         (Depends-on): dirname
70183         (lib_SOURCES): Add argp-pin.c
70184
70185 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70186
70187         * m4/argp.m4:  Check if program_invocation_name and
70188         program_invocation_short_name are declared and define appropriate
70189         macros if they are not.
70190
70191 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70192
70193         * lib/argp-help.c (__argp_base_name): New function
70194         (__argp_short_program_name): Rewrite using __argp_base_name
70195         * lib/argp-namefrob.h: Define program_invocation_name and
70196         program_invocation_short_name if requested
70197         (__argp_base_name): Add prototype
70198         * lib/argp-parse.c (argp_def): Use gettext wrappers
70199         (argp_default_parser): Use __argp_base_name
70200         * lib/argp-pin.c: New file. Defines program_invocation_name and
70201         program_invocation_short_name on systems that lack them.
70202
70203 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70206         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70207         porting problem reported by Georg Schwarz in
70208         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70209
70210 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70213         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70214         porting problem reported by Georg Schwarz in
70215         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70216
70217 2005-12-05  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70220         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70221         Reported by Mark Junker <mjscod@gmx.de>.
70222
70223 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70224
70225         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70226         Use implementation from Albert Chin, with some
70227         comments/corrections by Stepan Kasal and myself.
70228
70229 2005-12-02  Bruno Haible  <bruno@clisp.org>
70230
70231         * gnulib-tool (func_import): Accept GPLed build tool modules when
70232         --lgpl is given.
70233         * modules/csharpcomp-script: New file.
70234         * modules/csharpcomp: Depend on it.
70235         * modules/javacomp-script: New file.
70236         * modules/javacomp: Depend on it.
70237         Suggested by Simon Josefsson.
70238
70239 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70242         statement, to work around an HP-UX 10.20 compiler bug reported by
70243         Peter O'Gorman.
70244
70245 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * modules/savedir (Depends-on): Add openat.
70248
70249 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70250
70251         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70252         (uintmax_t) [defined uintmax_t]: Do not declare.
70253         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70254         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70255         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70256         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70257         sake of portability to weird hosts that C allows (though we don't
70258         know of any practical examples).
70259
70260         * lib/savedir.h (fdsavedir): New decl.
70261         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70262         contains most of the former guts of savedir.
70263         (savedir): Use savedirstream.
70264         Include "openat.h".
70265
70266 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         * modules/obstack (Files): Add m4/ulonglong.m4.
70269         Problem reported by Davide Angelocola.
70270
70271 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70272
70273         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70274         coreutils no longer futzes with rounding modes.
70275
70276 2005-11-14  Jim Meyering  <jim@meyering.net>
70277
70278         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70279         replacement of mkstemp.
70280
70281 2005-11-10  Simon Josefsson  <jas@extundo.com>
70282
70283         * lib/readline.c: Remove EOL.
70284
70285 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * modules/gethrxtime (Depends-on): Add gettime.
70288
70289 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70292         or gettimeofday; no longer needed.
70293
70294 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70297         time business.
70298         (gethrxtime) [! (HAVE_NANOUPTIME
70299         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70300         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70301         our own approximation.
70302
70303 2005-11-08  Eric Blake  <ebb9@byu.net>
70304
70305         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70306
70307 2005-11-08  Eric Blake  <ebb9@byu.net>
70308
70309         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70310
70311 2005-11-04  Bruno Haible  <bruno@clisp.org>
70312
70313         * gnulib-tool: Implement --update mode.
70314
70315 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         Fix porting problem reported by Theodoros V. Kalamatianos.
70318         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70319         Don't assume that futimes failing means we must fail.
70320
70321 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70324         variables to suggest the intended function of the PATH_MAX check.
70325
70326 2005-10-30  Kean Johnston  <jkj@sco.com>
70327
70328         Trivial changes to support SCO systems.
70329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70330         as PATH_MAX.
70331         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70332         where __ptr is null when no I/O is pending.
70333
70334 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70335
70336         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70337         leave errno alone.  Problem reported by Dmitry V. Levin.
70338
70339 2005-10-28  Simon Josefsson  <jas@extundo.com>
70340
70341         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70342         Test more.
70343
70344         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70345
70346         * modules/md2, modules/md2-tests: New files.
70347
70348 2005-10-28  Simon Josefsson  <jas@extundo.com>
70349
70350         * m4/inet_ntop.m4: More tests.
70351
70352         * m4/gc-md2.m4, md2.m4: New file.
70353
70354 2005-10-28  Simon Josefsson  <jas@extundo.com>
70355
70356         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70357         "restrict" keywords, as per POSIX.  Protect the function
70358         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70359         Don't use K&R prototypes.  Check the sprintf return values.
70360         Re-define EAFNOSUPPORT if not present.  Indent.
70361
70362         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70363         suggested by Bruno Haible <bruno@clisp.org>.
70364
70365         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70366
70367         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70368
70369         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70370         libgcrypt).
70371
70372         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70373
70374         * lib/md2.h, lib/md2.c: New files.
70375
70376 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70379         errno alone.  Problem reported by Frederic Jolliton.
70380
70381 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70382
70383         * modules/verify (License): Change from GPL to LGPL.  This is a
70384         tiny module and there are apparently near-equivalents that are
70385         under the BSD license.
70386
70387 2005-10-24  Simon Josefsson  <jas@extundo.com>
70388
70389         * modules/sha1: Relicense to LGPL.
70390
70391 2005-10-24  Simon Josefsson  <jas@extundo.com>
70392
70393         * lib/md4.h: Shrink buffer size, now that we changed the type.
70394
70395 2005-10-23  Simon Josefsson  <jas@extundo.com>
70396
70397         * gnulib-tool (func_import): Fix --tests-base.
70398
70399 2005-10-22  Simon Josefsson  <jas@extundo.com>
70400
70401         * modules/arcfour (Depends-on): Need stdint.
70402
70403 2005-10-22  Simon Josefsson  <jas@extundo.com>
70404
70405         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70406         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70407
70408 2005-10-22  Simon Josefsson  <jas@extundo.com>
70409
70410         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70411         suggested by Bruno Haible <bruno@clisp.org>.
70412
70413 2005-10-22  Simon Josefsson  <jas@extundo.com>
70414
70415         * lib/crc.h: Include stddef.h, for size_t.
70416
70417 2005-10-22  Simon Josefsson  <jas@extundo.com>
70418
70419         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70420         arcfour_context struct (simplify test vector testing in GNU
70421         Shishi).
70422
70423 2005-10-21  Simon Josefsson  <jas@extundo.com>
70424
70425         * modules/des, modules/des-tests: New files.
70426
70427         * modules/gc-des, modules/gc-des-tests: New files.
70428
70429         * tests/test-des.c, tests/test-gc-des.c: New file.
70430
70431 2005-10-21  Simon Josefsson  <jas@extundo.com>
70432
70433         * modules/arctwo, modules/arctwo-tests: New files.
70434
70435         * tests/test-arctwo.c: New file.
70436
70437         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70438
70439         * tests/test-gc-arctwo.c: New file.
70440
70441 2005-10-21  Simon Josefsson  <jas@extundo.com>
70442
70443         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70444         Bruno Haible <bruno@clisp.org>.
70445
70446         * m4/gc-des.m4: New file.
70447
70448 2005-10-21  Simon Josefsson  <jas@extundo.com>
70449
70450         * m4/arctwo.m4: New file.
70451
70452         * m4/gc-arctwo.m4: New file.
70453
70454 2005-10-21  Simon Josefsson  <jas@extundo.com>
70455
70456         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70457         block.
70458
70459 2005-10-21  Simon Josefsson  <jas@extundo.com>
70460
70461         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70462         <bruno@clisp.org>.
70463
70464         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70465
70466         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70467         Bruno Haible <bruno@clisp.org>.
70468
70469         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70470         <bruno@clisp.org>.
70471
70472 2005-10-21  Simon Josefsson  <jas@extundo.com>
70473
70474         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70475
70476 2005-10-21  Simon Josefsson  <jas@extundo.com>
70477
70478         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70479
70480 2005-10-21  Simon Josefsson  <jas@extundo.com>
70481
70482         * lib/des.h, lib/des.c: New files.
70483
70484         * lib/gc-gnulib.c: Support DES.c
70485
70486 2005-10-21  Simon Josefsson  <jas@extundo.com>
70487
70488         * lib/arctwo.h, lib/arctwo.c: New files.
70489
70490         * lib/gc-gnulib.c: Support ARCTWO.
70491
70492 2005-10-21  Simon Josefsson  <jas@extundo.com>
70493
70494         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70495         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70496
70497 2005-10-21  Simon Josefsson  <jas@extundo.com>
70498
70499         * gnulib-tool (func_import, func_create_testdir): Define automake
70500         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70501         Makefile.am snippet),
70502         suggested by Bruno Haible <bruno@clisp.org>.
70503
70504         * modules/gc (Makefile.am): Use it.
70505
70506 2005-10-21  Bruno Haible  <bruno@clisp.org>
70507
70508         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70509         patch.
70510
70511 2005-10-19  Simon Josefsson  <jas@extundo.com>
70512
70513         * tests/test-gc-rijndael.c: New file.
70514
70515         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70516
70517 2005-10-19  Simon Josefsson  <jas@extundo.com>
70518
70519         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70520         interface too.
70521
70522 2005-10-19  Simon Josefsson  <jas@extundo.com>
70523
70524         * tests/test-gc-arcfour.c: New file.
70525
70526         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70527
70528 2005-10-19  Simon Josefsson  <jas@extundo.com>
70529
70530         * modules/gc-md4, modules/gc-md4-tests: New file.
70531
70532         * tests/test-gc-md4.c: New file.
70533
70534 2005-10-19  Simon Josefsson  <jas@extundo.com>
70535
70536         * m4/gc-md4.m4: New file.
70537
70538 2005-10-19  Simon Josefsson  <jas@extundo.com>
70539
70540         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70541         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70542         <kasal@ucw.cz>.
70543
70544 2005-10-19  Simon Josefsson  <jas@extundo.com>
70545
70546         * m4/gc-arcfour.m4: New file.
70547
70548         * m4/gc-rijndael.m4: New file.
70549
70550 2005-10-19  Simon Josefsson  <jas@extundo.com>
70551
70552         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70553
70554 2005-10-19  Simon Josefsson  <jas@extundo.com>
70555
70556         * lib/gc-gnulib.c: Support ARCFOUR.
70557
70558 2005-10-19  Simon Josefsson  <jas@extundo.com>
70559
70560         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70561         support.
70562
70563         * lib/gc.h: Add ECB enum type.
70564
70565         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70566
70567 2005-10-18  Simon Josefsson  <jas@extundo.com>
70568
70569         * tests/test-md5.c: New file.
70570
70571         * modules/md5-tests: New file.
70572
70573 2005-10-18  Simon Josefsson  <jas@extundo.com>
70574
70575         * tests/test-md4.c: New file.
70576
70577         * modules/md4, modules/md4-tests: New files.
70578
70579 2005-10-18  Simon Josefsson  <jas@extundo.com>
70580
70581         * m4/md4.m4: New file.
70582
70583 2005-10-18  Simon Josefsson  <jas@extundo.com>
70584
70585         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70586
70587 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70588
70589         * gnulib-tool (func_create_testdir): Omit the second check whether
70590         BUILT_SOURCES in nonempty.
70591
70592 2005-10-17  Simon Josefsson  <jas@extundo.com>
70593
70594         * tests/test-rijndael.c: New file.
70595
70596 2005-10-17  Simon Josefsson  <jas@extundo.com>
70597
70598         * modules/sha1: Depend on stdint instead of md5.
70599
70600         * modules/md5: Depend on stdint, remove uint32_t.
70601
70602 2005-10-17  Simon Josefsson  <jas@extundo.com>
70603
70604         * modules/gc-sha1-tests: New file.
70605
70606         * tests/test-gc-sha1.c: New file.
70607
70608 2005-10-17  Simon Josefsson  <jas@extundo.com>
70609
70610         * m4/md5.m4: Remove call to uint32_t.m4.
70611
70612 2005-10-17  Simon Josefsson  <jas@extundo.com>
70613
70614         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70615
70616         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70617         md5.h.
70618
70619         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70620
70621         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70622
70623 2005-10-17  Simon Josefsson  <jas@extundo.com>
70624
70625         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70626
70627 2005-10-17  Simon Josefsson  <jas@extundo.com>
70628
70629         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70630
70631 2005-10-17  Simon Josefsson  <jas@extundo.com>
70632
70633         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70634
70635         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70636
70637 2005-10-17  Bruno Haible  <bruno@clisp.org>
70638
70639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70640         that it can also be used in a test.
70641
70642 2005-10-16  Bruno Haible  <bruno@clisp.org>
70643
70644         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70645         TESTS_ENVIRONMENT, so that individual tests can augment it.
70646
70647         * gnulib-tool (func_create_testdir): Use an intermediate target for
70648         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70649         macros, like $(ALLOCA_H), which cannot be passed through the command
70650         line.
70651
70652 2005-10-15  Simon Josefsson  <jas@extundo.com>
70653
70654         * modules/rijndael-tests: New file.
70655
70656         * modules/rijndael: New file.
70657
70658 2005-10-15  Simon Josefsson  <jas@extundo.com>
70659
70660         * m4/rijndael.m4: New file.
70661
70662 2005-10-15  Simon Josefsson  <jas@extundo.com>
70663
70664         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70665
70666         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70667
70668 2005-10-14  Simon Josefsson  <jas@extundo.com>
70669
70670         * tests/test-arcfour.c: New file.
70671
70672         * modules/arcfour, modules/arcfour-tests: New files.
70673
70674 2005-10-14  Simon Josefsson  <jas@extundo.com>
70675
70676         * m4/arcfour.m4: New file.
70677
70678 2005-10-14  Simon Josefsson  <jas@extundo.com>
70679
70680         * lib/arcfour.h, lib/arcfour.c: New files.
70681
70682 2005-10-14  Roland McGrath  <roland@redhat.com>
70683
70684         Import from libc.  [BZ #1331]
70685         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70686         macro argument.
70687         Reported by Matej Vela <vela@debian.org>.
70688
70689 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70692         include <wchar.h>; no longer needed.
70693
70694 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70697
70698 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70699         and  Ulrich Drepper  <drepper@redhat.com>
70700
70701         Import from libc.
70702         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70703         instead of inline stream orientation test and two separate
70704         function calls.  Pay no attention to USE_IN_LIBIO.
70705
70706 2005-10-13  Simon Josefsson  <jas@extundo.com>
70707
70708         * modules/gc-hmac-md5-tests: New file.
70709
70710         * tests/test-gc-hmac-sha1.c: New file.
70711
70712         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70713
70714         * modules/gc-hmac-md5-tests: New file.
70715
70716         * tests/test-gc-md5.c: New file.
70717
70718         * modules/gc-md5-tests: New file.
70719
70720 2005-10-13  Simon Josefsson  <jas@extundo.com>
70721
70722         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70723         Move memory allocation outside of loop.
70724
70725 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70728         intermediate directory is in a read-only file system.  Problem
70729         reported by Eric Blake.
70730
70731 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70732
70733         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70734
70735 2005-10-12  Simon Josefsson  <jas@extundo.com>
70736
70737         * tests/test-hmac-sha1.c: New file.
70738
70739         * modules/hmac-sha1-tests: New file.
70740
70741         * modules/hmac-sha1: New file.
70742
70743 2005-10-12  Simon Josefsson  <jas@extundo.com>
70744
70745         * modules/gc-sha1: New file.
70746
70747 2005-10-12  Simon Josefsson  <jas@extundo.com>
70748
70749         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70750
70751         * tests/test-gc-pbkdf2-sha1.c: New file.
70752
70753 2005-10-12  Simon Josefsson  <jas@extundo.com>
70754
70755         * modules/gc-md5, modules/gc-hmac-md5: New files.
70756
70757         * modules/gc (Files): Remove md5, memxor and hmac files.
70758
70759 2005-10-12  Simon Josefsson  <jas@extundo.com>
70760
70761         * m4/gc-pbkdf2-sha1.m4: New file.
70762
70763         * m4/gc-hmac-sha1.m4: New file.
70764
70765         * m4/gc-sha1: New file.
70766
70767         * m4/hmac-sha1.m4: New file.
70768
70769 2005-10-12  Simon Josefsson  <jas@extundo.com>
70770
70771         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70772
70773         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70774
70775 2005-10-12  Simon Josefsson  <jas@extundo.com>
70776
70777         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70778         suggested by Bruno Haible <bruno@clisp.org>.
70779
70780 2005-10-12  Simon Josefsson  <jas@extundo.com>
70781
70782         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70783
70784 2005-10-12  Simon Josefsson  <jas@extundo.com>
70785
70786         * lib/gc-pbkdf2-sha1.c: New file.
70787
70788         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70789
70790 2005-10-12  Simon Josefsson  <jas@extundo.com>
70791
70792         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70793
70794         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70795
70796 2005-10-12  Simon Josefsson  <jas@extundo.com>
70797
70798         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70799         GC_USE_HMAC_MD5, respectively.
70800
70801         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70802         (gc_md5): Fix typo.
70803
70804         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70805
70806         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70807
70808         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70809
70810 2005-10-12  Bruno Haible  <bruno@clisp.org>
70811
70812         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70813         Reported by Stepan Kasal <kasal@ucw.cz>.
70814
70815 2005-10-11  Simon Josefsson  <jas@extundo.com>
70816
70817         * tests/test-crc.c: New file.
70818
70819         * modules/crc, modules/crc-tests: New files.
70820
70821 2005-10-11  Simon Josefsson  <jas@extundo.com>
70822
70823         * m4/crc.m4: New file.
70824
70825 2005-10-11  Simon Josefsson  <jas@extundo.com>
70826
70827         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70828
70829         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70830
70831         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70832
70833 2005-10-11  Simon Josefsson  <jas@extundo.com>
70834
70835         * lib/crc.h, lib/crc.c: New files.
70836
70837         * lib/gc.h (gc_hash_buffer): Add doc.
70838
70839 2005-10-11  Bruno Haible  <bruno@clisp.org>
70840
70841         * modules/c-strcasestr: New file.
70842         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70843
70844 2005-10-11  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/c-strcase: New file.
70847         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70848
70849 2005-10-11  Bruno Haible  <bruno@clisp.org>
70850
70851         * lib/strcasecmp.c: Include limits.h.
70852         (strcasecmp): Avoid integer overflow on exotic platforms.
70853         * lib/strncasecmp.c: Include limits.h.
70854         (strncasecmp): Avoid integer overflow on exotic platforms.
70855         Reported by Paul Eggert.
70856
70857 2005-10-11  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/c-strcasestr.h: New file, from GNU gettext.
70860         * lib/c-strcasestr.c: New file, from GNU gettext.
70861
70862 2005-10-11  Bruno Haible  <bruno@clisp.org>
70863
70864         * lib/c-strcase.h: New file, from GNU gettext.
70865         * lib/c-strcasecmp.c: New file, from GNU gettext.
70866         * lib/c-strncasecmp.c: New file, from GNU gettext.
70867
70868 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * modules/mempcpy (License): GPL -> LGPL.
70871         * modules/strchrnul (License): Likewise.
70872         * modules/sysexits (License): Likewise.
70873
70874 2005-10-08  Simon Josefsson  <jas@extundo.com>
70875
70876         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70877
70878 2005-10-07  Simon Josefsson  <jas@extundo.com>
70879
70880         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70881
70882 2005-10-06  Simon Josefsson  <jas@extundo.com>
70883
70884         * tests/test-hmac-md5.c: New file.
70885
70886         * modules/hmac-md5-tests: New file.
70887
70888         * modules/hmac-md5: New file.
70889
70890 2005-10-06  Simon Josefsson  <jas@extundo.com>
70891
70892         * m4/hmac-md5.m4: New file.
70893
70894         * m4/memxor.m4: Require gl_C_RESTRICT.
70895
70896 2005-10-06  Simon Josefsson  <jas@extundo.com>
70897
70898         * lib/memxor.c (memxor): Avoid casts and warnings.
70899
70900 2005-10-06  Simon Josefsson  <jas@extundo.com>
70901
70902         * lib/hmac-md5.c: New file.
70903
70904         * lib/hmac.h: New file.
70905
70906 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70907
70908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70909         promotes to int, not unsigned int, to catch the AIX 5.3
70910         compiler bug.
70911
70912 2005-10-05  Simon Josefsson  <jas@extundo.com>
70913
70914         * modules/memxor: New file.
70915
70916         * modules/iconv (Files): Move config.rpath to havelib, it is used
70917         there.
70918
70919         * modules/havelib (Files): Add config.rpath.
70920
70921 2005-10-05  Simon Josefsson  <jas@extundo.com>
70922
70923         * m4/memxor.m4: New file.
70924
70925 2005-10-05  Simon Josefsson  <jas@extundo.com>
70926
70927         * lib/memxor.c (memxor): Fix compiler error.
70928
70929         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70930         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70931
70932         * lib/memxor.h, lib/memxor.c: New files.
70933
70934         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70935         we assume all systems have it, suggested by Jim Meyering
70936         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70937         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70938         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70939         same reasons.
70940
70941 2005-10-05  Simon Josefsson  <jas@extundo.com>
70942
70943         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70944
70945 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70948         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70949         needed, since the source code now assumes these .h files.
70950
70951 2005-10-05  Derek Price  <derek@ximbiot.com>
70952
70953         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70954
70955 2005-10-05  Bruno Haible  <bruno@clisp.org>
70956
70957         * modules/stdint (License): Change to LGPL.
70958
70959 2005-10-04  Simon Josefsson  <jas@extundo.com>
70960
70961         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70962         D. Baushke" <mdb@gnu.org>.
70963
70964 2005-10-04  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/verify.h (verify_true): Provide alternative definition for C++.
70967
70968 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70971         (SSIZE_MAX): New macro, if not already defined.
70972         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70973         than 2 GiB.
70974
70975 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         Sync from coreutils.
70978         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70979         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70980         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70981         ULLONG_MAX doesn't work with 2.7.2.1.
70982
70983 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70984
70985         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70986         From Ben Pfaff.
70987
70988         * modules/exclude (Depends-on): Depend on verify.
70989         * modules/strtoimax (Depends-on): Likewise.
70990         * modules/utimecmp (Depends-on): Likewise.
70991
70992 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * lib/exclude.c: Include verify.h.
70995         (verify): Remove.  All callers changed to use verify.h's version.
70996         * lib/strtoimax.c: Likewise.
70997         * lib/utimecmp.c: Likewis.e
70998
70999         Sync from coreutils.
71000         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71001         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71002         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71003         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71004         bother returning ENOSYS if settimeofday or stime fails; just let
71005         them return whatever errno they want to return.
71006         * lib/utimens.c: Include unistd.h, for dup2.
71007         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71008         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71009
71010 2005-10-02  Jim Meyering  <jim@meyering.net>
71011
71012         Sync from coreutils.
71013         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71014         from glibc-2.2.5 that fails for read-only files.
71015
71016 2005-10-02  Jim Meyering  <jim@meyering.net>
71017
71018         Sync from coreutils.
71019         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71020         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71021         `#if HAVE_CONFIG_H'.
71022         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71023         Remove AT_FDCWD test.
71024         Do not consume the fd unless successful.
71025         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71026         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71027         block, so that we don't even try to compile it if settimeofday is
71028         available.  This works around a compilation failure on OSF1 V5.1,
71029         due to stime requiring a `long int*' while tv_sec is `int'.
71030
71031 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71032
71033         Sync from coreutils.
71034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71035         against `yes', rather than just testing for nonempty.
71036
71037 2005-10-01  Simon Josefsson  <jas@extundo.com>
71038
71039         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71040         and Darwin.
71041
71042         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71043         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71044         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71045         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71046         Check if struct addrinfo is declared.
71047
71048 2005-10-01  Simon Josefsson  <jas@extundo.com>
71049
71050         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71051         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71052         AI_* and EAI_* definitions.  Protect function declarations.
71053
71054 2005-10-01  Jim Meyering  <jim@meyering.net>
71055
71056         Sync from coreutils.
71057
71058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71059         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71060         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71061         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71062         in the inet and nsl libraries.  Required on Solaris 5.7.
71063
71064 2005-10-01  Jim Meyering  <jim@meyering.net>
71065
71066         Sync from coreutils.
71067         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71068         in the inet and nsl libraries.  Required on Solaris 5.7.
71069
71070 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71071
71072         * lib/getdelim.c (getdelim): Remove unused variables.
71073
71074 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71077         so that the code works even with ancient cpp.  Portability problem
71078         with GCC 2.7.2.1 reported by Thomas M.Ott.
71079
71080 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * modules/regex (Depends-on): Add strcase.
71083
71084         * modules/gethostname (Licence): Change from GPL to LGPL, since
71085         gethostname.c is a trivial implementation of a standard library
71086         function.
71087         * modules/poll (License): Change from GPL to LGPL, since it's
71088         derived from LGPL code.
71089
71090 2005-09-27  Jim Meyering  <jim@meyering.net>
71091
71092         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71093         HAVE_CONFIG_H.
71094
71095         * lib/intprops.h (signed_type_or_expr__): Define.
71096         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71097         for unsigned types.
71098
71099 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * lib/verify.h (verify_expr): Remove, replacing with:
71102         (verify_true): New macro that returns true instead of void.
71103         (verify_type__): Remove.
71104         (verify): Use verify_true rather than verify_type__.
71105
71106 2005-09-26  Bruno Haible  <bruno@clisp.org>
71107
71108         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71109         is necessary.
71110         (lib_SOURCES): Remove mbchar.c.
71111         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71112         (Files): Add m4/mbrtowc.m4.
71113         * modules/mbiter: Likewise.
71114         * modules/mbuiter: Likewise.
71115
71116 2005-09-26  Bruno Haible  <bruno@clisp.org>
71117
71118         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71119         compile mbchar.c if they are not both present.
71120         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71121         * m4/mbiter.m4 (gl_MBITER): Likewise.
71122         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71123         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71124         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71125
71126 2005-09-25  Jim Meyering  <jim@meyering.net>
71127
71128         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71129         also uses socklen_t.
71130
71131 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * lib/utimens.c (ENOSYS): Define if not already defined.
71134         (futimens): Support having a null PATH if the file descriptor
71135         is nonnegative.
71136
71137         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71138         Remove.
71139         (__attribute): Define to empty unless GCC 3.1 or later.
71140         This works around a core dump on OpenBSD 3.4, which has GCC
71141         2.95.3, which dumps core when given __attribute__(()).  It also
71142         simplifies other tests, since we really don't want to bother with
71143         worrying about which ancient version of GCC supported what.
71144         Original problem reported by Yoann Vandoorselaere, with part of
71145         the fix suggested by Derek Price.
71146
71147 2005-09-24  Jim Meyering  <jim@meyering.net>
71148
71149         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71150         so we can once again use a positive bitfield width of 1 -- now we
71151         don't have to explain why we were using a bitfield width of 2.
71152
71153 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71156         and similarly for the other external symbols.  Problem reported
71157         by James Gallager.
71158
71159         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71160         bug reported by Jim Meyering.
71161
71162         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71164         not needed, since socklen is a prerequisite module.
71165
71166 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71169         Problem reported by Eric Blake.
71170         (getaddrinfo): Initialize se so that it's not garbage.
71171         Redo internal storage allocation so that it doesn't make unportable
71172         assumptions about alignment.
71173         Fix a memory leak.
71174
71175         * lib/utimens.c (futimens): Use futimesat if available.
71176         Prefer it to futimes since it doesn't have the futimes bug.
71177
71178         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71179         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71180         Instead, declare a function that returns a pointer to an array,
71181         and use verify_type__ to declare the size of the array.
71182         Problem and germ of a solution reported by Bruno Haible.
71183         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71184         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71185
71186 2005-09-23  Jim Meyering  <jim@meyering.net>
71187
71188         Sync from coreutils.
71189         Correct build failure (socklen_t not defined) on at least
71190         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71191         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71192
71193 2005-09-23  Jim Meyering  <jim@meyering.net>
71194
71195         * modules/getaddrinfo (Depends-on): Add socklen.
71196
71197 2005-09-23  Bruno Haible  <bruno@clisp.org>
71198
71199         * tests/test-verify.c: New file.
71200
71201 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         Sync from coreutils.
71204
71205         * modules/argmatch (Depends-on): Add verify.
71206         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71207         unistd-safer.
71208         * modules/save-cwd (Depends-on): Likewise.
71209
71210         * modules/openat (Files): Add lib/openat-die.c.
71211         (Depends-on): Remove error, exitfail.
71212         Add dirname.
71213
71214         * modules/verify: New file.
71215         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71216         with "verify" module.
71217
71218 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         Sync from coreutils.
71221
71222         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71223         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71224         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71225         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71226         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71227         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71228         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71229         Don't bother checking for string.h, stdlib.h, unistd.h.
71230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71231         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71232         module's job.
71233         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71234         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71235
71236         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71237         (gl_GETDATE): Use it.
71238
71239         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71240
71241 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         Sync from coreutils.
71244
71245         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71246         stat-time.h.
71247         * lib/argmatch.h: Include verify.h
71248         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71249         (ARGMATCH_ASSERT): Remove; unused.
71250         * lib/canonicalize.c: Assume STDC_HEADERS.
71251         * lib/exclude.c: Include "strcase.h".
71252         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71253         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71254         and stdio-safer.h.
71255         (getusershell): Call fopen, not fopen_safer.
71256         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71257         Do not include unistd-safer.h.
71258         (save_cwd): Don't call fd_safer; no longer needed
71259         now that we include fcntl--.h.
71260
71261         * lib/getdate.y (relative_time): New type.
71262         (RELATIVE_TIME_0): New constant.
71263         (parser_control): Use relative_time instead of doing it ourselves.
71264         (%union): Add new relative_time rel member.
71265         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71266         Now typeless.
71267         (relunit, relunit_snumber): Now of type rel.
71268         (zone, rel, relunit, get_date): Adjust to above changes.
71269
71270         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71271         Do not include unistd-safer.h.
71272         (getloadavg): Don't call fd_safer; no longer needed
71273         now that we include fcntl--.h.
71274
71275         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71276         (make_dir_parents): Treat ENOSYS like EEXIST.
71277
71278         Improve quality of diagnostics on restore_cwd failure.
71279         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71280         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71281         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71282         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71283         each time through the loop.  Do not diagnose restore_cwd failure;
71284         that is the caller's job (and perhaps the caller does not care).
71285
71286         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71287         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71288         If the file already exists but is not a directory, don't bother
71289         to try to make its parents.
71290         Close potential file descriptor leak if we can't chdir("/") (!).
71291         Don't always return true if chdir($PWD) fails; return true only
71292         if the requested action was done successfully (except for the
71293         chdir($PWD)).
71294         Don't log final directory unless we actually made it.
71295         Refactor to avoid duplicate code to fix up permissions.
71296         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71297
71298         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71299         to make it a bit faster and (I hope) clearer.
71300         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71301         Fix bug in formats like %2N.
71302
71303         * lib/verify.h: New file.
71304
71305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         Sync from coreutils.
71308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71309
71310 2005-09-22  Jim Meyering  <jim@meyering.net>
71311
71312         Sync from coreutils.
71313
71314         * m4/lstat.m4 (gl_FUNC_LSTAT):
71315         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71316         Remove obsolete comment.
71317         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71318         * m4/xstrtod.m4: Likewise.
71319
71320         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71321
71322 2005-09-22  Jim Meyering  <jim@meyering.net>
71323
71324         Sync from coreutils.
71325
71326         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71327
71328         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71329         the .tm_year member, since otherwise gcc-4.0 would now warn about
71330         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71331
71332         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71333         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71334
71335         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71336         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71337         when run in a time zone for which daylight savings time is in effect
71338         for the starting date.
71339
71340         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71341         stop us from restricting permissions of just-created absolute-named
71342         directories.
71343         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71344         to restore initial working directory.
71345         * lib/mkdir-p.c (make_dir_parents): New parameter:
71346         different_working_dir, to tell caller if/when we change the working
71347         directory and are unable to return to the initial one.
71348         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71349         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71350         `return false'.  This fixes a bug introduced on 2004-07-30.
71351
71352         * lib/openat.c (fdopendir): Be sure to close the supplied
71353         file descriptor before returning.  This makes our replacement
71354         implementation a little closer to Solaris's, where fdopendir
71355         ties the file descriptor to the returned DIR* pointer.
71356         * lib/openat.c (unlinkat): New function.
71357         * lib/openat.h (unlinkat): Add prototype.
71358         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71359         (openat_restore_fail): Rename from openat_restore_die.
71360         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71361
71362         Provide an alternative to exiting immediately upon save_cwd or
71363         restore_cwd failure.  Now, an application can arrange e.g.,
71364         to perform a longjump in that case.
71365         * lib/openat.c: Include dirname.h.
71366         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71367         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71368         and openat_restore_die rather than calling error directly.
71369         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71370
71371         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71372         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71373         define.
71374
71375         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71376         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71377                             int utc, int nanoseconds);
71378         Background:
71379         date should not have to allocate a megabyte of virtual memory to
71380         handle a format argument like +%1048575T.  When implemented with
71381         strftime, it must allocate such a buffer, use strftime to fill it
71382         in, print it, then free it.
71383         With fprintftime, it simply prints everything and exits.
71384         With no need for memory allocation, that's one fewer way to fail.
71385         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71386         optional field width, not before, so we accept %9:z, not %:9z.
71387         (my_strftime): Be sure to use L_('x') for literals.
71388
71389         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71390         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71391         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71392         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71393         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71394         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71395         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71396         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71397         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71398         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71399         * lib/xgethostname.c, lib/xreadlink.c:
71400         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71401
71402         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71403         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71404         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71405         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71406         and don't include <sys/file.h>).
71407
71408 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71409
71410         Sync from coreutils.
71411
71412         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71413         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71414         [!LDAV_DONE]: Avoid unused variable warning.
71415
71416 2005-09-21  Bruno Haible  <bruno@clisp.org>
71417
71418         * lib/unicodeio.h (unicode_to_mb): New declaration.
71419
71420 2005-09-20  Derek Price  <derek@ximbiot.com>
71421
71422         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71423         getaddrinfo.h.
71424
71425 2005-09-20  Bruno Haible  <bruno@clisp.org>
71426
71427         * gnulib-tool: Remove trailing slashes from the values specified for
71428         --source-base, --m4-base, --tests-base, --aux-dir.
71429         Suggested by Simon Josefsson <jas@extundo.com>.
71430
71431 2005-09-20  Bruno Haible  <bruno@clisp.org>
71432
71433         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71434         func_modules_to_filelist, func_import, func_create_testdir): Make all
71435         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71436         change when gnulib-tool is invoked in a different locale.
71437
71438 2005-09-19  Simon Josefsson  <jas@extundo.com>
71439
71440         * m4/socklen.m4: Fix typo.
71441
71442 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71443
71444         Use a consistent style for including <config.h>.
71445         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71446         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71447         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71448         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71449         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71450         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71451         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71452         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71453         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71454         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71455         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71456         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71457         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71458         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71459         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71460         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71461         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71462         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71463         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71464         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71465         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71466         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71467         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71468         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71469         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71470         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71471         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71472         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71473         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71474         lib/xstrtoumax.c, lib/yesno.c:
71475         Standardize inclusion of config.h.
71476         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71477         lib/inttostr.h:  Removed inclusion of config.h from header files.
71478         * lib/inttostr.c:  Adjusted in-tree users.
71479         * lib/timespec.h: Remove superfluous warning to include config.h.
71480         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71481         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71482         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71483         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71484         config.h with HAVE_CONFIG_H.
71485
71486 2005-09-19  Jim Meyering  <jim@meyering.net>
71487
71488         * modules/pathmax (License): Change to LGPL.
71489
71490 2005-09-19  Derek Price  <derek@ximbiot.com>
71491
71492         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71493
71494 2005-09-19  Bruno Haible  <bruno@clisp.org>
71495
71496         * gnulib-tool (import): Provide default for --tests-base.
71497
71498 2005-09-19  Bruno Haible  <bruno@clisp.org>
71499
71500         * doc/quote.texi: New file, extracted from gnulib.texi.
71501         * doc/ctime.texi: New file, extracted from gnulib.texi.
71502         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71503         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71504         * doc/gnulib.texi: Include them.
71505
71506 2005-09-18  Bruno Haible  <bruno@clisp.org>
71507
71508         Portability fix.
71509         * gnulib-tool (func_readlink): New function.
71510         (func_ln_if_changed): Use it.
71511
71512 2005-09-18  Bruno Haible  <bruno@clisp.org>
71513
71514         * gnulib-tool: Support --with-tests also with --import.
71515         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71516         (func_import): Use variables $testsbase and $inctests. Emit a
71517         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71518         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71519         SUBDIRS += $testsdir.
71520         (func_create_testdir): Update.
71521
71522 2005-09-18  Bruno Haible  <bruno@clisp.org>
71523
71524         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71525         instead of $dry_run.
71526         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71527         (func_ln_if_changed): Don't handle dry-run here.
71528         (func_import): In dry-run mode, detect more precisely which actions
71529         would be performed, and don't use "...ing" verbs.
71530
71531 2005-09-18  Bruno Haible  <bruno@clisp.org>
71532
71533         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71534         (func_import): Use join on two temporary files instead of three nested
71535         loops, in order to determine which files are new or old.
71536
71537 2005-09-18  Bruno Haible  <bruno@clisp.org>
71538
71539         * gnulib-tool (func_import): Comment out code that spits out the
71540         new files with --dry-run.
71541
71542 2005-09-18  Bruno Haible  <bruno@clisp.org>
71543
71544         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71545
71546 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * lib/stat-time.h: New file.
71549         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71550         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71551         in a different way.
71552         (timespec_cmp): New function.
71553         * lib/utimecmp.c: Include stat-time.h.
71554         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71555         members exist, not on the obsolescent ST_MTIM_NSEC.
71556         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71557
71558 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71561
71562 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * MODULES.html.sh (File system functions): Add stat-time.
71565         * modules/stat-time: New file.
71566         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71567         is now done in a different way, by the stat-time module.
71568         * modules/utimecmp (Depends-on): Add stat-time.
71569
71570 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71571
71572         * m4/st_mtim.m4: Remove.  Superseded by...
71573         * m4/stat-time.m4: New file.
71574         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71575         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71576
71577 2005-09-15  Derek Price  <derek@ximbiot.com>
71578
71579         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71580
71581 2005-09-15  Derek Price  <derek@ximbiot.com>
71582
71583         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71584         * lib/regex_internal.c: Ditto, using this...
71585         (__GNUC_PREREQ): ...new macro.
71586         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71587         using...
71588         (__GNUC_PREREQ): ...this new macro.
71589
71590         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71591
71592 2005-09-15  Derek Price  <derek@ximbiot.com>
71593             Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71596         changes, consolidating in...
71597         * lib/regex_internal.h: ...this file.
71598
71599 2005-09-13  Jim Meyering  <jim@meyering.net>
71600
71601         * lib/canon-host.c: Filter through gnu indent and reword comments
71602         slightly.
71603         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71604
71605 2005-09-13  Derek Price  <derek@ximbiot.com>
71606
71607         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71608         failure.
71609         Reported by Jim Meyering  <jim@meyering.net>.
71610
71611 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71612
71613         * lib/base64.c: Typo.
71614         (base64_encode): Put b64str in initialized data section.
71615
71616 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         Merge glibc and coreutils changes into gnulib, plus a few
71619         extra fixes.
71620         * lib/md5.c: Use #error rather than a string.
71621         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71622         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71623         (__attribute__): Define to empty for non recent-GCC.
71624         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71625         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71626         Renamed from their non-__ counterparts, with new macros replacing
71627         them if not _LIBC.  Add __THROW attribute.
71628         (rol): Remove.
71629         (struct md5_ctx): Align buffer if using GCC.
71630         * lib/sha1.h (struct sha1_ctx): Likewise.
71631         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71632         The old name was backwards.
71633         (NOTSWAP): Remove; not used.
71634         (rol): New macro, moved here from md5.h.
71635         (sha1_process_block): Remove a FIXME that doesn't make sense.
71636
71637 2005-09-12  Derek Price  <derek@ximbiot.com>
71638
71639         Return usable errors from canon-host.
71640         * lib/canon-host.h: New file.
71641         * lib/canon-host.c (canon_host): Wrap...
71642         (canon_host_r): ...this new function, which now relies exclusively on
71643         getaddrinfo.
71644         (ch_strerror): New function.
71645         (last_cherror): New global.
71646         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71647         interface.
71648         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71649         void *.
71650         (freeaddrinfo): Free ai->ai_canonname when set.
71651
71652 2005-09-12  Derek Price  <derek@ximbiot.com>
71653
71654         Make canon-host require getaddrinfo.
71655         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71656         AC_LIBSOURCE canon-host.h.  Call...
71657         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71658         gl_GETADDRINFO.
71659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71660
71661 2005-09-12  Derek Price  <derek@ximbiot.com>
71662
71663         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71664         LGPL.
71665         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71666
71667 2005-09-12  Derek Price  <derek@ximbiot.com>
71668
71669         * lib/gai_strerror.c: Include config.h when available.  Include
71670         getaddrinfo.h before other headers to test interface.
71671         Reported by Larry Jones <lawrence.jones@ugs.com>.
71672
71673 2005-09-12  Derek Price  <derek@ximbiot.com>
71674             Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * modules/glob (Files): Add glob-libc.h.
71677
71678 2005-09-12  Derek Price  <derek@ximbiot.com>
71679             Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71682         glob_.h, glob-libc.h.
71683         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71684
71685 2005-09-12  Derek Price  <derek@ximbiot.com>
71686             Paul Eggert  <eggert@cs.ucla.edu>
71687
71688         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71689         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71690         protecting things that should be done only in gnulib contexts.
71691         * lib/glob_.h: New file, containing only the glob things needed for
71692         gnulib.
71693         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71694         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71695         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71696         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71697         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71698         and to respect the namespace rules better.
71699
71700 2005-09-08  Simon Josefsson  <jas@extundo.com>
71701
71702         * modules/socklen: New file.
71703
71704 2005-09-08  Simon Josefsson  <jas@extundo.com>
71705
71706         * m4/socklen.m4: New file.
71707
71708 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * modules/utimens (Files): Add m4/utimbuf.m4, since
71711         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71712         Reported by Sergey Poznyakoff.
71713
71714 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71717         definitions, since that's the preferred style in glibc.
71718         Fix a minor spacing issue, and update copyright notice to match
71719         glibc's.
71720
71721 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71724
71725 2005-09-06  Simon Josefsson  <jas@extundo.com>
71726
71727         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71728         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71729
71730 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71733         warning.
71734
71735 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         * config/srclist.txt: Add glibc bug 1302.
71738
71739 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71740
71741         Change bitset word type from unsigned int to unsigned long int,
71742         as this has better performance on typical 64-bit hosts.
71743         Port bitset code to hosts with unusual word sizes.
71744         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71745         (build_collating_symbol):
71746         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71747         argument is a bitset.  This is merely a style issue, but it makes
71748         it clearer that an entire array is expected.
71749         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71750         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71751         Port to the case where bitset_word is not the same as unsigned int.
71752         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71753         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71754         Likewise.
71755         * lib/regexec.c (check_dst_limits_calc_pos_1,
71756         check_subexp_matching_top):
71757         (build_trtable, group_nodes_into_DFAstates):
71758         Likewise.
71759         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71760         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71761         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71762         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71763         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71764         * lib/regcomp.c (optimize_subexps, lower_subexp):
71765         Work even if bitset_word has holes in its bitwise representation.
71766         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71767         * lib/regexec.c (check_dst_limits_calc_pos_1,
71768         check_subexp_matching_top):
71769         Likewise.
71770         * lib/regex_internal.c (re_string_reconstruct):
71771         Don't assume UCHAR_MAX == 255.
71772         * lib/regex_internal.h (bitset_set_all): Likewise.
71773         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71774         All uses changed.
71775         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71776         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71777         All uses changed.
71778         (BITSET_WORD_MAX): New macro.
71779         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71780         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71781         (bitset_empty, bitset_copy):
71782         Prefer sizeof (bitset) to multiplying it out ourselves.
71783         (bitset_not_merge): Remove; unused.
71784         (bitset_contain): Return bool, not unsigned int with one bit on.
71785         All callers changed.
71786         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71787         alignment than re_node_set; do this by defining a new internal
71788         type struct dests_alloc and using it to allocate memory.
71789
71790 2005-09-05  Bruno Haible  <bruno@clisp.org>
71791
71792         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71793         links.
71794
71795 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71796
71797         * modules/size_max (Makefile.am): Add size_max.h
71798
71799 2005-09-04  Derek Price  <derek@ximbiot.com>
71800
71801         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71802
71803 2005-09-03  Simon Josefsson  <jas@extundo.com>
71804
71805         * gnulib-tool: Fix typo.
71806
71807 2005-09-03  Simon Josefsson  <jas@extundo.com>
71808
71809         * config/srclist.txt: Add glibc bug 1293.
71810
71811 2005-09-03  Derek Price  <derek@ximbiot.com>
71812
71813         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71814         From Larry Jones <lawrence.jones@ugs.com>.
71815
71816 2005-09-02  Simon Josefsson  <jas@extundo.com>
71817
71818         * modules/socklen: New file.
71819
71820 2005-09-02  Simon Josefsson  <jas@extundo.com>
71821
71822         * modules/havelib: New module.
71823
71824         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71825         Use havelib.
71826
71827 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         Check for arithmetic overflow when calculating sizes, to prevent
71830         some buffer-overflow issues.  These patches are conservative, in the
71831         sense that when I couldn't determine whether an overflow was possible,
71832         I inserted a run-time check.
71833         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71834         macros.
71835         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71836         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71837         (re_xnrealloc, re_x2nrealloc): New inline functions.
71838         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71839         parse_bracket_exp):
71840         (build_equiv_class, build_charclass): Check for arithmetic overflow
71841         in size expression calculations.
71842         * lib/regex_internal.c (re_string_realloc_buffers):
71843         (build_wcs_upper_buffer, re_node_set_add_intersect):
71844         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71845         (re_dfa_add_node, register_state): Likewise.
71846         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71847         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71848         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71849         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71850
71851 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71854         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71855
71856 2005-09-02  Bruno Haible  <bruno@clisp.org>
71857
71858         Support for lib vs. lib64 distinction on biarch platforms.
71859         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71860         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71862
71863 2005-09-02  Bruno Haible  <bruno@clisp.org>
71864
71865         * gnulib-tool (import): In the other first-use case, provide defaults
71866         as well.
71867
71868 2005-09-02  Bruno Haible  <bruno@clisp.org>
71869
71870         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71871         patches not yet found in the latest gettext release.
71872
71873 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71876         to avoid a collision with bits/local_lim.h in glibc.
71877         All uses changed.  Problem reported by Dmitry V. Levin in
71878         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71879
71880         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71881         bugs in int versus size_t comparisons.
71882         (re_string_context_at): Fix bug where the code assumed that
71883         Idx is signed.
71884
71885         Use bool where appropriate.
71886         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71887         All callers changed.
71888         (calc_eclosure_iter): Likewise, for ROOT arg.
71889         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71890         (build_charclass_op): Likewise, for NON_MATCH arg.
71891         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71892         (re_string_construct_common): Likewise, for ICASE arg.
71893         * lib/regexec.c (re_search_2_stub, re_search_stub):
71894         Likewise, for RET_LEN arg.
71895         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71896         (set_regs): Likewise, for FL_BACKTRACK arg.
71897         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71898         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71899         (calc_eclosure_iter, parse_bracket_exp):
71900         Use bool for internal variables that are booleans.
71901         * lib/regexec.c (re_search_internal, check_matching,
71902         proceed_next_node):
71903         (set_regs, build_sifted_states, sift_states_bkref):
71904         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71905         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71906         (find_collation_sequence_value):
71907         Likewise.
71908         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71909         (re_node_set_compare):
71910         Return bool, not int. All callers changed.
71911         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71912         (build_trtable, check_node_accept): Likewise.
71913         * lib/regex_internal.h: Include stdbool.h.
71914
71915         Fix bugs uncovered when converting to bool.
71916         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71917         failure instead of charging ahead blindly.
71918         * lib/regex_internal.c (register_state): Likewise.
71919         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71920         for freeing internal storage.
71921         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71922         bitset pieces used as boolean, to avoid undefined behavior
71923         on hosts that do int overflow checking.
71924
71925 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * config/srclist.txt: Add glibc bugs 1285-1287.
71928
71929 2005-09-01  Jim Meyering  <jim@meyering.net>
71930
71931         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71932         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71933         Require gl_STAT_MACROS, too.
71934
71935 2005-09-01  Bruno Haible  <bruno@clisp.org>
71936
71937         * gnulib-tool (import): In the first-use case, provide defaults.
71938
71939 2005-09-01  Bruno Haible  <bruno@clisp.org>
71940
71941         * gnulib-tool (func_import): Remove the .tmp files.
71942
71943 2005-09-01  Bruno Haible  <bruno@clisp.org>
71944
71945         * gnulib-tool (func_import): Fix handling of symbolic links.
71946
71947 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71950         old glibc regex code mishandles strings longer than 2**31 bytes.
71951         This patch fixes this when the regex code is used in gnulib
71952         (i.e., outside glibc).
71953
71954         This patch should not affect the use of the regex code inside
71955         glibc.  No doubt this problem also needs to be handled for glibc
71956         as well, but the result will be an incompatible change to the
71957         glibc ABI, and the old ABI will have to be supported too.  That
71958         can be the the subject for another patch.
71959
71960         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71961         governing whether the rest of this patch is active.  By default,
71962         the macro is disabled and the patch has no effect.
71963         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71964         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71965         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71966         (re_match_2, re_set_registers): Use the new types.
71967         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71968         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71969         New macros.
71970         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71971         (re_string_context_at, bin_tree_t, re_dfastate_t):
71972         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71973         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71974         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71975         (re_string_char_size_at, re_string_wchar_at):
71976         (re_string_elem_size_at):
71977         Use the new types and macros to port to 64-bit hosts.
71978         Use unsigned types for internal values, so that the code
71979         mostly works even for arrays larger than SSIZE_MAX.
71980         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71981         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71982         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71983         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71984         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71985         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71986         (calc_inveclosure, parse_dup_op, build_range_exp):
71987         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71988         (fetch_number, create_token_tree, mark_opt_subexp):
71989         Likewise.
71990         * lib/regex_internal.c (re_string_construct_common,
71991         create_ci_newstate):
71992         (create_cd_newstate, re_string_allocate, re_string_construct):
71993         (re_string_realloc_buffers, build_wcs_upper_buffer):
71994         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71995         (re_string_reconstruct, re_string_peek_byte_case):
71996         (re_string_fetch_byte_case, re_string_context_at):
71997         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71998         (re_node_set_init_copy, re_node_set_add_intersect):
71999         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72000         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72001         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72002         (re_acquire_state, re_acquire_state_context, register_state):
72003         Likewise.
72004         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72005         search_cur_bkref_entry):
72006         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72007         (re_search_internal, re_search_2_stub, re_search_stub)
72008         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72009         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72010         (update_cur_sifted_state, check_dst_limits):
72011         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72012         (check_subexp_limits, sift_states_bkref, merge_state_array):
72013         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72014         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72015         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72016         (expand_bkref_cache, check_node_accept_bytes):
72017         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72018         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72019         (acquire_init_state_context, check_halt_node_context):
72020         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72021         (sift_states_backward, clean_state_log_if_needed):
72022         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72023         (find_recover_state, transit_state_sb, transit_state_mb):
72024         (transit_state_bkref, build_trtable, match_ctx_clean):
72025         Likewise.
72026         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72027         to work around an assumption that REG_MISSING is negative.
72028
72029         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72030         (seek_collating_symbol_entry) [defined _LIBC]:
72031         (lookup_collation_sequence_value) [defined _LIBC]:
72032         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72033         Use prototypes rather than old-style function definitions.
72034         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72035         (transit_state_sb) [0]:
72036         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72037
72038         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72039         rm_eo.
72040
72041         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72042         (optimize_subexps, lower_subexp):
72043         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72044         since the signed shift might overflow.  Use 1u<<31 instead.
72045         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72046         Likewise.
72047         * lib/regexec.c (check_dst_limits_calc_pos_1,
72048         check_subexp_matching_top): Likewise.
72049
72050         * lib/regcomp.c (optimize_subexps, lower_subexp):
72051         Use CHAR_BIT rather than 8, for clarity.
72052         * lib/regexec.c (check_dst_limits_calc_pos_1):
72053         (check_subexp_matching_top): Likewise.
72054         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72055         have to worry about portability issues when shifting it left.
72056         Remove no-longer-needed test for table_size > 0.
72057         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72058         in a word, as the resulting behavior is undefined.
72059         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72060         in one case, a <= should have been an <, and in another case the
72061         whole test was missing.
72062         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72063         the standard name CHAR_BIT.
72064         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72065         this is not true on one's complement and signed-magnitude hosts.
72066
72067         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72068         next_last_offset.
72069         (struct re_dfa_t): Remove unused member states_alloc.
72070         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72071
72072 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72075         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72076         and large-file glibc and in 32-bit large-file Solaris.
72077
72078 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72081         lengths fit in regoff_t; this isn't true if regoff_t is the same
72082         width as size_t.
72083         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72084         (= START + RANGE) instead of RANGE.  This avoids overflow
72085         problems when regoff_t is the same width as size_t.
72086         All callers changed.
72087         (re_search_2_stub): Check for overflow when adding the
72088         sizes of the two strings.
72089         (re_search_stub): Check for overflow when adding START
72090         to RANGE; if it occurs, substitute the extreme value.
72091
72092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72093
72094         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72095
72096 2005-08-31  Jim Meyering  <jim@meyering.net>
72097
72098         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72099         a pointer-to-const.
72100         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72101         (register_state): Likewise.
72102         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72103         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72104         (group_nodes_into_DFAstates): Likewise.
72105
72106 2005-08-31  Jim Meyering  <jim@meyering.net>
72107
72108         * check-module: Add a FIXME comment.
72109
72110 2005-08-31  Eric Blake  <ebb9@byu.net>
72111
72112         * modules/unistd-safer (Files): Add unistd--.h.
72113         * modules/stdio-safer (Files): Add stdio--.h.
72114
72115 2005-08-31  Derek Price  <derek@ximbiot.com>
72116
72117         * lib/getdelim.c (getdelim): Return EOF on EOF.
72118         Reported by Larry Jones <lawrence.jones@ugs.com>.
72119
72120 2005-08-31  Bruno Haible  <bruno@clisp.org>
72121
72122         Avoid unnecessary diffs in the generated lib/Makefile.am.
72123         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72124         the generated files.
72125         (func_import): Don't set cmd.
72126
72127 2005-08-31  Bruno Haible  <bruno@clisp.org>
72128
72129         * lib/strstr.c: Include <stddef.h>, for NULL.
72130         * lib/strcasestr.c: Likewise.
72131         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72132
72133 2005-08-31  Bruno Haible  <bruno@clisp.org>
72134
72135         * gnulib-tool: New option --macro-prefix.
72136         (func_import): Use macro_prefix.
72137         (import): Handle option --macro-prefix.
72138
72139 2005-08-31  Bruno Haible  <bruno@clisp.org>
72140
72141         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72142         Also use new variables cached_lgpl, cached_libtool.
72143
72144 2005-08-31  Bruno Haible  <bruno@clisp.org>
72145
72146         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72147         always instantiating them.
72148
72149 2005-08-31  Bruno Haible  <bruno@clisp.org>
72150
72151         * gnulib-tool (func_import): Read the previous cached settings
72152         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72153         earlier added by gnulib but are now dropped. Warn when a gnulib file
72154         overwrites a non-gnulib file.
72155
72156 2005-08-31  Bruno Haible  <bruno@clisp.org>
72157
72158         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72159         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72160         projects that don't keep autogenerated files in CVS. Put into
72161         actioncmd only the specified modules, not the transitive closure.
72162
72163 2005-08-31  Bruno Haible  <bruno@clisp.org>
72164
72165         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72166         Create directories that shall be filled.
72167         (import): Don't look for gl_* macros in configure.ac. Recurse across
72168         all directories containing a gnulib-cache.m4 files, if meaningful.
72169
72170 2005-08-31  Bruno Haible  <bruno@clisp.org>
72171
72172         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72173         (import): Set seen_libtool when we see gl_LIBTOOL.
72174
72175 2005-08-31  Bruno Haible  <bruno@clisp.org>
72176
72177         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72178         declaration macro definitions from generated gnulib.m4.
72179
72180 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72181
72182         * lib/iconvme.h: Add prototype for iconv_alloc.
72183
72184 2005-08-29  Simon Josefsson  <jas@extundo.com>
72185
72186         * lib/iconvme.c: Fix errno.
72187
72188 2005-08-29  Bruno Haible  <bruno@clisp.org>
72189
72190         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72191         that it works when the directory contains spaces.
72192
72193 2005-08-29  Bruno Haible  <bruno@clisp.org>
72194
72195         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72196
72197 2005-08-29  Bruno Haible  <bruno@clisp.org>
72198
72199         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72200         Emit more advice.
72201
72202 2005-08-29  Bruno Haible  <bruno@clisp.org>
72203         and Stepan Kasal  <kasal@ucw.cz>
72204
72205         * check-module: If more parameters are given, check each of them
72206         separately; add more exceptions, as noted by Jim Meyering.
72207         (check_module): New procedure.
72208         (%exempt_header): Now contains all exceptions.
72209
72210 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72211
72212         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72213
72214 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72215
72216         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72217
72218 2005-08-28  Bruno Haible  <bruno@clisp.org>
72219
72220         * m4/gnulib-tool.m4: New file.
72221
72222 2005-08-27  Jim Meyering  <jim@meyering.net>
72223
72224         * modules/unistd-safer (Files): Add pipe-safer.c.
72225         * modules/fcntl-safer (Files): Add creat-safer.c.
72226
72227 2005-08-27  Jim Meyering  <jim@meyering.net>
72228
72229         * m4/stdlib-safer.m4: New file.  From coreutils.
72230         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72231         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72232         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72233         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72234         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72235
72236 2005-08-27  Jim Meyering  <jim@meyering.net>
72237
72238         * lib/fopen-safer.c: Merge minor changes from coreutils.
72239         * lib/dup-safer.c: Likewise.
72240         * lib/fd-safer.c: Likewise.
72241
72242         Merge from coreutils.
72243         * lib/stdio--.h: New file.
72244         * lib/stdlib--.h: New file.
72245         * lib/mkstemp-safer.c: New file.
72246
72247         GNU tar needs these.
72248         * lib/pipe-safer.c: New file.
72249         * lib/creat-safer.c: New file.
72250         * lib/fcntl--.h (creat): Define to creat_safer.
72251         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72252         * lib/unistd--.h (pipe): Define to pipe_safer.
72253         * lib/unistd-safer.h: Declare pipe_safer.
72254
72255 2005-08-26  Simon Josefsson  <jas@extundo.com>
72256
72257         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72258         Haible <bruno@clisp.org>.
72259
72260 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72261
72262         * lib/regex_internal.h: Remove all references to
72263         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72264         or better.
72265         (bitset_not, bitset_merge, bitset_not_merge):
72266         (bitset_mask, re_string_allocate, re_string_construct):
72267         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72268         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72269         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72270         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72271         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72272         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72273         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72274         (re_acquire_state_context):
72275         Remove unnecessary forward decls.
72276         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72277         Put __attribute at function definition,
72278         now that the function decl has been removed.
72279         * lib/regex_internal.c (re_string_peek_byte_case):
72280         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72281         Likewise.
72282
72283 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72284
72285         * m4/regex.m4: Add AC_PREREQ(2.50).
72286         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72287
72288 2005-08-25  Simon Josefsson  <jas@extundo.com>
72289
72290         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72291         __fsetlocking.
72292
72293 2005-08-25  Simon Josefsson  <jas@extundo.com>
72294
72295         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72296         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72297         GLIBC specific code.
72298
72299 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         Make regex safe for g++.  This fixes one real bug (an "err"
72302         that should have been "*err").  g++ problem reported by
72303         Sam Steingold.
72304         * lib/regex_internal.h (re_calloc): New macro, consistent with
72305         re_malloc etc.  All callers of calloc changed to use re_calloc.
72306         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72307         not int.  All callers changed.
72308         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72309         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72310         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72311         (find_recover_state): Change "err" to "*err"; this fixes what
72312         appears to be a real bug.
72313         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72314         versus int.
72315
72316 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * modules/regex (Depends-on): Add malloc, since the code
72319         assumes that !malloc(0) means failure.
72320
72321 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72324
72325         alloca modernization/simplification for regex.
72326         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72327         needs to be at the start of the file, and can be moved into
72328         regex_internal.h and simplified.
72329         * lib/regex_internal.h: Include <alloca.h>.
72330         (__libc_use_alloca) [!defined _LIBC]: New macro.
72331         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72332         now works outside glibc.
72333
72334 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * config/srclist.txt: Add glibc bugs 1241, 1245.
72337
72338 2005-08-25  Jim Meyering  <jim@meyering.net>
72339
72340         * lib/open-safer.c: Include <config.h>.
72341         Otherwise, we'd lose LARGEFILE support in any file using
72342         e.g. "fcntl--.h"
72343
72344 2005-08-25  Bruno Haible  <bruno@clisp.org>
72345
72346         * m4/minmax.m4: Require autoconf 2.52.
72347         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72348         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72349         alternatives of translit over the alphabet.
72350         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72351
72352 2005-08-24  Simon Josefsson  <jas@extundo.com>
72353
72354         * tests/test-getpass.c: New file.
72355
72356 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72359         for GNU regex features.
72360
72361 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72362
72363         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72364         * lib/regex.h (regerror): Likewise.
72365
72366         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72367         requires this.  (The code never needed it.)
72368
72369         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72370         All uses of recently-renamed identifiers changed to use the new,
72371         POSIX-compliant names.  The code will build and run just fine
72372         without these changes, but it's better to eat our own dog food
72373         and use the standard-conforming names.
72374
72375         * lib/regex.h: Fix a multitude of POSIX name space violations.
72376         These changes have an effect only for programs that define
72377         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72378         do not change anything for programs compiled in the normal way.
72379         Also, there is no effect on the ABI.
72380
72381         (_REGEX_SOURCE): New macro.
72382         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72383         defined and _GNU_SOURCE is not; this fixes a name space violation.
72384
72385         Rename the following macros to obey POSIX requirements.
72386         The old names are still visible as macros if _REGEX_SOURCE is defined.
72387         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72388         RE_BACKSLASH_ESCAPE_IN_LISTS.
72389         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72390         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72391         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72392         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72393         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72394         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72395         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72396         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72397         (REG_INTERVALS): renamed from RE_INTERVALS.
72398         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72399         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72400         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72401         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72402         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72403         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72404         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72405         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72406         RE_UNMATCHED_RIGHT_PAREN_ORD.
72407         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72408         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72409         (REG_DEBUG): renamed from RE_DEBUG.
72410         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72411         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72412         unusual, since we can't clash with the POSIX REG_ICASE.
72413         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72414         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72415         (REG_NO_SUB): renamed from RE_NO_SUB.
72416         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72417         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72418         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72419         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72420         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72421         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72422         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72423         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72424         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72425         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72426         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72427         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72428         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72429         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72430         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72431         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72432         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72433         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72434         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72435         (REG_FIXED): Renamed from REGS_FIXED.
72436         (REG_NREGS): Renamed from RE_NREGS.
72437
72438         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72439         of other REG_* macros, since POSIX says the user is allowed to
72440         #undef these macros selectively.
72441
72442         (reg_errcode_t): Update comment stating what other tables need
72443         to be consistent.
72444
72445         Rename the following enum values to obey POSIX requirements.
72446         The old names are still visible as macros.
72447         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72448         is not defined, since GNU is supposed to be a superset of POSIX as
72449         much as possible, and since we want reg_errcode_t to be a signed
72450         type for implementation consistency.
72451         (_REG_NOERROR): Renamed from REG_NOERROR.
72452         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72453         (_REG_BADPAT): Renamed from REG_BADPAT.
72454         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72455         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72456         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72457         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72458         (_REG_EBRACK): Renamed from REG_EBRACK.
72459         (_REG_EPAREN): Renamed from REG_EPAREN.
72460         (_REG_EBRACE): Renamed from REG_EBRACE.
72461         (_REG_BADBR): Renamed from REG_BADBR.
72462         (_REG_ERANGE): Renamed from REG_ERANGE.
72463         (_REG_ESPACE): Renamed from REG_ESPACE.
72464         (_REG_BADRPT): Renamed from REG_BADRPT.
72465         (_REG_EEND): Renamed from REG_EEND.
72466         (_REG_ESIZE): Renamed from REG_ESIZE.
72467         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72468         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72469         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72470         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72471         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72472
72473         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72474         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72475         changed.  But support the old name if the new one is not defined
72476         and if _REGEX_SOURCE.
72477
72478         Change the following member names in struct re_pattern_buffer.
72479         The old names are still supported if !_REGEX_SOURCE.
72480         The new names are always supported, regardless of _REGEX_SOURCE.
72481         (re_buffer): Renamed from buffer.
72482         (re_allocated): Renamed from allocated.
72483         (re_used): Renamed from used.
72484         (re_syntax): Renamed from syntax.
72485         (re_fastmap): Renamed from fastmap.
72486         (re_translate): Renamed from translate.
72487         (re_can_be_null): Renamed from can_be_null.
72488         (re_regs_allocated): Renamed from regs_allocated.
72489         (re_fastmap_accurate): Renamed from fastmap_accurate.
72490         (re_no_sub): Renamed from no_sub.
72491         (re_not_bol): Renamed from not_bol.
72492         (re_not_eol): Renamed from not_eol.
72493         (re_newline_anchor): Renamed from newline_anchor.
72494
72495         Change the following member names in struct re_registers.
72496         The old names are still supported if !_REGEX_SOURCE.
72497         The new names are always supported, regardless of _REGEX_SOURCE.
72498         (rm_num_regs): Renamed from num_regs.
72499         (rm_start): Renamed from start.
72500         (rm_end): Renamed from end.
72501
72502         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72503         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72504         Prepend __ to parameter names.
72505
72506         Undo yesterday's changes.
72507
72508 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72511         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72512         lib/regex.c.
72513
72514 2005-08-24  Jim Meyering  <jim@meyering.net>
72515
72516         Sync from coreutils.
72517         * m4/fcntl-safer.m4: New file.
72518
72519         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72520         and object files for this module.
72521
72522 2005-08-24  Jim Meyering  <jim@meyering.net>
72523
72524         Sync from coreutils.
72525         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72526
72527 2005-08-24  Jim Meyering  <jim@meyering.net>
72528
72529         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72530         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72531
72532 2005-08-24  Jim Meyering  <jim@meyering.net>
72533
72534         * modules/fcntl-safer: New module.
72535         * modules/fts (Depends-on): Add fcntl-safer.
72536         * MODULES.html.sh (File descriptor based Input/Output):
72537         Add fcntl-safer.
72538
72539 2005-08-24  Bruno Haible  <bruno@clisp.org>
72540
72541         Support for unit test modules.
72542         * modules/README: Mention tests modules.
72543         * modules/TEMPLATE-TESTS: New file.
72544         * gnulib-tool: New options --extract-tests-module, --with-tests and
72545         --tests-base (unused for the moment).
72546         (testsbase, inctests): New variables.
72547         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72548         (func_verify_module): Exclude TEMPLATE-TESTS.
72549         (func_verify_nontests_module, func_verify_tests_module): New functions.
72550         (func_get_dependencies): Add implicit dependency for tests modules.
72551         (func_get_tests_module): New function.
72552         (func_modules_transitive_closure): When --with-tests was specified,
72553         include the unit tests as well, unless explicitly avoided.
72554         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72555         (func_emit_tests_Makefile_am): New function.
72556         (func_create_testdir): When --with-tests was specified, emit a
72557         tests/ directory.
72558         * MODULES.html.sh (Future developments): Update.
72559
72560 2005-08-24  Bruno Haible  <bruno@clisp.org>
72561
72562         * modules/tls-tests: New file.
72563         * tests/test-tls.c: New file, from GNU gettext.
72564
72565 2005-08-24  Bruno Haible  <bruno@clisp.org>
72566
72567         * modules/lock-tests: New file.
72568         * tests/test-lock.c: New file, from GNU gettext.
72569
72570 2005-08-24  Bruno Haible  <bruno@clisp.org>
72571
72572         * lib/lock.h: Add multiple inclusion guard.
72573         * lib/tls.h: Add multiple inclusion guard.
72574
72575 2005-08-24  Bruno Haible  <bruno@clisp.org>
72576
72577         * gnulib-tool: Add support for the --aux-dir option to
72578         --create-testdir, --create-megatestdir, --test, --megatest.
72579         (func_create_testdir, func_create_megatestdir): Optionally emit a
72580         AC_CONFIG_AUX_DIR directive.
72581         (create-testdir, create-megatestdir, test, megatest): Provide a
72582         default value for $auxdir.
72583
72584 2005-08-24  Bruno Haible  <bruno@clisp.org>
72585
72586         * gnulib-tool (import): Use compound statement instead of subshell
72587         where possible.
72588
72589 2005-08-24  Bruno Haible  <bruno@clisp.org>
72590
72591         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72592
72593 2005-08-24  Bruno Haible  <bruno@clisp.org>
72594
72595         * gnulib-tool (func_version): Update.
72596
72597 2005-08-24  Bruno Haible  <bruno@clisp.org>
72598
72599         * gnulib-tool (func_import, func_create_testdir,
72600         func_create_megatestdir): Quote all autoconf macro arguments.
72601
72602 2005-08-24  Bruno Haible  <bruno@clisp.org>
72603
72604         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72605         option --force, because --force causes the aclocal.m4 of each
72606         subdirectory to be newer than the corresponding config.h.in.
72607
72608 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72611         All contents moved to gl_REGEX.
72612         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72613         assume that it does.
72614
72615 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * lib/regex.h (REG_NOSYS)
72618         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72619         Define, since POSIX requires it as of 2001.
72620         (_REG_ENOSYS)
72621         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72622         New private symbol, used to keep the enum signed in all cases.
72623         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72624         Youngman in
72625         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72626
72627         * lib/regex_internal.c (re_string_skip_chars, register_state):
72628         (calc_state_hash):
72629         Remove forward decls; no longer needed now that we use prototypes.
72630         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72631         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72632         (clean_state_log_if_needed): Likewise.
72633
72634 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * config/srclist.txt: Add glibc bugs 1231-1233.
72637
72638 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         Fix problems reported by Sam Steingold in
72641         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72642         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72643         assumed that reg_errcode_t is a signed type, which is not
72644         necessarily true if _XOPEN_SOURCE is not defined.
72645         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72646         since some compilers warn about it otherwise.
72647
72648 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72651         (init_word_char, create_initial_state, duplicate_node_closure):
72652         (fetch_token, peek_token_bracket, build_range_exp):
72653         (build_collating_symbol): Remove forward decls; no longer needed
72654         now that we use prototypes.
72655
72656         * lib/regcomp.c:
72657         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72658         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72659         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72660         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72661         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72662         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72663         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72664         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72665         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72666         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72667         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72668         (build_charclass, build_charclass_op, fetch_number, create_tree):
72669         (create_token_tree, mark_opt_subexp, duplicate_tree):
72670         Use prototypes rather than old-style definitions.
72671
72672         * lib/regex_internal.c:
72673         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72674         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72675         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72676         (re_string_reconstruct, re_string_peek_byte_case):
72677         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72678         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72679         (re_node_set_init_copy, re_node_set_add_intersect):
72680         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72681         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72682         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72683         (re_acquire_state, re_acquire_state_context, register_state):
72684         (create_ci_newstate, create_cd_newstate, free_state):
72685         Likewise.
72686         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72687         re_search_2):
72688         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72689         (re_search_internal, prune_impossible_nodes):
72690         (acquire_init_state_context, check_matching, static):
72691         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72692         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72693         (update_regs, sift_states_backward, build_sifted_states):
72694         (clean_state_log_if_needed, merge_state_array):
72695         (update_cur_sifted_state, add_epsilon_src_nodes):
72696         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72697         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72698         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72699         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72700         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72701         (check_arrival, check_arrival_add_next_nodes):
72702         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72703         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72704         (check_node_accept_bytes, check_node_accept, extend_buffers):
72705         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72706         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72707         (sift_ctx_init):
72708         Likewise.
72709
72710         * lib/regex_internal.h:
72711         (re_string_allocate, re_string_construct, re_string_reconstruct):
72712         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72713         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72714         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72715         (re_string_context_at, re_string_peek_byte_case):
72716         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72717         is defined, since we now use prototypes always.
72718
72719         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72720         C89 or better.  All uses removed.
72721
72722 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72723
72724         * config/srclist.txt: Add glibc bugs 1220-1227.
72725
72726 2005-08-20  Jim Meyering  <jim@meyering.net>
72727
72728         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72729         of unused local, dfa.
72730
72731 2005-08-20  Bruno Haible  <bruno@clisp.org>
72732
72733         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72734
72735 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72736
72737         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72738         (re_node_set_insert_last, re_dfa_add_node):
72739         Rename local variables to avoid GCC shadowing warnings.
72740
72741 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72742
72743         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72744         [defined lint]: Suppress bogus uninitialized-variable warnings.
72745
72746         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72747         and let the caller return REG_ESPACE if out of space.  This
72748         removes an uninitialied-variable warning with GCC 4.0.1, and also
72749         avoids taking the address of a local variable.  All callers
72750         changed.
72751
72752 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72755         $LIBCSRC/posix/regexec.c.
72756         Add glibc bug 1217 for regcomp.c.
72757
72758 2005-08-19  Jim Meyering  <jim@meyering.net>
72759
72760         * lib/regexec.c (proceed_next_node): Redo local variables to
72761         avoid GCC shadowing warnings.
72762
72763 2005-08-18  Bruno Haible  <bruno@clisp.org>
72764
72765         * lib/strstr.c (strstr): Fix return value in multibyte case.
72766         * lib/strcasestr.c (strcasestr): Likewise.
72767
72768 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72771
72772 2005-08-17  Jim Meyering  <jim@meyering.net>
72773
72774         Make the %s format (seconds since the epoch) work for a negative
72775         number and when used with a zero-padded field width, e.g. %015s.
72776
72777         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72778         label so that it precedes the code to set `digits'.  Otherwise,
72779         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72780         print `00-22'.  Now, it prints `-0022', as it should.
72781
72782 2005-08-17  Bruno Haible  <bruno@clisp.org>
72783
72784         * modules/strstr (Files): Add m4/mbrtowc.m4.
72785         (Depends-on): Add mbuiter.
72786
72787 2005-08-17  Bruno Haible  <bruno@clisp.org>
72788
72789         * modules/strcasestr: New file.
72790         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72791         strcasestr.
72792
72793 2005-08-17  Bruno Haible  <bruno@clisp.org>
72794
72795         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72796
72797 2005-08-17  Bruno Haible  <bruno@clisp.org>
72798
72799         * modules/mbuiter: New file.
72800         * MODULES.html.sh (Extended multibyte and wide character utilities):
72801         Add mbuiter.
72802
72803 2005-08-17  Bruno Haible  <bruno@clisp.org>
72804
72805         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72806         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72807
72808 2005-08-17  Bruno Haible  <bruno@clisp.org>
72809
72810         * m4/strcasestr.m4: New file.
72811
72812 2005-08-17  Bruno Haible  <bruno@clisp.org>
72813
72814         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72815         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72816
72817 2005-08-17  Bruno Haible  <bruno@clisp.org>
72818
72819         * lib/strcasestr.h: New file.
72820         * lib/strcasestr.c: New file.
72821
72822 2005-08-17  Bruno Haible  <bruno@clisp.org>
72823
72824         * lib/strcasecmp.c: Use mbuiter.h.
72825
72826 2005-08-17  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/mbuiter.h: New file.
72829
72830 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72831
72832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72833         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72834         and gl_GETOPT are both invoked via different paths (as happens
72835         with GNU tar CVS because it uses both argp and getopt), the former
72836         wins.
72837
72838 2005-08-16  Bruno Haible  <bruno@clisp.org>
72839
72840         * modules/tls: New file.
72841         * MODULES.html.sh (Multithreading): Add tls.
72842
72843 2005-08-16  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/strnlen1: New file.
72846         * MODULES.html.sh (String handling): Add strnlen1.
72847
72848 2005-08-16  Bruno Haible  <bruno@clisp.org>
72849
72850         * modules/strcase (Files): Add m4/mbrtowc.m4.
72851         (Depends-on): Add strnlen1, mbchar.
72852
72853 2005-08-16  Bruno Haible  <bruno@clisp.org>
72854
72855         * modules/mbiter: New file.
72856         * MODULES.html.sh (Extended multibyte and wide character utilities):
72857         Add mbiter.
72858
72859 2005-08-16  Bruno Haible  <bruno@clisp.org>
72860
72861         * modules/mbfile: New file.
72862         * MODULES.html.sh (Extended multibyte and wide character utilities):
72863         Add mbfile.
72864
72865 2005-08-16  Bruno Haible  <bruno@clisp.org>
72866
72867         * modules/mbchar: New file.
72868         * MODULES.html.sh (Extended multibyte and wide character utilities):
72869         New section.
72870
72871 2005-08-16  Bruno Haible  <bruno@clisp.org>
72872
72873         * m4/tls.m4: New file, from GNU gettext.
72874
72875 2005-08-16  Bruno Haible  <bruno@clisp.org>
72876
72877         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72878         always.
72879         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72880
72881 2005-08-16  Bruno Haible  <bruno@clisp.org>
72882
72883         * m4/mbiter.m4: New file.
72884
72885 2005-08-16  Bruno Haible  <bruno@clisp.org>
72886
72887         * m4/mbfile.m4: New file.
72888
72889 2005-08-16  Bruno Haible  <bruno@clisp.org>
72890
72891         * m4/mbchar.m4: New file.
72892
72893 2005-08-16  Bruno Haible  <bruno@clisp.org>
72894
72895         * lib/tls.h: New file, from GNU gettext.
72896         * lib/tls.c: New file, from GNU gettext.
72897
72898 2005-08-16  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/strnlen1.h: New file.
72901         * lib/strnlen1.c: New file.
72902
72903 2005-08-16  Bruno Haible  <bruno@clisp.org>
72904
72905         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72906         (mbi_init): Update.
72907         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72908         NUL byte, not after it.
72909
72910 2005-08-16  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/strcase.h (strcasecmp): Add note in comments.
72913         * lib/strncasecmp.c: Use code from strcasecmp.c.
72914         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72915         (strcasecmp): Work correctly in multibyte locales.
72916
72917 2005-08-16  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/mbiter.h: New file.
72920
72921 2005-08-16  Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/mbfile.h: New file.
72924
72925 2005-08-16  Bruno Haible  <bruno@clisp.org>
72926
72927         * lib/mbchar.h: New file.
72928         * lib/mbchar.c: New file.
72929
72930 2005-08-16  Bruno Haible  <bruno@clisp.org>
72931
72932         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72933         the valid ones. Makes the comparison operations transitive:
72934         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72935         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72936
72937 2005-08-15  Simon Josefsson  <jas@extundo.com>
72938
72939         * modules/ssize_t (License): Change to 'unlimited'.
72940
72941         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72942
72943 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72946         Add comments for each pending glibc patch.
72947
72948 2005-08-15  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72951         __cplusplus is defined.
72952
72953 2005-08-14  Jim Meyering  <jim@meyering.net>
72954
72955         Sync from coreutils.
72956
72957         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72958         Use the hash-table-based cycle-detection code not just when
72959         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72960         Reported by James Youngman in
72961         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72962         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72963         FTS_TIGHT_CYCLE_CHECK.
72964         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72965         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72966         once again.
72967         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72968         * lib/fts.c (fd_safer): Remove decl.
72969         Include fcntl--.h rather than unistd-safer.h
72970         (fts_safe_changedir): Don't call fd_safer; no longer needed
72971         now that we include fcntl--.h.
72972
72973 2005-08-12  Simon Josefsson  <jas@extundo.com>
72974
72975         * modules/getndelim2: Use ssize_t module.
72976         * modules/getnline: Likewise.
72977         * modules/safe-read: Likewise.
72978         * modules/xreadlink: Likewise.
72979
72980         * modules/ssize_t: New file.
72981
72982 2005-08-12  Simon Josefsson  <jas@extundo.com>
72983
72984         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72985
72986 2005-08-12  Simon Josefsson  <jas@extundo.com>
72987
72988         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72989         ssize_t.
72990
72991 2005-08-12  Simon Josefsson  <jas@extundo.com>
72992
72993         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72994         readline, getdelim and check_version.
72995         (Support for systems lacking ISO C 99: Sizes of integer types):
72996         Add size_max.
72997
72998 2005-08-12  Bruno Haible  <bruno@clisp.org>
72999
73000         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73001
73002 2005-08-11  Simon Josefsson  <jas@extundo.com>
73003
73004         * modules/readline: New file.
73005
73006         * modules/strnlen (Files): Add strnlen.h.
73007
73008 2005-08-11  Simon Josefsson  <jas@extundo.com>
73009
73010         * m4/readline.m4: New file.
73011
73012 2005-08-11  Simon Josefsson  <jas@extundo.com>
73013
73014         * lib/readline.h, readline.c: New file.
73015
73016 2005-08-11  Simon Josefsson  <jas@extundo.com>
73017
73018         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73019         gl_AVOID.
73020
73021 2005-08-11  Bruno Haible  <bruno@clisp.org>
73022
73023         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73024
73025 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73026
73027         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73028
73029 2005-08-10  Simon Josefsson  <jas@extundo.com>
73030
73031         * tests/test-iconvme.c: New file.
73032
73033 2005-08-10  Simon Josefsson  <jas@extundo.com>
73034
73035         * m4/strnlen.m4: New file.
73036
73037         * m4/strndup.m4: Don't check for strnlen declaration, done in
73038         strnlen.m4.
73039
73040 2005-08-10  Simon Josefsson  <jas@extundo.com>
73041
73042         * lib/strndup.c: Use strnlen.h.
73043
73044         * lib/strnlen.h: New file.
73045
73046 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73047
73048         * README: Typos.
73049
73050 2005-08-02  Simon Josefsson  <jas@extundo.com>
73051
73052         * modules/readline: New file.
73053
73054 2005-08-02  Simon Josefsson  <jas@extundo.com>
73055
73056         * modules/getdelim: New file.
73057
73058         * modules/getline: Rewrite, don't use getndelim2.
73059
73060 2005-08-02  Simon Josefsson  <jas@extundo.com>
73061
73062         * m4/getline.m4: Separate out getdelim stuff into separate module.
73063
73064         * m4/getdelim.m4: New file.
73065
73066 2005-08-02  Simon Josefsson  <jas@extundo.com>
73067
73068         * lib/getline.h, getline.c: Rewrite.
73069
73070         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73071
73072 2005-07-31  Bruno Haible  <bruno@clisp.org>
73073
73074         * lib/lock.h (gl_lock_initializer): New macro.
73075         (gl_lock_define_initialized): Use it.
73076         (gl_rwlock_initializer): New macro.
73077         (gl_rwlock_define_initialized): Use it.
73078         (gl_recursive_lock_initializer): New macro.
73079         (gl_recursive_lock_define_initialized): Use it.
73080
73081 2005-07-30  Karl Berry  <karl@gnu.org>
73082
73083         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73084         Report from Ben Pfaff, regarding getopt.
73085
73086 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73087
73088         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73089         normal way.
73090         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73091         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73092         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73093         (gl_GETOPT): Use the new macros.  Most of the implementation
73094         is moved to the new macros.  This is for programs like Emacs
73095         that don't want all the functionality of gl_GETOPT.
73096
73097 2005-07-26  Bruno Haible  <bruno@clisp.org>
73098
73099         * m4/lock.m4: Update from GNU gettext.
73100
73101 2005-07-26  Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/lock.h: Update from GNU gettext.
73104         * lib/lock.c: Update from GNU gettext.
73105
73106 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73109         obsolescent AC_TRY_RUN.  Include the default includes files, for
73110         'exit'.
73111
73112 2005-07-24  Bruno Haible  <bruno@clisp.org>
73113
73114         * modules/visibility: New file.
73115         * MODULES.html.sh (Misc): Add visibility.
73116
73117 2005-07-24  Bruno Haible  <bruno@clisp.org>
73118
73119         * m4/visibility.m4: New file.
73120
73121 2005-07-24  Bruno Haible  <bruno@clisp.org>
73122
73123         * doc/visibility.texi: New file.
73124
73125 2005-07-22  Bruno Haible  <bruno@clisp.org>
73126
73127         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73128         $(ALLOCA_H), redundant through BUILT_SOURCES.
73129         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73130         redundant through BUILT_SOURCES.
73131         * modules/byteswap (Makefile.am): Remove explicit dependency on
73132         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73133         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73134         $(FNMATCH_H), redundant through BUILT_SOURCES.
73135         * modules/getopt (Makefile.am): Remove explicit dependency on
73136         $(GETOPT_H), redundant through BUILT_SOURCES.
73137         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73138         redundant through BUILT_SOURCES.
73139         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73140         redundant through BUILT_SOURCES.
73141         * modules/stdbool (Makefile.am): Remove explicit dependency on
73142         $(STDBOOL_H), redundant through BUILT_SOURCES.
73143         * modules/stdint (Makefile.am): Remove explicit dependency on
73144         $(STDINT_H), redundant through BUILT_SOURCES.
73145         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73146         Remove explicit dependency on $(SYSEXITS_H).
73147         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73148
73149 2005-07-18  Simon Josefsson  <jas@extundo.com>
73150
73151         * lib/check-version.c (check_version): Accept identical versions too.
73152
73153 2005-07-18  Bruno Haible  <bruno@clisp.org>
73154
73155         * modules/lock: New file.
73156         * MODULES.html.sh (Multithreading): New section.
73157
73158 2005-07-18  Bruno Haible  <bruno@clisp.org>
73159
73160         * m4/lock.m4: New file, from GNU gettext.
73161
73162 2005-07-18  Bruno Haible  <bruno@clisp.org>
73163
73164         * lib/lock.h: New file, from GNU gettext.
73165         * lib/lock.c: New file, from GNU gettext.
73166
73167 2005-07-18  Bruno Haible  <bruno@clisp.org>
73168
73169         * lib/lock.h (gl_once_t): New type.
73170         (gl_once_define, gl_once): New macros.
73171         * lib/lock.c (fresh_once): New variable.
73172         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73173         functions.
73174
73175 2005-07-16  Simon Josefsson  <jas@extundo.com>
73176
73177         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73178         workaround, suggested by Bruno.
73179
73180 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * modules/xalloc (Depends-on): Add xalloc-die.
73183         * modules/xvasprintf (Depends-on): Add xalloc-die.
73184
73185 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73188         with a minor change.
73189
73190 2005-07-15  Bruno Haible  <bruno@clisp.org>
73191
73192         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73193         When using lib/poll.c, define poll as rpl_poll.
73194
73195 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * modules/argp (Depends-on): Remove unlocked-io.
73198
73199 2005-07-14  Derek Price  <derek@ximbiot.com>
73200
73201         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73202         for glob symlink bug.
73203
73204 2005-07-14  Bruno Haible  <bruno@clisp.org>
73205
73206         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73207         Instead, test for *_unlocked function declarations directly.
73208
73209 2005-07-11  Simon Josefsson  <jas@extundo.com>
73210
73211         * modules/size_max: New file.
73212
73213         * modules/xsize: Depend on size_max module for size_max.m4.
73214
73215 2005-07-11  Simon Josefsson  <jas@extundo.com>
73216
73217         * lib/size_max.h: New file.
73218
73219 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73222         copyright symbol and the year.
73223         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73224         (version_etc_va): Use parameterized copyright notice.
73225         Reword to conform to the current GNU coding standards.
73226
73227 2005-07-11  Karl Berry  <karl@gnu.org>
73228
73229         * doc/gnulib.texi (Quoting): new node.
73230         (Initial import): more info, from Patrice.
73231
73232 2005-07-11  Bruno Haible  <bruno@clisp.org>
73233
73234         * gnulib-tool (func_usage): Document option --avoid.
73235         (Command line options): Handle --avoid.
73236         (func_acceptable): New function.
73237         (func_modules_transitive_closure): Use it.
73238
73239 2005-07-11  Bruno Haible  <bruno@clisp.org>
73240
73241         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73242         Reported by Jim Meyering.
73243
73244 2005-07-10  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73247         Needed when size_t is smaller than 'unsigned int'.
73248         Reported by Paul Eggert.
73249
73250 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73251
73252         * modules/argp (Depends-on): Add unlocked-io
73253
73254 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73255
73256         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73257         block of defines.
73258
73259 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73262         fix now.
73263
73264 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73265         and Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73268         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73269
73270 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * modules/regex (Files): Add lib/regex_internal.c,
73273         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73274         (Depends-on): Add extensions.
73275         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73276
73277 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73280         pathconf.
73281         * m4/same.m4 (gl_SAME): Likewise.
73282         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73283
73284         * m4/regex.m4: Adjust to new libc regex implementation.
73285         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73286         all the .c and .h parts of (the new) regex.
73287         Quote the m4 stuff better.
73288         Check for RE_ICASE bug of old gnulib.
73289         Check for REG_STARTEND of recent libc.
73290         Rename local variables from jm_* to gl_*.
73291         Quote operand of "test -f".
73292         Say "recent enough" version of libc, not "version 2".
73293         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73294         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73295         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73296         Remove check for btowc, isascii.
73297         Require AM_LANGINFO_CODESET.
73298
73299 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * lib/regex.c, regex.h: Sync from libc.
73302         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73303         * lib/regexec.c:
73304         New files, synced from libc, except that regex_internal.h
73305         currently has a small porting fix.
73306
73307 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73310         regex_internal.c, regexec.c.
73311         Add regex_internal.h too, but as a comment, since the libc version
73312         is currently broken in gnulib mode.
73313
73314 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         Support programs like Emacs that use gnulib but not gettext.
73317         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73318         * modules/gettext-h: New file.
73319         * modules/gettext (Files): Remove lib/gettext.h.
73320         (Depends-on): Add gettext-h.
73321         (Makefile.am): Remove lib_SOURCES.
73322         * modules/argmatch, modules/c-stack, modules/closeout:
73323         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73324         * modules/execute, modules/file-type, modules/getaddrinfo:
73325         * modules/getopt, modules/human, modules/javacomp:
73326         * modules/javaexec, modules/mkdir-p, modules/obstack:
73327         * modules/openat, modules/pagealign_alloc, modules/pipe:
73328         * modules/quotearg, modules/regex, modules/rpmatch:
73329         * modules/unicodeio, modules/userspec, modules/version-etc:
73330         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73331         * modules/xsetenv:
73332         Depend on gettext-h, not gettext.
73333
73334 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * gnulib-tool (func_import): Add support for 'public domain' license.
73337         * modules/alloca, modules/atexit, modules/memmove:
73338         Now public domain, not GPL.
73339         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73340         * modules/realloc, modules/strerror, modules/strtod:
73341         Now LGPL, not GPL.
73342
73343 2005-07-05  Bruno Haible  <bruno@clisp.org>
73344
73345         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73346         autoconf CVS. Needed for mingw.
73347
73348 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         Remove the dependency of the strftime module on the tzset module.
73351         * modules/strftime (Depends-on): Remove dependency on tzset.
73352
73353 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         Remove the dependency of the strftime module on the tzset module.
73356         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73357         gl_FUNC_TZSET_CLOBBER.
73358
73359 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         Remove the dependency of the strftime module on the tzset module.
73362         * lib/strftime.c (my_strftime)
73363         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73364         Copy the input structure, to work around some of the bug with
73365         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73366         Solaris releases, you should also use the tzset module, but we won't
73367         require it as a dependency any more since we don't want LGPLed code
73368         to depend on GPLed code.
73369
73370 2005-07-02  Jim Meyering  <jim@meyering.net>
73371
73372         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73373         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73374         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73375         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73376
73377 2005-07-02  Jim Meyering  <jim@meyering.net>
73378
73379         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73380
73381 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73384         declares only 'struct timespec;' (!).
73385
73386 2005-07-01  Jim Meyering  <jim@meyering.net>
73387
73388         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73389         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73390         * lib/save-cwd.c, tempname.c:
73391         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73392         and don't include <sys/file.h>).
73393
73394 2005-06-29  Jim Meyering  <jim@meyering.net>
73395
73396         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73397         type name.  Use the variable name instead.
73398         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73399         Likewise.
73400
73401 2005-06-28  Simon Josefsson  <jas@extundo.com>
73402
73403         * modules/check-version (Files): Add check-version.m4.
73404
73405 2005-06-28  Simon Josefsson  <jas@extundo.com>
73406
73407         * m4/check-version.m4: New file, suggested by Jim Meyering
73408         <jim@meyering.net>.
73409
73410 2005-06-28  Simon Josefsson  <jas@extundo.com>
73411
73412         * lib/check-version.h, lib/check-version.c: New files.
73413
73414 2005-06-28  Simon Josefsson  <jas@extundo.com>
73415
73416         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73417         collision with global variable.  Better indentation.  Don't
73418         increment buffer pointer beyond buffer end.  Based on comments
73419         from Paul Eggert <eggert@cs.ucla.edu>.
73420
73421         * lib/base64.h: Indent.
73422
73423 2005-06-28  Simon Josefsson  <jas@extundo.com>
73424
73425         * doc/gnulib.texi (Library version handling): New section.
73426
73427 2005-06-28  Jim Meyering  <jim@meyering.net>
73428
73429         * check-module (find_included_lib_files): Hard-code another
73430         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73431         but modules/fts-lgpl (correctly) does not list those files.
73432
73433         * modules/canonicalize (Files): Add lib/pathmax.h.
73434
73435 2005-06-25  Simon Josefsson  <jas@extundo.com>
73436
73437         * modules/check-version: New file.
73438
73439 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73442         initializer of struct addrinfo, as an indication that we don't
73443         care how many members the structure has.
73444
73445 2005-06-24  Derek Price  <derek@ximbiot.com>
73446         and Bruno Haible  <bruno@clisp.org>
73447
73448         Remove stat module & update lstat.
73449         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73450         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73451         * m4/stat.m4: Remove this file.
73452
73453 2005-06-24  Derek Price  <derek@ximbiot.com>
73454         and Bruno Haible  <bruno@clisp.org>
73455
73456         Remove stat module & update lstat.
73457         * lib/stat.c: Remove this file...
73458         (slash_aware_lstat): ...moving this content and its support...
73459         * lib/lstat.c (rpl_lstat): ...into here.
73460         * lib/lstat.h: New file.
73461
73462 2005-06-24  Derek Price  <derek@ximbiot.com>
73463         and Bruno Haible  <bruno@clisp.org>
73464
73465         Remove stat module & update lstat.
73466         * config/srclist.txt (libc sources): Remove stat.
73467
73468 2005-06-24  Derek Price  <derek@ximbiot.com>
73469         and Bruno Haible  <bruno@clisp.org>
73470
73471         Remove stat module & update lstat.
73472         * MODULES.html.sh (stat): Remove.
73473         * MODULES.html: Regenerated.
73474         * modules/lstat (Description): Correct function name.
73475         (Files): Add "lstat.h".
73476         (Depends-on): Remove stat, add xalloc, stat-macros.
73477         * modules/stat: Remove this file.
73478         (Include): Add "lstat.h", remove <sys/stat.h>.
73479
73480 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73481
73482         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73483         (ranged_convert): Don't save conversion in a temporary struct.
73484         This causes a warning with GCC 4.0.0, and anyway in the typical
73485         case it's not worth the extra 100 bytes or so of code.
73486         (ranged_convert, __mktime_internal): When calling a function via a
73487         pointer P, use P () rather than (*P) (), as we now assume C89 or
73488         better.
73489
73490 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73493         "who -r" failed to give output.  Problem reported by Tim Waugh.
73494
73495         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73496         (xcalloc): Use it to avoid needless tests.
73497         Problem reported by Jim Meyering.
73498
73499 2005-06-20  Derek Price  <derek@ximbiot.com>
73500
73501         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73502         unnecessary for Autoconfs > 2.59c.
73503
73504 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73505
73506         * lib/argp.h (__option_is_short): Check upper limit of
73507         __key. Isprint() requires its argument to have the value
73508         of an unsigned char or EOF.
73509
73510 2005-06-16  Jim Meyering  <jim@meyering.net>
73511
73512         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73513         when either N or S is zero.
73514
73515 2005-06-16  Derek Price  <derek@ximbiot.com>
73516
73517         * m4/bison.m4: Declare YACC & YFLAGS precious.
73518
73519 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73520
73521         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73522         multibyte string or pattern, fall back on unibyte matching.
73523         Problem reported by James Youngman.
73524
73525 2005-06-08  Bruno Haible  <bruno@clisp.org>
73526
73527         * modules/csharpcomp: New file.
73528         * MODULES.html.sh (C#): Add csharpcomp.
73529
73530 2005-06-08  Bruno Haible  <bruno@clisp.org>
73531
73532         * m4/csharpcomp.m4: New file, from GNU gettext.
73533
73534 2005-06-08  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/csharpcomp.h: New file, from GNU gettext.
73537         * lib/csharpcomp.c: New file, from GNU gettext.
73538         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73539
73540 2005-06-08  Bruno Haible  <bruno@clisp.org>
73541
73542         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73543         warning on mingw.
73544
73545 2005-06-07  Derek Price  <derek@ximbiot.com>
73546
73547         Sync from CVS.
73548         * lib/glob_.h: Indent nested #ifdef.
73549
73550 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         Sync from coreutils.
73553         Use "file name" when talking about file names, instead of "filename"
73554         or "path", as per the GNU coding standards.
73555         * lib/mkdir-p.c: Renamed from makepath.c.
73556         (make_dir_parents): Renamed from make_path.  All callers changed.
73557         * lib/mkdir-p.h: Likewise.  All includers changed.
73558         * lib/filenamecat.c: Renamed from path-concat.c.
73559         (file_name_concat): Renamed from path_concat.  All callers changed.
73560         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73561         * lib/filenamecat.h: Likewise.  All includers changed.
73562         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73563         in comments or local variable names.
73564         * lib/basename.c: Likewise.
73565         * lib/canonicalize.c, canonicalize.h: Likewise.
73566         * lib/dirname.c, dirname.h: Likewise.
73567         * lib/euidaccess.c: Likewise.
73568         * lib/exclude.c: Likewise
73569         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73570         * lib/fsusage.c, fsuage.h: Likewise.
73571         * lib/fts.c, fts_.h: Likewise.
73572         * lib/getcwd.c: Likewise.
73573         * lib/getloadavg.c: Likewise.
73574         * lib/mkstemp.c: Likewise.
73575         * lib/mountlist.c, mountlist.h: Likewise.
73576         * lib/openat.c, openat.h: Likewise.
73577         * lib/readlink-stub.c: Likewise.
73578         * lib/readutmp.c, readutmp.h: Likewise.
73579         * lib/rename.c: Likewise.
73580         * lib/rmdir.c: Likewise.
73581         * lib/same.c: Likewise.
73582         * lib/savedir.c: Likewise.
73583         * lib/stripslash.c: Likewise.
73584         * lib/tempname.c: Likewise.
73585         * lib/xreadlink.c: Likewise.
73586         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73587         All uses changed.
73588         * lib/exclude.h: Likewise.
73589
73590         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73591         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73592         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73593         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73594         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73595         files have been getting away with it for years (MORE/BSD 4.3
73596         is extinct now).
73597         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73598         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73599
73600         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73601         Define to 256, not 255, as per modern POSIX.
73602
73603 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         Sync from coreutils.
73606         Use "file name" when talking about file names, instead of "filename"
73607         or "path", as per the GNU coding standards.
73608         * MODULES.html.sh: mkdir-p renamed from makepath.
73609         filenamecat renamed from path-concat.
73610         * modules/filenamecat: Renamed from modules/path-concat.
73611         (Files): filenamecat.h and filenamecat.c renamed from
73612         path-concat.h and path-concat.c.
73613         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73614         (Include): filenamecat.h, not path-concat.h.
73615         * modules/mkdir-p: Renamed from modules/makepath.
73616         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73617         makepath.c.
73618         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73619         (Include): mkdir-p.h, not makepath.h.
73620
73621 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         Sync from coreutils.
73624         * m4/mkdir-p.m4: Renamed from makepath.m4.
73625         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73626         Rename files from makepath.c to mkdir-p.c, and from
73627         makepath.h to mkdir-p.h.
73628         * m4/filenamecat.m4: Renamed from path-concat.m4.
73629         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73630         Rename files from path-concat.c to filenamecat.c,
73631         and from path-concat.h to filenamecat.h.
73632         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73633         "file name" in local variables or comments.
73634         * m4/rename.m4: Likewise.
73635
73636 2005-06-01  Bruno Haible  <bruno@clisp.org>
73637
73638         * modules/csharpexec: New file.
73639         * MODULES.html.sh (C#): New section.
73640
73641 2005-06-01  Bruno Haible  <bruno@clisp.org>
73642
73643         * m4/csharp.m4: New file, from GNU gettext.
73644         * m4/csharpexec.m4: New file, from GNU gettext.
73645
73646 2005-06-01  Bruno Haible  <bruno@clisp.org>
73647
73648         * lib/csharpexec.h: New file, from GNU gettext.
73649         * lib/csharpexec.c: New file, from GNU gettext.
73650         * lib/csharpexec.sh.in: New file, from GNU gettext.
73651
73652 2005-05-31  Derek Price  <derek@ximbiot.com>
73653             Paul Eggert  <eggert@cs.ucla.edu>
73654
73655         Sync from cvs.
73656         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73657
73658 2005-05-31  Derek Price  <derek@ximbiot.com>
73659             Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         Sync from cvs.
73662         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73663
73664 2005-05-29  Derek Price  <derek@ximbiot.com>
73665
73666         * config/srclist.txt (glob_.h, glob.c): Add these files.
73667
73668 2005-05-29  Derek Price  <derek@ximbiot.com>
73669
73670         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73671         * modules/glob: New file.
73672         * modules/getlogin_r: Add link to POSIX spec in description.
73673
73674 2005-05-29  Derek Price  <derek@ximbiot.com>
73675             Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         * m4/glob.m4: New file.
73678
73679 2005-05-29  Derek Price  <derek@ximbiot.com>
73680             Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * lib/glob_.h, lib/glob.c: New files.
73683
73684 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73687         * modules/fts-lgpl (Depends-on): Remove gettext.
73688
73689 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73692         and don't require gt_INTTYPES_PRI.
73693
73694 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73697
73698         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73699         the configuration hassle isn't worth it.
73700         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73701         (LONGEST_MODIFIER, PRIuMAX): Remove.
73702
73703 2005-05-27  Bruno Haible  <bruno@clisp.org>
73704
73705         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73706
73707 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73708
73709         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73710         _POSIX_PTHREAD_SEMANTICS for Solaris.
73711
73712 2005-05-25  Derek Price  <derek@ximbiot.com>
73713
73714         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73715
73716 2005-05-25  Derek Price  <derek@ximbiot.com>
73717             Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73720         * lib/getlogin_r.c, getlogin_r.h: New files.
73721
73722 2005-05-25  Bruno Haible  <bruno@clisp.org>
73723             Derek Price  <derek@ximbiot.com>
73724
73725         * lib/getlogin_r.h: Simplify API documentation.
73726
73727 2005-05-23  Derek Price  <derek@ximbiot.com>
73728
73729         * modules/minmax (Files): Add m4/minmax.m4.
73730         (configure.ac): Add gl_MINMAX.
73731
73732 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73735         so that unistd-safer.h (GPL'ed code) need not be included.
73736
73737 2005-05-22  Bruno Haible  <bruno@clisp.org>
73738
73739         * m4/minmax.m4: New file.
73740         Based on a patch by Derek Price <derek@ximbiot.com>.
73741
73742 2005-05-22  Bruno Haible  <bruno@clisp.org>
73743
73744         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73745         (INT64_MIN): Fix definition.
73746         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73747
73748         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73749         NEED_SIGNED_INT_TYPES.
73750
73751         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73752         HAVE_SYSTEM_INTTYPES.
73753
73754 2005-05-22  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73757         Also include <sys/param.h> if it defines MIN, MAX.
73758         Based on a patch by Derek Price <derek@ximbiot.com>.
73759
73760 2005-05-21  Jim Meyering  <jim@meyering.net>
73761
73762         * modules/fts (Files): Add m4/inttypes-pri.m4.
73763         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73764
73765 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         New fts module.
73768         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73769         (setup_dir, free_dir): New functions.
73770         (enter_dir, leave_dir): Define trivial
73771         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73772         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73773         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73774         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73775         Move to fts-cycle.c.
73776         (fts_open): Use setup_dir.
73777         (fts_close): Use free_dir.
73778         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73779         This adds a label and some gotos, but the alternatives were messier.
73780         Check for memory allocation failure when entering a dir.
73781         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73782         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73783         (FTS): New member fts_cycle, that is a union that contains the
73784         old active_dir_ht and cycle_state.  All uses changed to mention
73785         fts_cycle.ht and fts_cycle.state.
73786         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73787         fts.c, with the following changes:
73788         (setup_dir, free_dir): New functions.
73789         (enter_dir): Now returns bool.  Return true if successful, false
73790         if memory exhausted.  All callers changed.
73791         Do not bother partly cleaning up on
73792         memory allocation failure; that is free_dir's job.
73793         However, free ad if hash_insert fails, to avoid memory leak.
73794         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73795         fts->fts_options to see which union member to use.
73796
73797 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73800         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73801
73802 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73805
73806 2005-05-20  Jim Meyering  <jim@meyering.net>
73807
73808         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73809         Now a macro, to pacify GCC.
73810
73811 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73812
73813         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73814         of -1.
73815
73816 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73817
73818         * lib/chown.c (rpl_chown): Return -1 on failure.
73819
73820 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73823         Don't check for stddef.h.
73824         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73825         don't use its results.
73826         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73827         since we include them unconditionally.  Don't require
73828         AM_STDBOOL_H, since stdbool is a prerequisite.
73829         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73830         since we assume C89 or better.
73831         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73832         as we don't use their results.
73833         Don't check for fchdir, memmove, memset, strrchr, as we use
73834         them unconditionally.
73835         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73836         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73837
73838 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73841         Include <stddef.h> unconditionally, since we assume C89 now.
73842         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73843         * lib/fts.c: Include fts_.h first, to check interface.
73844         Do not include intprops.h; no longer needed.
73845         Include cycle-check.h and hash.h, since fts_.h no longer does.
73846         Remove unnecessary casts of closedir to void.
73847         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73848         decide whether to decrement nlinks.
73849         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73850         (FTS): Use struct hash_table * instead of Hash_table, so that
73851         we no longer need to include hash.h here.
73852
73853 2005-05-18  Jim Meyering  <jim@meyering.net>
73854
73855         * modules/dirfd (License): Change to LGPL.  Most of the code
73856         is already in the public domain.
73857
73858 2005-05-18  Jim Meyering  <jim@meyering.net>
73859
73860         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73861         Reported by Yoann Vandoorselaere.
73862
73863 2005-05-17  Jim Meyering  <jim@meyering.net>
73864
73865         * m4/fts.m4: New file, from coreutils.
73866
73867 2005-05-17  Jim Meyering  <jim@meyering.net>
73868
73869         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73870
73871 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         Sync from coreutils.
73874         * m4/unlinkdir.m4: New file.
73875
73876 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         Sync from coreutils.
73879         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73880         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73881         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73882         White space changes only.
73883         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73884         special.
73885         * lib/yesno.c: Include getline.h, not ctype.h.
73886         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73887         Use getline to remove arbitrary restriction on response length.
73888
73889 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * config/srclist-update: Spell out "Street" in FSF postal
73892         mail address; this is the style the FSF seems to prefer.
73893
73894         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73895         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73896         this updates FSF postal mail address.
73897
73898         Sync from coreutils.
73899         * modules/unlinkdir: New file.
73900         * modules/yesno (Depends-on): Add getline.
73901         * MODULES.html.sh (File system functions): Add unlinkdir.
73902
73903 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73906         lib/strsep.h:
73907         Change the initial comment to refer to GPL, not LGPL.
73908         gnulib-tool will change it to LGPL as needed.
73909
73910         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73911         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73912         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73913         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73914         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73915         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73916         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73917         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73918         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73919         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73920         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73921         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73922         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73923         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73924         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73925         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73926         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73927         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73928         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73929         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73930         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73931         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73932         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73933         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73934         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73935         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73936         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73937         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73938         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73939         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73940         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73941         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73942         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73943         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73944         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73945         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73946         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73947         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73948         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73949         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73950         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73951         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73952         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73953         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73954         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73955         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73956         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73957         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73958         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73959         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73960         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73961         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73962         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73963         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73964         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73965         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73966         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73967         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73968         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73969         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73970         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73971         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73972         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73973         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73974         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73975         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73976         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73977         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73978         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73979         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73980         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73981         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73982         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73983         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73984         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73985         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73986         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73987         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73988         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73989         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73990         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73991         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73992         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73993         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73994         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73995         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73996         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73997         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73998         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73999         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74000         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74001         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74002         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74003         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74004         lib/yesno.c, lib/yesno.h:
74005         Update FSF postal mail address.
74006
74007 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74010         tests/test-memmem.c, tests/test-stpncpy.c:
74011         Update FSF postal mail address.
74012
74013 2005-05-13  Bruno Haible  <bruno@clisp.org>
74014
74015         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74016         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74017         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74018         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74019         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74020         Add support for 64-bit integers in the MSVC compiler.
74021
74022 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74023
74024         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74025
74026 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74027
74028         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74029
74030 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * doc/getdate.texi (General date syntax): Don't say that date
74033         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74034         Problem reported by Nic Ferrier.
74035
74036 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74037
74038         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74039         specified in ai_socktype. Fix invalid ai_protocol
74040         check. ai_protocol is usually set to 0 or depending on
74041         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74042         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74043         ai_socktype / ai_protocol in the returned addrinfo structure.
74044
74045 2005-05-10  Simon Josefsson  <jas@extundo.com>
74046
74047         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74048         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74049
74050 2005-05-10  Karl Berry  <karl@gnu.org>
74051
74052         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74053         (from http://www.gnu.org/licenses).
74054         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74055         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74056         fdl.texi suffices.
74057
74058 2005-05-10  Karl Berry  <karl@gnu.org>
74059
74060         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74061         (COPYING.DOC): remove.
74062
74063         * config/srclist-update: new FSF address.
74064
74065 2005-05-10  Derek Price  <derek@ximbiot.com>
74066
74067         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74068         possible.
74069
74070 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74071             Bruno Haible  <bruno@clisp.org>
74072
74073         * modules/inet_ntop: New file.
74074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74075         inet_ntop.
74076
74077 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74078             Bruno Haible  <bruno@clisp.org>
74079
74080         * m4/inet_ntop.m4: New file.
74081
74082 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74083             Bruno Haible  <bruno@clisp.org>
74084
74085         * lib/inet_ntop.h: New file.
74086         * lib/inet_ntop.c: New file, from glibc with modifications.
74087
74088 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * modules/time_r (License): Change to LGPL.
74091         * modules/extensions (License): Change to LGPL.  Actually,
74092         the license is more permissive than that, but currently gnulib-tool
74093         doesn't know how to handle more-permissive licenses.
74094
74095         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74096         Problem reported by Dave Love.
74097
74098 2005-05-08  Jim Meyering  <jim@meyering.net>
74099
74100         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74101         blank.
74102
74103 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74104
74105         * modules/argmatch (Depends-on): Add stdbool.
74106         * modules/backupfile (Depends-on): Likewise.
74107         * modules/chdir-long (Depends-on): Likewise.
74108         * modules/closeout (Depends-on): Likewise.
74109         * modules/cycle-check (Depends-on): Likewise.
74110         * modules/dirname (Depends-on): Likewise.
74111         * modules/fnmatch (Depends-on): Likewise.
74112         * modules/fsusage (Depends-on): Likewise.
74113         * modules/fwriteerror (Depends-on): Likewise.
74114         * modules/getcwd (Depends-on): Likewise.
74115         * modules/getloadavg (Depends-on): Likewise.
74116         * modules/hard-locale (Depends-on): Likewise.
74117         * modules/makepath (Depends-on): Likewise.
74118         * modules/mountlist (Depends-on): Likewise.
74119         * modules/nanosleep (Depends-on): Likewise.
74120         * modules/posixtm (Depends-on): Likewise.
74121         * modules/quotearg (Depends-on): Likewise.
74122         * modules/readtokens (Depends-on): Likewise.
74123         * modules/readtokens0 (Depends-on): Likewise.
74124         * modules/readutmp (Depends-on): Likewise.
74125         * modules/save-cwd (Depends-on): Likewise.
74126         * modules/strftime (Depends-on): Likewise.
74127         * modules/userspec (Depends-on): Likewise.
74128         * modules/utimecmp (Depends-on): Likewise.
74129         * modules/xgetcwd (Depends-on): Likewise.
74130         * modules/xnanosleep (Depends-on): Likewise.
74131         * modules/xstrtod (Depends-on): Likewise.
74132         * modules/yesno (Depends-on): Likewise.
74133
74134 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74135
74136         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74137         needless checks.
74138
74139 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         Merge from coreutils.  Among other things,
74142         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74143         * lib/fd-safer.c: New file.
74144         * lib/fcntl-safer.h, open-safer.c: Remove.
74145         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74146         * lib/dup-safer.c: Include unistd-safer.h first.
74147         Don't include errno.h.
74148         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74149         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74150         * lib/file-type.c: Rely on file-type.h change.
74151         * lib/getloadavg.c: Include unistd-safer.h.
74152         (getloadavg): Use safer open.
74153         * lib/getusershell.c: Include "stdio-safer.h".
74154         (getusershell): Use safer fopen.
74155         * lib/long-options.c (long_options): Use NULL rather than 0.
74156         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74157         'free'.
74158         * lib/modechange.c: Likewise.
74159         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74160         (MODE_DONE): New constant.
74161         (struct mode_change): Remove 'next' member.
74162         (make_node_op_equals): New function; like the old one of the
74163         same name, except it allocates an array.
74164         (mode_compile, mode_create_from_ref): Use it.
74165         (mode_compile): Allocate result as an array, not a linked list.
74166         Parse octal string ourself, so that we catch mistakes like "+0".
74167         (mode_adjust): Arg is an array, not a linked list.
74168         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74169         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74170         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74171         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74172         Remove.  This is now stat-macros.h's job.
74173         (talloc): Remove.  All callers replaced by xalloc, so that
74174         our invokers don't have to worry about reporting memory failures.
74175         (make_node_op_equals): Remove.
74176         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74177         New constants.
74178         (struct mode_change): Moved here from modechange.h.
74179         (mode_append_entry): Remove.
74180         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74181         apps to have incorrect behavior.  Use simpler algorithm for head
74182         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74183         Detect more invalid usages rather than having somewhat-random behavior.
74184         Don't insert an "a=" action, as that leads to incorrect behavior.
74185         (mode_compile, mode_create_from_ref): Return NULL on error instead
74186         of an enum, since now there's only one way to have an error.  All
74187         callers changed.
74188         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74189         at the correct time.  Simplify calculation of "+u" and its ilk.
74190         Don't mishandle "+X".
74191         (mode_free): Remove "register" and localize decls.
74192         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74193         (struct mode_change): Move to modechange.c; callers don't
74194         need to see this stuff.
74195         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74196         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74197         (mode_change, mode_adjust): Reflect the new signatures noted above.
74198         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74199         that might redefine system include files.
74200         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74201         (my_usleep): Use NULL rather than (void *) 0.
74202         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74203         Use siginterrupt to specify that system calls should be interrupted.
74204         (rpl_nanosleep): Move initialization of suspended closer to call of
74205         my_usleep.
74206         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74207         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74208         (desirable_utmp_entry): New function.
74209         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74210         using x2nrealloc, to simplify logic.
74211         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74212         size calculation.  Do not assume utmp file is a regular file.
74213         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74214         (READ_UTMP_CHECK_PIDS): New constant.
74215         * lib/save-cwd.c: Include unistd-safer.h.
74216         (save_cwd): Use fd_safer.
74217         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74218         [!_LIBC] Include "stat-macros.h" instead.
74219         * lib/unistd-safer.h (fd_safer): New decl.
74220
74221 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74222
74223         * modules/getloadavg (Depends-on): Add unistd-safer.
74224         * modules/getusershell (Depends-on): Add stdio-safer.
74225         * modules/lstat (Depends-on): Remove xalloc.
74226         * modules/mkstemp (Depends-on): Add stat-macros.
74227         * modules/modechange (Depends-on): Remove xstrtol.
74228         Add stat-macros, xalloc.
74229         * modules/save-cwd (Depends-on): Add unistd-safer.
74230         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74231         * modules/unistd-safer (Files): Add lib/fd-safer.c
74232         (Makefile.am): Remove lib_SOURCES.
74233
74234         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74235         Remove fcntl-safer; unistd-safer supersedes it.
74236
74237 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74240         AC_HEADER_STAT.
74241         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74242         (gl_PREREQ_CHOWN): Remove.
74243         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74244         it.  Don't require AC_HEADER_STAT.
74245         (gl_PREREQ_LSTAT): Remove.
74246         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74247         Don't require AC_HEADER_STAT.
74248         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74249         (gl_PREREQ_RMDIR): Remove.
74250         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74251         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74252         the stat-macros module a prerequisite.
74253         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74254         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74255         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74256         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74257         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74258         variable names.
74259         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74260         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74261         variable prefixes.
74262         * m4/fcntl-safer.m4: Remove.
74263         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74264         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74265         Invoke gl_PREREQ_FD_SAFER.
74266         (gl_PREREQ_FD_SAFER): New macro.
74267         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74268         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74269         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74270         Remove duplicate call to AC_LIBOBJ(readutmp).
74271         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74272
74273         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74274         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74275
74276 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * MODULES.html.sh (Misc): Add byteswap.
74279
74280 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74281
74282         * modules/getcwd (Depends-on): Add extensions.
74283         * modules/openat (Depends-on): Likewise.
74284
74285 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74286
74287         * modules/byteswap: New file.
74288
74289 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74290
74291         * m4/byteswap.m4: New file.
74292
74293 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74294
74295         * lib/byteswap_.h: New file.
74296
74297 2005-04-25  Karl Berry  <karl@gnu.org>
74298
74299         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74300
74301 2005-04-25  Albert Chin  <china@thewrittenword.com>
74302
74303         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74304         Toolkit C bug.
74305
74306 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74307
74308         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74309         (func_ln_if_changed): Remove forcibly for no error message
74310         in case file does not exist.
74311
74312 2005-04-19  Simon Josefsson  <jas@extundo.com>
74313
74314         * gnulib-tool (Options): Make --symlink mean --symbolic.
74315
74316 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74317
74318         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74319
74320 2005-04-16  Simon Josefsson  <jas@extundo.com>
74321
74322         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74323
74324 2005-04-15  Simon Josefsson  <jas@extundo.com>
74325
74326         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74327
74328 2005-04-15  Simon Josefsson  <jas@extundo.com>
74329
74330         * gnulib-tool: Rename --symlink to --symbolic.
74331
74332 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74333
74334         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74335         symbolic links to files instead of copying/moving.  Add --aux-dir,
74336         specifying directory relative --dir where auxiliary build tools
74337         are placed.
74338
74339 2005-04-14  Bruno Haible  <bruno@clisp.org>
74340
74341         * modules/allocsa (License): Change to LGPL.
74342         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74343
74344 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74347         that "UTC +1 second" continues to work.  Problem reported
74348         by Dmitry V. Levin.
74349         (relunit_snumber): New rule.
74350         (relunit): Use it.
74351
74352 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         * lib/getdate.y (universal_time_zone_table): New constant.
74355         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74356         universal_time_zone_table.
74357         (lookup_zone): Prefer universal_time_zone_table to
74358         local_time_zone_table, so that "GMT" time stamps are allowed in
74359         London during the summer.  Problem reported by Ian Abbott.
74360
74361 2005-04-12  Jim Meyering  <jim@meyering.net>
74362
74363         * lib/human.c (humblock): Set *options even when returning due to
74364         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74365         warning from gcc-4.
74366
74367 2005-04-09  Jim Meyering  <jim@meyering.net>
74368
74369         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74370         -Wuninitialized: initialize tm0.tm_year.
74371
74372 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74375         count, since there's no maximum.  All uses changed.
74376         Add member dsts_seen.
74377         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74378         not being INT_MAX.
74379         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74380         Use pc_rels_seen to decide whther a date is absolute.
74381
74382         * lib/getdate.y (number): Don't overwrite year.
74383         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74384         check.
74385
74386 2005-04-02  Simon Josefsson  <jas@extundo.com>
74387
74388         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74389         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74390
74391 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74392
74393         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74394         where no absolute path name can be longer than PATH_MAX.
74395
74396 2005-03-27  Jim Meyering  <jim@meyering.net>
74397
74398         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74399
74400 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74403         "one's complement" -> "ones' complement" in comment, as per Knuth.
74404         "value of type" -> "type or expression" in comment.
74405         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74406
74407 2005-03-26  Jim Meyering  <jim@meyering.net>
74408
74409         Comment nits.
74410         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74411         Correct typos: s/or/of/.
74412
74413 2005-03-26  Jim Meyering  <jim@meyering.net>
74414
74415         * modules/check-include-files: Move to ../ and rename to...
74416         * check-module: ...this.
74417
74418 2005-03-25  Jim Meyering  <jim@meyering.net>
74419
74420         * modules/xvasprintf (Files): Add xalloc.h.
74421
74422 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74423
74424         * modules/gettext (Files): config/config.rpath ->
74425         build-aux/config.rpath
74426         * modules/iconv (Files): Likewise.
74427         Problem reported by Oskar Liljeblad.
74428
74429 2005-03-23  Jim Meyering  <jim@meyering.net>
74430
74431         * modules/check-include-files: New script to check for
74432         missing dependencies, multiple includes, etc.
74433
74434         * modules/c-strtold (Depends-on): Add xalloc.
74435         * modules/c-strtod (Depends-on): Add xalloc.
74436         * modules/hash (Depends-on): Add xalloc.
74437         (Files): Remove lib/xalloc.h.
74438
74439         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74440         * modules/userspec (Files): Add lib/inttostr.h.
74441
74442 2005-03-23  Jim Meyering  <jim@meyering.net>
74443
74444         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74445
74446 2005-03-22  Jim Meyering  <jim@meyering.net>
74447
74448         * modules/stat-macros: New module.
74449         * modules/canonicalize, modules/euidaccess, modules/file-type,
74450         * modules/filemode, modules/lchown, modules/makepath,
74451         * modules/rmdir, modules/stat: Depend on new stat-macros module
74452         rather than listing lib/stat-macros.h manually.
74453         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74454
74455 2005-03-22  Jim Meyering  <jim@meyering.net>
74456
74457         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74458
74459 2005-03-22  Bruno Haible  <bruno@clisp.org>
74460
74461         * config/srclist.txt: Replace target directory 'config' with
74462         'build-aux'.
74463         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74464         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74465         ../build-aux/.
74466
74467 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * modules/chdir-long (Depends-on): Add mempcpy.
74470
74471         * modules/acl, modules/backupfile, modules/c-strtod,
74472         modules/c-strtold, modules/canon-host, modules/canonicalize,
74473         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74474         modules/exclude, modules/exitfail, modules/file-type,
74475         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74476         modules/getdate, modules/getline, modules/getpagesize,
74477         modules/getpass, modules/getugroups, modules/group-member,
74478         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74479         modules/inttostr, modules/long-options, modules/makepath,
74480         modules/md5, modules/memcasecmp, modules/memcoll,
74481         modules/modechange, modules/mountlist, modules/path-concat,
74482         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74483         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74484         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74485         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74486         modules/strftime, modules/strndup, modules/strverscmp,
74487         modules/timespec, modules/unlocked-io, modules/userspec,
74488         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74489         modules/yesno:
74490         Remove lib_SOURCES line from Makefile.am section, as this is now
74491         done automatically by the corresponding Autoconf macro.
74492
74493 2005-03-21  Jim Meyering  <jim@meyering.net>
74494
74495         Changes imported from coreutils.
74496
74497         * lib/cycle-check.c: Don't include xalloc.h.
74498
74499         * lib/path-concat.c: Don't include assert.h.
74500         (path_concat): Remove assertion that would have triggered
74501         for ABASE starting with more than one slash.
74502         Reported by Andreas Schwab.
74503
74504         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74505         properly when ABASE is an absolute file name.
74506         Correct the description of this function.
74507         Include <assert.h>.
74508         Add an assertion and a test driver.
74509         This fixes a bug introduced on 2004-07-02.
74510         Andreas Schwab reported the resulting failure of cp --parents:
74511         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74512
74513 2005-03-21  Jim Meyering  <jim@meyering.net>
74514
74515         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74516         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74517
74518 2005-03-21  Jim Meyering  <jim@meyering.net>
74519         and  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74522         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74523         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74524         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74525         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74526         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74527         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74528         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74529         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74530         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74531         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74532         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74533         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74534         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74535         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74536         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74537         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74538         for these modules.
74539
74540 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74543         (which shouldn't happen), generate nothing instead of returning 0
74544         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74545
74546 2005-03-16  Bruno Haible  <bruno@clisp.org>
74547
74548         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74549         HAVE_LONGLONG_64BIT.
74550
74551 2005-03-16  Bruno Haible  <bruno@clisp.org>
74552
74553         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74554         HAVE_LONGLONG_64BIT.
74555
74556 2005-03-16  Bruno Haible  <bruno@clisp.org>
74557
74558         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74559         HAVE_LONGLONG_64BIT.
74560
74561 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74562
74563         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74564         reliably distinguish strftime failure from empty output on POSIX
74565         hosts.
74566
74567 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74570         (iconv_string): Don't guess a size-zero buffer, as that might cause
74571         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74572         result would be 'too large', where 'too large' is (heuristically)
74573         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74574         overflow concerns.  This will prevent some unwanted malloc failures
74575         when the inputs are very large.
74576
74577 2005-03-15  Karl Berry  <karl@gnu.org>
74578
74579         * config/srclist.txt (config.rpath): from gettext.
74580         * config/config.rpath: update.
74581
74582 2005-03-15  Bruno Haible  <bruno@clisp.org>
74583
74584         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74585         to 'negate'.
74586
74587         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74588         variable.
74589
74590         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74591         results.
74592
74593 2005-03-14  Simon Josefsson  <jas@extundo.com>
74594
74595         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74596         <fx@gnu.org>.
74597
74598 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74601         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74602         intprops.h.
74603         * lib/strtol.c: Likewise.
74604
74605 2005-03-14  Jim Meyering  <jim@meyering.net>
74606
74607         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74608         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74609         to be nonzero so that we (and caller) can detect the difference
74610         between a valid zero-length expansion and an error return, even
74611         when the underlying strftime fails before writing anything into
74612         that location.
74613
74614 2005-03-14  Bruno Haible  <bruno@clisp.org>
74615
74616         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74617         Update from GNU gettext 0.14.3.
74618
74619 2005-03-10  Jim Meyering  <jim@meyering.net>
74620
74621         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74622
74623 2005-03-10  Jim Meyering  <jim@meyering.net>
74624
74625         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74626         so that this module works on systems without fchdir.
74627
74628 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         Factor int-properties macros into a single file, except for
74631         glibc-related files.
74632         * lib/intprops.h: New file.
74633         * lib/getloadavg.c: Include it instead of limits.h.
74634         (INT_STRLEN_BOUND): Remove.
74635         * lib/human.c: Include intprops.h.
74636         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74637         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74638         302/1000.
74639         * lib/inttostr.h: Include intprops.h instead of limits.h.
74640         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74641         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74642         for consistency with intprops.h.
74643         (time_t_is_integer, twos_complement_arithmetic): Use them.
74644         * lib/sig2str.h: Include <signal.h>, intprops.h.
74645         (INT_STRLEN_BOUND): Remove.
74646         * lib/strftime.c (TYPE_SIGNED): Remove.
74647         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74648         * lib/strtol.c: Adjust comments to match intprops.h.
74649         * lib/userspec.c: Include intprops.h.
74650         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74651         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74652         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74653         instead of rolling our own expressions.
74654         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74655
74656         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74657         instead of int.
74658         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74659         the right thing even if adding 1900 would overflow.  Similarly
74660         for tm_mon + 1 and tm_yday + 1.
74661         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74662         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74663         (DO_SIGNED_NUMBER): New macro.
74664         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74665
74666 2005-03-07  Bruno Haible  <bruno@clisp.org>
74667
74668         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74669
74670 2005-03-07  Bruno Haible  <bruno@clisp.org>
74671
74672         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74673
74674 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74675
74676         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74677         (func_import): Only replace files via --import when they have actually
74678         changed.
74679
74680 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74681
74682         * m4/mmap-anon.m4: New file.
74683         * m4/pagealign_alloc.m4: New file.
74684
74685 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74686             Bruno Haible  <bruno@clisp.org>
74687
74688         * modules/pagealign_alloc: New file.
74689         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74690
74691 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74692             Bruno Haible  <bruno@clisp.org>
74693
74694         * lib/pagealign_alloc.h: New file.
74695         * lib/pagealign_alloc.c: New file.
74696
74697 2005-03-03  Bruno Haible  <bruno@clisp.org>
74698
74699         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74700         Use an all-permissive copyright notice, recommended by RMS.
74701
74702 2005-03-02  Bruno Haible  <bruno@clisp.org>
74703
74704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74705         of AIX, the replacement has to be done only after <string.h> is
74706         included, therefore not in config.h. stpncpy.h does the replacement,
74707         and stpncpy.c uses it.
74708
74709 2005-03-02  Bruno Haible  <bruno@clisp.org>
74710
74711         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74712         stpncpy.c uses it.
74713
74714 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74717         The workaround isn't strictly needed for POSIX conformance, and
74718         it's too much of a pain to configure and maintain.  We'll ask
74719         people to fix their kernels instead.
74720         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74721         (NANOSLEEP_BUG_WORKAROUND): Remove.
74722         (xnanosleep): Remove the workaround.
74723
74724 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74725
74726         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74727         Reported by Derek Price.
74728         (Include): Add "timespec.h".
74729
74730         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74731
74732 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74735         to detect nanosleep bug.
74736
74737 2005-03-01  Bruno Haible  <bruno@clisp.org>
74738
74739         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74740
74741 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74742
74743         * modules/gethrxtime: New file.
74744         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74745         (Depends-on): Add gethrxtime.
74746         (configure.ac): Add gl_XNANOSLEEP.
74747         (Makefile.am): Remove lib_SOURCES line.
74748
74749 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74752         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74753
74754 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74757         * lib/timespec.h (gettime): Return void, since it always
74758         succeeds now.  All uses changed.
74759         * lib/gettime.c (gettime): Likewise.
74760         [HAVE_NANOTIME]: Prefer nanotime.
74761         Assume gettimeofday succeeds, as POSIX requires.
74762         Assime time () succeeds, since other code already does.
74763         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74764         (timespec_subtract): Remove.
74765         (NANOSLEEP_BUG_WORKAROUND): New constant.
74766         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74767         things considerably.  Use it only on GNU/Linux hosts, since the
74768         workaround shouldn't be needed elsewhere.
74769
74770 2005-02-24  Bruno Haible  <bruno@clisp.org>
74771
74772         * modules/gettext (Files): Add m4/glibc2.m4.
74773
74774 2005-02-24  Bruno Haible  <bruno@clisp.org>
74775
74776         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74777         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74778         * m4/progtest.m4:
74779         Update from GNU gettext 0.14.2.
74780         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74781
74782 2005-02-24  Bruno Haible  <bruno@clisp.org>
74783
74784         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74785         * lib/config.charset: Update from GNU gettext 0.14.2.
74786
74787 2005-02-24  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/gettext.h: Update from GNU gettext 0.14.2.
74790
74791 2005-02-23  Simon Josefsson  <jas@extundo.com>
74792
74793         * m4/iconvme.m4: New file.
74794
74795 2005-02-23  Jim Meyering  <jim@meyering.net>
74796
74797         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74798         change.
74799         Thanks to Bruno Haible for catching it.
74800
74801 2005-02-22  Simon Josefsson  <jas@extundo.com>
74802
74803         * modules/iconvme: New file.
74804
74805         * MODULES.html.sh: Add iconvme.
74806
74807 2005-02-22  Simon Josefsson  <jas@extundo.com>
74808
74809         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74810
74811 2005-02-22  Simon Josefsson  <jas@extundo.com>
74812
74813         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74814
74815 2005-02-22  Jim Meyering  <jim@meyering.net>
74816
74817         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74818         s/ifndef/ifdef/.
74819
74820 2005-02-20  Neil Conway  <neilc@samurai.com>
74821
74822         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74823         returned by OSX/Darwin if the specified buffer is not large
74824         enough for the hostname.
74825
74826 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74827
74828         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74829         pass it to _help, otherwise the latter coredumps trying to
74830         dereference state.root_argp.
74831
74832 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * modules/chdir-long (Depends-on): Add memrchr.
74835         * modules/memrchr (Files): Add lib/memrchr.h.
74836         (Include): "memrchr.h".
74837
74838 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74841
74842 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * lib/memrchr.h: New file.
74845         * lib/chdir-long.c: Include it.
74846         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74847         Don't bother including stddef.h.
74848
74849 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74850
74851         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74852         inclusion.
74853         Include <sys/types.h>, for dev_t.
74854         (ME_DUMMY, ME_REMOTE): Move from here....
74855         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74856         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74857         Dmitry V. Levin.
74858         Include mountlist.h first, to test the interface.
74859
74860 2005-01-29  Bruno Haible  <bruno@clisp.org>
74861
74862         * lib/progname.c (program_name): Initialize.
74863         Needed when linking statically on MacOS X.
74864
74865 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         Sync from coreutils.
74868         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74869         (Depends-on): Add c-strtod.
74870         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74871
74872 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         Sync from coreutils.
74875         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74876
74877         Remove files that are specific to coreutils.
74878         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74879
74880 2005-01-28  Bruno Haible  <bruno@clisp.org>
74881
74882         * modules/javacomp: New file.
74883         * MODULES.html.sh (Java): Add javacomp.
74884
74885 2005-01-28  Bruno Haible  <bruno@clisp.org>
74886
74887         * m4/javacomp.m4: New file, from GNU gettext.
74888
74889 2005-01-28  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/javacomp.sh.in: New file, from GNU gettext.
74892         * lib/javacomp.h: New file, from GNU gettext.
74893         * lib/javacomp.c: New file, from GNU gettext.
74894
74895 2005-01-26  Simon Josefsson  <jas@extundo.com>
74896
74897         * lib/gai_strerror.c: Use GPL in header.
74898
74899 2005-01-26  Bruno Haible  <bruno@clisp.org>
74900
74901         * modules/javaexec: New file.
74902         * MODULES.html.sh (Java): Add javaexec.
74903
74904 2005-01-26  Bruno Haible  <bruno@clisp.org>
74905
74906         * m4/javaexec.m4: New file, from GNU gettext.
74907
74908 2005-01-26  Bruno Haible  <bruno@clisp.org>
74909
74910         * lib/javaexec.sh.in: New file, from GNU gettext.
74911         * lib/javaexec.h: New file, from GNU gettext.
74912         * lib/javaexec.c: New file, from GNU gettext.
74913
74914 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74915
74916         * modules/lchown (Depends-on): Remove lchown.h
74917
74918 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74919
74920         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74921         must be defined if the header file was not found, in order
74922         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74923
74924 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74925
74926         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74927         initializers for struct pentry_state.
74928         (__argp_error): Check return value of __asprintf
74929         (__argp_failure): Translate error message
74930
74931         * lib/argp-parse.c: Removed braces around the expansion of N_()
74932
74933 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74936         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74937         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74938         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74939         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74940         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74941         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74942         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74943         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74944         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74945         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74946         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74947         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74948         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74949         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74950         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74951         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74952         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74953         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74954         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74955         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74956         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74957         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74958         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74959         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74960         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74961         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74962         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74963         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74964         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74965         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74966         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74967         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74968         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74969         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74970         Use an all-permissive copyright notice, recommended by RMS.
74971
74972 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * modules/chdir-long (Depends-on): Remove mempcpy.
74975
74976 2005-01-21  Jim Meyering  <jim@meyering.net>
74977
74978         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74979         same value as for Solaris 9.
74980
74981         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74982         component length.  This included changing the parameter to be
74983         of type `char *' rather than `char const *'.
74984         * lib/chdir-long.h (chdir_long): Update prototype.
74985
74986         * lib/openat.c (fdopendir, fstatat): New functions.
74987         * lib/openat.h: Include headers required for use of DIR and struct
74988         stat.
74989         [AT_SYMLINK_NOFOLLOW]: Define.
74990         (fdopendir, fstatat): Add prototypes.
74991
74992 2005-01-21  Bruno Haible  <bruno@clisp.org>
74993
74994         * modules/classpath: New file.
74995         * MODULES.html.sh (Java): Add classpath.
74996
74997 2005-01-21  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/classpath.h: New file, from GNU gettext.
75000         * lib/classpath.c: New file, from GNU gettext.
75001
75002 2005-01-20  Simon Josefsson  <jas@extundo.com>
75003
75004         * modules/version-etc-fsf: New file.
75005
75006 2005-01-20  Simon Josefsson  <jas@extundo.com>
75007
75008         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75009         * lib/version-etc.c: Remove version_etc_copyright.
75010         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75011         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75012
75013 2005-01-20  Simon Josefsson  <jas@extundo.com>
75014
75015         * lib/base64.h (isbase64): Add.
75016
75017         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75018         using a unsigned prototype, don't inline.
75019         (base64_decode): Use it.
75020
75021 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75024         it.
75025
75026 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         * lib/save-cwd.c (save_cwd): Remove code to support the case
75029         where fchdir is missing or flaky.
75030
75031 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75034
75035 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75036
75037         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75038         AC_LIBSOURCES now does this.
75039         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75040         with new ullong_max module.
75041
75042 2005-01-19  Bruno Haible  <bruno@clisp.org>
75043
75044         * modules/sh-quote: New file.
75045         * MODULES.html.sh (Executing programs): Add sh-quote.
75046
75047 2005-01-19  Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/sh-quote.h: New file, from GNU gettext.
75050         * lib/sh-quote.c: New file, from GNU gettext.
75051
75052 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         Merge from coreutils.
75055         * m4/ullong_max.m4: New file.
75056         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75057         (gl_MACROS): Assume localeconv exists.
75058
75059 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         Merge changes from coreutils, as described below in several
75062         changelogs dated today.
75063
75064         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75065         (O_DIRECTORY): Remove; not needed here, since "." must be
75066         a directory.  All uses removed.
75067         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75068         universal on Suns, and we also need to test for IRIX.
75069         Revamp code to use 'if' rather than '#if'.
75070         Avoid unnecessary comparison of cwd->desc to 0.
75071
75072         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75073         for known valid error numbers rather than observed invalid ones.
75074
75075 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * modules/ullong_max: New file.
75078
75079         * modules/chdir-long, modules/openat: New files.
75080         * modules/save-cwd (Depends-on): Depend on chdir-long.
75081         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75082
75083 2005-01-18  Jim Meyering  <jim@meyering.net>
75084
75085         Merge from coreutils.
75086         * m4/chdir-long.m4, m4/openat.m4: New files.
75087         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75088         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75089         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75090         is sane and DOES follow symlinks.  Besides, testing 20 different
75091         systems found no broken chown implementations.
75092         Prompted by a change in rsync's copy of this macro.
75093         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75094
75095         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75096
75097         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75098         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75099         NULL-means-set-to-current-time semantics.
75100         Remove temporary file immediately, rather than waiting
75101         for configure's at-exit trap code to do it.
75102
75103 2005-01-18  Jim Meyering  <jim@meyering.net>
75104
75105         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75106
75107         * lib/utimens.c (futimens): Account for the fact that futimes
75108         can also fail with errno == ENOSYS or errno == ENOENT.
75109         Patch from Dmitry V. Levin.
75110
75111         Change the name of the robust chdir function from chdir to chdir_long.
75112         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75113         (restore_cwd): Use chdir_long, not chdir.
75114         * lib/chdir-long.c: Renamed from chdir.c.
75115         * lib/chdir-long.h: Renamed from chdir.h.
75116         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75117         Hurd.
75118
75119 2005-01-18  Bruno Haible  <bruno@clisp.org>
75120
75121         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75122         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75123         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75124         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75125         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75126         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75127         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75128         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75129         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75130         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75131         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75132         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75133         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75134         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75135         Use an all-permissive copyright notice, recommended by RMS.
75136
75137 2005-01-18  Bob Proulx  <bob@proulx.com>
75138
75139         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75140         simplify offsetof() macro construct to avoid compile failure with
75141         native HP-UX 11.0 ANSI C compiler.
75142
75143 2005-01-17  Bruno Haible  <bruno@clisp.org>
75144
75145         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75146         redundant because stpncpy.m4 takes care of it.
75147
75148 2005-01-17  Bruno Haible  <bruno@clisp.org>
75149
75150         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75151
75152 2005-01-17  Bruno Haible  <bruno@clisp.org>
75153
75154         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75155         used.
75156
75157 2005-01-17  Bruno Haible  <bruno@clisp.org>
75158
75159         * lib/fwriteerror.h (fwriteerror): Change specification to include
75160         fclose.
75161         * lib/fwriteerror.c: Include <stdbool.h>.
75162         (fwriteerror): At the end, close the file stream. Record whether
75163         stdout was already closed.
75164
75165 2005-01-17  Bruno Haible  <bruno@clisp.org>
75166
75167         * lib/execute.c (environ): Declare if needed.
75168         * lib/pipe.c (environ): Likewise.
75169         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75170
75171 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75172
75173         * modules/argp: Depend on vsnprintf
75174
75175 2005-01-10  Jim Meyering  <jim@meyering.net>
75176
75177         * modules/closeout (Depends-on): Add atexit.
75178
75179 2005-01-06  Bruno Haible  <bruno@clisp.org>
75180
75181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75182
75183 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75186         definitions to be after all include files, to avoid collisions.
75187         Problem reported by Bob Proulx.
75188
75189 2005-01-04  Jim Meyering  <jim@meyering.net>
75190
75191         Changes imported from coreutils.
75192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75193         as the mkstemp template, use a temporary directory and an
75194         8.3-friendly template to avoid trouble on systems like DJGPP.
75195         Reported by Juan M. Guerrero via Stepan Kasal.
75196         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75197         close. Remove the temporary directory right away, rather than waiting
75198         for configure's at-exit trap code to do it.
75199         Suggestion from Stepan Kasal.
75200
75201 2005-01-01  Simon Josefsson  <jas@extundo.com>
75202
75203         * gnulib-tool: Print #include directives when --import'ing.
75204
75205 2004-12-28  Simon Josefsson  <jas@extundo.com>
75206
75207         * tests/test-base64.c: Include required header files.  Remove
75208         unused variables.
75209
75210 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * modules/error (Depends-on): Remove gettext.
75213
75214 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75217         not needed.  This removes a dependency on the gettext module.
75218         [defined _LIBC]: Do not include <libintl.h>; not needed.
75219
75220 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75223         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75224
75225 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75226
75227         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75228         HAVE_DECL_STRTOLD.
75229
75230 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75231
75232         * modules/getdate (Depends-on): Remove alloca-opt.
75233
75234 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75237
75238 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75239
75240         * lib/argp-parse.c: Include <stddef.h>.
75241         (alignof, alignto): New macros.
75242         (parser_init): Don't assume that void * is aligned sufficiently
75243         for struct option.
75244
75245         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75246         need to extend the stack.
75247         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75248         large.
75249
75250 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75251
75252         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75253
75254 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75255
75256         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75257         (2004-10-24) change.  Apparently this was a false alarm.
75258
75259         * modules/getdate: Depend on alloca-opt, not alloca.
75260
75261 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75262
75263         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75264         Remove now-obsolete comment about AIX.
75265         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75266         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75267         (YYMAXDEPTH): New macro.
75268
75269 2004-12-18  Simon Josefsson  <jas@extundo.com>
75270
75271         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75272
75273 2004-12-18  Bruno Haible  <bruno@clisp.org>
75274
75275         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75276
75277 2004-12-18  Bruno Haible  <bruno@clisp.org>
75278
75279         * lib/fatal-signal.c (fatal_signals): Make non-const.
75280         (init_fatal_signals): New function.
75281         (uninstall_handlers, install_handlers): Ignore signals that were set to
75282         SIG_IGN.
75283         (at_fatal_signal): Call init_fatal_signals.
75284         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75285         SIG_IGN.
75286         Reported by Paul Eggert.
75287
75288 2004-12-18  Bruno Haible  <bruno@clisp.org>
75289
75290         * doc/alloca.texi: New file.
75291         * doc/alloca-opt.texi: New file.
75292
75293 2004-12-17  Jim Meyering  <jim@meyering.net>
75294
75295         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75296         Otherwise, install-sh could exit with improper exit status when
75297         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75298
75299 2004-12-16  Simon Josefsson  <jas@extundo.com>
75300
75301         * tests/test-base64.c: Add license.
75302
75303 2004-12-15  Stepan Kasal  <address@hidden>
75304
75305         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75306
75307 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * modules/getcwd (Files): Add m4/d-ino.m4.
75310         Suggested by Mark D. Baushke.
75311
75312 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         * lib/getdate.y (textint): New member "negative".
75315         (time_zone_hhmm): New function.
75316         Expect 14 shift-reduce conflicts, not 13.
75317         (o_colon_minutes): New rule.
75318         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75319         (yylex): Set the "negative" member of signed numbers.
75320
75321 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * doc/getdate.texi (Time of day items, Time zone items):
75324         Describe new formats +00:00, UTC+00:00.
75325
75326 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75329         spurious "-l"s.  Problem reported by Stepan Kasal.
75330
75331 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75334         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75335
75336 2004-12-04  Simon Josefsson  <jas@extundo.com>
75337
75338         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75339         Vandoorselaere <yoann@prelude-ids.org>.
75340
75341 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         Changes imported from coreutils.
75344         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75345         exist.
75346         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75347
75348 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         Changes imported from coreutils.
75351         * lib/hard-locale.c: Assume <locale.h> exists.
75352         Include "strdup.h".
75353         (GLIBC_VERSION): New macro.
75354         (hard_locale): Assume setlocale exists.
75355         Rewrite to avoid #ifdef.
75356         Use strdup rather than malloc + strcpy.
75357         * lib/human.c: Assume <locale.h> exists.
75358         (human_readable): Assume localeconv exists.
75359
75360 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * modules/hard-locale (Depends-on): Add strdup.
75363
75364 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75365
75366         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75367         convert T2, not T.  (Imported from libc.)
75368
75369 2004-11-30  Simon Josefsson  <jas@extundo.com>
75370
75371         * modules/restrict (License): Change to LGPL.
75372
75373 2004-11-30  Simon Josefsson  <jas@extundo.com>
75374
75375         * m4/restrict.m4: Add copyright and copying conditions.
75376
75377 2004-11-30  Simon Josefsson  <jas@extundo.com>
75378
75379         * m4/base64.m4: New file.
75380
75381 2004-11-30  Simon Josefsson  <jas@extundo.com>
75382
75383         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75384         base64.
75385
75386         * tests/test-base64.c: New file.
75387
75388         * modules/base64: New file.
75389
75390 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75391
75392         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75393         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75394
75395         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75396
75397 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75398
75399         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75400         (__getcwd.c): Don't restore errno; glibc doesn't.
75401         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75402         first, falling back to our code only if its results look suspicious.
75403         Ensure that the resulting buffer is only as large as necessary.
75404
75405         * lib/readutmp.c: Include readutmp.h first.
75406         Include <errno.h>, since readutmp.h no longer does that.
75407         * lib/readutmp.h: Don't include <errno.h>,
75408         <sys/param.h>, <time.h>; not needed to establish interface.
75409         (errno): Remove decl.
75410         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75411         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75412         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75413
75414 2004-11-28  Simon Josefsson  <jas@extundo.com>
75415
75416         * lib/base64.h, base64.c: New file.
75417
75418 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75421
75422 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75425         (Depends-on): Remove pathmax, same.  Add mempcpy.
75426         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75427         (Makefile.am): Append getcwd.h to lib_SOURCES.
75428         (Include): Add getcwd.h.
75429         (Maintainer): Change from Jim Meyering to "all, glibc",
75430         since getdate now uses intended-for-glibc code.
75431         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75432         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75433
75434 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75437         HP's ANSI C compiler.
75438         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75439         Declaring int functions causes warnings on some modern systems and
75440         shouldn't be needed to compile on ancient ones.
75441         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75442         defined.
75443
75444         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75445         with the following changes.
75446         (__set_errno): Parenthesize properly.
75447         Include <stdbool.h>.
75448         (MIN, MAX, MATCHING_INO): New macros.
75449         (__getcwd): Define with prototype, not K&R form.
75450         Use heuristics to allocate default buffer on stack if possible.
75451         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75452         behavior, and to avoid the PATH_MAX limit when computing
75453         ../../../../...
75454         Use MATCHING_INO to compare inode number to file.
75455         Check for arithmetic overflow in size calculations.
75456         Fix bug in reallocation of dot array that caused getcwd to fail
75457         on directories nested deeper than 75.
75458         Be more careful about saving errno on error.
75459         Do not use realloc; use only free+malloc, as this is a bit
75460         more flexible and avoids a needless copy operation.
75461         Do not inspect st_dev and st_ino for symbolic links; POSIX
75462         doesn't specify the latter.
75463         Check for closedir errors.
75464         Avoid needless casts.
75465         Use "#ifdef weak_alias" around weak_alias, to be like other
75466         glibc code.
75467         The following changes to getcwd.c have effect only when used in
75468         gnulib; they have no effect inside glibc proper.
75469         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75470         as alloca isn't used.
75471         (alloca, __alloca): Likewise.
75472         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75473         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75474         unconditionally, as gnulib assumes C89 or better.
75475         Do not include <sys/param.h>.
75476         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75477         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75478         better.
75479         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75480         Include <dirent.h> in a way that is compatible with modern Autoconf.
75481         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75482         New macros, if not already defined.
75483         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75484         Use "_LIBC", not "defined _LIBC", for consistency.
75485         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75486         a mempcpy module.
75487         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75488         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75489         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75490         credit only to Jim Meyering and adjust the copyright dates.
75491         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75492         <stdlib.h>, <unistd.h>, "pathmax.h".
75493         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75494         (INITIAL_BUFFER_SIZE): Remove.
75495         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75496
75497 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75500         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75501         Use the _ONCE methods, for efficiency.
75502         Check for fcntl.h.  In test program, include <errno.h>
75503         and <fcntl.h> if available.  Remove old K&R cruft from
75504         test program.  Check for common errors in GNU/Linux,
75505         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75506         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75507         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75508         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75509         name accordingly.
75510         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75511         accommodate new getcwd.c.
75512         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75513         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75514         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75515         that's all we need now.
75516
75517 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75518
75519         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75520         argp-parse.c depends on getopt internals, that means we should
75521         always use our getopt, to be on the safe side.
75522         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75523         order not to spoil the result of an eventual previous invocation
75524         of gl_GETOPT_SUBSTITUTE.
75525
75526 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75527
75528         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75529         redefinition warnings. To avoid them, include the defines
75530         in `#if !defined __need_getopt ... #endif'. The only place
75531         where __getopt_argv_const is used is in definitions
75532         of getopt_long and getopt_long_only below, which are as well
75533         protected by `#ifndef __need_getopt'.
75534         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75535         __need_getopt after including <stdio.h> and <unistd.h> These
75536         headers might have defined it.
75537
75538 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75539
75540         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75541
75542 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75545         (futimens): New function, which uses futimes if available.
75546         (futimens, utimens): Support timespec==NULL, with same semantics
75547         as utime and utimens.
75548         * lib/utimens.h (futimens): New decl.
75549
75550 2004-11-23  Jim Meyering  <jim@meyering.net>
75551
75552         * lib/getopt_.h: Remove trailing blanks.
75553
75554 2004-11-23  Jim Meyering  <jim@meyering.net>
75555
75556         * lib/__fpending.c: Add comment.
75557
75558 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75559
75560         * modules/canonicalize (Depends-on): Add xreadlink.
75561         Problem reported by James Youngman.
75562
75563 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75566         New macros.
75567         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75568         optopt): Use them instead of invoking ## directly; otherwise, the
75569         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75570
75571 2004-11-19  Bruno Haible  <bruno@clisp.org>
75572
75573         * lib/strtok_r.c: Move comments from here...
75574         * lib/strtok_r.h: ... to here.
75575
75576 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75579         implementations that mishandle size_t overflow.
75580
75581 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75584         might fail.  Problem reported by Yoann Vandoorselaere.
75585         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75586         implementations that mishandle size_t overflow.
75587
75588 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75589
75590         * modules/canon-host (Depends-on): Add strdup.
75591
75592 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75595
75596 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * lib/canon-host.c: Include "strdup.h".
75599         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75600         Use strdup instead of malloc/strcpy to duplicate strings.
75601
75602         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75603         (human_space_before_unit): New constant.
75604         * lib/human.c (human_readable): Support it.
75605
75606         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75607         (xgetcwd): Set errno correctly when failing.
75608         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75609         the failure is actually due to a PATH_MAX problem.
75610
75611         Further getopt changes to make it more likely that glibc will
75612         buy the changes back.
75613         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75614         (getopt): Use it, so to preserve glibc semantic
75615         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75616         when compiling for libc.
75617         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75618         (getopt_long, getopt_long_only): Use it.
75619
75620         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75621         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75622         (getopt): Argv is now char * const *, as per standard.
75623         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75624         not char *__getopt_argv_const *.
75625         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75626         _getopt_long_only_r): Likewise.
75627         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75628         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75629         _getopt_long_r, _getopt_long_only_r): Likewise.
75630         * lib/getopt_.h (__getopt_argv_const): Remove.
75631         (getopt): Argv is now char * const *, as per standard.
75632
75633         * lib/getdate.y (tORDINAL): New token.
75634         (day, relunit): Allow it for relative times.
75635         (relative_time_table): Use tORDINAL for ordinals.
75636
75637 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75640         Document that "second" isn't allowed as an ordinal number.
75641
75642 2004-11-16  Jim Meyering  <jim@meyering.net>
75643
75644         * modules/closeout (Depends-on): Add fpending.
75645
75646 2004-11-15  Jim Meyering  <jim@meyering.net>
75647
75648         * lib/closeout.c: Include "__fpending.h" once again.
75649         Include <stdbool.h>.
75650         (close_stdout): Don't fail just because stdout was closed initially,
75651         since some programs don't write to stdout in the normal course of
75652         operation (other than --version and --help), and we don't want this
75653         function to make e.g. `touch file >&-' fail.
75654         But do fail if it was closed and someone has tried to write to it.
75655         E.g., `printf foo >&-' must fail.
75656
75657 2004-11-13  Jim Meyering  <jim@meyering.net>
75658
75659         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75660
75661 2004-11-12  Simon Josefsson  <jas@extundo.com>
75662
75663         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75664         small doc fix is still pending.
75665
75666 2004-11-11  Simon Josefsson  <jas@extundo.com>
75667
75668         * modules/strtok_r: New file.
75669
75670         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75671         strtok_r.
75672
75673 2004-11-11  Simon Josefsson  <jas@extundo.com>
75674
75675         * m4/strtok_r.m4: New file.
75676
75677         * m4/getopt.m4: Replace opterr.
75678
75679 2004-11-11  Simon Josefsson  <jas@extundo.com>
75680
75681         * lib/strtok_r.h, strtok_r.c: New file.
75682
75683 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75684
75685         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75686         of replacing opterr, getopt, etc.  This should handle the
75687         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75688
75689 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75690
75691         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75692         we can stop lying to compilers about the constness of argv when we
75693         are compiled outside glibc.
75694         (getopt, getopt_long, getopt_long_only): Use it.
75695         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75696         _getopt_internal, getopt): Likewise.
75697         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75698         _getopt_long_only_r): Likewise.
75699         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75700         _getopt_long_r, _getopt_long_only_r): Likewise.
75701
75702         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75703         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75704         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75705         the other external symbols.
75706         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75707         declaration, since the above renaming now works around collisions.
75708
75709 2004-11-11  Jim Meyering  <jim@meyering.net>
75710
75711         * lib/linebreak.c: Remove trailing blanks.
75712         * lib/alloca_.h: Likewise.
75713         * lib/acosl.c: Likewise.
75714         * lib/euidaccess.c: Likewise.
75715         * lib/allocsa.h: Likewise.
75716
75717 2004-11-10  Simon Josefsson  <jas@extundo.com>
75718
75719         * m4/getaddrinfo.m4: New file.
75720
75721 2004-11-10  Simon Josefsson  <jas@extundo.com>
75722
75723         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75724
75725 2004-11-10  Simon Josefsson  <jas@extundo.com>
75726
75727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75728         getaddrinfo.
75729
75730         * modules/getaddrinfo: New file.
75731
75732 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75735
75736 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         * lib/mktime.c (SHR): New macro, which is a portable
75739         substitute for >> that should work even on Crays.
75740         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75741         Problem reported by Mark D. Baushke in
75742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75743         * lib/getdate.y (SHR): Likewise.
75744         (tm_diff): Use it.
75745         * lib/strftime.c (SHR): Likewise.
75746         (tm_diff): Use it.
75747         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75748         quote_these_too, so that right shifts are well defined.  All uses
75749         changed.
75750
75751 2004-11-10  Jim Meyering  <jim@meyering.net>
75752
75753         Ensure that no close failure goes unreported.
75754         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75755         return early when it seems there's nothing to flush.
75756         Don't include __fpending.h.
75757
75758 2004-11-10  Jim Meyering  <jim@meyering.net>
75759
75760         * modules/closeout (Depends-on): Remove fpending.
75761
75762 2004-11-10  Jim Meyering  <jim@meyering.net>
75763
75764         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75765
75766 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75769         gl_FUNC_STRFTIME.
75770         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75771         and AC_REQUIRE when possible, to avoid duplicate checks.
75772         Check for <wchar.h>.
75773
75774 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75777
75778 2004-11-09  Bruno Haible  <bruno@clisp.org>
75779
75780         * m4/sockpfaf.m4: New file.
75781
75782 2004-11-05  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75785         Reported by Mark D. Baushke <mdb@cvshome.org>.
75786
75787 2004-11-04  Bruno Haible  <bruno@clisp.org>
75788
75789         2004-09-11  Bruno Haible  <bruno@clisp.org>
75790                 * allocsa.valgrind: New file.
75791         2004-02-06  Bruno Haible  <bruno@clisp.org>
75792                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75793                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75794                 Reported by Christopher Seip <chris.seip@hp.com>.
75795
75796 2004-11-04  Bruno Haible  <bruno@clisp.org>
75797
75798         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75799         (Makefile.am): Distribute it.
75800
75801 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75804         with errno == ERANGE if the buffer is too small.
75805         Problem reported by Mark D. Baushke.
75806
75807 2004-11-03  Albert Chin  <china@thewrittenword.com>
75808             Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75811         equivalent, substitute $ac_type for equivalent type rather than
75812         blindly using uint32_t *always* which won't work if uint32_t is not
75813         available.  Define _UINT32_T to work around typedef of uint32_t if
75814         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75815         2.5.1.
75816
75817 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75818
75819         * m4/jm-macros.m4: Sync from coreutils.
75820         (gl_MACROS): Check for mbrlen, for pathchk.
75821         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75822
75823 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * lib/xreadlink.c (MAXSIZE): New macro.
75826         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75827         size does not exceed MAXSIZE.  Avoid cast.
75828         As suggested by Mark D. Baushke in
75829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75830         if readlink fails with buffer size just under MAXSIZE, try again
75831         with MAXSIZE.
75832
75833 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75836
75837 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75838         and  Paul Eggert  <eggert@cs.ucla.edu>
75839
75840         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75841         (get_date): Overparenthesize to avoid GCC warning.
75842
75843 2004-11-02  Bruno Haible  <bruno@clisp.org>
75844
75845         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75846         returns void.
75847
75848 2004-11-02  Bruno Haible  <bruno@clisp.org>
75849
75850         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75851         function returns void.
75852
75853 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75856         fflush_unlocked, flockfile, funlockfile, funlockfile,
75857         fputs_unlocked, putc_unlocked.
75858
75859 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75862         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75863         already declared.
75864
75865 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * modules/getdate (Files): Add doc/getdate.texi.
75868         (Depends-on): Add setenv, xalloc.
75869
75870 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         * lib/getdate.y: Add support for TZ="foo" within a date string.
75873         Fix some bugs near time_t boundaries.  Reject dates with
75874         out-of-range components, e.g., "Sept 31".
75875         Include <stdlib.h>, "setenv.h", "xalloc.h".
75876         (ISDIGIT_LOCALE): Remove; unused.
75877         Note that the TZ and time functions used here are not reentrant.
75878         (mktime_ok, get_tz): New functions.
75879         (TZBUFSIZE): New constant.
75880         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75881         This requires that we sometimes generate our own TZ="XXX..." setting.
75882
75883 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * doc/getdate.texi: New file, from coreutils with modifications for
75886         the new TZ parsing.
75887
75888 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75889
75890         * lib/mktime.c (not_equal_tm): Remove redundant check.
75891
75892 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * modules/regex (lib_SOURCES): Add regex.c.
75895         Reported by James Youngman in
75896         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75897
75898 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75899
75900         * lib/getdate.y: Use Bison 1.875 features, and some minor
75901         code cleanups.  This change does not affect semantics.
75902         Don't include <stdlib.h>; no longer needed.
75903         Don't include unlocked-io.h; only the "#if TEST" code uses
75904         stdio, and performance isn't crucial there.
75905         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75906         Bison 1.875 features as described below.
75907         All uses of "PC." replaced by "pc->".
75908         (YYSTYPE): Add a forward declaration.
75909         (yylex, yyerror): Use full prototypes in forward decls.
75910         Use "%pure-parser" rather than obsolescent "%pure_parser".
75911         Use %parse-param and %lex-param instead of obsolescent
75912         YYPARSE_PARAM and YYLEX_PARAM.
75913         (meridian_table, month_and_day_table, time_units_table,
75914         relative_time_table, time_zone_table, military_table,
75915         lookup_zone, lookup_word, get_date):
75916         Use NULL instead of 0 where appropriate.
75917         (to_hour): Avoid abort (), to avoid a dependency on
75918         stdlib.h.
75919         (yyerror, yylex): Now accepts parser_control * arg.
75920         (main) [TEST]: Use '\0' rather than 0 for char.
75921
75922 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75925
75926 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75929         It's now the caller's responsibility to handle the case where
75930         !HAVE_GETPAGESIZE && !defined getpagesize.
75931
75932         * lib/mktime.c (leapyear): Arg is long int, not int.
75933
75934 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75937
75938 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75941         missing.  Problem reported by James Youngman.
75942
75943 2004-10-16  Simon Josefsson  <jas@extundo.com>
75944
75945         * gnulib-tool: Fix comments.  Fix parse problem.
75946         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75947
75948 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75951         implementation of getopt_long.  Problem reported by Alexander Taler in:
75952         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75953
75954 2004-10-15  Bruno Haible  <bruno@clisp.org>
75955
75956         * gnulib-tool: Untabify. Initialize supplied_libname.
75957         (func_usage): More homogenous output.
75958         (func_modules_transitive_closure, func_modules_to_filelist,
75959         func_emit_lib_Makefile_am): New functions.
75960         (func_import): New function, extracted from big case statement. Use
75961         func_get_license, func_modules_transitive_closure,
75962         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75963         opt_lgpl. Don't use test -a, as it's not portable.
75964         (func_create_testdir): Use func_modules_transitive_closure,
75965         func_modules_to_filelist, func_emit_lib_Makefile_am.
75966
75967 2004-10-15  Bruno Haible  <bruno@clisp.org>
75968
75969         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75970
75971 2004-10-15  Bruno Haible  <bruno@clisp.org>
75972
75973         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75974         the portions belonging to each module.
75975         Suggested by Derek Robert Price <derek@ximbiot.com>.
75976
75977 2004-10-12  Simon Josefsson  <jas@extundo.com>
75978
75979         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75980         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75981         to real functions.
75982
75983 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75984
75985         * modules/vsnprintf: New file.
75986
75987 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75988
75989         * m4/vsnprintf.m4: New file.
75990
75991 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75992
75993         * lib/vsnprintf.h: New file.
75994         * lib/vsnprintf.c: New file.
75995
75996 2004-10-11  Bruno Haible  <bruno@clisp.org>
75997
75998         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75999         vsnprintf.
76000
76001 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76004
76005 2004-10-07  Bruno Haible  <bruno@clisp.org>
76006
76007         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76008         fits into the provided buffer.
76009
76010 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * lib/diacrit.c, diacrit.h: Add GPL notice.
76013
76014         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76015         notice.
76016         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76017         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76018         This avoids a potential constant-folding bug.
76019
76020 2004-10-05  Bruno Haible  <bruno@clisp.org>
76021
76022         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76023         for the declaration of strsep.
76024
76025 2004-10-05  Bruno Haible  <bruno@clisp.org>
76026
76027         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76028
76029 2004-10-04  Simon Josefsson  <jas@extundo.com>
76030
76031         * modules/memmem: New file.
76032         * tests/test-memmem.c: New file.
76033         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76034
76035 2004-10-04  Simon Josefsson  <jas@extundo.com>
76036
76037         * m4/memmem.m4: New file.
76038
76039 2004-10-04  Simon Josefsson  <jas@extundo.com>
76040
76041         * lib/memmem.h: New file.
76042         * lib/memmem.c: New file, taken from glibc.
76043
76044 2004-10-04  Simon Josefsson  <jas@extundo.com>
76045
76046         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76047         '#ifdef USE_UNLOCKED_IO'.
76048
76049 2004-10-04  Simon Josefsson  <jas@extundo.com>
76050
76051         * config/srclist.txt: Add memmem from glibc.
76052
76053 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76056
76057         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76058         modules/exclude, modules/getdate, modules/getline,
76059         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76060         modules/getusershell, modules/linebuffer, modules/md5,
76061         modules/mountlist, modules/posixtm, modules/readtokens,
76062         modules/readutmp, modules/regex, modules/sha1,
76063         modules/version-etc, modules/yesno:
76064         Remove dependency on unlocked-io.
76065
76066 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76069
76070         * m4/unlocked-io.m4: Add copyright notice.
76071         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76072
76073 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76074
76075         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76076         * lib/xmalloc.c (xmemdup): Likewise.
76077         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76078         XFREE): Remove these long-obsolescent macros.
76079         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76080         * lib/xstrdup.c: Remove.
76081
76082         * lib/regex.c (re_comp): Cast gettext return value to char *,
76083         Problem reported by Martin Neitzel via Mark D. Baushke.
76084
76085 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76088         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76089         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76090         regex.c, sha1.c, version-etc.c, yesno.c:
76091         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76092         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76093         the includer's responsibility.
76094
76095         Sync from coreutils.
76096
76097         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76098         points to the start of a string, as the C Standard says the
76099         resulting behavior is undefined.
76100
76101         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76102         simple -> simple_backups, numbered_existing ->
76103         numbered_existing_backups, numbered -> numbered_backups
76104         to avoid shadowing problems.  All uses changed.
76105         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76106         * lib/backupfile.c (check_extension, numbered_backup):
76107         Rename locals to avoid shadowing 'basename'.
76108         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76109         once.
76110
76111         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76112         * lib/.cvsignore: Add getopt.h.
76113
76114 2004-10-04  Bruno Haible  <bruno@clisp.org>
76115
76116         * modules/README: New file.
76117         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76118         not a module.
76119
76120 2004-10-02  Jim Meyering  <jim@meyering.net>
76121
76122         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76123
76124 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76125
76126         * modules/strsep: New file.
76127
76128 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76129
76130         * m4/strsep.m4: New file.
76131
76132 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76133
76134         * lib/strsep.h: New file.
76135         * lib/strsep.c: New file.
76136
76137 2004-10-01  Simon Josefsson  <jas@extundo.com>
76138
76139         * lib/snprintf.c (snprintf): Handle size==0.
76140
76141 2004-10-01  Simon Josefsson  <jas@extundo.com>
76142             Bruno Haible  <bruno@clisp.org>
76143
76144         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76145         (snprintf): Declare 'args'.
76146
76147 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * lib/snprintf.c: Remove comments as to why each header is needed.
76150
76151 2004-10-01  Bruno Haible  <bruno@clisp.org>
76152
76153         * MODULES.html.sh: Add strsep.
76154
76155 2004-09-30  Simon Josefsson  <jas@extundo.com>
76156
76157         * modules/snprintf: New file.
76158
76159 2004-09-30  Simon Josefsson  <jas@extundo.com>
76160
76161         * m4/snprintf.m4: New file.
76162
76163 2004-09-30  Simon Josefsson  <jas@extundo.com>
76164
76165         * lib/snprintf.h, lib/snprintf.c: New files.
76166
76167 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76168
76169         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76170         (hol_entry_help): Never translate an empty string.
76171         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76172         * lib/argp.h (OPTION_NO_TRANS): New option.
76173
76174 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * modules/argp (Maintainer): Replace Simon Josefsson
76177         by Sergey Poznyakoff.
76178
76179 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76180
76181         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76182         changes merged back into glibc.
76183
76184 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76187
76188 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76189
76190         * lib/xvasprintf.c: Include xalloc.h.
76191         (xvasprintf): Use xalloc_die, not xmalloc_die.
76192
76193 2004-09-29  Bruno Haible  <bruno@clisp.org>
76194
76195         * modules/alloca-opt: New file, derived from modules/alloca.
76196         * modules/allocsa: Depend on alloca-opt instead of alloca.
76197         * modules/setenv: Likewise.
76198         * modules/vasnprintf: Likewise.
76199         * MODULES.html.sh: Add alloca-opt.
76200
76201 2004-09-28  Simon Josefsson  <jas@extundo.com>
76202
76203         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76204         LGPL, and to replace license template from GPL to LGPL.
76205
76206 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * modules/dummy: Change license to LGPL.
76209
76210 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76213
76214 2004-09-24  Simon Josefsson  <jas@extundo.com>
76215
76216         * modules/minmax (License): Change from GPL to LGPL.
76217
76218 2004-09-23  Simon Josefsson  <jas@extundo.com>
76219
76220         * gnulib-tool (--import): Typo.
76221
76222 2004-09-23  Simon Josefsson  <jas@extundo.com>
76223
76224         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76225
76226 2004-09-22  Bruno Haible  <bruno@clisp.org>
76227
76228         * modules/*: Add 'License' field.
76229         * gnulib-tool: Accept --extract-license option.
76230         (func_get_license): New function.
76231
76232 2004-09-21  Bruno Haible  <bruno@clisp.org>
76233
76234         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76235         Reported by Simon Josefsson.
76236
76237 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76240         gl_AC_TYPE_LONG_LONG.
76241
76242 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76243
76244         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76245
76246 2004-09-18  Simon Josefsson  <jas@extundo.com>
76247         and  Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76250         calls with autoreconf.  Define GL_LIB.
76251
76252 2004-09-14  Karl Berry  <karl@gnu.org>
76253
76254         * config/srclist.txt: unsync setenv.c, sigh.
76255
76256 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76259         Problem reported by Bruno Haible in:
76260         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76261
76262 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * config/srclist.txt: Comment out argp-pvh.c.
76265
76266 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76269         in case some system header has #define'd it.  Problem reported by
76270         Soeren D. Schulze in
76271         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76272
76273 2004-09-09  Karl Berry  <karl@gnu.org>
76274
76275         * regex.[ch]: delete from the root.  These were supposed to be
76276                 synced with emacs cvs, but this has not happened for about
76277                 a year, and anyway nothing else uses emacs regex.[ch].
76278                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76279                 lib/regex[.ch] is untouched.
76280
76281 2004-09-09  Bruno Haible  <bruno@clisp.org>
76282
76283         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76284
76285 2004-09-09  Bruno Haible  <bruno@clisp.org>
76286
76287         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76288         modifications.
76289         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76290
76291 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76292
76293         * modules/xvasprintf: New file.
76294         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76295
76296 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76297
76298         * lib/xvasprintf.h: New file.
76299         * lib/xvasprintf.c: New file.
76300         * lib/xasprintf.c: New file.
76301
76302 2004-09-08  Bruno Haible  <bruno@clisp.org>
76303
76304         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76305
76306 2004-09-08  Bruno Haible  <bruno@clisp.org>
76307
76308         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76309         length is > INT_MAX.
76310         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76311         more.
76312
76313 2004-09-08  Bruno Haible  <bruno@clisp.org>
76314
76315         * lib/stdint_.h: New file, taken from GNU clisp.
76316
76317 2004-09-08  Bruno Haible  <bruno@clisp.org>
76318             Oskar Liljeblad  <oskar@osk.mine.nu>
76319
76320         * modules/stdint: New file.
76321         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76322
76323 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         Import from coreutils.
76326         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76327         strings on unbounded length.  alloca's performance benefits aren't
76328         that important here.
76329         (V_STRDUP): Remove.
76330         (parse_with_separator): New function, with most of the internals
76331         of the old parse_user_spec.  Allow user to omit both user and group,
76332         for compatibility with FreeBSD.
76333         Clone only the user name, not the entire spec.
76334         Do not set *uid, *gid unless entirely successful.
76335         Avoid memory leak in some failing cases.
76336         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76337         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76338         (parse_user_spec): Rewrite to use parse_with_separator.
76339
76340 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76341
76342         * modules/userspec: Don't depend on alloca.
76343
76344 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76347
76348 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76351         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76352         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76353
76354 2004-08-16  Simon Josefsson  <jas@extundo.com>
76355
76356         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76357         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76358         Add --dry-run for --import.
76359         Let user provided command line parameters override configure.ac
76360         settings.
76361
76362 2004-08-12  Simon Josefsson  <jas@extundo.com>
76363
76364         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76365         as discussed with Paul Eggert in threads rooted at
76366         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76367         and
76368         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76369         Before, the test was empty, and relied on ELIDE_CODE in source
76370         code.)
76371         (gl_PREREQ_GETOPT): New macro.
76372         (gl_GETOPT): Use them.
76373
76374 2004-08-12  Simon Josefsson  <jas@extundo.com>
76375
76376         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76377         * lib/getopt_.h: Renamed from getopt.h.
76378
76379 2004-08-12  Simon Josefsson  <jas@extundo.com>
76380
76381         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76382         Change default library name from libfoo to libgnu.
76383         Now, if you have a configure.ac that says:
76384                 gl_SOURCE_BASE(gl)
76385                 gl_M4_BASE(gl/m4)
76386                 gl_MODULES(error getopt etcetera)
76387                 gl_INIT
76388         you can import all you need by running:
76389                 ../gnulib/gnulib-tool --import
76390
76391         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76392         (Makefile.am): Rewrite, use logic from argz.
76393         (Include): Use <getopt.h> instead of "getopt.h".
76394
76395 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * modules/argp (Files): Add m4/unlocked-io.m4.
76398         (Depends-on): Add extensions.
76399
76400 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76403         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76404         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76405         Check for program_invocation_name, program_invocation_short_name,
76406         flockfile, funlockfile, features.h, _getopt_long_only_r.
76407
76408 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76411         its complicated substitute.
76412         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76413         and program_invocation_name.
76414         (__argp_basename) [!_LIBC]: Remove; the only use was
76415         replaced by its body.
76416         (__argp_short_program_name): Change condition from
76417         !defined __argp_short_program_name to
76418         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76419         to match argp-namefrob.h.
76420         (__argp_failure): Don't assume strerror_r returns char *.
76421         * lib/argp-parse.c (N_): Define unconditionally.
76422         (argp_default_options): Fill out initializers with 0 to avoid
76423         gcc warnings.
76424
76425 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76428         getopt1.c.
76429
76430 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         Merge from coreutils.
76433
76434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76435
76436         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76437         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76438
76439 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         Merge from coreutils.
76442
76443         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76444         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76445         for Reliant Unix 5.43.
76446
76447         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76448         (union fooround): Use uintmax_t, not long int.
76449         The rest is a merge from libc:
76450         [defined _LIBC]: Include <shlib-compat.h>.
76451         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76452
76453         * lib/settime.c (settime): Recode to avoid warning with
76454         Sun Forte C 6U2.
76455
76456         * lib/strverscmp.c: Convert to UTF-8.
76457
76458 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76461         m4/uintmax_t.m4.
76462
76463 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * modules/xalloc-die: New file.
76466         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76467
76468         * modules/md5 (Files): Add m4/uint32_t.m4.
76469         * modules/sha1: Renamed from modules/sha.
76470         (Files):
76471         Rename lib/sha.h to lib/sha1.h.
76472         Rename lib/sha.c to lib/sha1.c.
76473         Rename m4/sha.m4 to m4/sha1.m4.
76474         (lib_SOURCES): Likewise.
76475         (configure.ac): Rename gl_SHA to gl_SHA1.
76476         (Include): sha.h -> sha1.h.
76477
76478 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76479
76480         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76481         * m4/sha1.m4: Renamed from sha.m4.
76482         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76483
76484 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76485
76486         * lib/obstack.h (obstack_empty_p):
76487         Don't assume that chunk->contents is suitably aligned.
76488         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76489         Likewise. Problem reported by Benno in
76490         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76491
76492         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76493         readable.  This could be improved further but it'd take some work.
76494
76495 2004-08-08  Simon Josefsson  <jas@extundo.com>
76496
76497         * modules/xgethostname (Depends-on): Remove exit and error (not
76498         used).
76499
76500         * modules/getpass-gnu: Add getpass.h.
76501         (Depends-on): Add stdbool.
76502         * modules/getpass: Add getpass.h.
76503
76504 2004-08-08  Simon Josefsson  <jas@extundo.com>
76505
76506         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76507         Check getpass declaration.
76508
76509 2004-08-08  Simon Josefsson  <jas@extundo.com>
76510
76511         * lib/xgethostname.c: Don't include error.h (not used).
76512
76513         * lib/getpass.h: Add.
76514         * lib/getpass.c: Include getpass.h first.
76515
76516 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         * lib/xalloc-die.c: New file.
76519         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76520         All uses removed.
76521         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76522         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76523         xalloc-die.c.
76524         (_, N_, xalloc_die): Move to xalloc-die.c.
76525         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76526         so that we needn't mess with xalloc_msg_memory_exhausted.
76527
76528         * lib/sha1.h: Renamed from sha.h.
76529         (SHA1_H): Renamed from _SHA_H.
76530         (sha1_ctx): Renamed from sha_ctx.
76531         (sha1_init_ctx): Renamed from sha_init_ctx.
76532         (sha1_process_block): Renamed from sha_process_block.
76533         (sha1_process_bytes): Renamed from sha_process_bytes.
76534         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76535         (sha1_read_ctx): Renamed from sha_read_ctx.
76536         (sha1_stream): Renamed from sha_stream.
76537         (sha1_buffer): Renamed from sha_buffer.
76538         * lib/sha1.c: Likewise; renamed from sha.c.
76539         Do not include <sys/types.h>.
76540         Include <stddef.h> rather than <stdlib.h>.
76541
76542 2004-08-08  Bruno Haible  <bruno@clisp.org>
76543
76544         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76545         FILESYSTEM_PREFIX_LEN.
76546         * lib/progreloc.c: Likewise.
76547         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76548
76549 2004-08-06  Simon Josefsson  <jas@extundo.com>
76550
76551         * modules/progname (Depends-on): Don't depend on stdbool.
76552
76553 2004-08-06  Simon Josefsson  <jas@extundo.com>
76554
76555         * modules/getsubopt: New file.
76556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76557         getsubopt.
76558
76559 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         More merge from coreutils.
76562
76563         * m4/utimens.m4, m4/utimecmp.m4: New files.
76564         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76565         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76566         prereq.m4, sha.m4: Import changes from coreutils.
76567
76568 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         More merge from coreutils.
76571         * modules/raise, modules/readtokens0, modules/utimens:
76572         * modules/utimecmp, module/xnanosleep: New files.
76573         * modules/strftime: Add lib/strftime.h.
76574         Change include from <time.h> to "strftime.h".
76575         * modules/yesno: Add lib/yesno.h.
76576         * modules/backupfile: Remove lib/addext.c.
76577         * modules/euidaccess: Add stat-macros.h.
76578         * modules/canonicalize, modules/euidaccess,
76579         modules/filemode, modules/lchown, modules/makepath,
76580         modules/rmdir, modules/stat: Likewise.
76581
76582 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         Merge from tar.
76585         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76586         SIZE_MAX is a valid preprocessor constant.
76587         (__argp_basename): Change from "#ifndef _LIBC"
76588         to "#ifndef __argp_short_program_name", so that
76589         we don't compile these functions for tar.
76590
76591         More merges from coreutils.
76592         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76593         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76594         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76595         * lib/addext.c: Remove; no longer needed.
76596         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76597         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76598         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76599         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76600         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76601         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76602         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76603         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76604         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76605         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76606         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76607         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76608         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76609         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76610         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76611         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76612         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76613         Import changes from coreutils.
76614
76615 2004-08-05  Simon Josefsson  <jas@extundo.com>
76616
76617         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76618
76619 2004-08-05  Simon Josefsson  <jas@extundo.com>
76620
76621         * m4/getsubopt.m4: New file.
76622
76623 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         Merge from coreutils.
76626
76627         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76628         * m4/getcwd-path-max.m4: New files.
76629
76630         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76631         FILESYSTEM_PREFIX_LEN ->
76632         FILE_SYSTEM_PREFIX_LEN.
76633         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76634         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76635         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76636         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76637
76638         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76639         prerequisite modules now handle the DOS stuff.
76640         Don't check for unistd.h.
76641
76642 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         Merge from coreutils.
76645
76646         * lib/.gdb-history: Remove; this doesn't belong here.
76647
76648         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76649         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76650         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76651         * lib/getcwd.c: New files.
76652
76653         * lib/dirname.h: Include <stdbool.h>.
76654         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76655         for consistency with POSIX terminology.  All uses changed.
76656         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76657         (strip_trailing_slashes): Use bool for booleans.
76658         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76659
76660         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76661         sometimes returns a positive errno value even when it succeeds.
76662         (print_errno_message) [!LIBC]: Fall back on strerror if
76663         __strerror_r fails.
76664
76665         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76666         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76667         (longest_relative_suffix): New function.
76668         (path_concat): Use it.  Assume first argument is not NULL.
76669         Port to DOS.  Omit redundant separators.
76670         Report an error instead of returning NULL.
76671         Use mempcpy instead of memcpy.
76672         (xpath_concat): Remove: not declared or used.
76673
76674         * lib/same.h: Include <stdbool.h>
76675         (same_name): Return bool, not int.
76676         * lib/same.c (same_name): Likewise.
76677         (errno): Don't declare; we assume C89 or better now.
76678
76679         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76680         if not already defined.
76681
76682         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76683         * lib/dup-safer.c (errno): Likewise.
76684
76685 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         Merge from coreutils.
76688         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76689         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76690         * modules/path-concat: Don't depend on strdup.
76691
76692 2004-08-03  Simon Josefsson  <jas@extundo.com>
76693
76694         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76695         * lib/progname.h: Don't include stdbool.h.
76696
76697 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76700         * MODULES.html.sh (func_all_modules): Remove fatal.
76701
76702 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76705
76706 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76709         working.
76710
76711 2004-08-02  Simon Josefsson  <jas@extundo.com>
76712
76713         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76714         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76715         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76716
76717 2004-08-01  Simon Josefsson  <jas@extundo.com>
76718
76719         * lib/xgetdomainname.c: Include stdlib.h, for free().
76720
76721 2004-07-19  Bruno Haible  <bruno@clisp.org>
76722
76723         * MODULES.html.sh (func_all_modules): Add dummy.
76724
76725 2004-07-16  Simon Josefsson  <jas@extundo.com>
76726
76727         * modules/dummy: New file.
76728
76729 2004-07-16  Simon Josefsson  <jas@extundo.com>
76730
76731         * lib/dummy.c: New file.
76732
76733 2004-07-16  Bruno Haible  <bruno@clisp.org>
76734
76735         * lib/backupfile.h: Add extern "C" for C++.
76736         * lib/closeout.h: Likewise.
76737         * lib/copy-file.h: Likewise.
76738         * lib/findprog.h: Likewise.
76739         * lib/full-write.h: Likewise.
76740         * lib/pathname.h: Likewise.
76741         * lib/progname.h: Likewise.
76742         * lib/stpcpy.h: Likewise.
76743         * lib/stpncpy.h: Likewise.
76744         * lib/strcase.h: Likewise.
76745         * lib/strstr.h: Likewise.
76746         * lib/xalloc.h: Likewise.
76747
76748         * lib/mbswidth.h: Add extern "C" for C++.
76749         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76750
76751 2004-07-13  Robert Millan  <robertmh@gnu.org>
76752
76753         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76754
76755 2004-07-09  Simon Josefsson  <jas@extundo.com>
76756
76757         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76758         failed without this.)
76759
76760 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * modules/chown (Files): Add lib/fchown-stub.c, since
76763         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76764
76765 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * lib/fchown-stub.c: New file.
76768
76769 2004-06-24  Jim Meyering  <jim@meyering.net>
76770
76771         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76772
76773 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76774
76775         * modules/argz: Omit "#include".
76776
76777         * MODULES.html.sh (func_all_modules): Add calloc, to match
76778         2004-06-01 addition of calloc module.
76779
76780 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * m4/argz.m4: New file, which is autoupdated from libtool.
76783
76784 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76785
76786         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76787         libtool.
76788
76789 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * config/srclist-update: Don't insist on "USA." before the
76792         close-comment, as libtool omits the period and puts the */ on a
76793         separate line.
76794         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76795         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76796
76797 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76798
76799         * modules/argz: New file.
76800         * MODULES.html.sh (func_all_modules): Add argz.
76801
76802 2004-06-12  Jim Meyering  <jim@meyering.net>
76803         and  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * modules/hash (Files): Add lib/xalloc.h.
76806         * modules/pipe (Depends-on): Add wait-process.
76807         * modules/stat (Depends-on): Add xalloc.
76808         * modules/userspec (Files): Add lib/userspec.h.
76809         * modules/xstrto
76810
76811         Upgrade from gettext-0.13.
76812         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76813         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76814         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76815
76816 2004-06-10  Jim Meyering  <jim@meyering.net>
76817
76818         * lib/calloc.c: New file.
76819
76820 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * lib/getdate.y (yylex): Allow space between sign and number.
76823         Problem reported by Dan Jacobson.
76824
76825 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         Merge from coreutils CVS.
76828
76829         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76830         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76831         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76832         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76833         xstrtol.m4: Fix copyright date and/or serial number.
76834
76835         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76836         See if we need an fchown replacement.
76837         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76838         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76839         and use the replacement function if we detect either defect.
76840
76841         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76842         gl_UTIMECMP.
76843
76844 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76845         and  Jim Meyering  <jim@meyering.net>
76846
76847         Merge from coreutils CVS.
76848
76849         * lib/stat-macros.h: New file, with contents from file-type.h
76850         and coreutils' system.h.
76851         * lib/file-type.c: Include "stat-macros.h".
76852         * lib/file-type.h (file_type): Move all macro definitions to new file,
76853         stat-macros.h.
76854
76855         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76856         Wrap old code with this conditional.
76857         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76858         function that does not dereference symlinks.
76859         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76860
76861         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76862         dependency problems.
76863         (xreadlink): Accept new arg SIZE, for efficiency.
76864         All decls and uses changed.
76865         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76866
76867         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76868         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76869
76870         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76871         sysexits.h.
76872
76873 2004-06-01  Jim Meyering  <jim@meyering.net>
76874
76875         * m4/calloc.m4: New file.
76876
76877 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76880         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76881         Also, fix a typo in a diagnostic.
76882
76883 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76886         or AC_FUNC_REALLOC.
76887
76888 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76891         macros to be defined.
76892         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76893         the allocator returns NULL because the requested size is zero.
76894
76895 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76898         var.  Add comment explaining why libc still defines it.  This
76899         merges the following patch from glibc:
76900         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76901
76902 2004-05-20  Andreas Schwab  <schwab@suse.de>
76903
76904         * m4/free.m4: Replace free if it not known to work, not the other
76905         way round.
76906
76907 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76910         present in glibc since revision 1.1 of this file.
76911         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76912         obstack_alignment_mask, obstack_alloc, obstack_base,
76913         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76914         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76915         obstack_grow0, obstack_init, obstack_int_grow,
76916         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76917         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76918         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76919         nonexistent functions.
76920
76921 2004-05-18  Karl Berry  <karl@gnu.org>
76922
76923         * config/srclist.txt: break link for vasnprintf.c.
76924
76925 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         Port obstack to the AS/400, where pointers are 16 bytes wide and
76928         you cannot cast an integer to a valid pointer.  This patch is
76929         currently waiting to be integrated into glibc; see
76930         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76931
76932         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76933         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76934         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76935         (struct obstack): temp member is now a union of a pointer and
76936         an integer, instead of an integer.  All integer uses changed.
76937         This does not affect the physical layout of struct obstack,
76938         except on hosts (like the AS/400) where the size or alignment of
76939         void * is greater than that of ptrdiff_t.
76940         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76941         __STDC__)]: Store temporary in pointer member of union, not
76942         integer member.
76943         * lib/obstack.c: Include <stddef.h>, for offsetof.
76944         (struct fooalign): Remove; it doesn't need a name.
76945         (union fooround): Change double to long double, and add void *.
76946         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76947         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76948         not a macro.  Hence the values are always int; so remove all
76949         casts-to-int in uses.
76950
76951 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76954         we can get this patch merged into glibc.
76955
76956 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76957             Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * m4/argp: Depend on alloca.
76960
76961 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76962             Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76965         freecoding.
76966
76967 2004-05-17  Bruno Haible  <bruno@clisp.org>
76968
76969         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76970         precision that consists of a '.' followed by an empty digit string.
76971         Patch by Tor Lillqvist <tml@iki.fi>.
76972
76973 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76976         for backward compatibility with older code.  We need our own
76977         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76978         it under some other name, and our alloca.h will define it.
76979
76980 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76981             Derek Price  <derek@ximbiot.com>
76982
76983         * lib/alloca.c: Include <alloca.h>, to get our interface.
76984         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76985         include <alloca.h> first.  Use C89 prototype for alloca; this
76986         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76987         Use #elif for simplicity, since we can assume C89 now.
76988         Don't try to source the system alloca.h since it will not be found
76989         and to prevent recursively including its replacement.
76990         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76991         * lib/regex.c: Likewise.
76992
76993 2004-05-16  Derek Price  <derek@ximbiot.com>
76994             Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         getline cleanup.  This changes the getndelim2 API: both order of
76997         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76998         no delimiter).
76999
77000         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77001         interface does that.
77002         (getline): Always use getdelim, so that we don't have two
77003         copies of this code.
77004         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77005         if available.
77006         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77007         (GETNDELIM2_MAXIMUM): New macro.
77008         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77009         instead of the old practice of delim2==0.  All callers changed.
77010         Return -1 on overflow, instead of returning junk.
77011         Do not set *linesize unless allocation succeeds.
77012         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77013         that we include sys/types.h.
77014         * lib/getnline.h: Likewise.
77015         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77016         (getndelim2): Reorder arguments.
77017         * lib/getnline.c (getnline, getndelim):
77018         Don't discard the NMAX argument.
77019         (getnline): Invoke getndelim, to avoid code duplication.
77020         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77021         of (size_t) -1 by callers of the getnline family.
77022
77023 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77026         Check for gettimeofday.
77027         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77028         Check for settimeofday, stime.
77029
77030 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/nanosleep.c (suspended): Change its type from int to
77033         sig_atomic_t volatile.
77034         (first_call): Make it private to rpl_nanosleep, and have it
77035         be zero initially as that's a bit faster.
77036         (my_usleep): Round up fractional times instead of truncating them,
77037         as this is the usual meaning for 'sleep'.
77038
77039         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77040         doesn't work.
77041         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77042         (ENOSYS): Define if not defined.
77043         (settime): Fall back on stime if it exists and settimeofday fails.
77044         But don't bother with fallbacks if a method fails with errno == EPERM.
77045
77046 2004-05-11  Jim Meyering  <jim@meyering.net>
77047
77048         Prior to this change, the save_cwd caller required read access to the
77049         current directory on most systems (ones with the fchdir function).
77050
77051         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77052         fails, try write-only, and finally, resort to using xgetcwd.
77053
77054 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * lib/obstack.c, obstack.h: Import changes from libc.
77057
77058 2004-04-28  Bruno Haible  <bruno@clisp.org>
77059
77060         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77061         also implicitly appends .exe to executables.
77062         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77063         accepts Windows pathnames.
77064         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77065         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77066         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77067         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77068         Reported by Derek Robert Price <derek@ximbiot.com>.
77069
77070 2004-04-21  Karl Berry  <karl@gnu.org>
77071
77072         * config/srclist.txt (localcharset.c): break sync.
77073
77074 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77075
77076         * m4/host-os.m4: Add a copyright notice.
77077
77078 2004-04-20  Jim Meyering  <jim@meyering.net>
77079
77080         Change UTILS_ to gl_ in AC_DEFINE'd names.
77081         Change utils_- and jm_-prefixed variables, too.
77082         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77083         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77084         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77085
77086         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77087         Don't emit trailing blanks.
77088         Also rename jm_-prefixed variables to have gl_ prefix.
77089
77090         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77091         Also rename jm_-prefixed variables to have gl_ prefix.
77092
77093         * m4/jm-macros.m4: Reflect the renamings.
77094         * m4/prereq.m4: Likewise.
77095
77096 2004-04-20  Jim Meyering  <jim@meyering.net>
77097
77098         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77099         memory.
77100
77101 2004-04-20  Jim Meyering  <jim@meyering.net>
77102             Bruno Haible  <bruno@clisp.org>
77103
77104         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77105         memory when realloc fails.
77106
77107 2004-04-19  Jim Meyering  <jim@meyering.net>
77108
77109         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77110         now that readutmp.c may call `free (0)'.
77111
77112 2004-04-19  Bruno Haible  <bruno@clisp.org>
77113
77114         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77115         * m4/inttypes_h.m4: Likewise.
77116         * m4/stdint_h.m4: Likewise.
77117         * m4/intmax_t.m4: Likewise.
77118         * m4/uintmax_t.m4: Likewise.
77119
77120 2004-04-18  Jim Meyering  <jim@meyering.net>
77121
77122         * m4/prereq.m4: Don't forbid jm_ prefix.
77123
77124         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77125         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77126         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77127         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77128         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77129         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77130         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77131         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77132         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77133         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77134         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77135         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77136         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77137         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77138         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77139         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77140         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77141         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77142         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77143
77144 2004-04-18  Jim Meyering  <jim@meyering.net>
77145
77146         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77147         failure, don't leak memory and do call END_UTMP_ENT.
77148
77149 2004-04-16  Jim Meyering  <jim@meyering.net>
77150
77151         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77152         coreutils' stat program.
77153         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77154
77155 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77156
77157         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77158         C89.
77159         (CHAR_BIT): Remove, since we assume C89.
77160         Include <stdint.h> if available, as per current Autoconf CVS advice.
77161
77162 2004-03-31  Jim Meyering  <jim@meyering.net>
77163
77164         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77165         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77166         * m4/xalloc.m4: Likewise.
77167
77168 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77169
77170         Merge from coreutils.
77171
77172         * m4/inttostr.m4: New file.
77173         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77174         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77175         Require gl_CLOCK_TIME.
77176         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77177
77178 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77179
77180         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77181         not bool, to be more consistent with Unix conventions.
77182         Suggested by Bruno Haible.
77183
77184         Merge from coreutils.
77185
77186         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77187         * lib/umaxtostr.c: New files.
77188
77189         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77190         the usual <time.h> dance.
77191         (get_date): Change signature to support fractional time stamps.
77192         All callers changed.
77193         * lib/getdate.y: Include "getdate.h" first, as we can now
77194         assume C89 and don't need to worry about 'const'.
77195         Similarly, include "unlocked-io.h" near start, not in middle.
77196         Include <limits.h>.
77197         (textint.value): Use long int rather than int.
77198         (textint.digits): Use size_t rather than int.
77199         (BILLION, LOG10_BILLION): New constants.
77200         (parser_control): New member rel_ns.  Members day_ordinal,
77201         time_zone, month, day, hour, minutes, rel_year, rel_month,
77202         rel_day, rel_hour, rel_minutes, rel_seconds
77203         are now long int, not int.  Member seconds is now struct timespec,
77204         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77205         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77206         not int.
77207         (%union.intval): Now long int, not int.
77208         New member timespec.
77209         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77210         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77211         (spec): Now is a timespec or an item list.
77212         (timespec, items): New nonterminals.
77213         (time, rel, relunit, number, get_date):
77214         Add support for fractional seconds.
77215         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77216         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77217         (to_hour): First arg is now long int, not int.
77218         (to_year): Returns long int, not int.
77219         Don't treat year -70 like 70.
77220         (tm_diff): Returns long int, not int.
77221         (lookup_word): Use bool instead of int when appropriate.
77222         (yylex): Use size_t for count, not int.
77223         Detect overflow when parsing large integer constants.
77224         Add support for fractions.
77225         (get_date): Make pointers 'const' if possible.
77226         Use more-portable code to detect integer overflow.
77227         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77228         Don't use ctime; it's not reliable if the year has >4 digits.
77229
77230         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77231         This is for compatibility with BSD.
77232
77233         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77234         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77235         From coreutils' system.h.
77236
77237         * lib/userspec.c: Don't include "posixver.h".
77238         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77239         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77240         compatible extension.  Simplify code by removing a boolean int
77241         that was always nonzero if a string was nonnull.
77242
77243 2004-03-30  Jim Meyering  <jim@meyering.net>
77244
77245         Merge from coreutils.
77246
77247         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77248         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77249         on some systems one must include <grp.h> before it.
77250         Reported by Christian Krackowizer.
77251
77252 2004-03-30  Jim Meyering  <jim@meyering.net>
77253
77254         Merge from coreutils.
77255
77256         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77257
77258         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77259         an empty input stream.
77260
77261         * lib/readtokens.c: Include <stdbool.h>.
77262         (readtoken): Use `size_t' rather than int/long.
77263         All callers adjusted.
77264         Use `bool' rather than `int' where appropriate.
77265         Use memset rather than an explicit loop.
77266         Use x2nrealloc rather than xrealloc.
77267         Allow the use of `\0' as a delimiter.
77268         (readtokens): Likewise.
77269         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77270
77271 2004-03-30  Jim Meyering  <jim@meyering.net>
77272
77273         * m4/realloc.m4: Remove file, since now it does no more than
77274         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77275         the `configure.ac' section of module/realloc.
77276         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77277
77278 2004-03-30  Bruno Haible  <bruno@clisp.org>
77279
77280         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77281         nonnull.
77282
77283 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77284
77285         Merge changes to getloadavg.c from coreutils and Emacs.
77286
77287         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77288         Define to an expression, not to the empty string.
77289         Include cloexec.h and xalloc.h.
77290         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77291         Use set_cloexec_flag rather than rolling our own.
77292         * lib/cloexec.c, lib/cloexec.h: New files.
77293
77294 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77295
77296         * m4/cloexec.m4: New file.
77297
77298 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77299
77300         * lib/getopt.h: Sync with libc CVS.
77301
77302 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77303             Bruno Haible  <bruno@clisp.org>
77304
77305         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77306         mbswidth.
77307
77308 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77309             Bruno Haible  <bruno@clisp.org>
77310
77311         * lib/mbswidth.h: Include <wchar.h> only if
77312         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77313         <wchar.h>.
77314         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77315
77316 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77317
77318         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77319         Sync with libc CVS.
77320         * lib/getopt_int.h: New file, also synced from libc.
77321
77322 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77323
77324         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77325         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77326         Bring back getopt.c, getopt.h, getopt1.c.
77327
77328 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77329
77330         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77331         All uses changed.  Check for sa_sigaction member; this fixes
77332         a bug first reported by Jason Andrade in
77333         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77334
77335 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77336
77337         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77338         '#if' expressions.  Unlike the code it replaces, it does not
77339         depend on (defined _SC_PAGESIZE).  However, it does depend on
77340         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77341         first reported by Jason Andrade in
77342         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77343
77344 2004-02-25  Simon Josefsson  <jas@extundo.com>
77345
77346         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77347
77348 2004-02-25  Simon Josefsson  <jas@extundo.com>
77349
77350         * lib/strdup.h: New file.
77351         * lib/strdup.c: Include it.
77352         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77353         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77354
77355 2004-02-23  Karl Berry  <karl@gnu.org>
77356
77357         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77358         (from fencepost.gnu.org:/gd/gnuorg).
77359
77360 2004-02-23  Karl Berry  <karl@gnu.org>
77361
77362         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77363         * config/srclist.txt: add maintain/standards documents.
77364
77365 2004-02-18  Bruno Haible  <bruno@clisp.org>
77366
77367         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77368         Reported by Derek Robert Price <derek@ximbiot.com>.
77369
77370 2004-02-16  Karl Berry  <karl@gnu.org>
77371
77372         * config/mkinstalldirs, install-sh: update from automake.
77373
77374 2004-02-06  Karl Berry  <karl@gnu.org>
77375
77376         * m4/po.m4: update from gettext 0.14.1.
77377
77378 2004-02-06  Karl Berry  <karl@gnu.org>
77379
77380         * lib/config.charset: update from gettext 0.14.1.
77381
77382 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77383
77384         Add comments and code, prompted by suggestions from Bruno Haible
77385         for sh-quote.
77386         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77387         describing the enum quoting_style values.
77388         * lib/quotearg.c (quotearg_alloc): New function.
77389         (quotearg_buffer_restyled): Treat lone { and } as special.
77390         Treat = as special.  Work around bug with older shells
77391         that "see" a '\' that is really the 2nd byte of a multibyte char.
77392         Quote empty string with shell_quoting_style.
77393
77394 2004-02-03  Bruno Haible  <bruno@clisp.org>
77395
77396         * m4/pipe.m4: New file, from GNU gettext.
77397
77398 2004-02-03  Bruno Haible  <bruno@clisp.org>
77399
77400         * lib/pipe.h: New file, from GNU gettext.
77401         * lib/pipe.c: New file, from GNU gettext.
77402
77403 2004-01-27  Bruno Haible  <bruno@clisp.org>
77404
77405         * m4/execute.m4: New file, from GNU gettext.
77406
77407 2004-01-27  Bruno Haible  <bruno@clisp.org>
77408
77409         * lib/execute.h: New file, from GNU gettext.
77410         * lib/execute.c: New file, from GNU gettext.
77411         * lib/w32spawn.h: New file, from GNU gettext.
77412
77413 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77414
77415         Merge from diffutils.
77416
77417         * lib/file-type.c (file_type): Add typed memory objects.
77418         * lib/file-type.h (S_TYPEISTMO): New macro.
77419
77420         * lib/c-stack.h (c_stack_action): Remove argv argument.
77421         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77422         (die): Don't calculate message unless segv_action returns.
77423         (get_stack_location, min_address_from_argv, max_address_from_argv,
77424         volatile stack_base, volatile_stack_size): Remove.
77425         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77426         that every segmentation violation is a stack overflow.  (Ouch!)
77427         See Debian bug 136249 (still outstanding) for more info about why
77428         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77429
77430 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77431
77432         Exit-status fix from coreutils.
77433
77434         Use exit_failure consistently in place of EXIT_FAILURE,
77435         so that program exit statuses are consistent on failure.
77436
77437         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77438         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77439         * lib/argmatch.h: Comment fix to match the above.
77440         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77441         Now a macro referring to exit_failure, instead of a separate
77442         variable.  Include "exitfail.h" to get it.
77443         * lib/xstrtol.h: Include "exitfail.h".
77444         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77445
77446         * lib/long-options.c (parse_long_options): Use prototype
77447         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77448         for clarity.
77449
77450 2004-01-21  Jim Meyering  <jim@meyering.net>
77451
77452         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77453         so as not to conflict with a different-sized __mktime_internal
77454         function in GNU libc.
77455         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77456         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77457
77458 2004-01-20  Karl Berry  <karl@gnu.org>
77459
77460         * config/config.guess: update from config.
77461
77462         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77463
77464 2004-01-20  Bruno Haible  <bruno@clisp.org>
77465
77466         Safer stack allocation.
77467         * lib/setenv.c: Include allocsa.h.
77468         (alloca): Remove fallback definition.
77469         (freea): Remove macro.
77470         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77471         instead of freea.
77472
77473 2004-01-20  Bruno Haible  <bruno@clisp.org>
77474
77475         * m4/eealloc.m4: New file, from GNU gettext.
77476
77477 2004-01-20  Bruno Haible  <bruno@clisp.org>
77478
77479         * m4/allocsa.m4: New file, from GNU gettext.
77480
77481 2004-01-20  Bruno Haible  <bruno@clisp.org>
77482
77483         * lib/xallocsa.h: New file, from GNU gettext.
77484         * lib/xallocsa.c: New file, from GNU gettext.
77485
77486 2004-01-20  Bruno Haible  <bruno@clisp.org>
77487
77488         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77489
77490 2004-01-20  Bruno Haible  <bruno@clisp.org>
77491
77492         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77493         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77494         specially.
77495
77496 2004-01-20  Bruno Haible  <bruno@clisp.org>
77497
77498         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77499         patch.
77500
77501 2004-01-20  Bruno Haible  <bruno@clisp.org>
77502
77503         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77504
77505 2004-01-20  Bruno Haible  <bruno@clisp.org>
77506
77507         * lib/eealloc.h: New file.
77508
77509 2004-01-20  Bruno Haible  <bruno@clisp.org>
77510
77511         * lib/binary-io.h: Avoid warnings on Cygwin.
77512
77513 2004-01-20  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/allocsa.h: New file, from GNU gettext.
77516         * lib/allocsa.c: New file, from GNU gettext.
77517
77518 2004-01-18  Karl Berry  <karl@gnu.org>
77519
77520         * doc/gpl.texi, doc/lgpl.texi: new files.
77521
77522 2004-01-18  Karl Berry  <karl@gnu.org>
77523
77524         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77525         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77526
77527 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77528
77529         Merge from coreutils.
77530
77531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77532         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77533         (gl_DEFAULT_POSIX2_VERSION): Move
77534         the documentation from 'configure' into 'config.hin',
77535         so that 'configure --help' isn't burdened by it and
77536         we don't have to worry about its formatting there.
77537         Reword the documentation so that it's more succinct
77538         and can be run together into a single paragraph.
77539         * m4/same.m4 (gl_SAME): Check for pathconf.
77540
77541 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77542
77543         Merge from coreutils.
77544
77545         * lib/posixver.c: Include posixver.h.
77546
77547         * lib/same.c: Include <stdbool.h>, <limits.h>.
77548         (_POSIX_NAME_MAX): Define if not defined.
77549         (MIN): New macro.
77550         (same_name): If file names are silently truncated, report
77551         that the file names are the same if they are the same after
77552         the silent truncation.
77553
77554         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77555         conversion function.
77556         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77557         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77558         longer needed.
77559
77560 2004-01-15  Jim Meyering  <jim@meyering.net>
77561
77562         Merge from coreutils.
77563
77564         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77565         if no library is required.
77566         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77567         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77568         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77569         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77570         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77571         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77572         value, $ac_cv_search_crypt, if it's "none required".
77573         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77574         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77575         not gl_FUNC_GETLOADAVG.
77576         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77577         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77578
77579 2004-01-15  Jim Meyering  <jim@meyering.net>
77580
77581         Merge from coreutils.
77582
77583         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77584         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77585         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77586
77587         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77588         optional configure-time default.
77589
77590         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77591
77592         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77593
77594 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77595
77596         Merge from coreutils.
77597
77598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77599         value, $ac_cv_search_nanosleep, if it's "none required".
77600
77601 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77602
77603         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77604         with like-named macro in fnmatch.c.
77605         (EXT): Use an internal constant instead.
77606
77607         Merge fnmatch patches from glibc.
77608         * lib/fnmatch.c (mbsinit): Remove define.
77609         Add libc_hidden_ver (__fnmatch, fnmatch).
77610         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77611         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77612
77613 2004-01-14  Karl Berry  <karl@gnu.org>
77614
77615         * config/install-sh: update from automake.
77616
77617 2004-01-13  Karl Berry  <karl@gnu.org>
77618
77619         * config/install-sh: update from automake.
77620
77621 2004-01-09  Karl Berry  <karl@gnu.org>
77622
77623         * config/install-sh: update from automake.
77624
77625 2004-01-05  Karl Berry  <karl@gnu.org>
77626
77627         * config/config.{sub,guess}: update from config.
77628
77629 2003-12-31  Karl Berry  <karl@gnu.org>
77630
77631         * config/depcomp: update from automake.
77632
77633 2003-12-14  Karl Berry  <karl@gnu.org>
77634
77635         * lib/config.charset: update from gettext-runtime.
77636
77637 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77638
77639         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77640         Bug reported by Alfred M. Szmidt.
77641
77642 2003-12-03  Bruno Haible  <bruno@clisp.org>
77643
77644         * m4/gettext.m4: Upgrade from gettext-0.13.
77645         * m4/po.m4: Upgrade from gettext-0.13.
77646         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77647         * m4/intmax.m4: New file, from gettext-0.13.
77648         * m4/printf-posix.m4: New file, from gettext-0.13.
77649
77650 2003-11-29  Karl Berry  <karl@gnu.org>
77651
77652         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77653
77654 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77655             Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/printf-parse.h: Don't include sys/types.h.
77658         (ARG_NONE): New macro.
77659         (char_directive): Change type of *arg_index fields to size_t.
77660         * lib/printf-parse.c: Don't include sys/types.h.
77661         (SSIZE_MAX): Remove macro.
77662         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77663         Remove unnecessary overflow check.
77664         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77665         fields.
77666
77667 2003-11-25  Bruno Haible  <bruno@clisp.org>
77668
77669         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77670
77671 2003-11-25  Bruno Haible  <bruno@clisp.org>
77672
77673         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77674         gt_TYPE_SSIZE_T.
77675
77676 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77677
77678         * modules/alloca: Remove dependency on xalloc.
77679
77680 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77681
77682         * lib/alloca.c: Remove dependency on xalloc module.
77683         (xalloc_die): Remove.
77684         (memory_full) [!defined emacs]: New macro.
77685         [!defined emacs]: Don't include xalloc.h.
77686         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77687         address arithmetic overflows.  Change datatypes a bit to avoid
77688         unnecessary casts.
77689
77690 2003-11-22  Jim Meyering  <jim@meyering.net>
77691
77692         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77693         s/size/size_t/.
77694
77695 2003-11-21  Karl Berry  <karl@gnu.org>
77696
77697         * config/config.{sub,guess}: update from config.
77698
77699 2003-11-18  Karl Berry  <karl@gnu.org>
77700
77701         * config/config.{sub,guess}: update from config.
77702
77703         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77704
77705 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77706
77707         * README: Mention that S+T cannot overflow if S is the size of
77708         an existing object and T is sufficiently small.
77709
77710 2003-11-17  Jim Meyering  <jim@meyering.net>
77711
77712         On systems without utime and without a utimes function capable of
77713         dealing with a NULL struct utimbuf* argument, this utime replacement
77714         could -- in unusual circumstances -- leak a file descriptor.
77715         * lib/utime.c: Include <unistd.h> and <errno.h>.
77716         (utime_null): Be sure to close `fd' and to preserve errno.
77717         Reported by Geoff Collyer via Arnold Robbins.
77718
77719 2003-11-17  Bruno Haible  <bruno@clisp.org>
77720
77721         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77722         (Depends-on): Add xsize.
77723
77724 2003-11-17  Bruno Haible  <bruno@clisp.org>
77725
77726         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77727
77728 2003-11-17  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/vasnprintf.c (alloca): Remove fallback definition.
77731         (freea): Remove definition.
77732         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77733         Reported by Paul Eggert.
77734
77735 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77736             Bruno Haible  <bruno@clisp.org>
77737
77738         Protect against address arithmetic overflow.
77739         * lib/printf-args.h: Include stddef.h.
77740         (arguments): Change type of field 'count' to size_t.
77741         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77742         'unsigned int' where appropriate.
77743         * lib/printf-parse.h: Include sys/types.h.
77744         (char_directive): Change type of *arg_index fields to ssize_t.
77745         (char_directives): Change type of fields 'count', max_*_length to
77746         size_t.
77747         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77748         (SSIZE_MAX): Define fallback value.
77749         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77750         instead of 'int' where appropriate. Check a_allocated, d_allocated
77751         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77752         * lib/vasnprintf.c: Include xsize.h.
77753         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77754         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77755         overflow. Avoid wraparound when converting a width or precision from
77756         decimal to binary.
77757
77758 2003-11-16  Bruno Haible  <bruno@clisp.org>
77759
77760         Update from GNU gettext.
77761         * lib/printf-parse.c: Generalize to it can be compiled for wide
77762         strings.
77763         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77764         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77765         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77766         SNPRINTF): New macros.
77767         Don't include <alloca.h> if the file is used inside libintl.
77768         (local_wcslen): New function, for Solaris 2.5.1.
77769         (VASNPRINTF): Use it instead of wcslen.
77770
77771 2003-11-16  Bruno Haible  <bruno@clisp.org>
77772
77773         * lib/xsize.h (xmax): New function.
77774         (xsum, xsum3, xsum4): Declare as "pure" functions.
77775
77776 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77777
77778         * modules/xalloc (Files): Undo latest change, since xalloc.h
77779         no longer needs SIZE_MAX or PTRDIFF_MAX.
77780
77781 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77782
77783         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77784         gl_PTRDIFF_MAX.
77785
77786 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77787
77788         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77789         "return", to pacify some unknown compiler.  Problem reported
77790         by Joerg Schilling.
77791
77792 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77793
77794         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77795         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77796         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77797         heuristic is just as accurate as far as we know, and it removes a
77798         dependency on size_max.m4 and ptrdiff_max.m4.
77799
77800 2003-11-11  Bruno Haible  <bruno@clisp.org>
77801
77802         * modules/xsize (Files): Add m4/size_max.m4.
77803         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77804
77805 2003-11-11  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/size_max.m4: New file.
77808         * m4/ptrdiff_max.m4: New file.
77809         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77810         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77811         (gl_XALLOC): Invoke it.
77812
77813 2003-11-11  Bruno Haible  <bruno@clisp.org>
77814
77815         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77816         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77817         defined.
77818
77819 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77820
77821         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77822         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77823         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77824         From Bruno Haible.
77825         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77826         not (size_t) -1, since it's defined here.
77827
77828 2003-11-09  Karl Berry  <karl@gnu.org>
77829
77830         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77831
77832 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77833
77834         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77835         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77836         Reject sizes of exactly SIZE_MAX bytes.
77837         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77838         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77839
77840 2003-11-05  Bruno Haible  <bruno@clisp.org>
77841
77842         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77843         SIZE_MAX defined in <limits.h> on Solaris.
77844
77845 2003-11-04  Jim Meyering  <jim@meyering.net>
77846
77847         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77848         variable names, rather than @VAR@.
77849         * modules/poll: Likewise.
77850
77851 2003-11-04  Bruno Haible  <bruno@clisp.org>
77852
77853         * modules/xsize: New file.
77854         * modules/linebreak: Depend on xsize.
77855         * MODULES.html.sh (func_all_modules): Add xsize.
77856
77857 2003-11-04  Bruno Haible  <bruno@clisp.org>
77858
77859         * m4/xsize.m4: New file.
77860
77861 2003-11-04  Bruno Haible  <bruno@clisp.org>
77862
77863         * lib/xsize.h: New file.
77864         * lib/linebreak.c: Include xsize.h.
77865         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77866         argument for overflow.
77867         Suggested by Paul Eggert.
77868
77869 2003-11-03  Karl Berry  <karl@gnu.org>
77870
77871         * config/config.{guess,sub}: update from config.
77872
77873 2003-11-03  Jim Meyering  <jim@meyering.net>
77874
77875         * modules/userspec (lib_SOURCES): Add userspec.h.
77876         (Include): Add "userspec.h".
77877         Improve description.
77878
77879 2003-11-03  Jim Meyering  <jim@meyering.net>
77880
77881         * lib/userspec.c: Include "userspec.h".
77882         * lib/userspec.h: New file.
77883
77884 2003-11-03  Bruno Haible  <bruno@clisp.org>
77885
77886         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77887
77888 2003-11-03  Bruno Haible  <bruno@clisp.org>
77889
77890         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77891         available, to avoid (extremely rare) race condition.
77892         Suggested by Paul Eggert.
77893
77894 2003-11-02  Karl Berry  <karl@gnu.org>
77895
77896         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77897
77898 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77899
77900         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77901         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77902         (read_filesystem_list): Set and use me_type_malloced.
77903         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77904         whatever the type happens to be), for brevity and consistency.
77905         Check for size calculation overflow on Alphas running OSF/1.
77906
77907 2003-10-31  Jim Meyering  <jim@meyering.net>
77908
77909         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77910
77911         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77912
77913 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77914             Bruno Haible  <bruno@clisp.org>
77915
77916         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77917         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77918
77919 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77922         netbsd*-gnu*.  Suggested by Robert Millan.
77923
77924 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77925
77926         * modules/group-member: Depend on stdbool.
77927
77928 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77929
77930         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77931
77932 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77933
77934         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77935         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77936         after the 'gnu' in these cases.  This fixes some bugs in the
77937         previous change, and is based on suggestions by Robert Millan.
77938
77939 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77940
77941         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77942         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77943         no longer needed.
77944         * lib/quotearg.c (quotearg_n_options): Use it.
77945         * lib/group-member.c: Include <stdbool.h>.
77946         (free_group_info): Arg is now const *; don't free arg.
77947         (get_group_info): Now returns bool and accepts struct group_info *,
77948         rather than returning a malloc'ed struct group_info *.
77949         All uses changed.  Check for overflow in internal size calculation.
77950
77951         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77952         rather than xmalloc/xrealloc.
77953         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77954         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77955         conformance bug: the old code used a pointer after freeing the
77956         storage that it addressed.
77957         * lib/hash.c (hash_initialize): Simplify the code by using
77958         xalloc_oversized rather than doing it by hand.
77959         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77960         the buffer preserved.  Use free and xmalloc instead.
77961         * lib/quotearg.c (quotearg_n_options): Likewise.
77962         Use a simpler test for size overflow.  Don't use xalloc_oversized
77963         because unsigned int might be wider than size_t (!); this suggests
77964         that we should switch from unsigned int to size_t for slot numbers.
77965
77966 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77967
77968         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77969         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77970         NetBSD kernels.  Requested by Richard Stallman.
77971
77972 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77973
77974         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77975         to allocate the returned structure.  Do not allocate a subarray,
77976         as x2nrealloc will do that.
77977         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77978         instead of xnrealloc.
77979         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77980
77981 2003-10-27  Bruno Haible  <bruno@clisp.org>
77982
77983         * lib/stdbool_.h: Better support for BeOS.
77984
77985 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77986
77987         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77988         now uses inline.
77989
77990 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77991
77992         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77993         callers that want to do their own size-overflow checking.  Include
77994         <stdbool.h>, since xalloc_oversized returns bool.
77995         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77996         to use xalloc_oversized.
77997
77998         Add two functions x2realloc, x2nrealloc, for programs that grow
77999         arrays dynamically by doubling their sizes.
78000         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78001         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78002         New functions.
78003
78004         Port to C99 semantics for 'inline' of external functions.
78005         Bug reported by Bruno Haible.
78006         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78007         with the old contents of xnmalloc.
78008         (xnmalloc, xmalloc): Use it.
78009         (xnrealloc_inline): New static inline function,
78010         with the old contents of xnrealloc.
78011         (xnrealloc, xrealloc): Use it.
78012
78013         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78014         that.
78015
78016 2003-10-26  Karl Berry  <karl@gnu.org>
78017
78018         * config/srclist.txt (COPYING.DOC): no longer available from
78019         /gd/gnuorg; don't know where the ultimate source is.
78020
78021 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78022
78023         Fix several address-calculation bugs in the hash modules,
78024         plus some minor code cleanup.
78025
78026         * lib/hash.h: Include <stdbool.h>, for bool.
78027         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78028         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78029         hash_get_n_entries, hash_get_max_bucket_length,
78030         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78031         hash_rehash): Use size_t rather than unsigned.
78032         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78033         hash_get_n_buckets_used, hash_get_n_entries,
78034         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78035         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78036         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78037         Likewise.
78038         (SIZE_MAX): Define if not defined.
78039         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78040         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78041         hash_print):
78042         Use const * when possible.
78043         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78044         (check_tuning): Fix bug: if tuning parameters were very close to
78045         0 or 1, rounding errors could have caused subscript violations.
78046         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78047         (hash_initialize): Add 'fail:' label
78048         to free table and return NULL, and use it to simplify code.
78049         Use calloc rather than clearing the storage ourself.
78050         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78051         buffer size calculations.
78052         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78053         Include <stddef.h>, for size_t.
78054         * lib/hash-pjw.c (hash_pjw): Likewise.
78055         Switch to method described by Bruno Haible.
78056         Include <limits.h>, for CHAR_BIT.
78057         (SIZE_BITS): New macro.
78058
78059 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78060
78061         * m4/getline.m4 (AM_FUNC_GETLINE):
78062         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78063         hosts.  Problem reported by Derek Robert Price in
78064         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78065         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78066         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78067
78068 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78069
78070         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78071         ceiling the allocation at NMAX bytes rather than silently
78072         discarding input bytes before NMAX is reached.  This makes
78073         a difference only if NMAX exceeds SIZE_MAX / 2.
78074
78075         * lib/obstack.c: Merge from glibc.
78076         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78077         Add libc_hidden_def (_obstack_newchunk).
78078         (_obstack_free) [! defined _LIBC]: Remove.
78079         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78080         a clone of the function body.
78081         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78082         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78083
78084         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78085         glibc.
78086         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78087         arg to memcpy.
78088
78089         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78090         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78091         Don't use lvalue casts, as GCC plans to remove support for them
78092         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78093         was also present in the non-GCC version, indicating that this
78094         code had always been buggy and had never been widely used.
78095         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78096         Use the fast variant of each macro, rather than copying the
78097         definiens of the fast variant; that way, we'll be more likely to
78098         catch future bugs in the fast variants.
78099
78100 2003-10-20  Bruno Haible  <bruno@clisp.org>
78101
78102         * modules/wait-process: New file.
78103         * MODULES.html.sh (func_all_modules): Add wait-process.
78104
78105 2003-10-20  Bruno Haible  <bruno@clisp.org>
78106
78107         * m4/wait-process.m4: New file.
78108
78109 2003-10-20  Bruno Haible  <bruno@clisp.org>
78110
78111         * lib/wait-process.h: New file, from GNU gettext.
78112         * lib/wait-process.c: New file, from GNU gettext.
78113
78114 2003-10-19  Jim Meyering  <jim@meyering.net>
78115
78116         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78117         HPUX 10.20.
78118
78119 2003-10-18  Karl Berry  <karl@gnu.org>
78120
78121         * config/config.guess: update from config.
78122
78123 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78124
78125         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78126         (getgroups): First arg is int, not size_t.
78127         Don't let 'free' mangle errno.
78128
78129 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78130
78131         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78132
78133 2003-10-16  Karl Berry  <karl@gnu.org>
78134
78135         * config/config.{guess,sub}: update from config.
78136
78137 2003-10-16  Jim Meyering  <jim@meyering.net>
78138
78139         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78140         memcpy.
78141
78142 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78143
78144         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78145         (SIZE_MAX): Remove.
78146         (new_exclude, add_exclude_file): Initial size no longer needs to
78147         be a power of 2.
78148         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78149         our own address arithmetic overflow checking.
78150
78151         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78152         (fnmatch): Do not alloca more than 2000 wide characters;
78153         instead, use malloc for large buffers.
78154         Check for address arithmetic overflow, and return -1
78155         with errno set to ENOMEM in that case.
78156         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78157         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78158         instead, return -1.  Check for address arithmetic overflow.
78159
78160 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78161
78162         Handle invalid suffixes and overflow independently, so that
78163         callers can treat them independently as needed.  Fix some bugs in
78164         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78165         suffix for a human-readable blocksize.  The major caller-visible
78166         change is the addition of a new
78167         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78168         that both overflow and suffix chars were found.
78169
78170         * lib/human.c (humblock): Don't check separately for invalid suffix
78171         char; that is xstrtoumax's job (now that its bug is fixed).
78172         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78173         INTMAX_MAX]: New macros.
78174         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78175         TYPE_MAXIMUM): New macros.
78176         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78177         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78178         if overflow occurs, as it's what __strtol does and it's more useful
78179         in practice.
78180         (__xstrtol): If __strtol reports some error other than ERANGE,
78181         reflect it to the caller as LONGINT_INVALID.  If it reports
78182         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78183         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78184         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78185         value.
78186         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78187         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78188         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78189         [defined UINTMAX_MAX]: New macros.
78190
78191 2003-10-14  Bruno Haible  <bruno@clisp.org>
78192
78193         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78194
78195 2003-10-14  Bruno Haible  <bruno@clisp.org>
78196
78197         * m4/sig_atomic_t: New file, from GNU gettext.
78198         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78199
78200 2003-10-14  Bruno Haible  <bruno@clisp.org>
78201
78202         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78203         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78204         Also use volatile where needed.
78205
78206 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78207
78208         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78209         Change maintainer from Bruno Haible to 'all'.
78210
78211 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78212
78213         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78214
78215 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78216
78217         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78218         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78219         and define in terms of the other primitives.
78220         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78221         (SIZE_MAX): Define if not already defined.
78222         (array_size_overflow): New function.
78223         (xalloc_die): Abort instead of exiting if 'error' returns.
78224         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78225         (xmalloc, xrealloc): Use them.
78226         (xcalloc): Check for address arithmetic overflow.
78227         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78228         a bit faster than strcpy.
78229
78230 2003-10-10  Simon Josefsson  <jas@extundo.com>
78231
78232         * modules/argp (Depends-on): Add restrict and strcase.
78233
78234 2003-10-10  Simon Josefsson  <jas@extundo.com>
78235
78236         * m4/argp.m4: Add AC_C_INLINE.
78237
78238 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78239
78240         Merge getpass from libc, plus a few fixes.
78241
78242         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78243         Include <stdbool.h>.
78244         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78245         __fsetlocking to empty.
78246         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78247         do include <bits/libc-lock.h>.
78248         Do not include <fcntl.h>; not needed.
78249         [_LIBC]: Include <wchar.h>.
78250         (NOTCANCEL_MODE): New macro.
78251         (flockfile, funlockfile) [_LIBC]: New macros.
78252         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78253         [!_LIBC]: New macros.
78254         (call_fclose): New function.
78255         (getpass): Use it.  Save tty stream separately; this simplifies the
78256         code and makes it more reliable if stdin happens to equal stdout.
78257         Invoke __fsetlocking on tty.
78258         Handle thread cancellation if needed.
78259         Namespace cleanup (use __tcgetattr, __getline).
78260         Use bool for Booleans.
78261         [USE_IN_LIBIO]: Handle wide streams.
78262         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78263         stream might go where.
78264
78265         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78266         doesn't have to include <stdio.h> before us.
78267         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78268         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78269         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78270         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78271         if not declared, so that we can use getpass.c code from libc without
78272         rewriting it.
78273         (flockfile, ftrylockfile, funlockfile): New macros.
78274
78275 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78276
78277         * modules/getpass: Depend on stdbool.
78278
78279 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78280
78281         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78282
78283 2003-10-07  Karl Berry  <karl@gnu.org>
78284
78285         * config/config.{guess,sub}: update from config.
78286
78287 2003-10-06  Jim Meyering  <jim@meyering.net>
78288             Bruno Haible  <bruno@clisp.org>
78289
78290         This lets translators provide better translations for the
78291         "Written by ..." part of --version output.
78292         * lib/version-etc.h: Include stdarg.h.
78293         (version_etc_copyright): Declare as readonly.
78294         (version_etc): Make this function variadic with a NULL-terminated list
78295         of author name strings.
78296         (version_etc_va): New declaration.
78297         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78298         (version_etc_copyright): Declare as readonly.
78299         (version_etc_va): New function. Provide a different translatable string
78300         for each possible number of authors < 10. Abbreviate when there are 10
78301         authors or more.
78302         (version_etc): Make this function variadic. Call version_etc_va.
78303         Suggestion from Gary V. Vaughan.
78304
78305         * lib/long-options.h (parse_long_options): Change prototype: the
78306         authors string is moved to the end and becomes variadic.
78307         * lib/long-options.c: Include stdarg.h.
78308         (parse_long_options): Make this function variadic, too.
78309         Call version_etc_va, not version_etc.
78310
78311 2003-10-06  Bruno Haible  <bruno@clisp.org>
78312
78313         * modules/version-etc-2: Remove file.
78314         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78315
78316 2003-10-06  Bruno Haible  <bruno@clisp.org>
78317
78318         * modules/fatal-signal: New file.
78319         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78320
78321 2003-10-06  Bruno Haible  <bruno@clisp.org>
78322
78323         * m4/fatal-signal.m4: New file.
78324         * m4/signalblocking.m4: New file, from GNU gettext.
78325
78326 2003-10-06  Bruno Haible  <bruno@clisp.org>
78327
78328         * lib/version-etc-2.h: Remove file.
78329         * lib/version-etc-2.c: Remove file.
78330
78331 2003-10-06  Bruno Haible  <bruno@clisp.org>
78332
78333         * lib/fatal-signal.h: New file, from GNU gettext.
78334         * lib/fatal-signal.c: New file, from GNU gettext.
78335
78336 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78337
78338         * README: Rework advice for preventing empty .o files.
78339         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78340         not <sys/types.h>.
78341
78342 2003-10-04  Karl Berry  <karl@gnu.org>
78343
78344         * lib/argp*: update from libc.
78345
78346 2003-10-04  Karl Berry  <karl@gnu.org>
78347
78348         * config/config.{guess,sub}: update from config.
78349
78350 2003-10-02  Bruno Haible  <bruno@clisp.org>
78351
78352         * modules/lchown (Include): Add lchown.h.
78353         * modules/time_r (Include): Use "..." syntax.
78354         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78355
78356 2003-10-01  Simon Josefsson  <jas@extundo.com>
78357
78358         * MODULES.html.sh (func_all_modules): Move gethostname from section
78359         'based on' to section 'lacking' POSIX:2001.
78360
78361 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78362
78363         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78364         to output mode on the same stream.
78365
78366 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78367
78368         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78369         Fix arg typo in previous patch.
78370
78371 2003-09-28  Jim Meyering  <jim@meyering.net>
78372
78373         * lib/error.c: Correct cpp indentation.
78374
78375 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78376
78377         * modules/free: New file.
78378
78379 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78380
78381         * m4/free.m4: New file.
78382
78383 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78384
78385         * lib/minmax.h (MIN, MAX)
78386         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78387         Omit the special code that used __typeof__, since we worry that
78388         it could be more trouble than it's worth.  See:
78389         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78390         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78391
78392         * lib/free.c: New file.
78393
78394 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78395
78396         Trivial fixes to Makefile.am parts of module listings.
78397         * modules/strstr: Append strstr.h to lib_SOURCES.
78398         * modules/strcase: Likewise, for strcase.h.
78399
78400 2003-09-27  Karl Berry  <karl@gnu.org>
78401
78402         * config/mkinstalldirs: update from automake.
78403
78404 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78405
78406         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78407         (error_tail): Do not loop, reallocating temporary buffer, since
78408         the output cannot contain more wide characters than the input
78409         contains bytes, the size must be big enough already.  This avoids
78410         one potential size overflow calculation.  Check for size overflow
78411         when calculating temporary buffer size.  Free temporary buffer
78412         when done, if it was allocated with malloc; this plugs a memory
78413         leak.  Remove casts from void * to pointers, that are no longer
78414         needed now that we're assuming C89 or better.
78415
78416         Merge error changes from glibc.
78417
78418         * lib/error.c, error.h: Update copyright notice header to match glibc.
78419         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78420         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78421         Disable cancellation while printing error.
78422         * lib/error.h: Prepend __ to parameter names.
78423
78424 2003-09-26  Jim Meyering  <jim@meyering.net>
78425
78426         * lib/error.c (error_tail): Move some declarations
78427         into inner scope where the local variables are used.
78428
78429 2003-09-26  Bruno Haible  <bruno@clisp.org>
78430
78431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78432         stpncpy().
78433         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78434
78435 2003-09-26  Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78438         (stpncpy): Define as alias for gnu_stpncpy.
78439         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78440
78441 2003-09-25  Simon Josefsson  <jas@extundo.com>
78442
78443         * lib/xgetdomainname.h: New file.
78444         * lib/xgetdomainname.c: New file.
78445
78446 2003-09-25  Simon Josefsson  <jas@extundo.com>
78447             Bruno Haible  <bruno@clisp.org>
78448
78449         * modules/getdomainname: New file.
78450         * modules/xgetdomainname: New file.
78451         * MODULES.html.sh (func_all_modules): Add getdomainname,
78452         xgetdomainname.
78453
78454 2003-09-25  Simon Josefsson  <jas@extundo.com>
78455             Bruno Haible  <bruno@clisp.org>
78456
78457         * m4/getdomainname.m4: New file.
78458
78459 2003-09-25  Simon Josefsson  <jas@extundo.com>
78460             Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/getdomainname.h: New file.
78463         * lib/getdomainname.c: New file.
78464
78465 2003-09-25  Karl Berry  <karl@gnu.org>
78466
78467         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78468
78469 2003-09-25  Karl Berry  <karl@gnu.org>
78470
78471         * config/install-sh: update from automake.
78472
78473 2003-09-25  Bruno Haible  <bruno@clisp.org>
78474
78475         * modules/version-etc-2: New file, from modules/version-etc with
78476         modifications.
78477         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78478
78479 2003-09-25  Bruno Haible  <bruno@clisp.org>
78480
78481         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78482         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78483
78484 2003-09-24  Simon Josefsson  <jas@extundo.com>
78485
78486         * modules/xgethostname: Add xgethostname.h.
78487
78488 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78489
78490         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78491         the buffer associated with the argument.  Bug reported by
78492         Simon Josefsson.
78493
78494 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78495
78496         * README: Document assumptions that 'int' is at least 32 bits
78497         wide, that integer arithmetic is 2's complement without overflow,
78498         that there are no holes in integer values, that adding sizes of
78499         two nonoverlapping objects can't overflow, and that all-bits-zero
78500         yields scalar zero.  Fix spelling and capitalization typos.
78501
78502 2003-09-19  Karl Berry  <karl@gnu.org>
78503
78504         * lib/argp.h: update from libc.
78505
78506 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78507
78508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78509         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78510         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78511
78512 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78513
78514         * gnulib-tool: Use "test -h", not "test -L", for portability
78515         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78516         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78517         (sed_extract_prog): Issue s commands one-by-one, rather than
78518         using \| in one s command.
78519
78520 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78521
78522         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78523         input error, instead of returning NULL the next time we are called
78524         (and therefore losing track of errno).
78525
78526 2003-09-16  Bruno Haible  <bruno@clisp.org>
78527
78528         * gnulib-tool (func_create_testdir): Warn about duplicated
78529         dependencies.
78530
78531 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78532
78533         * modules/argmatch, modules/fatal, modules/obstack,
78534         modules/xalloc, modules/xgethostname: Sort dependencies by
78535         importance, not alphabetically.
78536
78537 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78538
78539         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78540         fails, so that the caller gets the proper errno.
78541
78542         * lib/readutmp.c (read_utmp): Likewise.
78543         Check for fstat error.  Close stream and free storage
78544         when failing.
78545
78546 2003-09-14  Karl Berry  <karl@gnu.org>
78547
78548         * config/srclist.txt (strdup.c): disable for c89 changes.
78549
78550 2003-09-14  Jim Meyering  <jim@meyering.net>
78551
78552         * lib/getloadavg.c: Correct cpp indentation.
78553         * lib/strdup.c: Likewise.
78554         * lib/vasnprintf.c: Likewise.
78555
78556 2003-09-14  Bruno Haible  <bruno@clisp.org>
78557
78558         * modules/fwriteerror: New file.
78559         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78560
78561 2003-09-14  Bruno Haible  <bruno@clisp.org>
78562
78563         * lib/fwriteerror.h: New file.
78564         * lib/fwriteerror.c: New file.
78565
78566 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78567
78568         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78569         modules/xgethostname, modules/xalloc: Depend on exit.
78570
78571 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78572
78573         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78574
78575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78576         and AC_MINIX, too, so that their extensions are available.
78577
78578         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78579         This macro has been superseded by gl_BACKUPFILE.
78580
78581         More patches to assume C89 or better.
78582
78583         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78584
78585         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78586         unconditionally.
78587         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78588         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78589         Include <string.h>, <stdlib.h> unconditionally.
78590         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78591         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78592         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78593         headers or for string.h.
78594         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78595         or strtoul.
78596
78597         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78598         headers.
78599         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78600         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78601         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78602         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78603         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78604         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78605         memcpy, memset.
78606         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78607         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78608         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78609         strtol.
78610         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78611         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78613         strtoul.
78614
78615 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78616
78617         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78618         * lib/obstack.c [!defined _LIBC]: Likewise.
78619         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78620         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78621         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78622
78623         More changes to assume C89 or better.
78624
78625         * lib/error.c (error_tail): Assume vprintf.
78626
78627         * lib/argmatch.c (getenv): Remove decl.
78628         * lib/progreloc.c (get_full_program_name): Define via prototype.
78629         * lib/setenv.c (clearenv): Likewise.
78630         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78631         needed.
78632         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78633         (malloc, memcpy): Remove decls.
78634         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78635         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78636         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78637         (memcpy): Remove macro.
78638         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78639         (__P): Remove.  All uses removed.
78640         (PTR): Remove.  All uses changed to void *.
78641         (CHAR_BIT, NULL): Remove.
78642         (spaces, zeros, memset_space, memset_zero)
78643         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78644         Remove.
78645         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78646         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78647         Define with prototype.
78648         Remove now-unnecessary prototype decl.
78649         (extra_args_spec): Assume ANSI C.  All uses changed.
78650         (extra_args_spec_iso): Remove.
78651         (my_strftime, emacs_strftimeu): Define via prototype.
78652         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78653         unconditionally.
78654         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78655         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78656         (strtoul, strtol): Remove decls.
78657         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78658         LONG_MAX): Remove.
78659         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78660         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78661         (LOCALE_PARAM_PROTO): New macro.
78662         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78663         (INTERNAL (strtol), strtol): Define with a prototype.
78664         (PARAMS): Remove.  All uses removed.
78665         * lib/tempname.c: Include <string.h> unconditionally.
78666         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78667         * lib/xgethostname.c (main): Define with a prototype.
78668         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78669         Include <stdlib.h> unconditionally.
78670         (calloc, malloc, realloc, free): Remove decls.
78671         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78672         Include <stdlib.h> unconditionally.  Sort include file names.
78673         (strtod): Remove.
78674         (xstrtod): Define with a prototype.
78675         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78676         (strtol, strtoul): Remove decls.
78677
78678 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78679
78680         More patches to assume C89 or better.
78681         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78682         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78683         string.h, memchr, STDC_HEADERS.
78684
78685 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78686
78687         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78688         Include <stdlib.h>, <string.h> unconditionally.
78689         Remove now-unnecessary cast to char *.
78690         * lib/strnlen.c: Include <string.h> unconditionally.
78691         * lib/yesno.c (yesno): Define with a prototype.
78692
78693 2003-09-11  Bruno Haible  <bruno@clisp.org>
78694
78695         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78696
78697 2003-09-10  Jim Meyering  <jim@meyering.net>
78698
78699         * lib/error.c: Correct indentation of cpp directives.
78700
78701 2003-09-10  Bruno Haible  <bruno@clisp.org>
78702
78703         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78704         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78705         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78706         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78707         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78708         <stdlib.h> and <string.h> checks.
78709         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78710         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78711
78712 2003-09-10  Bruno Haible  <bruno@clisp.org>
78713
78714         * lib/strcspn.c: Include <string.h> unconditionally.
78715         * lib/strpbrk.c: Include <string.h> unconditionally.
78716         * lib/strstr.c: Include <string.h> unconditionally.
78717         * lib/unicodeio.c: Include <string.h> unconditionally.
78718         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78719         * lib/unsetenv.c: Likewise.
78720         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78721         * lib/yesno.c: Include <stdlib.h> unconditionally.
78722         (rpmatch): Add prototype.
78723
78724 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78725
78726         More patches to assume C89 or better.
78727         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78728         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78729         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78730         or for string.h.
78731         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78732         stdlib.h.
78733         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78734         C headers.
78735         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78736         string.h.
78737         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78738         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78739         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78740         or for string.h.
78741         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78742         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78743         C headers.
78744         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78745         memcpy.
78746         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78747         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78748         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78749         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78750         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78751         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78752         string.h, free.
78753         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78754         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78755         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78756         C headers, or for string.h.
78757         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78758         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78759         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78760         headers, memory.h, stdlib.h, string.h, strings.h.
78761         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78762         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78763         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78764         strchr.
78765         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78766         headers, memory.h, string.h.
78767         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78768         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78769         free.
78770         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78771         headers.
78772         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78773         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78774         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78775         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78776         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78777
78778 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78779
78780         More K&R removal.
78781
78782         * lib/acosl.c (main): Use a prototype.
78783         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78784         tanl.c: Likewise.
78785
78786         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78787
78788         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78789         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78790         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78791         with a prototype.
78792         * lib/getopt.c (const): Remove macro.
78793         Include <string.h> unconditionally.
78794         (my_index): Remove; all uses changed to strchr.
78795         (strlen): Remove decl.
78796         (exchange): Remove forward decl; no longer needed.
78797         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78798         Define with prototype.
78799         * lib/getopt1.c (const): Remove macro.
78800         (getopt_long, getopt_long_only, main): Define with prototype.
78801
78802         * lib/getugroups.c: Include <string.h> unconditionally.
78803
78804         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78805         (getusershell, setusershell, endusershell, readname, main):
78806         Define with prototypes.
78807
78808         * lib/group-member.c: Include group-member.h first.
78809         Include <stdlib.h> unconditionally.
78810
78811         * lib/hard-locale.c: Include hard-locale.h first.
78812         Include <stdlib.h>, <string.h> unconditionally.
78813
78814         * lib/hash.c (free, malloc): Remove decls.
78815         Include <stdlib.h> unconditionally.
78816
78817         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78818         (getenv): Do not declare.
78819
78820         * lib/idcache.c: Include <string.h> unconditionally.
78821
78822         * lib/long-options.c: Include long-options.h first, to test interface.
78823         Include <stdlib.h> unconditionally.
78824
78825         * lib/makepath.c: Include makepath.h first, to test interface.
78826         Include <stdlib.h> and <string.h> unconditionally.
78827
78828         * lib/linebuffer.c: Include <stdlib.h>.
78829         (free): Remove decl.
78830
78831         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78832         stddef.h. rpl_malloc returns void *, not char *.
78833         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78834         prototype.
78835
78836         * lib/md5.h: Include <limits.h> unconditionally.
78837         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78838         (__P): Remove; all uses removed.
78839         * lib/md5.c: Include "md5.h" first.
78840         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78841         md5_buffer, md5_process_bytes, md5_process_block):
78842         Define with prototypes.
78843         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78844         * lib/sha.c: Include "sha.h" first.
78845         Include <stdlib.h>, <string.h> unconditionally.
78846
78847         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78848         * lib/memcmp.c (__ptr_t): Likewise.
78849         * lib/memrchr.c (__ptr_t): Likewise.
78850         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78851         Include <string.h> unconditionally.
78852         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78853         * lib/memchr.c: Include <stdlib.h> unconditionally.
78854         * lib/memchr.c (LONG_MAX): Remove.
78855         * lib/memrchr.c (LONG_MAX): Likewise.
78856         * lib/memchr.c (__memchr): Define via a prototype.
78857         * lib/memrchr.c (__memrchr): Likewise.
78858         * lib/memcmp.c (__P): Remove, and remove all uses.
78859         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78860         Remove forward decls; no longer needed.
78861         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78862         Use types required by C89 in prototype.
78863
78864         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78865         * lib/savedir.c: Likewise.
78866         * lib/mkdir.c (free): Remove decl.
78867         * lib/rmdir.c (rmdir): Define with a prototype.
78868         * lib/savedir.c: Include savedir.h first, to test interface.
78869
78870         * lib/mktime.c (STDC_HEADERS): Remove.
78871         Include <stdlib.h>, <string.h> unconditionally.
78872
78873         * lib/modechange.c: Include <stdlib.h> unconditionally.
78874         (malloc): Remove decl.
78875
78876         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78877         (free): Remove decl.
78878
78879         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78880         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78881         (This type really should be intptr_t, but that's a C99ism.)
78882         (_obstack_memcpy): Remove: all uses changed to memcpy.
78883         Include <string.h> unconditionally.
78884         (struct obstack): Assume __STDC__ for types of members
78885         chunkfun, freefun, extra_arg.
78886         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78887         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78888         obstack_begin, obstack_specify_allocation,
78889         obstack_specify_allocation_with_arg, obstack_chunkfun,
78890         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78891         Remove unprototyped decls and the macros that use them.
78892         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78893         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78894         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78895         (defined __STDC__ && __STDC__)]:
78896         Remove nonprototyped code.
78897         Include <stdlib.h> unconditionally.
78898         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78899         _obstack_allocated_p, _obstack_free, obstack_free,
78900         _obstack_memory_used, print_and_abort):
78901         Define using prototypes.
78902         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78903         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78904         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78905         obstack_next_free, obstack_object_size, obstack_room) [0]:
78906         Remove unused, unprototyped code.
78907
78908         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78909
78910         * lib/physmem.c (physmem_total, physmem_available, main): Define
78911         with prototypes.
78912
78913         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78914         (main): Define with a prototype.
78915
78916         * lib/posixver.c (getenv): Remove decl.
78917
78918         * lib/putenv.c (malloc): Returns void *, not char *.
78919         Include <string.h> unconditionally.
78920         (strchr, memcpy, NULL): Do not define.
78921
78922         * lib/readtokens.c: Include readtokens.h first, to test interface.
78923         Include <stdlib.h>, <string.h> unconditionally.
78924         (init_tokenbuffer): Define with a prototype.
78925
78926         * lib/regex.c (PARAMS): Remove.  All uses removed.
78927         All uses of _RE_ARGS removed, too.
78928         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78929         unconditionally.
78930         (bzero): Assume memset exists.
78931         (memcmp, memcpy, NULL): Remove.
78932         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78933         char, or assignments to local vars of type signed char.
78934         (init_syntax_once, PREFIX(extract_number_and_incr),
78935         PREFIX(print_partial_compiled_pattern),
78936         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78937         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78938         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78939         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78940         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78941         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78942         wcs_compile_range, byte_compile_range, truncate_wchar,
78943         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78944         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78945         count_mbs_length, wcs_re_match_2_internal,
78946         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78947         PREFIX(alt_match_null_string_p),
78948         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78949         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78950         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78951         now-unnecessary declaration, if any.
78952         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78953         regcomp, regexec):
78954         Remove now-unnecessary casts among pointer types.
78955         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78956
78957         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78958         (free): Remove decl.
78959
78960         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78961
78962         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78963         (free): Remove decl.
78964
78965         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78966         * lib/xgetcwd.c: Likewise.
78967
78968         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78969         (free): Remove decl.
78970
78971         * lib/strchrnul.c (strchrnul): Define with a prototype.
78972         Fix bug: c_in was not converted to char before searching.
78973
78974         The following changes are not K&R related:
78975
78976         * lib/group-member.h: Include <sys/types.h>, so that this file is
78977         self-contained.
78978         * lib/makepath.h: Likewise.
78979
78980         * lib/getusershell.c (readname, default_index, line_size, readname):
78981         Use size_t, not int, for sizes.
78982         (readname): If the size overflows, report an error instead of
78983         looping forever.
78984
78985 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78986
78987         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78988         libc.
78989
78990 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78991
78992         * README: New section: portability guidelines.
78993
78994 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78995
78996         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78997         C89 spec.
78998
78999 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79000
79001         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79002
79003 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79004
79005         Assume C89 or better; remove K&R cruft.
79006         A few of these changes were first proposed by Derek Robert Price
79007         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79008
79009         * lib/addext.c: Include <string.h> unconditionally.
79010         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79011         Don't declare getenv or malloc.
79012
79013         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79014         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79015         (NULL): Remove.
79016         (find_stack_direction, alloca): Use prototypes.
79017
79018         * lib/atexit.c (atexit): Define using a prototype.
79019
79020         * lib/basename.c, dirname.c, stripslash.c:
79021         Include <string.h> unconditionally.
79022
79023         * lib/bcopy.c: Include <stddef.h>.
79024         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79025
79026         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79027
79028         * lib/error.h (error, error_at_line, error_print_progname)
79029         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79030         * lib/error.c: Include error.h first, to check interface.
79031         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79032         (VA_START): Remove; all uses changeed to va_start.
79033         (exit, strerror): Remove decls.
79034         (error_print_progname): Prototype uncondionally.
79035         Don't include <errno.h>; no longer needed.
79036         (private_strerror): Remove.
79037         (error_tail): Always define.
79038         (error, error_at_line): Assume C89 or better; always use prototypes.
79039         * lib/fatal.c: Include "fatal.h" first, to test interface.
79040         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79041         (VA_START): Remove; all uses changed to va_start.
79042         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79043         this case.
79044         (exit): Remove decl.
79045         (fatal): Prototype unconditionally.  Assume va_start works.
79046         Abort at end, to pacify gcc.
79047
79048         * lib/euidaccess.c (main): Define with a prototype.
79049
79050         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79051
79052         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79053
79054         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79055         prototypes.
79056         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79057         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79058         (getenv): Remove decl.
79059         (fnmatch): Define using a prototype.
79060         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79061         (FCT): Define using a prototype.
79062
79063         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79064
79065         * lib/gethostname.c: Include <stddef.h>.
79066         (gethostname): Define with prototype.  Length is size_t, not int.
79067
79068 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79069
79070         Assume C89 or better; remove K&R cruft.
79071         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79072         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79073         string.h, getenv, malloc.
79074         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79075         headers.
79076         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79077         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79078         do not check for strerror.
79079         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79080         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79081         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79082         do not check for doprnt or vprintf.
79083         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79084         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79085
79086 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79087
79088         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79089         getversion.c should have been removed then, but was accidentally
79090         preserved.
79091
79092         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79093         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79094
79095 2003-09-08  Karl Berry  <karl@gnu.org>
79096
79097         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79098                 config, forget about prep.
79099
79100         * config/depcomp, missing: update from automake.
79101
79102 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79103
79104         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79105         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79106
79107 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79108
79109         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79110         copy_tm_result.  Bug reported by Simon Josefsson in
79111         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79112
79113 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79114
79115         * m4/time_r.m4: New file.
79116         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79117         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79118         is. Check for timegm declaration.
79119         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79120         Do not check for gmtime_r.
79121         Replace mktime if __mktime_internal does not exist and if mktime
79122         hasn't been replaced already.
79123
79124 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79125
79126         * lib/time_r.c, lib/time_r.h: New files.
79127
79128         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79129         __localtime_r.
79130         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79131         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79132
79133         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79134         __gmtime_r.
79135         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79136         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79137         Include <time_r.h>.
79138
79139         * lib/timegm.c: Switch to glibc implementation, with the following
79140         changes:
79141         [defined HAVE_CONFIG_H]: Include <config.h>.
79142         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79143         (__mktime_internal) [!defined _LIBC]: New decl.
79144         (__gmtime_r) [!defined _LIBC]: New macro and function.
79145         (timegm): Use a prototype, since gnulib assumes C89.
79146         Do not bother declaring tmp to be const, as it's not really usefu.
79147         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79148         (timegm): Declare only if HAVE_DECL_TIMEGM.
79149
79150 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79151
79152         * MODULES.html.sh (func_all_modules): Add time_r.
79153         * modules/time_r: New file.
79154         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79155         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79156
79157 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79158
79159         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79160         Bug reported by Lute Kamstra in
79161         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79162
79163         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79164         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79165         course with correspondingly smaller numbers for tomorrow and
79166         yesterday.  From Tadayoshi Funaba.  Originally installed into
79167         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79168         coreutils merge?).
79169
79170 2003-08-31  Simon Josefsson  <jas@extundo.com>
79171
79172         * modules/timegm: New file.
79173         * MODULES.html.sh (func_all_modules): Add timegm.
79174
79175 2003-08-31  Simon Josefsson  <jas@extundo.com>
79176
79177         * m4/timegm.m4: New file.
79178
79179 2003-08-31  Simon Josefsson  <jas@extundo.com>
79180
79181         * lib/timegm.h: New file.
79182         * lib/timegm.c: New file.  Based on
79183         wget-1.8.2/src/http.c:mktime_from_utc.
79184
79185 2003-08-31  Karl Berry  <karl@gnu.org>
79186
79187         * lib/argp.h: update from libc.
79188
79189 2003-08-28  Bruno Haible  <bruno@clisp.org>
79190
79191         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79192         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79193         followed by '#define fnmatch fnmatch_posix' gives an error.
79194
79195 2003-08-28  Bruno Haible  <bruno@clisp.org>
79196
79197         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79198         warning on QNX, which defines O_BINARY to 000000.
79199
79200 2003-08-27  Jim Meyering  <jim@meyering.net>
79201
79202         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79203         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79204         would fail after 32.  Reported by Danny Levinson.  Details here:
79205         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79206
79207 2003-08-24  Bruno Haible  <bruno@clisp.org>
79208
79209         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79210         MSVC7 <stdio.h> is included later.
79211
79212 2003-08-22  Simon Josefsson  <jas@extundo.com>
79213
79214         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79215
79216 2003-08-20  Karl Berry  <karl@gnu.org>
79217
79218         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79219
79220 2003-08-20  Bruno Haible  <bruno@clisp.org>
79221
79222         * modules/progname: New file.
79223         * MODULES.html.sh (func_all_modules): Add progname.
79224
79225 2003-08-20  Bruno Haible  <bruno@clisp.org>
79226
79227         * lib/progname.h: New file, from GNU gettext.
79228         * lib/progname.c: New file, from GNU gettext.
79229         * lib/progreloc.c: New file, from GNU gettext.
79230
79231 2003-08-19  Jim Meyering  <jim@meyering.net>
79232
79233         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79234         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79235
79236 2003-08-19  Bruno Haible  <bruno@clisp.org>
79237
79238         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79239         more.
79240
79241 2003-08-19  Bruno Haible  <bruno@clisp.org>
79242
79243         * lib/xstrdup.c: Assume <string.h> exists.
79244
79245 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79246
79247         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79248         in makefile rules.
79249
79250 2003-08-18  Jim Meyering  <jim@meyering.net>
79251
79252         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79253         * m4/lib-ld.m4: Likewise.
79254
79255 2003-08-18  Jim Meyering  <jim@meyering.net>
79256
79257         * lib/setenv.h: Indent nested cpp directive.
79258         * lib/vasnprintf.c: Remove trailing blanks.
79259
79260 2003-08-17  Simon Josefsson  <jas@extundo.com>
79261
79262         * modules/xstrndup: New file.
79263         * MODULES.html.sh (func_all_modules): Add xstrndup.
79264
79265 2003-08-17  Simon Josefsson  <jas@extundo.com>
79266
79267         * modules/argp: Fix autoconf macro name. Add more dependencies.
79268
79269 2003-08-17  Simon Josefsson  <jas@extundo.com>
79270
79271         * m4/xstrndup.m4: New file.
79272
79273 2003-08-17  Simon Josefsson  <jas@extundo.com>
79274
79275         * m4/argp.m4: New file.
79276
79277 2003-08-17  Simon Josefsson  <jas@extundo.com>
79278             Bruno Haible  <bruno@clisp.org>
79279
79280         * lib/xstrndup.h: New file.
79281         * lib/xstrndup.c: New file.
79282
79283 2003-08-17  Bruno Haible  <bruno@clisp.org>
79284
79285         * modules/strndup (Files, Include): Add lib/strndup.h.
79286
79287 2003-08-17  Bruno Haible  <bruno@clisp.org>
79288
79289         * modules/euidaccess (Files): Add lib/euidaccess.h.
79290
79291 2003-08-17  Bruno Haible  <bruno@clisp.org>
79292
79293         * lib/strndup.h: New file.
79294
79295 2003-08-17  Bruno Haible  <bruno@clisp.org>
79296
79297         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79298         like AC_GNU_SOURCE.
79299         * modules/extensions (configure.ac): Comment out the invocation of
79300         gl_USE_SYSTEM_EXTENSIONS.
79301
79302 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79303
79304         Merges from coreutils, etc.
79305         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79306         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79307         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79308         fixing a typo.
79309         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79310         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79311
79312 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79313
79314         Document merge from coreutils.
79315         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79316         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79317         * modules/utime: Add m4/utimes-null.m4.
79318
79319 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79320
79321         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79322         space, undoing this 2003-08-12 change:
79323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79324
79325 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79326
79327         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79328         strtoul.c from libc, undoing this 2003-08-12 change:
79329         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79330
79331 2003-08-16  Jim Meyering  <jim@meyering.net>
79332
79333         Merges from coreutils.
79334         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79335         prefix.  Adjust cache variables similarly.  Create 500 rather than
79336         just 300 files, to exercise bug on Darwin6.5, too.
79337         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79338         $missing_dir.
79339         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79340         AM_SYS_POSIX_TERMIOS.
79341         Reported by mkc@mathdogs.com.
79342         Also change use of $am_cv_sys_posix_termios
79343         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79344         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79345         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79346         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79347         in /proc/mounts until it finds one with matching device number.  This
79348         is unnecessary when the FILE argument *is* a mount point.  No stat call
79349         is necessary in that case.  So, disable the statvfs-testing code on
79350         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79351         as RedHat bug# 84846.
79352         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79353         to 1MB, so as not to render systems with no stack size limit (e.g.,
79354         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79355         Include <unistd.h>.  On some systems,
79356         it is required for the definition of _SC_PAGESIZE.
79357
79358 2003-08-16  Jim Meyering  <jim@meyering.net>
79359
79360         Merge from coreutils.
79361         * lib/xstrtoimax.c: #else #if -> #elif.
79362         * lib/xstrtoumax.c: Likewise.
79363
79364 2003-08-16  Jim Meyering  <jim@meyering.net>
79365
79366         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79367         * m4/utimes.m4: Removed.
79368         * m4/utimes-null.m4: Renamed from utimes.m4.
79369
79370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79371         to 1MB, so as not to render systems with no stack size limit (e.g.,
79372         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79373         Include <unistd.h>.  On some systems,
79374         it is required for the definition of _SC_PAGESIZE.
79375
79376 2003-08-16  Jim Meyering  <jim@meyering.net>
79377         and Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         Merges from coreutils, etc.
79380
79381         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79382         using the latest version from cvs.  This avoids problems with #line
79383         directives using a vendor (Sun) compiler.
79384         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79385         Don't set GETGROUPS_LIB here; now it's
79386         done via getgroups.m4's wrapper function.
79387         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79388         rather than just in sh-util/configure.in, so that the
79389         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79390         same.
79391         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79392         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79393         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79394         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79395         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79396         Remove code that is now done by the newly-required macros.
79397         Append $(EXEEXT) to DF_PROG.
79398         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79399         Do not invoke or require the following here,
79400         since prereq.m4 or some gnulib .m4 now does this for us:
79401         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79402         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79403         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79404         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79405         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79406         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79407         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79408         AC_FUNC_OBSTACK.
79409         Do not replace the following functions, as this is now the job
79410         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79411         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79412         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79413         atexit getpass, strdup, getpagesize.
79414         Replace 'raise'.
79415         Do not check for the following functions, as this is now the job
79416         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79417         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79418         setregid.
79419         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79420         Check for sys/sysctl.h.
79421         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79422         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79423         of checking for ssize_t ourselves.
79424
79425         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79426         Require every macro that gnulib/modules/* suggests for us.
79427         (jm_PREREQ_ADDEXT): New macro.
79428         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79429         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79430
79431         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79432         (gl_PHYSMEM): Use it.
79433         Also check for `table' function.
79434         Check for new headers and functions.
79435         Add check for sys/sysmp.h.
79436         With suggestions from Kaveh Ghazi.
79437         Ignore headers that are present but cannot be compiled.  This
79438         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79439         C 5.4.
79440
79441 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79442
79443         Document merge from coreutils.
79444         * modules/userspec: Depend on posixver.
79445         * modules/strftime: Depend on tzset.
79446
79447 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79448
79449         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79450         rather than tab, after '#' in shell-script copyright notices.
79451         Suggested by Bruno Haible.
79452
79453 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79454
79455         * config/srclist-update: Use three spaces, rather than tab, after '#'
79456         in shell-script copyright notices.  Suggested by Bruno Haible.
79457         Remove unnecessary parenthesization in regular expression.
79458
79459 2003-08-15  Jim Meyering  <jim@meyering.net>
79460
79461         Merge from coreutils.
79462         * lib/xgethostname.c: Include <stdlib.h>.
79463         (xghostname): Don't exit for anything other than memory-related
79464         failure; just return NULL.
79465         * lib/userspec.c: Include "posixver.h".
79466         (parse_user_spec): Accept `.' as a separator only
79467         in pre-POSIX-200112 mode.
79468         * lib/strtoimax.c: Use #elif rather than #else #if.
79469         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79470         Remove function, now that we can rely on a working tzset function.
79471         [!_LIBC]: Ensure that the required autoconf test has been run.
79472         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79473         Use underlying_strftime for %r.
79474         * lib/sha.c: Merge in some clean-up and optimization changes from
79475         glibc.
79476         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79477         Ensure that it is a multiple of 64.
79478         Rearrange loop exit tests so as to avoid performing an
79479         additional fread after encountering an error or EOF.
79480         * lib/realloc.c: Update copyright date.
79481
79482 2003-08-15  Jim Meyering  <jim@meyering.net>
79483         and Paul Eggert  <eggert@twinsun.com>
79484
79485         Merge from coreutils.
79486         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79487         member but strut utmpx does not.  Needed for AIX 4.3.3.
79488         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79489
79490 2003-08-15  Jim Meyering  <jim@meyering.net>
79491         and Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         Merges from coreutils, etc.
79494         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79495         Require gl_FUNC_TZSET_CLOBBER.
79496         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79497         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79498         members.
79499
79500 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79501
79502         Help the merge from coreutils.
79503         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79504         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79505         * m4/tzset.m4: Use it too.
79506
79507 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79508
79509         * modules/tzset: New file.
79510
79511 2003-08-14  Jim Meyering  <jim@meyering.net>
79512
79513         Merges from coreutils.
79514         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79515         variable names, rather than @FNMATCH_H@.
79516         * modules/alloca: Likewise for $(ALLOCA_H).
79517
79518         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79519         the three copies of the literal target, `fnmatch.h'.
79520         * modules/alloca (alloca.h): Likewise.
79521
79522 2003-08-14  Jim Meyering  <jim@meyering.net>
79523
79524         Merge from coreutils.
79525         * m4/tzset.m4: New file.
79526         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79527         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79528         otherwise, AIX 5.1 systems would end up using the latter.
79529         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79530         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79531         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79532         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79533
79534 2003-08-14  Jim Meyering  <jim@meyering.net>
79535
79536         Merge from coreutils.
79537         * lib/obstack.h: Whitespace changes.
79538         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79539         and xcalloc return values.
79540         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79541         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79542         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79543         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79544         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79545         error from mntctl.
79546         Use mntctl's return value to drive the entry-processing loop, since
79547         we can't rely on the value of the vmt_length member in the last
79548         entry.  On some systems doing so could result in exhausting
79549         virtual memory.  Based in part on a patch from Mike Jetzer.
79550
79551 2003-08-14  Jim Meyering  <jim@meyering.net>
79552         and Paul Eggert  <eggert@twinsun.com>
79553
79554         Merges from coreutils, plus other fixes.
79555         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79556         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79557         for credits and details.  Thanks to Kaveh Ghazi for helping
79558         to keep these files in sync.
79559         (ARRAY_SIZE): Define it.
79560         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79561         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79562         (memcasecmp): Don't assume size_t fits in unsigned int.
79563         Remove casts and duplicate code.
79564         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79565         (memcpy): Remove definition.
79566         Merge in some clean-up and optimization changes from glibc.
79567         [BLOCKSIZE]: Move definition to top of file.
79568         Ensure that it is a multiple of 64.
79569         Rearrange loop exit tests so as to avoid performing an
79570         additional fread after encountering an error or EOF.
79571         * lib/md5.h (md5_uintptr): Define.
79572         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79573         return to the initial working directory.  Preserve errno
79574         for caller.
79575         * lib/idcache.c: Include "xalloc.h".
79576         (xmalloc, xrealloc): Remove decls.
79577         (getuser): Remove casts no longer required in C89.
79578         * lib/human.c: Include stdio.h, for sprintf.
79579         * lib/group-member.c: Include "xalloc.h".
79580         (xmalloc, xrealloc): Remove decls.
79581         (get_group_info): Remove casts no longer required in C89.
79582         * lib/getusershell.c (readname): Remove casts no longer required in
79583         C89.
79584         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79585         * lib/getline.c: Whitespace fix, from coreutils.
79586
79587 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79588
79589         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79590         Check for isascii.
79591
79592         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79593         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79594         Undo previous (whitespace-only) change.
79595
79596 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79597
79598         * lib/exclude.c: Include <ctype.h>
79599         (IN_CTYPE_DOMAIN): New macro.
79600         (is_space): New fn.
79601         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79602         and empty lines.
79603
79604         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79605         Undo previous (whitespace-only) change.
79606
79607 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79608
79609         * config/srclist-update: Change update back to the old behavior,
79610         leaving whitespace alone.  Use one 'sed' command rather than a
79611         pipeline.
79612         (fixlicense): Now a variable, not a function.
79613         (remove_trailing_blanks): Remove.
79614         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79615         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79616         Undo previous (whitespace-only) change.
79617
79618 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79619
79620         Merge from coreutils.
79621         * modules/euidaccess: Add lib_SOURCES, include for new
79622         file euidaccess.h
79623
79624 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79625
79626         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79627         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79628         Normalize leading white space and remove trailing white space.
79629
79630         Merge from coreutils
79631         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79632
79633         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79634         0.12.1.  These files are now being upgraded automatically by
79635         ../config/srclist-update.
79636
79637 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79638
79639         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79640         Normalize leading white space and remove trailing white space.
79641         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79642         notice, as per ../config/srclist-update.
79643
79644         Merge from coreutils.
79645         * lib/euidaccess.h: New file.
79646         * lib/euidaccess.c: Include it.
79647         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79648         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79649         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79650
79651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79652
79653         * config/srclist-update: Add copyright notice.
79654         (remove_id_lines, remove_trailing_blanks): New constants.
79655         (fixfile): Use them to normalize spacing a bit in copied files.
79656         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79657         Normalize leading white space and remove trailing white space.
79658
79659         * config/texinfo.tex: Sync with texinfo.
79660
79661         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79662         strtoul.c from libc, to merge coreutils whitespace changes.
79663
79664         * config/srclist.txt: Get the following m4 files from gettext:
79665         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79666         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79667         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79668         wint_t.m4.
79669
79670 2003-08-12  Karl Berry  <karl@gnu.org>
79671
79672         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79673         been made.
79674
79675 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79676
79677         * modules/gnu-source, m4/gnu-source.m4:
79678         Remove; we're assuming Autoconf 2.54 or later now.
79679         Suggested by Bruno Haible.
79680         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79681
79682 2003-08-11  Bruno Haible  <bruno@clisp.org>
79683
79684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79685
79686 2003-08-11  Bruno Haible  <bruno@clisp.org>
79687
79688         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79689         (vasnprintf): Use it instead of wcslen.
79690
79691 2003-08-11  Bruno Haible  <bruno@clisp.org>
79692
79693         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79694         value to ensure that _Bool promotes to int. Use #define for _Bool when
79695         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79696
79697 2003-08-10  Karl Berry  <karl@gnu.org>
79698
79699         * lib/regex.h: update from libc (whitespace fix).
79700
79701 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79702
79703         Merge some files from coreutils.  These changes were
79704         originally made by Jim Meyering.
79705         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79706         many older Unixes require this.
79707         * lib/alloca.c (alloca): Remove cast to argument of free;
79708         no longer needed in C89.
79709         * lib/alloca_.h, regex.h: Fix white space to match
79710         what GNU indent does.
79711
79712 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79713
79714         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79715         apparently Emacs's Unicode mode got confused before my 2003-08-05
79716         checkin.
79717
79718 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79719
79720         * m4/extensions.m4: New file.
79721         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79722         Require gl_USE_SYSTEM_EXTENSIONS.
79723         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79724         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79725
79726 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79727
79728         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79729         * modules/extensions, modules/gnu-source: New files.
79730         * modules/timespec, modules/unlocked-io: Depend on extensions.
79731
79732 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79733
79734         * modules/restrict: New file.
79735         * MODULES.html.sh (func_all_modules): Add restrict.
79736         * modules/regex: Depend on restrict.
79737
79738 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79739
79740         * m4/restrict.m4: New file.
79741         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79742
79743 2003-08-07  Bruno Haible  <bruno@clisp.org>
79744
79745         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79746         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79747
79748 2003-08-07  Bruno Haible  <bruno@clisp.org>
79749
79750         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79751         makes the module 'getndelim2' compatible with the module 'getline'.
79752
79753 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79754
79755         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79756         byte with "\201" to avoid glitches when editing that source file
79757         with multi-gnome-terminal.
79758
79759 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79760
79761         * lib/bumpalloc.h: Remove.
79762
79763 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79764
79765         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79766         * modules/bumpalloc: Remove.
79767
79768 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79769
79770         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79771         GNU coding style.
79772
79773         Merge from coreutils.
79774         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79775         1. From glibc.
79776         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79777         from Karl Berry, implemented by Jim Meyering.
79778         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79779         from Dmitry V. Levin.
79780         Remove anachronistic cast of xrealloc.
79781         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79782         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79783         type. Otherwise, it wouldn't compile with at least /bin/cc on
79784         ymp-cray-unicos9.0.2.X.
79785         Combine two mostly-identical uses of alloca into one.
79786         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79787
79788 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79789
79790         [From Emacs.]
79791
79792         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79793         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79794         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79795         obsolete NLIST_NAME_UNION.
79796         [__GNU__]: Undef BSD and FSCALE.
79797         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79798
79799 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79800
79801         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79802         an enum type, so that it's guaranteed to promote to int.  See:
79803         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79804
79805 2003-08-03  Karl Berry  <karl@gnu.org>
79806
79807         * config/depcomp: update from automake.
79808
79809 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79810
79811         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79812         (strerror): Don't assume that a printable int fits in 14 bytes.
79813
79814 2003-07-31  Bruno Haible  <bruno@clisp.org>
79815
79816         * modules/getpass-gnu: New file.
79817         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79818
79819 2003-07-31  Bruno Haible  <bruno@clisp.org>
79820
79821         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79822
79823 2003-07-24  Karl Berry  <karl@gnu.org>
79824
79825         * config/missing: update from automake.
79826
79827 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79828             Bruno Haible  <bruno@clisp.org>
79829
79830         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79831         * lib/getline.c (getline, getdelim): Likewise.
79832         Remove _GNU_SOURCE define; now it's defined in config.h through
79833         m4/getline.m4.
79834
79835 2003-07-23  Karl Berry  <karl@gnu.org>
79836
79837         * config/config.sub: update from prep.
79838
79839 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79840
79841         * modules/xalloc (Depends-on): Add exitfail.
79842         * modules/xmemcoll: Likewise.
79843
79844 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79845
79846         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79847         over-parenthesization in macros.
79848
79849         Sync with coreutils.
79850
79851         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79852         required by C99.
79853
79854         Use `exit_failure' for xalloc and xmemcoll instead of their own
79855         private exit-failure variables.
79856         * lib/xalloc.h (xalloc_exit_failure): Remove.
79857         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79858         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79859         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79860         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79861         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79862
79863 2003-07-20  Jim Meyering  <jim@meyering.net>
79864
79865         * modules/closeout (Depends-on): Add exitfail.
79866         Suggestion from Bruno Haible.
79867
79868 2003-07-19  Karl Berry  <karl@gnu.org>
79869
79870         * config/config.sub: update from prep.
79871
79872 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79873
79874         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79875         Remove.
79876         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79877         to test that it can stand by itself.  Include "exitfail.h".
79878         Clients should set exit_failure instead.
79879         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79880
79881 2003-07-18  Bruno Haible  <bruno@clisp.org>
79882
79883         * modules/getndelim2: New file.
79884         * modules/getline: Share files with module getndelim2.
79885         * modules/getnline: Depend on getndelim2 instead of sharing files with
79886         it. Add getnline.c to lib_SOURCES.
79887         * MODULES.html.sh (func_all_modules): Add getndelim2.
79888
79889 2003-07-18  Bruno Haible  <bruno@clisp.org>
79890
79891         * m4/getndelim2.m4: New file.
79892         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79893         invoke gl_PREREQ_GETNDELIM2.
79894         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79895         gl_PREREQ_GETNDELIM2.
79896         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79897         gl_GETNDELIM2.
79898
79899 2003-07-18  Bruno Haible  <bruno@clisp.org>
79900
79901         * lib/getndelim2.h: New file.
79902         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79903         getndelim2.h.
79904         (getndelim2): Make non-static. Change return type to ssize_t.
79905         * lib/getline.h: Change argument names.
79906         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79907         * lib/getnline.c: Include getndelim2.h.
79908
79909 2003-07-18  Andreas Schwab  <schwab@suse.de>
79910
79911         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79912
79913 2003-07-17  Karl Berry  <karl@gnu.org>
79914
79915         * config/config.sub: update from prep.
79916
79917 2003-07-17  Bruno Haible  <bruno@clisp.org>
79918
79919         * modules/getnline: New file.
79920         * modules/getline: Add lib/getndelim2.c to source file list.
79921         * MODULES.html.sh (func_all_modules): Add getnline.
79922
79923 2003-07-17  Bruno Haible  <bruno@clisp.org>
79924
79925         * m4/getnline.m4: New file.
79926
79927 2003-07-17  Bruno Haible  <bruno@clisp.org>
79928
79929         * m4/Makefile.am.in: Remove file.
79930         * m4/Makefile.am: Remove file.
79931         * m4/Makefile.in: Remove file.
79932
79933 2003-07-17  Bruno Haible  <bruno@clisp.org>
79934
79935         * lib/getnline.h: New file.
79936         * lib/getnline.c: New file.
79937         * lib/getndelim2.c: New file, extracted from getline.c.
79938         (getndelim2): Renamed from getdelim2, with added nmax argument.
79939         * lib/getline.c: Include getndelim2.c.
79940         (getdelim2): Moved out to getndelim2.c.
79941         (getline, getdelim): Update.
79942
79943 2003-07-17  Bruno Haible  <bruno@clisp.org>
79944
79945         * lib/Makefile.am: Remove file.
79946         * lib/Makefile.in: Remove file.
79947
79948 2003-07-17  Bruno Haible  <bruno@clisp.org>
79949
79950         * configure.in: Remove file.
79951         * Makefile.in: Remove file.
79952
79953 2003-07-17  Bruno Haible  <bruno@clisp.org>
79954
79955         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79956
79957 2003-07-16  Karl Berry  <karl@gnu.org>
79958
79959         * config/srclist-update: was running fixlicense twice, which caused
79960                 texinfo.tex to be nullified for some reason.  Simplify,
79961                 $gplsrc is no longer needed as far as I can see?
79962
79963 2003-07-16  Jim Meyering  <jim@meyering.net>
79964
79965         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79966
79967 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79968
79969         * config/srclist.txt: Get the following files from gettext-runtime/intl
79970         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79971         ref-del.sin.  From Bruno Haible.
79972         * config/srclist-update (fixfile): Change grep pattern again, since the
79973         previous fix didn't work (there was another trailing $).  Use
79974         '[$]' to escape the $s.
79975
79976 2003-07-15  Karl Berry  <karl@gnu.org>
79977
79978         * lib/vasnprintf.c: update from gettext.
79979
79980 2003-07-15  Karl Berry  <karl@gnu.org>
79981
79982         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79983         gets expanded when surrounded by '$'.
79984
79985 2003-07-15  Jim Meyering  <jim@meyering.net>
79986
79987         * modules/save-cwd: Don't depend on error.  From Derek Price.
79988
79989 2003-07-15  Jim Meyering  <jim@meyering.net>
79990
79991         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79992
79993 2003-07-14  Simon Josefsson  <jas@extundo.com>
79994
79995         * modules/mempcpy: New file.
79996         * MODULES.html.sh (func_all_modules): Add mempcpy.
79997
79998 2003-07-14  Simon Josefsson  <jas@extundo.com>
79999
80000         * m4/mempcpy.m4: New file.
80001
80002 2003-07-14  Simon Josefsson  <jas@extundo.com>
80003
80004         * lib/mempcpy.h: New file.
80005         * lib/mempcpy.c: New file.
80006
80007 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80008
80009         * modules/getdate, modules/posixtm: Depend on mktime.
80010
80011 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80012
80013         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80014         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80015         unicodeio.c, unicodeio.h, unlocked-io.h:
80016         Switch from LGPL to GPL.
80017
80018 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80019
80020         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80021         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80022         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80023         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80024         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80025         updated automatically by ../config/srclist-update.  This changes
80026         their license from LPGL to GPL.
80027
80028 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80029
80030         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80031         assumed to refer to the root of the most recent stable gettext version.
80032         * config/srclistvars.sh: Add defaults for eggert.
80033         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80034         Match "This program" as well as "The program".  This is needed
80035         for gettext.
80036
80037 2003-07-14  Jim Meyering  <jim@meyering.net>
80038
80039         Don't emit diagnostics.  Let callers do that.
80040         * lib/save-cwd.c: Don't include "error.h".
80041         (save_cwd): Don't call error.  Ensure that errno is valid
80042         when returning nonzero.
80043
80044         * lib/save-cwd.h (restore_cwd): Update prototype.
80045         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80046         Simplify.  Don't call error upon failure.  Let callers do that.
80047         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80048         when auditing is enabled.  But don't bother updating the #if.
80049
80050 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80051
80052         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80053         it breaks C++ compilation.
80054         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80055
80056 2003-07-10  Simon Josefsson  <jas@extundo.com>
80057
80058         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80059
80060 2003-07-10  Jim Meyering  <jim@meyering.net>
80061
80062         * m4/clock_time.m4: Remove trailing blank.
80063         * m4/intmax_t.m4: Likewise.
80064
80065 2003-07-10  Jim Meyering  <jim@meyering.net>
80066
80067         * lib/vasnprintf.c: Remove trailing blanks.
80068         Make cpp indentation consistent.
80069
80070 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80071
80072         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80073         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80074         Switch from LGPL to GPL.
80075
80076 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80077
80078         * config/srclist.txt: Sort sublists.  Add
80079         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80080         that differ from gnulib for one reason or another; we'd like this list
80081         to be smaller but for now let's document what we have.
80082
80083 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80084
80085         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80086         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80087         and sweeter "eval x=$x".
80088         * config/srclist.txt: Get lib/argp* from glibc.
80089
80090 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80091
80092         * lib/mktime.c: Fix some boundary cases and remove need for floating
80093         point.
80094
80095         Issue a compile-time diagnostic if time_t is floating point, or if
80096         two's complement arithmetic is not in effect, or if arithmetic
80097         right shift does not propagate the sign.  These assumptions were
80098         all in the original code but they weren't checked.
80099
80100         (TIME_T_MIDPOINT, verify): New macros.
80101         (__isleap): Remove; it has integer overflow problems.
80102         (leapyear): New function, without those problems.
80103         (ydhms_tm_diff): Remove; splitting into two parts.
80104         (ydhms_diff): New function, containing the arithmetic part of
80105         the old ydhms_tm_diff function.  Issue a compile-time
80106         diagnostic if we are not using C99 integer division.
80107         Avoid casts when possible.
80108         (guess_time_tm): New function, containing the checking part of
80109         the old ydhms_tm_diff function.  Return the new value, rather than
80110         the difference between it and the old.  Accept a new argument T
80111         so that *T specifies the old value.  Check for overflow in the result.
80112
80113         (__mktime_internal): Use a time_t offset, not a long int offset.
80114         This undoes the 2003-06-04 change, which is no longer needed now
80115         that we have better overflow checking.
80116         (localtime_offset): Likewise.
80117
80118         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80119         and long are 64-bit but int is only 32-bit.
80120         (ydhms_diff): Use long int to store year1 and yday1.
80121         Issue a compile-time diagnostic if long int is not wide enough.
80122
80123         (__mktime_internal): Use long int to store adjusted year and yday.
80124         Use plain C rather than preprocessor commands, if that doesn't
80125         affect efficiency.
80126         Check for overflow (and try to repair) after each probe
80127         rather than checking only at the very end.  This avoids some bugs
80128         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80129         does not equal GMT offset at maximum time).
80130         Use integer to check for overflow rather than floating point; this
80131         is more portable to non-IEEE hosts, and is a tad faster.
80132         When we detect that we are oscillating between two values,
80133         don't check whether tm_isdst has the requested value, since
80134         we already know the answer.  When tm_isdst has the wrong value,
80135         use a different heuristic to find the right one, based on the
80136         extreme values actually observed in practice in tz2003a,
80137         rather than the (overly optimistic) "previous 3 calendar quarters".
80138
80139         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80140         "T const" to accommodate glibc style.
80141         (check_result): Use less-confusing report format.  "long" -> "long int.
80142         (main): Likewise.
80143         Don't loop if the iteration overflows time_t.
80144         Allow a negative step in the iteration.
80145
80146 2003-07-06  Karl Berry  <karl@gnu.org>
80147
80148         * config/depcomp: update from automake.
80149         * config/config.sub: update from prep.
80150
80151 2003-07-03  Karl Berry  <karl@gnu.org>
80152
80153         * config/config.guess: update from prep.
80154
80155 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80156
80157         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80158         xreadlink.c now includes it unconditionally.
80159
80160 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80161
80162         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80163         having it depend on HAVE_SYS_TYPES_H.
80164
80165 2003-07-01  Bruno Haible  <bruno@clisp.org>
80166
80167         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80168         <sys/types.h> should be sufficient.
80169         Reported by Paul Eggert.
80170
80171 2003-06-26  Karl Berry  <karl@gnu.org>
80172
80173         * config/depcomp: update from automake.
80174
80175 2003-06-26  Bruno Haible  <bruno@clisp.org>
80176
80177         * modules/human: Depend on module stdbool.
80178
80179 2003-06-25  Bruno Haible  <bruno@clisp.org>
80180
80181         * modules/readlink: New file.
80182         * modules/xreadlink: Depend on it.
80183         * MODULES.html.sh (func_all_modules): Add readlink.
80184
80185 2003-06-25  Bruno Haible  <bruno@clisp.org>
80186
80187         * m4/readlink.m4: New file.
80188
80189 2003-06-25  Bruno Haible  <bruno@clisp.org>
80190
80191         * lib/readlink.c: New file.
80192
80193 2003-06-22  Karl Berry  <karl@gnu.org>
80194
80195         * config/srclist.txt: update mkinstalldirs from automake.
80196         * config/mkinstalldirs: update.
80197
80198 2003-06-22  Bruno Haible  <bruno@clisp.org>
80199
80200         Portability to mingw32.
80201         * m4/ssize_t.m4: New file, from GNU gettext.
80202         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80203         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80204
80205 2003-06-22  Bruno Haible  <bruno@clisp.org>
80206
80207         * modules/safe-read: Add m4/ssize_t.m4.
80208         * modules/xreadlink: Add m4/ssize_t.m4.
80209
80210 2003-06-20  Bruno Haible  <bruno@clisp.org>
80211
80212         Assume C89, so PARAMS isn't needed.
80213         * lib/unicodeio.h (PARAMS): Remove.
80214         * lib/unicodeio.c: Don't use PARAMS.
80215
80216 2003-06-18  Karl Berry  <karl@gnu.org>
80217
80218         * config/config.{guess,sub}: update from prep.
80219
80220 2003-06-18  Jim Meyering  <jim@meyering.net>
80221
80222         Merge changes from coreutils.
80223         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80224         Remove explicit declarations of xmalloc and realloc.
80225         Include xalloc.h.
80226         (read_utmp): Remove anachronistic cast of xmalloc.
80227
80228 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80229
80230         Assume C89, so PARAMS isn't needed.
80231         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80232         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80233         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80234         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80235         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80236         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80237         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80238         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80239         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80240         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80241         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80242         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80243         no longer needed. Anyway, config.h should always be included before any
80244         other file.
80245
80246 2003-06-11  Simon Josefsson  <jas@extundo.com>
80247
80248         * modules/sysexits: New file.
80249         * MODULES.html.sh (func_all_modules): Add sysexits.
80250
80251 2003-06-11  Simon Josefsson  <jas@extundo.com>
80252
80253         * lib/sysexit_.h: New file.
80254
80255 2003-06-11  Derek Price  <derek@ximbiot.com>
80256
80257         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80258         necessary.
80259
80260 2003-06-11  Bruno Haible  <bruno@clisp.org>
80261
80262         * m4/sysexits.m4: New file.
80263
80264 2003-06-10  Simon Josefsson  <jas@extundo.com>
80265
80266         * lib/argp.h: New file, from glibc.
80267         * lib/argp-ba.c: New file, from glibc.
80268         * lib/argp-eexst.c: New file, from glibc.
80269         * lib/argp-fmtstream.c: New file, from glibc.
80270         * lib/argp-fmtstream.h: New file, from glibc.
80271         * lib/argp-fs-xinl.c: New file, from glibc.
80272         * lib/argp-help.c: New file, from glibc.
80273         * lib/argp-namefrob.h: New file, from glibc.
80274         * lib/argp-parse.c: New file, from glibc.
80275         * lib/argp-pv.c: New file, from glibc.
80276         * lib/argp-pvh.c: New file, from glibc.
80277         * lib/argp-xinl.c: New file, from glibc.
80278
80279 2003-06-10  Simon Josefsson  <jas@extundo.com>
80280
80281         * modules/strchrnul: New file.
80282
80283 2003-06-10  Simon Josefsson  <jas@extundo.com>
80284
80285         * modules/argp: New file.
80286
80287 2003-06-10  Simon Josefsson  <jas@extundo.com>
80288
80289         * m4/strchrnul.m4: New file.
80290
80291 2003-06-10  Simon Josefsson  <jas@extundo.com>
80292
80293         * lib/strchrnul.h: New file.
80294         * lib/strchrnul.c: New file.
80295
80296 2003-06-10  Bruno Haible  <bruno@clisp.org>
80297
80298         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80299
80300 2003-06-07  Karl Berry  <karl@gnu.org>
80301
80302         * config/config.{guess,sub}: update from prep.
80303
80304 2003-06-07  Jim Meyering  <jim@meyering.net>
80305
80306         * modules/strtod: Use $(...) notation, not @...@ for
80307         AC_REPLACE'd variables.
80308         * modules/localcharset: Likewise.
80309
80310 2003-06-07  Jim Meyering  <jim@meyering.net>
80311
80312         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80313         in place of my name in the copyright comment.
80314         Remove definition and uses of __P.
80315
80316         From coreutils.
80317         * lib/stat.c: Don't declare xmalloc explicitly.
80318         Instead, include "xalloc.h".
80319         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80320         xrealloc, and xcalloc return values.
80321         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80322         Improve comment.
80323         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80324
80325 2003-06-07  Bruno Haible  <bruno@clisp.org>
80326
80327         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80328         avoid AC_CONFIG_LINKS.
80329         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80330         fnmatch.h, to avoid AC_CONFIG_LINKS.
80331         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80332
80333 2003-06-07  Bruno Haible  <bruno@clisp.org>
80334
80335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80336         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80337         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80338         directory.
80339         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80340         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80341         directory.
80342
80343 2003-06-06  Jim Meyering  <jim@meyering.net>
80344
80345         Merge from coreutils.
80346         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80347         Consolidate declarations and initializations of *_base* locals.
80348
80349         Merge from coreutils.
80350         This avoids a core dump on systems without GNU putenv,
80351         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80352         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80353         (unsetenv): New static function, from GNU libc.
80354         (rpl_putenv): Use it.
80355
80356         * lib/modechange.c: Remove trailing blanks.
80357
80358         Merge from coreutils.
80359         * lib/fsusage.c: Remove declaration of statfs.
80360         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80361
80362         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80363
80364 2003-06-06  Jim Meyering  <jim@meyering.net>
80365
80366         * lib/stdbool_.h: Renamed from stdbool.h.in.
80367
80368 2003-06-06  Jim Meyering  <jim@meyering.net>
80369             Bruno Haible  <bruno@clisp.org>
80370
80371         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80372         Adjust Makefile.am snippet not to redirect directly to target.
80373         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80374
80375 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80376
80377         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80378         mismatch, look in future quarters as well as past.  This fixes a
80379         bug when processing fall-backwards gaps immediately after a long
80380         period of daylight-saving time.
80381
80382         * lib/mktime.c: Assume freestanding C89 or better.
80383         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80384         (__P): Remove; not used.
80385         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80386         (mktime, not_equal_tm, print_tm, check_result,
80387         main): Use prototypes.  Use const * where appropriate.
80388         (main): Fix typo in testing code that uncovered by above changes.
80389         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80390
80391 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80392
80393         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80394         locale.h, localeconv.  This merges changes from coreutils.
80395
80396         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80397         It can be removed after the next Autoconf is released.
80398         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80399         needed.
80400
80401 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80402
80403         * lib/mktime.c: Fix Debian bug 177940
80404         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80405         (localtime_offset): Now long int, not time_t, because we want it
80406         to be guaranteed to be signed.  All uses changed.
80407         (__mktime_internal): If overflow would occur when adding offset,
80408         don't add it.
80409
80410         Merge 'human' changes from coreutils.  Rewrite to support
80411         locale-specific notations like thousands separators.
80412         * lib/human.c: Simplify authorship notice.
80413         Include human.h immediately after config.h.
80414         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80415         <limits.h>: Do not include, since human.h does.
80416         (SIZE_MAX, UINTMAX_MAX): New macros.
80417         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80418         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80419         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80420         (power_letter): Renamed from suffixes.
80421         (generate_suffix_backwards): Remove.
80422         (adjust_value): Now takes int style (because of human.h changes)
80423         and long double value (for greater precision on some platforms).
80424         (group_number): New function.
80425         (human_readable): Use it.  Use integer options, not enum.
80426         Put the options before the sizes in the arg list.
80427         Support all the new options.
80428         The old human_readable function has been removed;
80429         use inttostr.h instead.
80430         (human_readable, default_block_size, humblock):
80431         Use uintmax_t, not int, for block sizes.
80432         (human_readable_inexact, block_size_types): Remove.
80433         (block_size_opts): New constant.
80434         (human_options): Renamed from human_block_size, with new signature
80435         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80436         * lib/human.h: Add copyright and authorship notice.
80437         Include <limits.h> and <stdbool.h> unconditionally.
80438         (PARAMS): Remove.  All uses removed.
80439         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80440         (enum human_inexact_style): Remove tag; now a nameless enum.
80441         (human_floor, human_ceiling, human_round_to_even): Now have
80442         values 2, 0, 1 rather than -1, 1, 0.
80443         (human_group_digits, human_suppress_point_zero, human_autoscale,
80444         human_base_1024, human_SI, human_B): New constants.
80445         (human_readable_inexact, human_block_size): Remove.
80446         (human_readable): Size args are now uintmax_t, not int.
80447         (human_options): New decl.
80448
80449         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80450         unnecessary now that we assume C89 or better.  This change
80451         imported from coreutils.
80452
80453         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80454         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80455         in the 2003-05-30 sync from glibc.
80456
80457         .h files should stand alone, but we shouldn't include <sys/types.h>
80458         if we can get away with just <stddef.h>.
80459
80460         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80461         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80462         rather than <sys/types.h>, as we merely need size_t.
80463         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80464         to get size_t.
80465         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80466         Include <stdio.h>, to get FILE.
80467         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80468         memcasecmp.h has included <stddef.h> and all we need is size_t.
80469         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80470         our interface, instead of including <sys/types.h>
80471
80472 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80473
80474         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80475         now, as glibc mktime is buggy on non-glibc systems.
80476
80477 2003-06-03  Karl Berry  <karl@gnu.org>
80478
80479         * config/config.sub: update from prep.
80480
80481 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80482
80483         [from coreutils]
80484         Fix some minor time-related bugs with POSIX time arguments.
80485         Some valid time stamps were being rejected (notably -1, and
80486         time stamps before 1900 on 64-bit hosts).  And some invalid
80487         time stamps were being accepted, e.g. September 31.
80488
80489         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80490         that we can return (time_t) -1 successfully.
80491         * lib/posixtm.c: Likewise.
80492         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80493         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80494         (t): Remove static var.
80495         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80496         of static var.  All uses changed.
80497         (year): Do not reject years before 1900; they can occur with
80498         64-bit time_t.
80499         (posix_time_parse): Do not check for out-of-range components;
80500         that is now the caller's responsibility, since our checks were
80501         only approximations.
80502         (posixtime): Use mktime to check for out-of-range components,
80503         since it knows them exactly.
80504         If mktime returns (time_t) -1, check whether an error actually occurred
80505         by invoking localtime on -1.
80506         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80507         posixtime failures better.
80508         Improve the test data (in comments only).
80509
80510 2003-06-02  Karl Berry  <karl@gnu.org>
80511
80512         * config/mkinstalldirs (version): new variable.
80513         (--version): new option.
80514         (usage): improve message.
80515
80516 2003-05-30  Karl Berry  <karl@gnu.org>
80517
80518         * lib/mktime.c: update from libc.
80519
80520 2003-05-30  Bruno Haible  <bruno@clisp.org>
80521
80522         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80523         * config/config.rpath: Upgrade to gettext-0.12.1.
80524
80525 2003-05-30  Bruno Haible  <bruno@clisp.org>
80526
80527         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80528         * m4/nls.m4: New file, from gettext-0.12.1.
80529         * m4/po.m4: New file, from gettext-0.12.1.
80530         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80531
80532 2003-05-30  Bruno Haible  <bruno@clisp.org>
80533
80534         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80535         * lib/localcharset.h: Likewise.
80536         * lib/localcharset.c: Likewise.
80537
80538 2003-05-29  Karl Berry  <karl@gnu.org>
80539
80540         * config/config.rpath: update from gettext.
80541
80542 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80543
80544         Assume the headers required for C89 freestanding compilers.
80545         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80546         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80547         * m4/human.m4 (gl_HUMAN): Likewise.
80548         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80549         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80550         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80551         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80552         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80553         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80554
80555 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80556
80557         Assume the headers required for C89 freestanding compilers.
80558         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80559         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80560         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80561         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80562         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80563         define, since <limits.h> is guaranteed to do that.
80564         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80565         * lib/exclude.c: Include <stdbool.h> unconditionally.
80566         * lib/tempname.c: Include <stddef.h> unconditionally.
80567         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80568         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80569         <stddef.h> does that.
80570         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80571         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80572         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80573         needed.
80574         * lib/xstrtol.c: Likewise.
80575         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80576         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80577
80578         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80579         warnings on some platforms.
80580
80581         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80582         arbitrarily.
80583
80584 2003-05-26  Jim Meyering  <jim@meyering.net>
80585
80586         Merge in a change from coreutils:
80587         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80588         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80589         that condition, rather than `-1' which is slightly misleading.
80590         Change the name of the cache variable to have the gl_ prefix.
80591         Prompted by a patch from Richard Dawe for DJGPP.
80592
80593 2003-05-24  Karl Berry  <karl@gnu.org>
80594
80595         * config/config.guess: update from prep.
80596
80597 2003-05-22  Karl Berry  <karl@gnu.org>
80598
80599         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80600
80601 2003-05-20  Karl Berry  <karl@gnu.org>
80602
80603         * config/config.guess: update from prep.
80604
80605 2003-05-18  Karl Berry  <karl@gnu.org>
80606
80607         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80608         might actually be set by the user.
80609
80610         * config/depcomp, install-sh, mdate-sh: update from automake.
80611
80612 2003-05-17  Bruno Haible  <bruno@clisp.org>
80613
80614         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80615         invalid expansion for AC_EGREP_CPP.
80616         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80617         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80618         Suggested by Akim Demaille <akim@epita.fr> in
80619         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80620
80621 2003-05-12  Jim Meyering  <jim@meyering.net>
80622
80623         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80624         the space-padded-by-default conversion specifiers, %e, %k, %l.
80625
80626 2003-05-12  Bruno Haible  <bruno@clisp.org>
80627
80628         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80629         the string is longer than 4 KB.
80630
80631 2003-05-11  Karl Berry  <karl@gnu.org>
80632
80633         * config/config.{guess,sub}: update from prep.
80634
80635 2003-05-09  Bruno Haible  <bruno@clisp.org>
80636
80637         * modules/error: Add m4/strerror_r.m4 to file list.
80638
80639 2003-05-03  Bruno Haible  <bruno@clisp.org>
80640
80641         Upgrade to Unicode-4.0.
80642         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80643         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80644         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80645         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80646         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80647         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80648         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80649         Change width of U+E0100..U+E01EF from 1 to 0.
80650
80651 2003-04-25  Jim Meyering  <jim@meyering.net>
80652
80653         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80654         of type size_t, not int.
80655
80656 2003-04-25  Bruno Haible  <bruno@clisp.org>
80657
80658         * lib/copy-file.c: Include <stddef.h>, for size_t.
80659
80660 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80661
80662         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80663         code which expansion is under static control.  Patch imported from
80664         Akim Demaille's patch to Bison; see
80665         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80666
80667 2003-04-14  Bruno Haible  <bruno@clisp.org>
80668
80669         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80670
80671 2003-04-11  Jim Meyering  <jim@meyering.net>
80672
80673         Merge changes from Coreutils.
80674
80675         2003-03-22  Jim Meyering  <jim@meyering.net>
80676
80677         * lib/strftime.c (widen): Cast alloca return value to proper type.
80678
80679         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80680
80681         From GNU libc.
80682         * lib/strftime.c (my_strftime): Handle very large width
80683         specifications for numeric values correctly.  Improve checks for
80684         overflow.
80685
80686         2003-01-19  Jim Meyering  <jim@meyering.net>
80687
80688         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80689         definitions.
80690         (nl_get_alt_digit) [! defined my_strftime]: Define.
80691         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80692         _nl_get_alt_digit and _nl_get_walt_digit.
80693
80694         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80695         libc. These changes have no effect outside of _LIBC.
80696
80697 2003-04-10  Bruno Haible  <bruno@clisp.org>
80698
80699         * modules/findprog: New file.
80700         * MODULES.html.sh (func_all_modules): Add it.
80701
80702 2003-04-10  Bruno Haible  <bruno@clisp.org>
80703
80704         * m4/findprog.m4: New file.
80705         * m4/eaccess.m4: New file.
80706
80707 2003-04-10  Bruno Haible  <bruno@clisp.org>
80708
80709         * lib/findprog.h: New file, from GNU gettext.
80710         * lib/findprog.c: New file, from GNU gettext.
80711
80712 2003-04-05  Jim Meyering  <jim@meyering.net>
80713
80714         Merge changes from Coreutils.
80715
80716         * lib/exclude.h (PARAMS): Remove definition and uses.
80717         * lib/exclude.c: Remove uses of `PARAMS'.
80718
80719         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80720         Add test-cases for DOS filenames. Declare program_name.
80721         (main): Set up program_name.  Patch by Rich Dawe.
80722
80723         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80724         error from mntctl.
80725         Use mntctl's return value to drive the entry-processing loop, since
80726         we can't rely on the value of the vmt_length member in the last
80727         entry.  On some systems doing so could result in exhausting
80728         virtual memory.  Based in part on a patch from Mike Jetzer.
80729
80730 2003-04-04  Bruno Haible  <bruno@clisp.org>
80731
80732         * modules/linebreak: New file.
80733         * MODULES.html.sh (func_all_modules): Add it.
80734
80735 2003-04-04  Bruno Haible  <bruno@clisp.org>
80736
80737         * m4/linebreak.m4: New file.
80738
80739 2003-04-04  Bruno Haible  <bruno@clisp.org>
80740
80741         * lib/linebreak.h: New file, from GNU gettext.
80742         * lib/linebreak.c: New file, from GNU gettext with slight
80743         modifications.
80744         * lib/lbrkprop.h: New file, from GNU gettext.
80745
80746 2003-04-03  Bruno Haible  <bruno@clisp.org>
80747
80748         * modules/utf8-ucs4: New file.
80749         * modules/utf16-ucs4: New file.
80750         * modules/ucs4-utf8: New file.
80751         * modules/ucs4-utf16: New file.
80752         * MODULES.html.sh (func_all_modules): Add them.
80753
80754 2003-04-03  Bruno Haible  <bruno@clisp.org>
80755
80756         * m4/utf-ucs4.m4: New file.
80757         * m4/ucs4-utf.m4: New file.
80758
80759 2003-04-03  Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/utf8-ucs4.h: New file, from GNU gettext.
80762         * lib/utf16-ucs4.h: New file, from GNU gettext.
80763         * lib/ucs4-utf8.h: New file, from GNU gettext.
80764         * lib/ucs4-utf16.h: New file, from GNU gettext.
80765
80766 2003-04-02  Bruno Haible  <bruno@clisp.org>
80767
80768         * modules/binary-io: New file.
80769         * MODULES.html.sh (func_all_modules): Add it.
80770
80771 2003-04-02  Bruno Haible  <bruno@clisp.org>
80772
80773         * lib/binary-io.h: New file, from GNU gettext.
80774
80775 2003-04-01  Bruno Haible  <bruno@clisp.org>
80776
80777         * modules/pathname: New file.
80778         * MODULES.html.sh (func_all_modules): Add it.
80779
80780 2003-04-01  Bruno Haible  <bruno@clisp.org>
80781
80782         * lib/pathname.h: New file, from GNU gettext.
80783         * lib/concatpath.c: New file, from GNU gettext.
80784
80785 2003-03-30  Bruno Haible  <bruno@clisp.org>
80786
80787         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80788
80789 2003-03-30  Bruno Haible  <bruno@clisp.org>
80790
80791         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80792         function chown() doesn't exist.
80793
80794 2003-03-28  Bruno Haible  <bruno@clisp.org>
80795
80796         * modules/copy-file: New file.
80797         * MODULES.html.sh (func_all_modules): Add it.
80798
80799 2003-03-28  Bruno Haible  <bruno@clisp.org>
80800
80801         * m4/copy-file.m4: New file.
80802
80803 2003-03-28  Bruno Haible  <bruno@clisp.org>
80804
80805         * lib/copy-file.h: New file, from GNU gettext.
80806         * lib/copy-file.c: New file, from GNU gettext.
80807
80808 2003-03-18  Jim Meyering  <jim@meyering.net>
80809
80810         * lib/quote.c (quote_n): Fix typo in comment.
80811
80812 2003-03-18  Bruno Haible  <bruno@clisp.org>
80813
80814         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80815         checking.
80816         * m4/onceonly_2_57.m4: Likewise.
80817
80818 2003-03-17  Bruno Haible  <bruno@clisp.org>
80819
80820         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80821         (m4_quote): Remove macro.
80822         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80823
80824 2003-03-14  Jim Meyering  <jim@meyering.net>
80825
80826         Merge changes from Coreutils.
80827         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80828         to be const, in order to avoid warnings.
80829         (obstack_room): Likewise.
80830         (obstack_empty_p): Likewise.
80831
80832 2003-03-14  Bruno Haible  <bruno@clisp.org>
80833
80834         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80835         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80836
80837 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80838
80839         Merge changes from Bison.
80840         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80841         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80842         when compiling Bison 1.875's `bitset bset = obstack_alloc
80843         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80844         * lib/hash.c: Include <stdbool.h> unconditionally.
80845
80846 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80847
80848         * m4/onceonly.m4 (m4_quote): New macro.
80849         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80850         Quote AC_FOREACH variable-expansions properly.
80851
80852 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80853
80854         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80855
80856 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80857
80858         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80859         Reported by Bruce Becker; see:
80860         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80861
80862 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80863             Bruno Haible  <bruno@clisp.org>
80864
80865         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80866         Reported by John Hughes, see
80867         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80868
80869 2003-02-20  Bruno Haible  <bruno@clisp.org>
80870
80871         * MODULES.html.sh (func_all_modules): Add poll.
80872
80873 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80874
80875         * modules/poll: New file.
80876
80877 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80878
80879         * lib/poll_.h: New file.
80880         * lib/poll.c: New file.
80881
80882 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80883
80884         * m4/poll.m4: New file.
80885
80886 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80887
80888         * modules/mathl: New file.
80889
80890 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80891
80892         * lib/mathl.h: New file.
80893         * lib/acosl.c: New file.
80894         * lib/asinl.c: New file.
80895         * lib/atanl.c: New file.
80896         * lib/ceill.c: New file.
80897         * lib/cosl.c: New file.
80898         * lib/expl.c: New file.
80899         * lib/floorl.c: New file.
80900         * lib/frexpl.c: New file.
80901         * lib/ldexpl.c: New file.
80902         * lib/logl.c: New file.
80903         * lib/sincosl.c: New file.
80904         * lib/sinl.c: New file.
80905         * lib/sqrtl.c: New file.
80906         * lib/tanl.c: New file.
80907         * lib/trigl.c: New file.
80908         * lib/trigl.h: New file.
80909
80910 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80911
80912         * m4/mathl.m4: New file.
80913
80914 2003-02-18  Bruno Haible  <bruno@clisp.org>
80915
80916         * MODULES.html.sh (func_all_modules): Add mathl.
80917
80918 2003-02-17  Bruno Haible  <bruno@clisp.org>
80919
80920         * modules/mkdtemp: New module.
80921         * MODULES.html.sh (func_all_modules): Add it.
80922
80923 2003-02-17  Bruno Haible  <bruno@clisp.org>
80924
80925         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80926
80927 2003-02-17  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/mkdtemp.h: New file, from GNU gettext.
80930         * lib/mkdtemp.c: New file, from GNU gettext.
80931
80932 2003-02-02  Jim Meyering  <jim@meyering.net>
80933
80934         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80935         e.g. glibc-2.2.93.
80936
80937 2003-01-31  Bruno Haible  <bruno@clisp.org>
80938
80939         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80940         'rpl_rename'.
80941         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80942         'rpl_strnlen'.
80943         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80944         'rpl_strtod'.
80945         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80946         'rpl_utime'.
80947
80948 2003-01-31  Bruno Haible  <bruno@clisp.org>
80949
80950         * lib/rename.c: #undef rename before defining rpl_rename.
80951         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80952
80953 2003-01-30  Bruno Haible  <bruno@clisp.org>
80954
80955         * modules/vasnprintf, modules/vasprintf: New modules.
80956         * MODULES.html.sh (func_all_modules): Add them.
80957
80958 2003-01-30  Bruno Haible  <bruno@clisp.org>
80959
80960         * m4/signed.m4: New file, from GNU gettext.
80961         * m4/longdouble.m4: New file, from GNU gettext.
80962         * m4/wchar_t.m4: New file, from GNU gettext.
80963         * m4/wint_t.m4: New file, from GNU gettext.
80964         * m4/vasnprintf.m4: New file.
80965         * m4/vasprintf.m4: New file.
80966
80967 2003-01-30  Bruno Haible  <bruno@clisp.org>
80968
80969         * lib/printf-args.h: New file, from GNU gettext.
80970         * lib/printf-args.c: New file, from GNU gettext.
80971         * lib/printf-parse.h: New file, from GNU gettext.
80972         * lib/printf-parse.c: New file, from GNU gettext.
80973         * lib/vasnprintf.h: New file, from GNU gettext.
80974         * lib/vasnprintf.c: New file, from GNU gettext.
80975         * lib/asnprintf.c: New file, from GNU gettext.
80976         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80977         * lib/vasprintf.c: New file, from GNU gettext.
80978         * lib/asprintf.c: New file, from GNU gettext.
80979
80980 2003-01-29  Bruno Haible  <bruno@clisp.org>
80981
80982         * modules/stpncpy: New module.
80983         * MODULES.html.sh (func_all_modules): Add it.
80984
80985 2003-01-29  Bruno Haible  <bruno@clisp.org>
80986
80987         * m4/stpncpy.m4: New file.
80988
80989 2003-01-29  Bruno Haible  <bruno@clisp.org>
80990
80991         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80992         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80993
80994 2003-01-28  Bruno Haible  <bruno@clisp.org>
80995
80996         * modules/c-ctype: New module.
80997         * MODULES.html.sh (func_all_modules): Add it.
80998
80999 2003-01-28  Bruno Haible  <bruno@clisp.org>
81000
81001         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81002         Paul Eggert.
81003         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81004         Paul Eggert.
81005
81006 2003-01-27  Bruno Haible  <bruno@clisp.org>
81007
81008         * modules/xsetenv: New module.
81009         * MODULES.html.sh (func_all_modules): Add it.
81010
81011 2003-01-27  Bruno Haible  <bruno@clisp.org>
81012
81013         * lib/xsetenv.h: New file, from GNU gettext.
81014         * lib/xsetenv.c: New file, from GNU gettext.
81015
81016 2003-01-23  Jim Meyering  <jim@meyering.net>
81017
81018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81019         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81020
81021 2003-01-23  Bruno Haible  <bruno@clisp.org>
81022
81023         * modules/minmax: New module.
81024         * MODULES.html.sh (func_all_modules): Add it.
81025
81026 2003-01-23  Bruno Haible  <bruno@clisp.org>
81027
81028         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81029         Eggert.
81030
81031 2003-01-22  Bruno Haible  <bruno@clisp.org>
81032
81033         * modules/exit: New module.
81034         * MODULES.html.sh (func_all_modules): Add it.
81035
81036 2003-01-22  Bruno Haible  <bruno@clisp.org>
81037
81038         * lib/exit.h: New file, from GNU gettext.
81039
81040 2003-01-19  Bruno Haible  <bruno@clisp.org>
81041
81042         * gnulib-tool: Recognize option --extract-maintainer.
81043         (func_get_maintainer): New function.
81044         * modules/*: Add Maintainer entry.
81045
81046 2003-01-16  Jim Meyering  <jim@meyering.net>
81047
81048         * m4/regex.m4: The `regex' struct is both input and output.
81049         Initialize it before each use.  Patch by Tim Waugh.
81050
81051 2003-01-16  Bruno Haible  <bruno@clisp.org>
81052
81053         * MODULES.html.sh: Add a table of contents. Add the module name as
81054         leftmost column. Add hyperlinks.
81055
81056 2003-01-15  Bruno Haible  <bruno@clisp.org>
81057
81058         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81059
81060 2003-01-15  Bruno Haible  <bruno@clisp.org>
81061
81062         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81063         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81064         suffix.
81065
81066 2003-01-15  Bruno Haible  <bruno@clisp.org>
81067
81068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81069
81070 2003-01-15  Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81073         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81074
81075 2003-01-14  Jim Meyering  <jim@meyering.net>
81076
81077         * lib/same.c (same_name): Tweak a comment.
81078
81079 2003-01-14  Bruno Haible  <bruno@clisp.org>
81080
81081         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81082         when a string comparison is sufficient.
81083
81084 2003-01-14  Bruno Haible  <bruno@clisp.org>
81085
81086         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81087         'unsigned int'.
81088
81089 2003-01-14  Bruno Haible  <bruno@clisp.org>
81090
81091         * lib/hash-pjw.c: Add comment about low quality of this function.
81092
81093 2003-01-13  Bruno Haible  <bruno@clisp.org>
81094
81095         * modules/stpcpy: Distribute lib/stpcpy.h.
81096         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81097
81098 2003-01-13  Bruno Haible  <bruno@clisp.org>
81099
81100         * modules/*: Add a description.
81101         * modules/strpbrk: Fix Makefile.am snippet.
81102         * modules/strtoimax: Fix dependencies.
81103         * modules/strtoumax: Likewise.
81104
81105 2003-01-13  Bruno Haible  <bruno@clisp.org>
81106
81107         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81108         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81109         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81110
81111 2003-01-13  Bruno Haible  <bruno@clisp.org>
81112
81113         * gnulib-tool (func_create_testdir): Store config/* files in the main
81114         directory.
81115         * config.rpath: Move to ...
81116         * config/config.rpath: ... here.
81117         * modules/gettext: Contains config/config.rpath, not config.rpath.
81118         * modules/iconv: Likewise.
81119
81120 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81121
81122         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81123         to avoid collisions with libcurses and libreadline.
81124
81125         * m4/getstr.m4: Remove.
81126         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81127
81128 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81129
81130         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81131         to avoid collisions with libcurses and libreadline.
81132
81133         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81134         * lib/getstr.h, getstr.c: Remove.
81135         * lib/getline.c: Include "getline.h", to check interface.
81136         Move body of old getstr.c here: this defines MIN_CHUNK and
81137         declares getdelim2, which is renamed from getstr.
81138         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81139
81140         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81141         All uses changed.
81142         * lib/linebuffer.h: Likewise.
81143         (readline): Remove backward-compatibility macro.
81144
81145 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81146
81147         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81148         to avoid collisions with libcurses and libreadline.
81149         * getstr: Remove.
81150         * MODULES.html.sh: Remove getstr.
81151         * modules/getline: Depend on unlocked-io, not getstr.
81152
81153 2003-01-12  Jim Meyering  <jim@meyering.net>
81154
81155         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81156
81157 2003-01-10  Bruno Haible  <bruno@clisp.org>
81158
81159         * modules/alloca: Change Makefile.am requirements. Simplify Include
81160         requirements. Add lib/alloca_.h to file list.
81161
81162 2003-01-10  Bruno Haible  <bruno@clisp.org>
81163
81164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81165
81166 2003-01-10  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/alloca_.h: New file.
81169         * lib/getdate.y: Unconditionally include alloca.h.
81170         * lib/makepath.c: Likewise.
81171         * lib/setenv.c: Likewise.
81172         * lib/userspec.c: Likewise.
81173
81174 2003-01-09  Karl Berry  <karl@gnu.org>
81175
81176         * MODULES.html.sh: include `dirname $0` in PATH, to find
81177         gnulib-tool.
81178
81179 2003-01-09  Bruno Haible  <bruno@clisp.org>
81180
81181         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81182         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81183
81184 2003-01-09  Bruno Haible  <bruno@clisp.org>
81185
81186         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81187
81188 2003-01-09  Bruno Haible  <bruno@clisp.org>
81189
81190         * lib/stdbool.h.in: New file.
81191
81192 2003-01-09  Bruno Haible  <bruno@clisp.org>
81193
81194         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81195         * MODULES.html.sh: Likewise.
81196
81197 2003-01-08  Jim Meyering  <jim@meyering.net>
81198
81199         * lib/full-write.c: Undefine and define-away `const' after inclusion
81200         of errno.h, not before.  Suggestion from Bruno Haible.
81201
81202 2003-01-08  Bruno Haible  <bruno@clisp.org>
81203
81204         * modules/full-read: Depend on full-write.
81205
81206 2003-01-08  Bruno Haible  <bruno@clisp.org>
81207
81208         * lib/safe-read.c: Include specification header first, to ensure its
81209         selfcontainedness.
81210         * lib/full-write.c: Likewise.
81211
81212 2003-01-07  Jim Meyering  <jim@meyering.net>
81213
81214         * lib/full-write.c: Rework so that it may serve to define full_read,
81215         too.
81216         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81217
81218 2003-01-07  Bruno Haible  <bruno@clisp.org>
81219
81220         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81221         <inttypes.h>.
81222         * lib/xstrtol.h: Likewise.
81223         * lib/xstrtoimax.c: Likewise.
81224         * lib/xstrtoumax.c: Likewise.
81225         * lib/human.h: Likewise.
81226
81227         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81228         on systems that have <inttypes.h> but not <stdint.h>.
81229
81230 2003-01-07  Bruno Haible  <bruno@clisp.org>
81231
81232         * MODULES.html.sh: Add copyright notice.
81233         (missed_files): Omit CVS directory entries.
81234         (func_module): Make it work with sed-3.02.
81235         * MODULES.txt: Remove file.
81236
81237 2003-01-06  Jim Meyering  <jim@meyering.net>
81238
81239         * lib/version-etc.c: Update year in translatable copyright string.
81240
81241 2003-01-03  Karl Berry  <karl@gnu.org>
81242
81243         * config/config.{guess,sub}: update from prep.
81244
81245 2003-01-02  Karl Berry  <karl@gnu.org>
81246
81247         * doc/COPYING.DOC: belatedly updated to 1.2.
81248
81249 2003-01-01  Karl Berry  <karl@gnu.org>
81250
81251         * gnulib-tool (func_verify_module): report module name $module in
81252         error message, not $1.
81253         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81254         be created, only if it doesn't exist.
81255         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81256
81257 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81258
81259         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81260
81261 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81262
81263         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81264         memcmp if strcoll doesn't work.
81265
81266 2002-12-31  Bruno Haible  <bruno@clisp.org>
81267
81268         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81269         nonempty.
81270
81271 2002-12-31  Bruno Haible  <bruno@clisp.org>
81272
81273         * lib/memcoll.c (STRCOLL): New macro.
81274         (memcoll): Use it.
81275
81276 2002-12-31  Bruno Haible  <bruno@clisp.org>
81277
81278         * lib/localcharset.h: New file.
81279         * lib/localcharset.c: Include it.
81280         * lib/unicodeio.c: Likewise.
81281
81282 2002-12-31  Bruno Haible  <bruno@clisp.org>
81283
81284         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81285         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81286
81287 2002-12-31  Bruno Haible  <bruno@clisp.org>
81288
81289         * lib/getline.h: Include <stddef.h>, for size_t.
81290
81291         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81292         * lib/unicodeio.c: Don't include <stddef.h>.
81293
81294 2002-12-31  Bruno Haible  <bruno@clisp.org>
81295
81296         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81297         HAVE_TM_ZONE.
81298
81299 2002-12-24  Karl Berry  <karl@gnu.org>
81300
81301         * config/config.guess: update from prep.
81302
81303 2002-12-24  Bruno Haible  <bruno@clisp.org>
81304
81305         General infrasructure.
81306         * m4/README: Rewritten.
81307         * m4/onceonly.m4: New file.
81308         * m4/onceonly_2_57.m4: New file.
81309
81310         Module atexit.
81311         * m4/atexit.m4: New file.
81312
81313         Module strtod.
81314         * m4/strtod.m4: New file.
81315
81316         Module strtol.
81317         * m4/strtol.m4: New file.
81318
81319         Module strtoul.
81320         * m4/strtoul.m4: New file.
81321
81322         Module memchr.
81323         * m4/memchr.m4: New file.
81324
81325         Module memcmp.
81326         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81327         (jm_FUNC_MEMCMP): Invoke it.
81328
81329         Module memcpy.
81330         * m4/memcpy.m4: New file.
81331
81332         Module memmove.
81333         * m4/memmove.m4: New file.
81334
81335         Module memset.
81336         * m4/memset.m4: New file.
81337
81338         Module strcspn.
81339         * m4/strcspn.m4: New file.
81340
81341         Module strpbrk.
81342         * m4/strpbrk.m4: New file.
81343
81344         Module strstr.
81345         * m4/strstr.m4: New file.
81346
81347         Module strerror.
81348         * m4/strerror.m4: New file.
81349
81350         Module mktime.
81351         * m4/mktime.m4: Renamed from jm-mktime.m4.
81352         (gl_PREREQ_MKTIME): New macro.
81353         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81354
81355         Module malloc.
81356         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81357         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81358         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81359
81360         Module realloc.
81361         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81362         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81363         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81364
81365         Module strftime.
81366         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81367         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81368         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81369         gl_TM_GMTOFF.
81370         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81371
81372         Module xalloc.
81373         * m4/xalloc.m4: New file.
81374
81375         Module alloca.
81376         * m4/alloca.m4: New file.
81377
81378         Module putenv.
81379         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81380         (jm_FUNC_PUTENV): Invoke it.
81381
81382         Module setenv.
81383         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81384         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81385         when invoked twice.
81386         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81387         gt_FUNC_SETENV.
81388
81389         Module memrchr.
81390         * m4/memrchr.m4: New file.
81391
81392         Module stpcpy.
81393         * m4/stpcpy.m4: New file.
81394
81395         Module strcase.
81396         * m4/strcase.m4: New file.
81397
81398         Module strdup.
81399         * m4/strdup.m4: New file.
81400
81401         Module strnlen.
81402         * m4/strnlen.m4: New file.
81403
81404         Module strndup.
81405         * m4/strndup.m4: New file.
81406
81407         Module xstrtod.
81408         * m4/xstrtod.m4: New file.
81409
81410         Module xstrtol.
81411         * m4/xstrtol.m4: New file.
81412
81413         Module getdate.
81414         * m4/getdate.m4: New file.
81415
81416         Module unlocked-io.
81417         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81418         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81419         * m4/jm-glibc-io.m4n: Remove file.
81420
81421         Module long-options.
81422         * m4/long-options.m4: New file.
81423
81424         Module md5.
81425         * m4/md5.m4: New file.
81426
81427         Module sha.
81428         * m4/sha.m4: New file.
81429
81430         Module getstr.
81431         * m4/getstr.m4: New file.
81432
81433         Module getline.
81434         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81435         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81436         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81437         simply getline. Infoke gl_PREREQ_GETLINE.
81438
81439         Module obstack.
81440         * m4/obstack.m4: New file.
81441
81442         Module hash.
81443         * m4/hash.m4: New file.
81444
81445         Module readtokens.
81446         * m4/readtokens.m4: New file.
81447
81448         Module strverscmp.
81449         * m4/strverscmp.m4: New file.
81450
81451         Module stdbool.
81452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81453         OSF/1.
81454
81455         Module strtoll.
81456         * m4/strtoll.m4: New file.
81457
81458         Module strtoull.
81459         * m4/strtoull.m4: New file.
81460
81461         Module strtoimax.
81462         * m4/strtoimax.m4: New file.
81463
81464         Module strtoumax.
81465         * m4/strtoumax.m4: New file.
81466
81467         Module xstrtoimax.
81468         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81469         jm_AC_PREREQ_XSTRTOIMAX.
81470         Moved the strtol prerequisites to strtol.m4.
81471         Moved the strtoll prerequisites to strtoll.m4.
81472         Moved the strtoimax prerequisites to strtoimax.m4.
81473
81474         Module xstrtoumax.
81475         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81476         jm_AC_PREREQ_XSTRTOUMAX.
81477         Moved the strtoul prerequisites to strtoul.m4.
81478         Moved the strtoull prerequisites to strtoull.m4.
81479         Moved the strtoumax prerequisites to strtoumax.m4.
81480
81481         Module chown.
81482         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81483         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81484
81485         Module dup2.
81486         * m4/dup2.m4: New file.
81487
81488         Module ftruncate.
81489         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81490         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81491
81492         Module getgroups.
81493         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81494         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81495
81496         Module gettimeofday.
81497         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81498         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81499         gl_PREREQ_GETTIMEOFDAY.
81500
81501         Module mkdir.
81502         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81503         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81504
81505         Module mkstemp.
81506         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81507         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81508         jm_AC_TYPE_UINTMAX_T.
81509         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81510
81511         Module stat.
81512         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81513         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81514
81515         Module lstat.
81516         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81517         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81518
81519         Module timespec.
81520         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81521         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81522         * m4/st_mtim.m4: Indentation.
81523
81524         Module nanosleep.
81525         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81526         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81527         gl_PREREQ_NANOSLEEP.
81528
81529         Module regex.
81530         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81531         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81532         (gl_REGEX): New macro.
81533
81534         Module rename.
81535         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81536         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81537
81538         Module rmdir.
81539         * m4/rmdir.m4: New file.
81540
81541         Module utime.
81542         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81543         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81544         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81545
81546         Module dirname.
81547         * m4/dirname.m4: New file.
81548
81549         Module getopt.
81550         * m4/getopt.m4: New file.
81551
81552         Module unistd-safer.
81553         * m4/unistd-safer.m4: New file.
81554
81555         Module fnmatch.
81556         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81557         declaration.
81558         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81559         (gl_FUNC_FNMATCH_POSIX): New macro.
81560         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81561         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81562         simply fnmatch.
81563
81564         Module exclude.
81565         * m4/exclude.m4: New file.
81566
81567         Module human.
81568         * m4/human.m4: New file.
81569
81570         Module acl.
81571         * m4/acl.m4: Nop.
81572
81573         Module backupfile.
81574         * m4/backupfile.m4: New file.
81575         * m4/d-ino.m4: Indentation.
81576
81577         Module fsusage.
81578         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81579         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81580         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81581
81582         Module dirfd.
81583         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81584         requirements.
81585
81586         Module euidaccess.
81587         * m4/euidaccess.m4: New file.
81588
81589         Module file-type.
81590         * m4/file-type.m4: New file.
81591
81592         Module fileblocks.
81593         * m4/fileblocks.m4: New file.
81594
81595         Module filemode.
81596         * m4/filemode.m4: New file.
81597
81598         Module isdir.
81599         * m4/isdir.m4: New file.
81600
81601         Module lchown.
81602         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81603         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81604
81605         Module makepath.
81606         * m4/makepath.m4: New file.
81607
81608         Module modechange.
81609         * m4/modechange.m4: New file.
81610
81611         Module mountlist.
81612         * m4/mountlist.m4: New file.
81613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81614         Indentation.
81615
81616         Module path-concat.
81617         * m4/path-concat.m4: New file.
81618
81619         Module pathmax.
81620         * m4/pathmax.m4: New file.
81621
81622         Module same.
81623         * m4/same.m4: New file.
81624
81625         Module save-cwd.
81626         * m4/save-cwd.m4: New file.
81627
81628         Module savedir.
81629         * m4/savedir.m4: New file.
81630
81631         Module xgetcwd.
81632         * m4/xgetcwd.m4: New file.
81633         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81634
81635         Module xreadlink.
81636         * m4/xreadlink.m4: New file.
81637
81638         Module safe-read.
81639         * m4/safe-read.m4: New file.
81640
81641         Module safe-write.
81642         * m4/safe-write.m4: New file.
81643
81644         Module closeout.
81645         * m4/closeout.m4: New file.
81646
81647         Module stdio-safer.
81648         * m4/stdio-safer.m4: New file.
81649
81650         Module getpass.
81651         * m4/getpass.m4: New file.
81652
81653         Module getugroups.
81654         * m4/getugroups.m4: New file.
81655
81656         Module group-member.
81657         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81658         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81659
81660         Module idcache.
81661         * m4/idcache.m4: New file.
81662
81663         Module userspec.
81664         * m4/userspec.m4: New file.
81665
81666         Module gettime.
81667         * m4/clock_time.m4: New file.
81668         * m4/gettime.m4: New file.
81669
81670         Module settime.
81671         * m4/settime.m4: New file.
81672
81673         Module posixtm.
81674         * m4/posixtm.m4: New file.
81675
81676         Module gethostname.
81677         * m4/gethostname.m4: New file.
81678
81679         Module canon-host.
81680         * m4/canon-host.m4: New file.
81681
81682         Module gettext.
81683         * m4/codeset.m4: New file, from gettext-0.11.5.
81684         * m4/gettext.m4: New file, from gettext-0.11.5.
81685         * m4/glibc21.m4: New file, from gettext-0.11.5.
81686         * m4/iconv.m4: New file, from gettext-0.11.5.
81687         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81688         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81689         * m4/inttypes.m4: New file, from gettext-0.11.5.
81690         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81691         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81692         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81693         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81694         * m4/lib-link.m4: New file, from gettext-0.11.5.
81695         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81696         * m4/progtest.m4: New file, from gettext-0.11.5.
81697         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81698         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81699         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81700
81701         Module localcharset.
81702         * m4/localcharset.m4: New file.
81703
81704         Module hard-locale.
81705         * m4/hard-locale.m4: New file.
81706
81707         Module mbswidth.
81708         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81709         onceonly macros.
81710         * m4/mbrtowc.m4: Add comment.
81711
81712         Module memcasecmp.
81713         * m4/memcasecmp.m4: New file.
81714
81715         Module memcoll.
81716         * m4/memcoll.m4: New file.
81717
81718         Module unicodeio.
81719         * m4/unicodeio.m4: New file.
81720
81721         Module rpmatch.
81722         * m4/rpmatch.m4: New file.
81723
81724         Module yesno.
81725         * m4/yesno.m4: New file.
81726
81727         Module exitfail.
81728         * m4/exitfail.m4: New file.
81729
81730         Module c-stack.
81731         * m4/c-stack.m4 (gl_C_STACK): New macro.
81732         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81733
81734         Module error.
81735         * m4/error.m4 (gl_ERROR): New macro.
81736         (jm_PREREQ_ERROR): Use onceonly macros.
81737
81738         Module fatal.
81739         * m4/fatal.m4: New file.
81740
81741         Module getloadavg.
81742         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81743         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81744
81745         Module getpagesize.
81746         * m4/getpagesize.m4: New file.
81747
81748         Module getusershell.
81749         * m4/getusershell.m4: New file.
81750
81751         Module physmem.
81752         * m4/physmem.m4: New file.
81753
81754         Module posixver.
81755         * m4/posixver.m4: New file.
81756
81757         Module quotearg.
81758         * m4/quotearg.m4: New file.
81759
81760         Module quote.
81761         * m4/quote.m4: New file.
81762
81763         Module readutmp.
81764         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81765
81766         Module sig2str.
81767         * m4/sig2str.m4: New file.
81768
81769         Other.
81770         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81771         ulonglong.m4.
81772         * m4/intmax_t.m4: New file.
81773         * m4/d-type.m4: Indentation.
81774         * m4/jm-macros.m4: Update.
81775         * m4/prereq.m4 (jm_PREREQ): Update.
81776         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81777         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81778         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81779         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81780         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81781         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81782         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81783         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81784         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81785         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81786         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81787         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81788         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81789         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81790         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81791         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81792         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81793         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81794         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81795
81796 2002-12-24  Bruno Haible  <bruno@clisp.org>
81797
81798         * MODULES.txt: Update according to m4/ changes.
81799
81800         Module gettext.
81801         * config.rpath: New file, from gettext-0.11.5.
81802
81803         * modules/*: New module descriptions.
81804         * gnulib-tool: New file.
81805         * MODULES.html.sh: New file.
81806
81807 2002-12-21  Karl Berry  <karl@gnu.org>
81808
81809         * doc/fdl.texi: update to version 1.2.
81810
81811 2002-12-19  Karl Berry  <karl@gnu.org>
81812
81813         * config/config.guess: update from prep.
81814
81815 2002-12-18  Bruno Haible  <bruno@clisp.org>
81816
81817         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81818         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81819
81820 2002-12-17  Bruno Haible  <bruno@clisp.org>
81821
81822         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81823         stdlib.h, string.h.
81824
81825 2002-12-17  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/canon-host.c (strdup): Remove unused declaration.
81828
81829         * lib/fsusage.c: Include full_read.h.
81830         (get_fs_usage): Use full_read instead of safe_read.
81831
81832         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81833
81834 2002-12-12  Karl Berry  <karl@gnu.org>
81835
81836         * config/config.guess: update from prep.
81837
81838 2002-12-11  Bruno Haible  <bruno@clisp.org>
81839
81840         * m4/setenv.m4: New file, from gettext-0.11.5.
81841
81842 2002-12-11  Bruno Haible  <bruno@clisp.org>
81843
81844         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81845         not unsetenv().
81846         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81847         modifications:
81848
81849         2002-12-11  Bruno Haible  <bruno@clisp.org>
81850
81851                 * setenv.c (alloca): Fall back to malloc.
81852                 (freea): New macro.
81853                 (setenv): Use freea() to free memory allocated with alloca().
81854
81855         2002-11-13  Bruno Haible  <bruno@clisp.org>
81856
81857                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81858                 function declarations.
81859                 * unsetenv.c (unsetenv): Likewise.
81860
81861         2002-03-04  Bruno Haible  <bruno@clisp.org>
81862
81863                 Portability to AIX 4.3.3.
81864                 * unsetenv.c: New file, extracted from setenv.c.
81865                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81866
81867         2001-12-20  Bruno Haible  <bruno@clisp.org>
81868
81869                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81870                 use malloc instead. For SunOS 4.
81871
81872         2001-12-11  Bruno Haible  <bruno@clisp.org>
81873
81874                 * setenv.c: Declare alloca.
81875                 (compar_fn_t): New typedef.
81876                 (KNOWN_VALUE, STORE_VALUE): Use it.
81877
81878         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81879         setenv.h.
81880
81881 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81882
81883         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81884         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81885         Choose values that are less likely to collide with system fnmatch
81886         options.
81887         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81888         defined (e.g., a pure POSIX system).
81889         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81890         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81891
81892 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81893
81894         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81895         a pain in practice to deal with generated m4 files.  This change
81896         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81897
81898         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81899         and jm-glibc-io.m4, as they are no longer a special case.
81900         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81901         kludge and the auto-generation stuff.  Check only whether the
81902         functions are declared, not whether they exist, since older hosts
81903         that don't declare the functions can't use the optimization anyway.
81904
81905 2002-12-06  Jim Meyering  <jim@meyering.net>
81906
81907         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81908
81909         Merge in changes from libc's misc/error.c, in preparation
81910         for the merge of gnulib's changes back into libc.
81911
81912         * lib/error.c (_): Define only if not already defined.
81913         Move definition to follow all #include directives.
81914         Include unlocked-io.h only if !_LIBC.
81915         [_LIBC]: Include <libio/libioP.h>.
81916         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81917         (fflush): Tweak definition to use INTUSE.
81918         (putc): Define.
81919
81920 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81921
81922         * lib/alloca.c [defined emacs]: Include "lisp.h".
81923         (xalloc_die) [defined emacs]: New macro.
81924         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81925         [! defined emacs]: Include <xalloc.h>.
81926         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81927         (pointer): Typedef to POINTER_TYPE *.
81928         (malloc): Remove decl; we now always use xmalloc.
81929         (alloca): Use old-style definition, since Emacs needs this.
81930         Check for arithmetic overflow when computing combined size.
81931
81932 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81933
81934         Do not generate unlocked-io.h automatically, since it's easier to
81935         maintain it by hand.
81936
81937         * lib/unlocked-io.h: New file, from GNU diffutils,
81938         but with proper copyright notice and attribution.
81939         * lib/gen-uio: Remove.
81940         * lib/Makefile.am: Add copyright notice.
81941         (libfetish_a_SOURCES): Add unlocked-io.h.
81942         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81943         (DISTCLEANFILES, io_functions): Remove macros.
81944         (EXTRA_DIST): Remove gen_uio.
81945         (unlocked-io.h): Remove rule.
81946
81947 2002-12-04  Jim Meyering  <jim@meyering.net>
81948
81949         Reflect the fact that stat.c and lstat.c are no longer generated.
81950         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81951         (DISTCLEANFILES): Likewise.
81952         (EXTRA_DIST): Likewise.
81953         (all_local): Don't depend on stat.c or lstat.c.
81954         (stat.c, lstat.c): Remove rules.
81955         (EXTRA_DIST): Remove xstat.in.
81956
81957         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81958         * lib/stat.c: New file.  Contents mostly from xstat.in.
81959         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81960         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81961
81962         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81963         too.
81964         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81965
81966 2002-12-03  Jim Meyering  <jim@meyering.net>
81967
81968         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81969         but not semantics, to minimize the differences between these two files.
81970         (safe_read): Change comment to mention SAFE_READ_ERROR.
81971
81972         * lib/safe-read.c (IS_EINTR): Define.
81973         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81974
81975 2002-12-02  Jim Meyering  <jim@meyering.net>
81976
81977         * lib/safe-read.c (EINTR): Define.
81978         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81979         (INT_MAX): Provide fallback.
81980         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81981
81982         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81983
81984 2002-12-02  Bruno Haible  <bruno@clisp.org>
81985
81986         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81987         Define, taken from safe-read.c.
81988         (INT_MAX): Provide fallback.
81989         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81990         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81991
81992         * lib/safe-read.c (EINTR): Remove definition.
81993         (safe_read): Don't use EINTR if it is absent.
81994
81995 2002-12-01  Jim Meyering  <jim@meyering.net>
81996
81997         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81998         zero.
81999         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82000
82001 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82002
82003         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82004         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82005         with `if (! (value < limit)) abort ();', for readability.
82006
82007 2002-11-26  Karl Berry  <karl@gnu.org>
82008
82009         * lib/strdup.c: copy from libc again, with jim's ok.
82010         * lib/.cppi-disable: re-add strdup.c
82011
82012 2002-11-25  Karl Berry  <karl@gnu.org>
82013
82014         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82015         instead of "strtol.c".
82016
82017 2002-11-25  Karl Berry  <karl@gnu.org>
82018
82019         * config/install-sh: update from automake for variable quoting, $0 in
82020         error msgs, etc.
82021
82022         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82023         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82024         entry.
82025
82026 2002-11-25  Jim Meyering  <jim@meyering.net>
82027
82028         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82029
82030 2002-11-24  Karl Berry  <karl@gnu.org>
82031
82032         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82033         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82034
82035 2002-11-24  Jim Meyering  <jim@meyering.net>
82036
82037         Update from coreutils:
82038
82039         * lib/mktime.c: Merge in changes from libc.
82040
82041         Avoid a link-time failure on some Linux systems.
82042         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82043         (otherwise).
82044         (__mon_yday): Declare with the STATIC attribute.
82045         (__mktime_internal): Likewise.
82046         Based on a report from Greg Schafer.
82047
82048 2002-11-23  Jim Meyering  <jim@meyering.net>
82049
82050         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82051         Use `unsigned', not `int', as type of index.
82052
82053         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82054
82055         * lib/fsusage.c: Remove unneeded parentheses around operands of
82056         `defined'.
82057
82058 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82059
82060         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82061         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82062         so that we can be included first.
82063         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82064         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82065         No need to include stddef.h or sys/types.h any more.
82066         Surround local include files with "", not "<>".
82067         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82068         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82069         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82070         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82071         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82072         (ISPRINT): Remove; no longer needed now that we assume C89.
82073
82074         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82075         Preserve errno.
82076
82077         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82078         quotearg_char): Use SIZE_MAX rather than
82079         (size_t) -1 when we are talking about "infinity".
82080
82081         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82082
82083 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82084
82085         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82086         hint that one should use `if (! x) abort ();' rather than `assert
82087         (x);', and anyway it's one less thing to worry about configuring.
82088         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82089         hash_rehash, hash_insert): Use abort rather than assert.
82090
82091 2002-11-22  Bruno Haible  <bruno@clisp.org>
82092
82093         * lib/safe-read.h: Assume C89. Add comments.
82094         (safe_read): Change return type to size_t.
82095         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82096         byte counts > SSIZE_MAX correctly.
82097         * lib/safe-write.h: New file.
82098         * lib/safe-write.c: New file.
82099         * lib/full-read.h: New file.
82100         * lib/full-read.c: New file.
82101         * lib/full-write.h: Assume C89. Add comments.
82102         * lib/full-write.c: Include safe-write.h.
82103         (full_write): Rewritten to use safe_write.
82104         Suggested by Jim Meyering and Paul Eggert.
82105
82106 2002-11-21  Jim Meyering  <jim@meyering.net>
82107
82108         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82109
82110         Merge in changes from the coreutils.
82111
82112         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82113         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82114         <stdint.h>.
82115         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82116         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82117         int.  Work more efficiently if X is the same width as uintmax_t.
82118         Do not compare X to -1, to avoid bogus compiler warning.
82119         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82120         Don't assume that f_frsize and f_bsize are the same type.
82121
82122         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82123         warning on FreeBSD.
82124
82125         * lib/makepath.c (make_path): Restore umask *before* creating the final
82126         component.
82127         (make_path): Minor reformatting.
82128
82129         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82130         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82131         HAVE_MALLOC/HAVE_REALLOC.
82132
82133         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82134         dummy ones.  At least on GNU/Linux systems, `auto' means something
82135         else.
82136         From Michael Stone.
82137
82138 2002-11-21  Bruno Haible  <bruno@clisp.org>
82139
82140         Remove case insensitive option matching.
82141         * lib/argmatch.h (argcasematch): Remove declaration.
82142         (ARGCASEMATCH): Remove macro.
82143         (__xargmatch_internal): Remove case_sensitive argument.
82144         (XARGMATCH): Update.
82145         (XARGCASEMATCH): Remove macro.
82146         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82147         case_sensitive argument.
82148         (argcasematch): Remove function.
82149         (__xargmatch_internal): Remove case_sensitive argument.
82150         (main): Use XARGMATCH instead of XARGCASEMATCH.
82151
82152         * lib/xmalloc.c: Change compile-time error message. Add comment about
82153         required autoconf version.
82154
82155 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82156
82157         Merge argmatch cleanups from Bison.  Assume C89.
82158
82159         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82160         Include stdlib.h, for EXIT_FAILURE.
82161         Always include <string.h>, since we assume C89.
82162         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82163         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82164         Include <stddef.h> instead, since it's all we need for size_t.
82165         (PARAMS): Remove.  All uses removed.
82166         (ARRAY_CARDINALITY): Do not bother to #undef.
82167         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82168         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82169         Remove unnecessary parentheses.
82170         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82171         Insert necessary parentheses.
82172         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82173         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82174
82175 2002-11-19  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82178         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82179
82180         * lib/mbswidth.h (PARAMS): Remove macro.
82181         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82182         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82183
82184         * lib/gcd.h (PARAMS): Remove macro.
82185         (gcd): Use ANSI C function declarations.
82186         * lib/gcd.c (gcd): Likewise.
82187
82188 2002-11-15  Bruno Haible  <bruno@clisp.org>
82189
82190         * lib/strcspn.c: Include <stddef.h>.
82191         (strcspn): Use ANSI C function declaration. Change return type to
82192         size_t. Use NULL.
82193         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82194         (strpbrk): Use NULL.
82195         * lib/strpbrk.h (PARAMS): Remove macro.
82196         (strpbrk): Use ANSI C function declaration.
82197         * lib/strstr.c: Don't include <sys/types.h>.
82198         * lib/strstr.h (PARAMS): Remove macro.
82199         (strstr): Use ANSI C function declarations.
82200
82201 2002-11-14  Karl Berry  <karl@gnu.org>
82202
82203         * config/mkinstalldirs: `do' on separate line, instead of
82204         `for var; do'.
82205
82206 2002-11-06  Bruno Haible  <bruno@clisp.org>
82207
82208         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82209         * lib/gcd.c (gcd): Likewise.
82210
82211 2002-11-05  Bruno Haible  <bruno@clisp.org>
82212
82213         * lib/gcd.h: New file, from gettext-0.11.5.
82214         * lib/gcd.c: New file, from gettext-0.11.5.
82215
82216 2002-11-05  Bruno Haible  <bruno@clisp.org>
82217
82218         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82219         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82220         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82221         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82222
82223         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82224         <libintl.h>.
82225         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82226         <libintl.h>.
82227
82228         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82229         * lib/human.c: Include gettext.h instead of <libintl.h>.
82230         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82231         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82232         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82233         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82234         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82235         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82236         (textdomain): Remove definition.
82237         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82238
82239         * lib/long-options.c: Remove include of <libintl.h> and definition of
82240         _.
82241         * lib/same.c: Remove include of <libintl.h> and definition of _.
82242
82243 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82244
82245         * lib/config.charset: A few additions for Solaris.
82246
82247 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82248
82249         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82250         * lib/localcharset.c (locale_charset): Declare as extern "C".
82251
82252 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82253
82254         * lib/config.charset: msdos in uk_UA uses CP1125.
82255
82256 2002-11-04  Bruno Haible  <bruno@clisp.org>
82257
82258         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82259         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82260         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82261         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82262         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82263
82264 2002-11-04  Bruno Haible  <bruno@clisp.org>
82265
82266         * lib/localcharset.c (locale_charset): Don't return an empty string.
82267
82268 2002-11-04  Bruno Haible  <bruno@clisp.org>
82269
82270         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82271         aliases.
82272
82273 2002-11-04  Bruno Haible  <bruno@clisp.org>
82274
82275         * lib/config.charset: Update for newest glibc. Add canonical names
82276         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82277
82278 2002-11-04  Bruno Haible  <bruno@clisp.org>
82279
82280         * lib/config.charset: Add support for NetBSD.
82281
82282 2002-11-04  Bruno Haible  <bruno@clisp.org>
82283
82284         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82285
82286 2002-11-01  Bruno Haible  <bruno@clisp.org>
82287
82288         * configure.in: Add AC_CONFIG_AUX_DIR call.
82289         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82290         test/Makefile.
82291         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82292
82293 2002-09-28  Karl Berry  <karl@gnu.org>
82294
82295         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82296         installed automake until the next release, since changes have been
82297         made.
82298
82299 2002-09-25  Karl Berry  <karl@gnu.org>
82300
82301         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82302         * lib/getopt*: copy from libc/posix.
82303         * lib/gettext.h: copy from gettext.
82304         * lib/.cppi-disable: add strdup.c, gettext.h.
82305
82306 2002-09-25  Karl Berry  <karl@gnu.org>
82307
82308         * config/srclist.txt: enable gettext.h check.
82309         * config/config.{guess,sub}: update from prep.
82310         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82311                 from automake 1.6.3.
82312         See srclist*.
82313
82314 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82315
82316         * regex.c (PATFETCH): Remove the translating fetch.
82317         (PATFETCH_RAW): Rename to PATFETCH.
82318         (set_image_of_range): New fun.
82319         (SET_RANGE_TABLE_WORK_AREA): Use it.
82320         (regex_compile): Don't translate the pattern chars so eagerly.
82321         Only do it when inserting an `exactn' bytecode or when handling
82322         a char-range.
82323         (mutually_exclusive_p): Avoid empty statement.
82324
82325 2002-07-06  Jim Meyering  <meyering@lucent.com>
82326
82327         * m4/README: Don't mention Makefile.am.in.
82328         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82329
82330 2002-07-01  Jim Meyering  <meyering@lucent.com>
82331
82332         * lib/c-stack.c: Include sys/time.h.
82333         From Volker Borchert.
82334
82335 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82336
82337         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82338
82339 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82340
82341         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82342         New macro.  Use it uniformly instead of
82343         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82344         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82345         reported by Vin Shelton.
82346
82347 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82348
82349         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82350         Do not assume SA_SIGINFO behavior.
82351         Bug reported by Jim Meyering on NetBSD 1.5.2.
82352
82353 2002-06-22  Jim Meyering  <meyering@lucent.com>
82354
82355         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82357
82358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82359         now that configure.ac uses AC_GNU_SOURCE.
82360         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82361         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82362
82363         Update to latest tools.  Suggestions from Paul Eggert.
82364         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82365         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82366         * m4/fnmatch.m4: Likewise.
82367         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82368         to AC_HEADER_STDBOOL
82369
82370 2002-06-22  Jim Meyering  <meyering@lucent.com>
82371
82372         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82373         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82374
82375 2002-06-22  Jim Meyering  <meyering@lucent.com>
82376
82377         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82378
82379         * lib/exitfail.c, exitfail.h: Likewise.
82380         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82381
82382         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82383         of fnmatch.h.
82384         (EXTRA_DIST): Add fnmatch_loop.c.
82385         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82386
82387         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82388         * lib/fnmatch.c: Update from diffutils-2.8.2.
82389         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82390         * lib/fnmatch.h: Remove file.
82391
82392 2002-06-21  Jim Meyering  <meyering@lucent.com>
82393
82394         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82395         * m4/mbrtowc.m4: Likewise.
82396
82397         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82398         * m4/mbswidth.m4: Reflect name change:
82399         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82401
82402         * m4/lib-link.m4: Update from gettext-0.11.2.
82403         * m4/gettext.m4: Likewise.
82404
82405         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82406         From Alfred M. Szmidt.
82407
82408 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82409
82410         * lib/file-type.h: Report an error if neither S_ISREG nor
82411         S_IFREG is defined, instead of using a test specific to glibc
82412         2.2.  This should be safe, since POSIX requires S_ISREG and
82413         Unix Version 7 had S_IFREG.  We don't need to check for
82414         <sys/types.h> since we don't use any symbols that it defines.
82415
82416 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82417
82418         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82419         $@-t, so that each temporary file name is unique and valid in the first
82420         8 characters, for operation under DOS.
82421
82422 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82423
82424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82425
82426 2002-06-15  Jim Meyering  <meyering@lucent.com>
82427
82428         Work even with DJGPP 2.03, which lacks support for symlinks.
82429         From Richard Dawe.
82430         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82431         is defined.
82432         * lib/lchown.c (S_ISLNK): Likewise.
82433
82434 2002-06-15  Jim Meyering  <meyering@lucent.com>
82435
82436         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82437         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82438         have been included before this file.
82439
82440 2002-06-14  Jim Meyering  <meyering@lucent.com>
82441
82442         * lib/file-type.h: Use the version from diffutils-2.8.2.
82443         * lib/file-type.c: Likewise.
82444
82445 2002-06-07  Jim Meyering  <meyering@lucent.com>
82446
82447         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82448         They're needed at least for NetBSD 1.5.2.
82449         ($statxfs_includes): Include those same headers.
82450         ($statxfs_includes): Include sys/vfs.h if available.
82451         ($statxfs_includes): Likewise for sys/statvfs.h.
82452         Check for the following members in both structs statfs and statvfs:
82453         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82454
82455 2002-06-01  Jim Meyering  <meyering@lucent.com>
82456
82457         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82458         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82459
82460 2002-05-28  Jim Meyering  <meyering@lucent.com>
82461
82462         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82463         Reported by Volker Borchert.
82464
82465 2002-05-27  Jim Meyering  <meyering@lucent.com>
82466
82467         Fix a problem seen only on nonconforming systems whereby ls.c's
82468         use of localtime, and then of gettimeofday would cause trouble:
82469         the localtime call used to initialize rpl_gettimeofday's save
82470         mechanism would clobber ls's current local time information so
82471         that in any long listing the first file would always be listed
82472         with date 1970-01-01.  Analysis by Volker Borchert.
82473
82474         * lib/gettimeofday.c (localtime): Undefine.
82475         (rpl_localtime): New function.
82476
82477 2002-05-27  Jim Meyering  <meyering@lucent.com>
82478
82479         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82480         localtime.
82481
82482         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82483         use the replacement function; it wouldn't resolve at link time.
82484         Reported by Volker Borchert.
82485
82486 2002-05-22  Jim Meyering  <meyering@lucent.com>
82487
82488         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82489         file-type.h.
82490         * lib/file-type.h: New file.
82491         * lib/file-type.c (file_type): New file/function.  Extracted from
82492         diffutils.
82493
82494 2002-04-30  Jim Meyering  <meyering@lucent.com>
82495
82496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82497
82498 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82499
82500         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82501
82502 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82503
82504         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82505         Do not check for alloca.h (no longer used) or stdbool.h (was never
82506         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82507
82508 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82509
82510         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82511
82512 2002-04-29  Jim Meyering  <meyering@lucent.com>
82513
82514         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82515         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82516         Use AC_FUNC_STRNLEN here instead.
82517
82518         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82519         With autoconf-2.53a, it's part of AC_PROG_CC.
82520
82521 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82522
82523         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82524         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82525
82526 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82527
82528         * lib/sig2str.h, lib/sig2str.c: New files.
82529         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82530
82531 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82532
82533         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82534         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82535         of 127, since 64 is the largest conceivable number for ancient
82536         nonstandard hosts.
82537         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82538
82539 2002-04-28  Jim Meyering  <meyering@lucent.com>
82540
82541         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82542
82543 2002-04-24  Jim Meyering  <meyering@lucent.com>
82544
82545         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82546         (jm_PREREQ): Use it.
82547
82548         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82549         mach/mach.h fcntl.h.
82550         Check for this function: setlocale.
82551
82552 2002-04-24  Jim Meyering  <meyering@lucent.com>
82553
82554         * lib/gettext.h: New file, from Gettext.
82555         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82556         (libfetish_a_SOURCES): Add gettext.h.
82557
82558 2002-04-16  Jim Meyering  <meyering@lucent.com>
82559
82560         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82561         ut_pid, ut_id, ut_exit.
82562
82563 2002-04-16  Jim Meyering  <meyering@lucent.com>
82564
82565         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82566         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82567         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82568
82569 2002-04-12  Jim Meyering  <meyering@lucent.com>
82570
82571         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82572         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82573         existence of the getmntinfo function.  Needed for Darwin 5.3.
82574
82575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82576         This is necessary at least on Darwin 5.3.
82577
82578         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82579         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82580         strnlen.o in the library, and that makes some versions of ranlib
82581         object.
82582
82583 2002-04-12  Jim Meyering  <meyering@lucent.com>
82584
82585         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82586
82587 2002-04-09  Jim Meyering  <meyering@lucent.com>
82588
82589         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82590         to be more precise.  Rather than saying we're checking whether the
82591         function `works', say what we're testing.
82592         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82593         Reported by Bruno Haible.
82594
82595 2002-03-10  Jim Meyering  <meyering@lucent.com>
82596
82597         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82598         Suggestion from Santiago Vila.
82599
82600 2002-03-08  Jim Meyering  <meyering@lucent.com>
82601
82602         * lib/rename.c: Mention that this wrapper is needed also on
82603         mips-dec-ultrix4.4 systems.
82604
82605 2002-03-02  Jim Meyering  <meyering@lucent.com>
82606
82607         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82608         not HAVE_CLOCK_SETTIME.
82609
82610 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82611
82612         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82613         Check for clock_settime.
82614
82615 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82616
82617         * lib/nanosleep.h: Rename to....
82618         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82619
82620         * lib/gettime.c: New file.
82621         * lib/settime.c: New file.
82622         * lib/stime.c: Remove.
82623
82624         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82625         timespec.h.  Remove nanosleep.h.
82626
82627 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82628
82629         * m4/acl.m4: New file.
82630         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82631         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82632
82633 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82634
82635         * lib/acl.c, lib/acl.h: New files.
82636         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82637
82638 2002-02-24  Jim Meyering  <meyering@lucent.com>
82639
82640         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82641         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82642         cause trouble.  Reported by Nelson Beebe.
82643
82644 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82645
82646         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82647         compilers that don't know that xalloc_die never returns.
82648
82649 2002-02-20  Jim Meyering  <meyering@lucent.com>
82650
82651         * lib/getdate.c: Regenerate using bison-1.33.
82652
82653 2002-02-17  Jim Meyering  <meyering@lucent.com>
82654
82655         * config/config.guess (main): Don't use `head -1'; it's no longer
82656         portable. Use `sed 1q' instead.
82657
82658 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82659
82660         * m4/codeset.m4: Upgrade to gettext-0.11.
82661         * m4/gettext.m4: Upgrade to gettext-0.11.
82662         * m4/glibc21.m4: Upgrade to gettext-0.11.
82663         * m4/iconv.m4: Upgrade to gettext-0.11.
82664         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82665         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82666         * m4/lib-ld.m4: New file, from gettext-0.11.
82667         * m4/lib-link.m4: New file, from gettext-0.11.
82668         * m4/lib-prefix.m4: New file, from gettext-0.11.
82669         * m4/progtest.m4: Upgrade to gettext-0.11.
82670
82671 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82672
82673         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82674         (jm_PREREQ): Use it.
82675
82676 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82677
82678         * lib/posixver.c, lib/posixver.h: New files.
82679         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82680
82681 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82682             Bruno Haible  <bruno@clisp.org>
82683
82684         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82685         (fwrite_success_callback): New declaration.
82686         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82687         print_unicode_char. Call failure callback instead of error.
82688         (fwrite_success_callback): New function.
82689         (exit_failure_callback): New function.
82690         (fallback_failure_callback): New function.
82691         (print_unicode_char): Call unicode_to_mb.
82692
82693 2002-01-26  Jim Meyering  <meyering@lucent.com>
82694
82695         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82696         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82697
82698 2002-01-26  Jim Meyering  <meyering@lucent.com>
82699
82700         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82701
82702 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82703
82704         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82705
82706 2002-01-22  Jim Meyering  <meyering@lucent.com>
82707
82708         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82709         Otherwise, some versions of automake would omit the rule that makes
82710         Makefile from Makefile.in.
82711
82712 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82713
82714         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82715         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82716         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82717         (memcoll): Set errno to zero if there is no error.
82718
82719         * lib/quotearg.c (quotearg_buffer_restyled):
82720         Fix bug with quoting buffers containing NUL when backslashing escapes.
82721         This bug was exposed by the other changes in this patch.
82722         (quotearg_n_options): New arg ARGSIZE.
82723         All callers changed.
82724         (quoting_options_from_style): New function.
82725         (quotearg_n_style): Use it.
82726         (quotearg_n_style_mem): New function.
82727
82728         * lib/quotearg.h (quotearg_n_style_mem): New function.
82729
82730 2002-01-19  Jim Meyering  <meyering@lucent.com>
82731
82732         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82733         Remove useless quotes: DF_PROG="df".
82734         * m4/strnlen.m4: New file.
82735
82736 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82737
82738         * lib/backupfile.c (ISDIGIT): Comment fix.
82739         * lib/getdate.y (ISDIGIT): Likewise.
82740         * lib/posixtm.c (ISDIGIT, year): Likewise.
82741         * lib/strverscmp.c (ISDIGIT): Likewise.
82742         * lib/userspec.c (ISDIGIT): Likewise.
82743
82744 2002-01-16  Jim Meyering  <meyering@lucent.com>
82745
82746         * lib/getdate.y: Add three semicolons, each just before a closing
82747         brace. Bison (as of version 1.31) no longer papers over that mistake.
82748
82749 2002-01-05  Jim Meyering  <meyering@lucent.com>
82750
82751         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82752
82753 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82754
82755         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82756         not silently exit merely because the output buffer happens to
82757         have nothing pending.
82758
82759 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82760
82761         See the big note in ../ChangeLog.
82762         * lib/human.c (suffixes): Prefer K to k for 1024.
82763         (generate_suffix_backwards): New function.
82764         (human_readable_inexact): Use it.
82765         * lib/xstrtol.c (__xstrtol): If there is no number but there
82766         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82767         Accept 'K' as well as 'k'.
82768
82769 2001-12-15  Jim Meyering  <meyering@lucent.com>
82770
82771         * lib/regex.h (__restrict_arr): Update from libc.
82772
82773         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82774         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82775         (STREQ): Define.
82776
82777 2001-12-14  Jim Meyering  <meyering@lucent.com>
82778
82779         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82780         Suggestion from Bruno Haible.
82781
82782 2001-12-10  Jim Meyering  <meyering@lucent.com>
82783
82784         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82785         xrealloc, Instead, include "xalloc.h".
82786         (initbuffer): Don't cast xmalloc return value to char*.
82787         (readline): Reword comment.
82788         Don't cast xrealloc return value to char*
82789         Return NULL, not 0.
82790
82791 2001-12-09  Jim Meyering  <meyering@lucent.com>
82792
82793         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82794         about `signed and unsigned type in conditional expression'.
82795         * lib/posixtm.c (posix_time_parse): Likewise.
82796
82797         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82798
82799         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82800         to avoid a pedantic warning.
82801
82802         * lib/getstr.c: Don't include assert.h.
82803         (getstr): Remove warning-evoking assertions.
82804         Return -1 if offset parameter is out of bounds.
82805         Change the type of a local from int to size_t.
82806
82807         * lib/strftime.c (my_strftime_localtime_r): Include this function
82808         definition in the `#if ! HAVE_TM_GMTOFF' block.
82809
82810         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82811         Include xalloc.h instead.
82812
82813 2001-12-02  Jim Meyering  <meyering@lucent.com>
82814
82815         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82816         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82817         included.
82818
82819         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82820         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82821
82822 2001-11-30  Akim Demaille  <akim@epita.fr>
82823
82824         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82825         before being defined.
82826
82827 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82828
82829         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82830         First arg is int, not unsigned.
82831         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82832         (SIZE_MAX, UINT_MAX): New macros.
82833         (quotearg_n_options): Abort if N is negative.
82834         Avoid overflow check on hosts where size_t is 64 bits and int
82835         is 32 bits, as overflow is impossible there.
82836         Fix off-by-one typo that caused unnecessary reallocation.
82837
82838 2001-11-27  Jim Meyering  <meyering@lucent.com>
82839
82840         * lib/tempname.c: Merge with version from libc.
82841         * lib/regex.c: Likewise.
82842
82843         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82844         systems for which STDC_HEADERS is 0, it was not included, resulting in
82845         a warning about an integer-to-pointer conversion problem with getenv.
82846         Reported by Volker Borchert.
82847
82848 2001-11-26  Jim Meyering  <meyering@lucent.com>
82849
82850         * lib/gtod.h: Remove file.
82851         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82852         * lib/gettimeofday.c: Don't include gtod.h.
82853         (GTOD_init): Remove function.
82854         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82855         Suggestion from Volker Borchert.
82856
82857 2001-11-23  Jim Meyering  <meyering@lucent.com>
82858
82859         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82860         it.
82861         * lib/hash.c (struct hash_table): Define it here instead.
82862
82863 2001-11-22  Jim Meyering  <meyering@lucent.com>
82864
82865         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82866
82867 2001-11-20  Jim Meyering  <meyering@lucent.com>
82868
82869         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82870         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82871
82872 2001-11-19  Jim Meyering  <meyering@lucent.com>
82873
82874         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82875         directory.  Use "conftestXXXXXX" as the template.
82876         Suggestion from Paul Eggert.
82877
82878         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82879         immediately, so the test doesn't mistakenly hit the max-open-files
82880         limit.
82881
82882 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82883
82884         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82885         (TEMPORARIES): New macro.
82886         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82887         removes an artificial limitation (e.g. HP-UX 10.20, where
82888         TMP_MAX is 17576).
82889
82890 2001-11-18  Jim Meyering  <meyering@lucent.com>
82891
82892         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82893
82894 2001-11-18  Jim Meyering  <meyering@lucent.com>
82895
82896         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82897         on SunOS 4.
82898
82899         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82900         files will be created before anything else.
82901
82902 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82903
82904         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82905         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82906
82907 2001-11-17  Jim Meyering  <meyering@lucent.com>
82908
82909         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82910         Prompted by a report from Bob Proulx.
82911
82912         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82913         Instead, require UTILS_FUNC_MKSTEMP.
82914
82915 2001-11-17  Jim Meyering  <meyering@lucent.com>
82916
82917         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82918         Now, that's done as part of AC_FUNC_STRTOD.
82919
82920 2001-11-17  Jim Meyering  <meyering@lucent.com>
82921
82922         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82923         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82924         rather than group writable.  Patch by Juan F. Codagnone.
82925
82926         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82927         xrealloc, Instead, include "xalloc.h".
82928
82929         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82930         Remove explicit declarations of xmalloc, xrealloc,
82931         and xstrdup.  Instead, include "xalloc.h".
82932
82933         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82934         unlocked-io.h.
82935         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82936         Likewise.
82937         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82938
82939         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82940         Reported by Padraig Brady.
82941
82942         * lib/mkstemp.c: #undef mkstemp.
82943         Include config.h.
82944         (rpl_mkstemp): Rename from mkstemp.
82945         Protoize.
82946
82947 2001-11-16  Jim Meyering  <meyering@lucent.com>
82948
82949         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82950         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82951         determine the amount of total physical memory, use pstat_getstatic.
82952         HPUX-11 doesn't define _SC_PHYS_PAGES.
82953         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82954         If sysconf couldn't be used to determine the amount of available
82955         physical memory, use both pstat_getstatic and pstat_getdynamic.
82956         Based on a patch from Bob Proulx.
82957
82958 2001-11-10  Jim Meyering  <meyering@lucent.com>
82959
82960         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82961         (jm_PREREQ): Use it.
82962
82963 2001-11-09  Jim Meyering  <meyering@lucent.com>
82964
82965         * m4/jm-macros.m4: Require autoconf-2.52f.
82966         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82967         Use these AC_-prefixed names, not the AM_-prefixed ones.
82968
82969         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82970
82971 2001-11-05  Jim Meyering  <meyering@lucent.com>
82972
82973         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82974
82975 2001-11-04  Jim Meyering  <meyering@lucent.com>
82976
82977         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82978         $DEFS.
82979
82980 2001-11-03  Jim Meyering  <meyering@lucent.com>
82981
82982         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82983         of AC_DEFUN.
82984
82985         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82986         know the name of the variable in the macro definition.
82987
82988 2001-11-03  Jim Meyering  <meyering@lucent.com>
82989
82990         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82991         in argmatch_to_argument call.
82992
82993         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82994         argument.
82995
82996         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82997         e.g., a fault due to an attempt to free a NULL pointer.
82998
82999 2001-11-01  Jim Meyering  <meyering@lucent.com>
83000
83001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83002         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83003
83004 2001-11-01  Jim Meyering  <meyering@lucent.com>
83005
83006         * lib/dirfd.c, lib/dirfd.h: New files.
83007         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83008
83009         * lib/hash.c (hash_print) [TESTING]: Clean up.
83010
83011 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83012
83013         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83014         to avoid a warning if -Wall.
83015
83016 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83017
83018         * README: New file
83019         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83020         (per RMS's instructions, this is now the canonical source)
83021         * lgpl/, gpl/: New directories.
83022
83023 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83024
83025         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83026
83027 2001-10-21  Jim Meyering  <meyering@lucent.com>
83028
83029         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83030         this code would end up calling gettext even in packages built
83031         with --disable-nls.
83032         * lib/getopt.c (_): Likewise.
83033         * lib/regex.c (_): Likewise.
83034
83035 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83036
83037         * m4/error.m4 (jm_PREREQ_ERROR):
83038         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83039         AC_FUNC_STRERROR_R does that.
83040         Check for strerror declaration.
83041
83042         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83043         are supposed to have them these days.
83044         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83045         Merge changes from latest Autoconf CVS.
83046         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83047         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83048         POSIX decided to standardize on the int flavor of strerror_r.
83049
83050 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83051
83052         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83053         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83054         Use strerror_r that is only a macro, even if it is not a function.
83055         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83056         (private_strerror): Use prototypes, not old-style function definition.
83057         (print_errno_message): New function.
83058         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83059         char*-flavored one.
83060         (error_tail, error, error_at_line): Use it.
83061
83062 2001-10-11  Jim Meyering  <meyering@lucent.com>
83063
83064         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83065         and quote_n (1, ... to avoid clobbering a buffer.
83066
83067 2001-10-05  Jim Meyering  <meyering@lucent.com>
83068
83069         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83070         hash-pjw.h.
83071         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83072         * lib/hash-pjw.h: New file.
83073
83074 2001-09-30  Jim Meyering  <meyering@lucent.com>
83075
83076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83077         `struct fsstat' has the `f_fstypename' member.
83078         Use that to define FS_TYPE, which is now used to make
83079         the getfsstat link test tighter.
83080
83081 2001-09-30  Jim Meyering  <meyering@lucent.com>
83082
83083         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83084         Include <sys/ucred.h>, for Apple Darwin.
83085         Include sys/mount.h and sys/fs_types.h only if available.
83086         (FS_TYPE): Define.
83087         (read_filesystem_list): Use FS_TYPE.
83088
83089 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83090
83091         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83092         a boolean context.
83093
83094 2001-09-29  Jim Meyering  <meyering@lucent.com>
83095
83096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83097         [one-argument getmntent function]): Include stdio.h before mntent.h.
83098         SunOS 4.1.x needs it for the declaration of `FILE'.
83099         Patch by Volker Borchert.
83100
83101         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83102         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83103         sys/fs_types.h, and make the link-test for getfsstat guard #include
83104         directives with appropriate #if HAVE_*_H tests so that we can
83105         detect getfsstat on Apple Darwin1.3.7 systems.
83106         Reported by Nelson Beebe.
83107         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83108
83109 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83110
83111         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83112         #defines strtoimax.  Also treat the other strto* functions
83113         like strtoimax.
83114
83115         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83116         Check for strtoul and strtoumax,
83117         as those declarations are made even in the signed case.
83118         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83119         Likewise, for strtol and strtoimax.
83120
83121 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83122
83123         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83124         #defines strtoimax.  Also treat the other strto* functions
83125         like strtoimax.
83126
83127         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83128         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83129         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83130
83131 2001-09-26  Jim Meyering  <meyering@lucent.com>
83132
83133         Most macros in unlocked-io.h had the wrong number of arguments.
83134         * lib/gen-uio: New script.
83135         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83136         * lib/unlocked-io.hin: Remove file.
83137         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83138         rather than trying to embed it here.
83139         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83140         Reported by Padraig Brady.
83141
83142 2001-09-25  Volker Borchert  <bt@teknon.de>
83143
83144         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83145         `result'.
83146
83147 2001-09-24  Jim Meyering  <meyering@lucent.com>
83148
83149         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83150
83151 2001-09-23  Jim Meyering  <meyering@lucent.com>
83152
83153         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83154         instead of the mere test for existence of mntent.h.  The latter
83155         would get a false-positive on AIX 3.4 systems.
83156         In the outer getmntent if-block, don't die if neither of the getmntent
83157         tests succeeds.  Instead, just fall through and continue with the
83158         remaining tests.
83159
83160 2001-09-23  Jim Meyering  <meyering@lucent.com>
83161
83162         * lib/mountlist.c: Remove useless parentheses in #if directives.
83163         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83164         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83165
83166 2001-09-22  Jim Meyering  <meyering@lucent.com>
83167
83168         * m4/gettext.m4: New file.  From gettext.
83169         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83170         * m4/progtest.m4: Likewise
83171         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83172         * m4/glibc21.m4: Likewise.
83173
83174         * m4/libintl.m4: Remove.  No longer used.
83175
83176 2001-09-22  Jim Meyering  <meyering@lucent.com>
83177
83178         * lib/localcharset.c: Update from latest gettext.
83179         * lib/config.charset: Likewise.
83180
83181 2001-09-20  Jim Meyering  <meyering@lucent.com>
83182
83183         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83184         strtoimax.
83185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83186         strtoumax.
83187
83188 2001-09-20  Jim Meyering  <meyering@lucent.com>
83189
83190         * lib/xstrtol.c (strtoimax): Guard declaration with
83191         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83192         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83193         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83194         (strtoumax): Likewise, for completeness (it wasn't necessary).
83195
83196 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83197
83198         * lib/strtoimax.c (HAVE_LONG_LONG):
83199         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83200         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83201         to work around bug in IBM C compiler.
83202
83203 2001-09-17  Jim Meyering  <meyering@lucent.com>
83204
83205         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83206         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83207         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83208         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83209         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83210         whenever the right hand side need not be expanded by the shell.
83211
83212 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83213
83214         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83215         library.  It's not correct, as some older glibcs are buggy.
83216         fnmatch wasn't fixed until glibc 2.2.
83217
83218         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83219         special shell magic here.
83220
83221 2001-09-16  Jim Meyering  <meyering@lucent.com>
83222
83223         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83224         * m4/jm-macros.m4: Require it.
83225
83226 2001-09-16  Jim Meyering  <meyering@lucent.com>
83227
83228         * lib/mkdir.c: New file.
83229
83230 2001-09-15  Jim Meyering  <meyering@lucent.com>
83231
83232         * m4/jm-macros.m4: Check for help2man.
83233
83234 2001-09-11  Jim Meyering  <meyering@lucent.com>
83235
83236         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83237         The body, by Paul Eggert, was moved here from configure.in.
83238         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83239
83240 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83241
83242         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83243         (jm_PREREQ): Use it.
83244
83245 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83246
83247         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83248         Use ssize_t, not int, to store result of readlink.
83249         Check for ssize_t overflow as well as size_t overflow,
83250         as POSIX says the result of readlink is implementation-defined
83251         when ssize_t overflows.
83252         Remove unnecessary cast to char*.
83253         Use free+malloc instead of realloc, as the storage doesn't need
83254         to be preserved and it's clearer and can be more efficient that way.
83255         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83256         * lib/xreadlink.h (xreadlink): Update prototype.
83257
83258 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83259
83260         * lib/xgetcwd.c: Revert some of the previous change; intead,
83261         fix the HAVE_GETCWD_NULL code to behave more like the
83262         !HAVE_GETCWD_NULL code used to.
83263
83264         Include "xalloc.h".
83265         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83266         invoke xalloc_die.
83267
83268 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83269
83270         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83271         sys/param.h, as pathmax.h includes them.
83272
83273 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83274
83275         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83276         (jm_PREREQ_XGETCWD): New macro.
83277
83278         * m4/getcwd.m4: New file.
83279
83280 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83281
83282         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83283         like the HAVE_GETCWD_NULL code.
83284         Include pathmax.h if not HAVE_GETCWD.
83285         Do not include xalloc.h.
83286         (INITIAL_BUFFER_SIZE): New symbol.
83287         Do not use xmalloc / xrealloc, since the caller is responsible for
83288         handling errors.  Preserve errno around `free' during failure.
83289         Do not overrun buffer when using getwd.
83290
83291 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83292
83293         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83294         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83295         getcwd (NULL, 0).
83296
83297 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83298
83299         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83300         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83301         spotted by Jim Meyering.
83302
83303 2001-09-03  Jim Meyering  <meyering@lucent.com>
83304
83305         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83306         failure.
83307
83308 2001-09-02  Jim Meyering  <meyering@lucent.com>
83309
83310         * lib/error.c: Update from GNU libc.
83311
83312 2001-09-01  Jim Meyering  <meyering@lucent.com>
83313
83314         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83315         Used by df.
83316
83317 2001-09-01  Jim Meyering  <meyering@lucent.com>
83318
83319         * lib/xreadlink.c: New file.
83320         * lib/xreadlink.h: New file.
83321         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83322         xreadlink.h.
83323
83324         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83325         doesn't conflict with sparc Solaris 7's definition in
83326         /usr/include/sys/int_types.h.
83327
83328         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83329         files.
83330         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83331         and strncasecmp as r-values.  Unixware didn't have declarations.
83332
83333 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83334
83335         * lib/xstrtol.h: Add copyright notice.
83336         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83337         LONGINT_INVALID_SUFFIX_CHAR.
83338
83339 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83340
83341         * lib/xstrtol.c (strtoimax): New decl.
83342
83343 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83344
83345         * lib/xgetcwd.c: Don't include pathmax.h.
83346         Include stdlib.h and unistd.h if available.
83347         Include xalloc.h.
83348         (xmalloc, xstrdup, free): Remove decls.
83349         (xgetcwd): Don't assume sizes fit in unsigned.
83350         Check for overflow when computing sizes.
83351         Simplify reallocation code.
83352
83353 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83354
83355         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83356         a directory's st_size can have an arbitrary value, so the old
83357         usage could waste an arbitrary amount of memory.  All uses
83358         changed.
83359         * lib/savedir.h: Update prototype.
83360
83361 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83362
83363         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83364
83365         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83366         old strtoimax.c.
83367
83368         Also, make the following further changes to make this file's
83369         configuration more similar to that of strtol.c:
83370         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83371         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83372         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83373         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83374         changed to signed values.
83375
83376         And make the following changes as well:
83377         Fix copyright notice, as 1999 was missing.
83378         (verify): New macro.
83379         (strtoimax): Check sizes at compile-time, not run-time.
83380         Prefer strtol to strtoll if both work.
83381         (main): Remove; it was not that useful and was a pain to maintain.
83382
83383         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83384
83385 2001-08-31  Jim Meyering  <meyering@lucent.com>
83386
83387         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83388         Use an initial, malloc'd, buffer of length 128 rather than
83389         a statically allocated one of length 1024.
83390
83391 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83392
83393         Simplify code, partly by assuming autoconf 2.52 semantics.
83394
83395         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83396
83397         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83398         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83399         All uses removed.
83400         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83401         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83402         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83403         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83404         jm_AC_HEADER_INTTYPES_H.
83405         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83406
83407         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83408
83409         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83410         Quote first arg of AC_DEFUN.
83411         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83412         since they are needed to parse the include file even if we need
83413         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83414         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83415         but with opposite signedness.
83416
83417 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83418
83419         Merge 'exclude' changes from tar 1.13.22.
83420         This fixes one or two unlikely storage allocation overflow bugs,
83421         but doesn't change user-visible behavior otherwise.
83422
83423 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83424
83425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83426         (jm_PREREQ_EXCLUDE): New macro.
83427
83428 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83429
83430         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83431         tm to be declared.
83432
83433 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83434
83435         * lib/hash.c: Remove '2001' from copyright notice.
83436
83437 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/full-write.h: New file.
83440         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83441         * lib/full-write.c: Correct credits, as cccp.c no longer
83442         exists and anyway it was so heavily changed from the old cccp
83443         code as to be unrecognizable.  Include full-write.h.
83444         (full_write): Return size_t, with short writes meaning failure.
83445         All callers changed.  This fixes a bug with large buffers
83446         on 64-bit hosts.
83447         * lib/utime.c: Include full-write.h.
83448
83449 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83450
83451         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83452         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83453         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83454         Include if available.
83455         (<xalloc.h>): Include
83456         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83457         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83458         collide with FNM macros.
83459         (struct patopts): New struct.
83460         (struct exclude): Use it, as exclude patterns now come with options.
83461         (new_exclude): Support above changes.
83462         (new_exclude, add_exclude_file):
83463         Initial size must now be a power of two to simplify overflow checking.
83464         (free_exclude, fnmatch_no_wildcards): New function.
83465         (excluded_filename): No longer requires options arg, as the options
83466         are determined by add_exclude.  Now returns bool, not int.
83467         (excluded_filename, add_exclude):
83468         Add support for the fancy new exclusion options.
83469         (add_exclude, add_exclude_file): Now takes int options arg.
83470         Check for arithmetic overflow when computing sizes.
83471         (add_exclude_file): xrealloc might modify errno, so don't
83472         realloc until after errno might be used.
83473
83474         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83475         New macros.
83476         (free_exclude): New decl.
83477         (add_exclude, add_exclude_file): Now takes int options arg.
83478         (excluded_filename): No longer requires options arg, as the options
83479         are determined by add_exclude.  Now returns bool, not int.
83480
83481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83482
83483         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83484
83485 2001-08-27  Jim Meyering  <meyering@lucent.com>
83486
83487         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83488
83489         * lib/version-etc.c (N_): Remove definition.
83490         Revert most of last change.
83491         Instead, simply don't mark the `Copyright...' string for translation.
83492         Based on advice from Paul Eggert.
83493
83494         * lib/strtoxmax.c: Tweak comment.
83495
83496 2001-08-26  Jim Meyering  <meyering@lucent.com>
83497
83498         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83499
83500         * m4/xstrtoimax.m4: New file.
83501         * m4/xstrtoumax.m4: Add comments explaining why we
83502         AC_REPLACE_FUNCS(strtol).
83503
83504 2001-08-26  Jim Meyering  <meyering@lucent.com>
83505
83506         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83507         of copyright with `%s' so translators don't get an untranslated
83508         message in 2002.
83509         (COPYRIGHT_YEAR): Define.
83510         (version_etc): Use fprintf rather than fputs.
83511         Suggestion from Ulrich Drepper.
83512
83513         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83514
83515         * lib/strtoll.c: New file, from GNU libc.
83516         * lib/xstrtoimax.c: New file.
83517
83518         * lib/xstrtol.h: Add xstrtoimax.
83519         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83520         * lib/strtoimax.c: New file.  Likewise, but first define
83521         STRTOUXMAX_SIGNED.
83522
83523         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83524         ...
83525         * lib/strtoxmax.c: ... then renamed to this.
83526
83527 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83528
83529         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83530         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83531         (jm_AC_TYPE_INTMAX_T): New macro.
83532         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83533
83534         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83535
83536         * m4/longlong.m4: Renamed from ulonglong.m4.
83537         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83538         * m4/uintmax_t.m4: Removed.
83539
83540 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83541
83542         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83543         Port to Solaris 8, where 'sed' requires a space after the 'r'
83544         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83545         Redirect output to $tmp just once.
83546
83547 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83548
83549         * lib/addext.c (<errno.h>): Include.
83550         (errno): Declare if not defined.
83551         (addext): Work correctly when pathconf returns -1 and leaves
83552         errno alone because there is no limit.  Also, work even if
83553         pathconf returns a value greater than SIZE_MAX.
83554
83555 2001-08-12  Jim Meyering  <meyering@lucent.com>
83556
83557         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83558         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83559         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83560         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83561         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83562         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83563         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83564         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83565         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83566         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83567         utime.m4, utimes.m4, xstrtoumax.m4:
83568         Quote the first argument in each use of AC_DEFUN.
83569
83570 2001-08-12  Jim Meyering  <meyering@lucent.com>
83571
83572         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83573         Simply `return getcwd (NULL, 0);'.
83574         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83575         Use 1300 as initial value for length, not PATH_MAX.
83576
83577         * lib/pathmax.h: Clean up cpp syntax.
83578
83579 2001-08-12  Jim Meyering  <meyering@lucent.com>
83580
83581         * lib/gettimeofday.c: New file.
83582         * lib/gtod.h: New file.
83583         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83584
83585 2001-08-05  Jim Meyering  <meyering@lucent.com>
83586
83587         * m4/jm-macros.m4: Require autoconf-2.52.
83588
83589 2001-08-04  Jim Meyering  <meyering@lucent.com>
83590
83591         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83592         stmt, to get in sync with glibc.
83593
83594 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83595
83596         The following changes are from gettext 0.10.39 as maintained by
83597         Bruno Haible.
83598
83599         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83600         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83601         with inverted sense.  All uses changed.
83602
83603         * lib/mbswidth.c: Don't include <limits.h>.
83604         Include <stdlib.h> and <string.h> unconditionally.
83605         (iswcntrl, mbsinit, ISCNTRL): New macros.
83606         (mbsnwidth): Use K&R style function declarations.
83607         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83608         can optimize it when MB_CUR_MAX == 1.
83609         The width of control characters is zero, not 1.
83610
83611 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83612
83613         The following changes are from gettext 0.10.39 as maintained by
83614         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83615
83616         * m4/codeset.m4: Upgrade to serial AM1.
83617         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83618         all uses changed.  Quote first arg of AC_DEFUN.
83619         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83620
83621         * m4/iconv.m4: Upgrade to serial AM2.
83622         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83623         Add --with-libconv-prefix.
83624         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83625         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83626         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83627         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83628         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83629
83630         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83631         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83632         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83633         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83634         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83635         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83636         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83637         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83638         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83639
83640         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83641         string.h any more.
83642
83643         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83644         not the default value.
83645
83646         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83647         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83648         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83649         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83650         Also check for iswcntrl, used for wcwidth fallback.
83651         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83652         to Autoconf 2.13.
83653
83654 2001-08-03  Jim Meyering  <meyering@lucent.com>
83655
83656         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83657         as it was in the original.  Reported by Paul Eggert.
83658
83659 2001-07-16  Jim Meyering  <meyering@lucent.com>
83660
83661         * m4/gettimeofday.m4: New file.
83662         Prompted by a report from Bernhard Baehr.
83663
83664 2001-07-15  Jim Meyering  <meyering@lucent.com>
83665
83666         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83667         stuff. Now it's in ../Makefile.cfg.
83668
83669 2001-07-15  Jim Meyering  <meyering@lucent.com>
83670
83671         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83672         (BUILT_SOURCES): Add unlocked-io.h.
83673         (io_functions): Define.
83674         (unlocked-io.h): New rule.
83675         (DISTCLEANFILES): Add unlocked-io.h.
83676         (all-local): Depend on unlocked-io.h, to ensure it is created.
83677
83678         * lib/unlocked-io.hin: New file
83679
83680         * lib/regex.c: Update from glibc.
83681
83682 2001-07-05  Jim Meyering  <meyering@lucent.com>
83683
83684         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83685         recommendation.
83686         (libfetish_a_SOURCES): Put all .h files here instead.
83687         Remove a thus-exposed (better checks in automake) duplicate and
83688         two unnecessary .h files.
83689
83690 2001-07-04  Jim Meyering  <meyering@lucent.com>
83691
83692         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83693         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83694         distcheck failure.
83695
83696 2001-07-02  Jim Meyering  <meyering@lucent.com>
83697
83698         The following changes were prompted by suggestions from Bruno Haible.
83699
83700         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83701         is now generated.
83702         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83703         definition of EXTRA_DIST.
83704         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83705         ensure that the generated file is created/updated whenever the list
83706         of $(unlocked_functions) is changed.
83707         (jm-glibc-io.m4): New rule.
83708         (unlocked-io.h): New rule -- currently unused.
83709
83710 2001-06-24  Jim Meyering  <meyering@lucent.com>
83711
83712         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83713         unmatched right bracket, rather than kludging it with an extra,
83714         falsely-matching quote in a comment.  Patch by Akim Demaille.
83715
83716 2001-06-11  Jim Meyering  <meyering@lucent.com>
83717
83718         * lib/regex.c: Update from GNU libc.
83719
83720 2001-05-27  Jim Meyering  <meyering@lucent.com>
83721
83722         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83723         Check for ut_type in struct utmp.
83724
83725 2001-05-27  Jim Meyering  <meyering@lucent.com>
83726
83727         * lib/readutmp.h (UT_TYPE): Define.
83728
83729 2001-05-24  Jim Meyering  <meyering@lucent.com>
83730
83731         * lib/argmatch.c: Include "quote.h".
83732         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83733         quote function.  Reported by Göran Uddeborg.
83734
83735 2001-05-22  Jim Meyering  <meyering@lucent.com>
83736
83737         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83738         now that we use the package-supplied version unconditionally.
83739         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83740
83741 2001-05-21  Jim Meyering  <meyering@lucent.com>
83742
83743         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83744         shell syntax errors.
83745
83746 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83747
83748         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83749
83750 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83751
83752         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83753         Don't bother to check library strftime, since
83754         we'll be using our own my_strftime function anyway.
83755         Define my_strftime instead of strftime.
83756
83757 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83758
83759         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83760         which is not yet declared.
83761
83762 2001-05-15  Jim Meyering  <meyering@lucent.com>
83763
83764         * m4/regex.m4: Use proper quoting so brackets appear in the test
83765         program.
83766         Reported by, and with help from, Bruno Haible.
83767
83768 2001-05-13  Jim Meyering  <meyering@lucent.com>
83769
83770         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83771         undefined.
83772
83773 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83774
83775         dirname code cleanup.  base_name now behaves more compatibly
83776         with POSIX basename when given file names that have trailing
83777         slashes, and similarly for dir_name.  Add new primitives
83778         base_len and dir_len.  Put the directory-name-related decls
83779         into dirname.h.
83780
83781         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83782         * lib/backupfile.c (base_name): Likewise.
83783         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83784         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83785         * lib/makepath.c (strip_trailing_slashes): Likewise.
83786         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83787         ISSLASH): Likewise.
83788         * lib/rename.c (strip_trailing_slashes): Likewise.
83789         * lib/same.c (base_name): Likewise.
83790         * lib/stripslash.c (ISSLASH): Likewise.
83791
83792         * lib/addext.c: Include <dirname.h> after size_t is defined.
83793         * lib/backupfile.c: Likewise.
83794
83795         * lib/addext.c (addext): Use base_len to trim redundant
83796         trailing slashes instead of doing it ourselves.
83797         But do not trim the last slash if it is not redundant.
83798
83799         * lib/backupfile.c (find_backup_file_name,
83800         max_backup_version): Use base_len instead of rolling it ourselves.
83801         Handle the case of "" and (on DOS) "C:" correctly.
83802
83803         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83804         needed. Include <string.h>, <dirname.h>.
83805         (base_name): Allow file names ending in slashes, other than names
83806         that are all slashes.  In this case, return the basename followed
83807         by the slashes.  This is more general, and can be used in places
83808         where the original base_name purposely had an assertion failure.
83809         (base_len): New function.
83810
83811         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83812         Do not include <assert.h>; no longer needed.
83813         Include xalloc.h.
83814         (memrchr): Remove decl.
83815         (dir_name_r): Remove.
83816         (dir_len): Renamed from dirlen.  All callers changed.
83817         Rewrite in terms of base_name, for simplicity and consistency.
83818         (dir_name): Never return NULL.  All callers changed.
83819         Do not include <stdlib.h> in test program; no longer needed.
83820         return 0; is fine for test program.
83821
83822         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83823         New macros.
83824         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83825
83826         * lib/path-concat.c (path_concat): Use base_len to compute
83827         base length, not strlen; this means we cannot rely on memcpy
83828         to null-terminate.
83829
83830         * lib/same.c (STREQ): Remove.
83831         (same_name): Handle the case where the basename ends in trailing '/'.
83832
83833         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83834         a slash was stripped.  Do not strip the last slash after a
83835         file system prefix.
83836
83837 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83838
83839         * lib/Makefile.am (libfetish_a_SOURCES):
83840         Add strftime.c, since we now compile it on all hosts.
83841
83842         * lib/strftime.c (my_strftime):
83843         Define to nstrftime if emacs, but only if my_strftime is not defined.
83844         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83845         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83846         Add one more extra argument: a nanoseconds value.
83847         All uses changed.
83848         (ns): New macro.
83849         (my_strftime function): Add %N format.
83850         (emacs_strftimeu): Renamed from emacs_strftime,
83851         with extra ut argument.
83852
83853 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83854
83855         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83856
83857 2001-04-21  Jim Meyering  <meyering@lucent.com>
83858
83859         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83860         doesn't interfere.
83861
83862 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83863
83864         * m4/ftruncate.m4: Check for chsize.
83865         Link with ftruncate.o unconditionally if ftruncate is missing.
83866         This was required when cross-compiling to i586-mingw32msvc.
83867
83868 2001-04-08  Jim Meyering  <meyering@lucent.com>
83869
83870         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83871         recomputed; that's necessary when the offset spans a DST transition.
83872         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83873
83874 2001-04-02  Jim Meyering  <meyering@lucent.com>
83875
83876         * lib/regex.h, regex.c: Update from GNU libc.
83877
83878 2001-03-24  Jim Meyering  <meyering@lucent.com>
83879
83880         * m4/jm-macros.m4: Require autoconf-2.49d.
83881
83882 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83883
83884         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83885
83886 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83887
83888         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83889
83890 2001-03-17  Jim Meyering  <meyering@lucent.com>
83891
83892         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83893         now that the version in autoconf is equivalent.
83894         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83895
83896         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83897         Suggestion from Akim Demaille.
83898
83899         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83900         (jm_PREREQ_TEMPNAME): New function.
83901
83902 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83903
83904         * lib/tempname.c (uint64_t): Define to uintmax_t if
83905         not defined, and if UINT64_MAX is not defined.
83906         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83907         Reported by John David Anglin.
83908
83909 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83910
83911         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83912         resolve alias if codeset is empty.
83913         * lib/config.charset (BeOS): Use wildcard syntax.
83914
83915 2001-03-13  Jim Meyering  <meyering@lucent.com>
83916
83917         * lib/path-concat.c (path_concat)
83918         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83919         concatenating e.g., `C:' and `foo'.
83920         From Bruno Haible.
83921
83922 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83923
83924         * lib/localcharset.c (locale_charset): Don't use
83925         setlocale(LC_CTYPE,NULL). Don't return NULL.
83926         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83927
83928 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83929
83930         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83931         support for DOS/DJGPP.
83932
83933 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83934
83935         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83936         lacks mkstemp.  Compile our own tempname.c if we compile our own
83937         mkstemp.c, as mkstemp relies on tempname.
83938
83939 2001-03-01  Jim Meyering  <meyering@lucent.com>
83940
83941         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83942         AH_VERBATIM really does output its argument verbatim.
83943
83944 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83945
83946         * lib/Makefile.am (libfetish_a_SOURCES):
83947         Add dup-safer.c, fopen-safer.c.
83948         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83949
83950         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83951         * lib/unistd-safer.h: New files.
83952
83953 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83954
83955         The mkstemp replacement is taken from glibc 2.2.2, with some
83956         portability fixes for use outside glibc, as follows:
83957
83958         * lib/tempname.c (struct_stat64): New macro.
83959         (direxists, __gen_tempname): Use it.
83960         This avoids a portability problem with Solaris 8.
83961
83962         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83963         (<stddef.h>, <stdint.h>, <string.h>):
83964         Include only if STDC_HEADERS || _LIBC.
83965         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83966         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83967         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83968         (__set_errno): Define this macro if <errno.h> doesn't.
83969         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83970         Define these macros if <stdio.h> doesn't.
83971         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83972         Define these macros if <sys/stat.h>
83973         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83974         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83975         __xstat64): Define if not _LIBC.
83976         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83977         (__gen_tempname): Invoke gettimeofday only if
83978         HAVE_GETTIMEOFDAY || _LIBC;
83979         otherwise, fall back on plain "time".
83980         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83981
83982         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83983
83984         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83985
83986 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83987
83988         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83989
83990 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83991
83992         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83993         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83994         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83995         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83996
83997 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83998
83999         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84000         Remove workaround macros for hosts that have mbrtowc but not
84001         mbstate_t, as we now insist on proper declarations for both
84002         before using mbrtowc.
84003
84004 2001-02-17  Jim Meyering  <meyering@lucent.com>
84005
84006         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84007         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84008         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84009         UnixWare 7.1.1.
84010
84011         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84012         rather than AC_CACHE_VAL.
84013
84014 2001-02-17  Jim Meyering  <meyering@lucent.com>
84015
84016         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84017         around included file name.
84018
84019         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84020
84021         * lib/strftime.c: Update from GNU libc (the only changes were to
84022         comments).
84023
84024 2001-02-17  Jim Meyering  <meyering@lucent.com>
84025
84026         * lib/regex.c: Update from libc.
84027
84028 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84029
84030         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84031         clash.
84032
84033 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84034
84035         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84036         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84037         Reported by Mark Hounschell via Paul Eggert.
84038
84039 2001-02-07  Jim Meyering  <meyering@lucent.com>
84040
84041         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84042
84043 2001-02-05  Jim Meyering  <meyering@lucent.com>
84044
84045         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84046         it includes the patch required for `large file' support with at least
84047         HP-UX's 10.20 /bin/cc.
84048
84049 2001-02-03  Jim Meyering  <meyering@lucent.com>
84050
84051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84052         AS_IF, now that it works once again (mysteriously).
84053         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84054
84055 2001-01-30  Jim Meyering  <meyering@lucent.com>
84056
84057         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84058         * m4/chown.m4: Rename conftestchown to conftest.chown.
84059         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84060         s/conftestdir2/conftest.d2/.
84061         * m4/utimes.m4: s/conftestdata/conftest.data/
84062         Inspired by Pavel Roskin's change in autoconf.
84063
84064 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84065
84066         * lib/config.charset: Update for FreeBSD 4.2.
84067
84068 2001-01-27  Jim Meyering  <meyering@lucent.com>
84069
84070         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84071         a use of AS_IF.
84072         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84073
84074 2001-01-26  Jim Meyering  <meyering@lucent.com>
84075
84076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84077         quotearg.c includes it.
84078
84079 2001-01-26  Jim Meyering  <meyering@lucent.com>
84080
84081         * lib/quotearg.c: Include stddef.h.
84082         * lib/quote.c: Include stddef.h.
84083         Reported by Axel Kittenberger.
84084
84085         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84086         line in double quotes so that it evokes a better diagnostic.
84087         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84088         Reported by Axel Kittenberger.
84089
84090 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84091
84092         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84093         as if it was a `charset'.
84094
84095 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84096
84097         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84098         has const.
84099
84100 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84101
84102         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84103         to avoid a warning.  Add back 'const' to inptr.
84104
84105 2001-01-20  Jim Meyering  <meyering@lucent.com>
84106
84107         Be sure that headers are checked before used in code compiled
84108         for the type checks.
84109         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84110         In place of that, invoke jm_CHECK_ALL_TYPES.
84111         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84112         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84113         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84114         The check for ssize_t was mistakenly run before the test for unistd.h.
84115
84116         The configure-time check for stdbool.h was missing.
84117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84118         (jm_PREREQ_HASH): New function.
84119
84120 2001-01-17  Jim Meyering  <meyering@lucent.com>
84121
84122         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84123         for autoconf-2.49c.
84124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84125
84126 2001-01-16  Jim Meyering  <meyering@lucent.com>
84127
84128         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84129         From Bruno Haible.
84130
84131 2001-01-14  Jim Meyering  <meyering@lucent.com>
84132
84133         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84134         foo and bar.  Create conftestdir/ in the script, not in the C code.
84135         Remove directories in the script, not in the C code.
84136         Remove conftestdir{,2} before trying to create the directory.
84137         Make the entire configure script fail if the mkdir fails.
84138
84139 2001-01-14  Jim Meyering  <meyering@lucent.com>
84140
84141         * lib/rename.c: New file.  From Volker Borchert.
84142         Include stdlib.h, string.h or strings.h, and xalloc.h.
84143         Use strip_trailing_slashes rather than open-coding it.
84144
84145 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84146
84147         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84148
84149 2001-01-03  Jim Meyering  <meyering@lucent.com>
84150
84151         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84152         of local `inptr' to avoid warning with some system declarations of
84153         iconv.
84154
84155 2001-01-02  Volker Borchert  <bt@teknon.de>
84156
84157         * m4/rename.m4: New file.
84158         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84159
84160 2001-01-01  Jim Meyering  <meyering@lucent.com>
84161
84162         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84163         even on systems with utmpx.h.  It's necessary for the declaration of
84164         utmp's ut_user member.  Reported by Andreas Jaeger.
84165
84166         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84167         available. They are required for the declarations of getgrgid and
84168         getpwuid resp.
84169         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84170         Reported by Andreas Jaeger.
84171
84172 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84173
84174         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84175         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84176         so `make install' also works in VPATH builds.
84177
84178 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84179
84180         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84181         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84182         can be used in subdirectories.
84183
84184 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84185
84186         * lib/modechange.c: Do not assume that mode_t uses the
84187         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84188         the other-execute bit of FOO even if S_IXOTH != 1.
84189
84190         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84191         WOTH, XOTH, ALLM): New macros.
84192         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84193          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84194         Use them.
84195         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84196         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84197         (mode_compile):
84198         No need to use uintmax_t; unsigned long is long enough.
84199         Don't bother to get suffix since we don't use it.
84200
84201 2000-12-26  Jim Meyering  <meyering@lucent.com>
84202
84203         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84204         better with autoheader.
84205
84206 2000-12-24  Jim Meyering  <meyering@lucent.com>
84207
84208         * lib/hash.c (is_prime): Return explicit boolean values.
84209         (hash_get_first): Return NULL to appease Irix5.6's 89.
84210         Reported by Nelson Beebe.
84211
84212 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84213
84214         * lib/localcharset.c (locale_charset): Add support for Win32.
84215
84216 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84217
84218         * lib/physmem.h, lib/physmem.c: New files.
84219
84220         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84221         (noinst_HEADERS): Add physmem.h.
84222
84223         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84224         't' for compatibility with Solaris 8 sort.
84225
84226 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84227
84228         * lib/config.charset: Add support for BeOS.
84229
84230 2000-12-17  Jim Meyering  <meyering@lucent.com>
84231
84232         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84233         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84234
84235 2000-12-16  Jim Meyering  <meyering@lucent.com>
84236
84237         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84238         N and M) would have treated it like `chown N:N FILE'.
84239
84240         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84241
84242 2000-12-16  Jim Meyering  <meyering@lucent.com>
84243
84244         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84245         SHELLS_FILE to a file name that's useful on djgpp systems.
84246         Include stdlib.h.
84247         (ADDITIONAL_DEFAULT_SHELLS): Define.
84248         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84249         Based mostly on a patch from Prashant TR.
84250
84251 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84252
84253         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84254         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84255         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84256
84257 2000-12-08  Andreas Schwab  <schwab@suse.de>
84258
84259         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84260         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84261
84262 2000-12-07  Jim Meyering  <meyering@lucent.com>
84263
84264         * lib/stripslash.c (ISSLASH): Define.
84265         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84266         `/'.
84267         From Prashant TR.
84268
84269         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84270         (dir_name_r): Declare this function as static.
84271         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84272         manifest itself on a name containing a mix of slashes and
84273         backslashes.
84274         Make this function work with names starting with a DOS-style
84275         drive letter and colon prefix.
84276         (dir_name): Append `.' if necessary.
84277         Based mostly on patches from Prashant TR and Eli Zaretskii.
84278
84279         * lib/dirname.h (dir_name_r): Remove prototype.
84280
84281 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84282
84283         * m4/off_t-format.m4: Remove this file.
84284         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84285
84286 2000-12-06  Jim Meyering  <meyering@lucent.com>
84287
84288         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84289         replacement strtoull, we may well need the replacement strtoul, too.
84290         Check for declarations of strtoul and strtoull.
84291         Check for strtol.  Mainly as a cue to cause automake to include
84292         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84293         Check for limits.h -- strtol.c needs it.
84294
84295 2000-12-05  Jim Meyering  <meyering@lucent.com>
84296
84297         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84298
84299 2000-12-04  Jim Meyering  <meyering@lucent.com>
84300
84301         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84302         Also include memory.h, stdlib.h, unistd.h if appropriate.
84303         Reported by Andreas Jaeger (conflicting declaration of malloc).
84304
84305 2000-12-02  Jim Meyering  <meyering@lucent.com>
84306
84307         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84308         * m4/jm-macros.m4 (jm_MACROS): require it.
84309
84310 2000-12-02  Jim Meyering  <meyering@lucent.com>
84311
84312         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84313
84314 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84315
84316         * lib/memrchr.c: Include <config.h> before any system include file.
84317
84318 2000-11-30  Jim Meyering  <meyering@lucent.com>
84319
84320         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84321
84322 2000-11-30  Jim Meyering  <meyering@lucent.com>
84323
84324         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84325
84326 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84327
84328         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84329
84330 2000-11-26  Jim Meyering  <meyering@lucent.com>
84331
84332         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84333
84334 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84335
84336         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84337         size of (size_t) -1; it's not portable.
84338
84339 2000-11-17  Jim Meyering  <meyering@lucent.com>
84340
84341         * lib/strstr.c: Update from GNU libc.
84342
84343 2000-11-17  Akim Demaille  <akim@epita.fr>
84344
84345         * lib/obstack.h: Formatting changes.
84346         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84347         prevent type checking.
84348         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84349         cast the value to (void *): assigning a `foo *' to a `void *'
84350         variable is valid.
84351         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84352
84353 2000-11-16  Jim Meyering  <meyering@lucent.com>
84354
84355         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84356
84357 2000-11-11  Jim Meyering  <meyering@lucent.com>
84358
84359         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84360
84361 2000-11-10  Jim Meyering  <meyering@lucent.com>
84362
84363         * lib/obstack.h: Update from GNU libc.
84364         * lib/obstack.c: Likewise.
84365
84366 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84367
84368         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84369
84370 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84371
84372         * lib/getusershell.c (setusershell): Use rewind rather than
84373         fseek/fseeko, to avoid configuration hassles with fseeko.
84374         Don't bother opening SHELLS_FILE if shellstream is NULL;
84375         it's not necessary.
84376
84377 2000-11-05  Jim Meyering  <meyering@lucent.com>
84378
84379         * lib/makepath.h (make_dir): Declare.
84380         * lib/makepath.c (make_dir): Remove `static' attribute.
84381         Tweak a comment.
84382
84383 2000-11-04  Jim Meyering  <meyering@lucent.com>
84384
84385         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84386
84387 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84388
84389         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84390         last one in a bucket, advance to the next bucket.
84391
84392 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84393
84394         * lib/fnmatch.c: Do not comment out all the code if we are using
84395         the GNU C library, because in some cases we are replacing buggy
84396         code in the GNU C library itself.
84397
84398 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84399
84400         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84401         (regex_compile): Catch bogus \(\1\).
84402
84403 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84404
84405         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84406         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84407         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84408
84409 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84410
84411         * lib/error.h, getline.h, modechange.h:
84412         Remove "2000" from Copyright line, as the file hasn't been
84413         changed this year other than in the copyright notice.
84414
84415         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84416         was changed this year.
84417
84418 2000-10-29  Jim Meyering  <meyering@lucent.com>
84419
84420         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84421         renaming.
84422         * m4/ls-mntd-fs.m4: Likewise
84423
84424 2000-10-29  Jim Meyering  <meyering@lucent.com>
84425
84426         * lib/xstat.in: Fix grammar in comment.
84427
84428 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84429
84430         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84431         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84432         doesn't define __restrict_arr.
84433
84434 2000-10-28  Jim Meyering  <meyering@lucent.com>
84435
84436         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84437         (jm_PREREQ_MEMCHR): New function.
84438
84439 2000-10-28  Jim Meyering  <meyering@lucent.com>
84440
84441         * lib/memchr.c: Update from libc.
84442         Adjust for portability:
84443         [HAVE_STDLIB_H]: Include stdlib.h.
84444         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84445         Undef __memchr, too.
84446         [!weak_alias]: Define __memchr to memchr.
84447
84448         * lib/regex.c: Update from libc.
84449         * lib/regex.h: Likewise.
84450         * lib/getopt1.c: Likewise.
84451         * lib/memcmp.c: Likewise.
84452
84453         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84454         Avoid using fseek, when possible -- it's broken by design.
84455         Patch by Ulrich Drepper.
84456
84457 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84458
84459         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84460         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84461         Giving in to popular pressure to shut up the compiler with casts.
84462
84463 2000-10-26  Jim Meyering  <meyering@lucent.com>
84464
84465         * lib/strftime.c: Update from libc.
84466
84467 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84468
84469         * regex.c: More `unsigned char' -> `re_char' changes.
84470         Also change several `int' into `re_wchar_t'.
84471         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84472         (PUSH_FAILURE_POINTER): Don't cast any more.
84473         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84474         We want GCC to complain, since this piece of code makes
84475         re_match non-reentrant, which *should* be fixed.
84476         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84477         (EXTEND_BUFFER): Use RETALLOC.
84478         (SET_LIST_BIT): Don't cast.
84479         (re_wchar_t): New type.
84480         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84481         that those two functions will always properly return.
84482         (IMMEDIATE_QUIT_CHECK): Cast to void.
84483         (analyse_first): Use recursion rather than an explicit stack.
84484         (re_compile_fastmap): Can't fail anymore.
84485         (re_search_2): Don't check re_compile_fastmap for failure.
84486         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84487         Now also sets the new value (passed in a new argument).
84488         (re_match_2_internal): Use it.
84489         Also, use a new var `reg' of type size_t when looping through regs
84490         rather than reuse the inappropriate `mcnt'.
84491
84492 2000-10-25  Jim Meyering  <meyering@lucent.com>
84493
84494         * lib/obstack.c: Update from libc.
84495
84496 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84497
84498         * regex.c (regex_compile): Change the way of handling a range from
84499         a char less than 256 to a char not less than 256.
84500
84501 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84502
84503         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84504         NT-Emacs only.
84505         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84506         so that re_search functions only quit when callers expect them to.
84507
84508 2000-10-23  Jim Meyering  <meyering@lucent.com>
84509
84510         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84511         wrong.  That set_locale call must not have any side effects.
84512         From Paul Eggert.
84513
84514 2000-10-22  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84517         [CYCLIC]: Remove now-unused definition.
84518
84519         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84520         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84521         Suggestion from Ulrich Drepper.
84522
84523 2000-10-21  Jim Meyering  <meyering@lucent.com>
84524
84525         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84526         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84527         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84528
84529 2000-10-21  Jim Meyering  <meyering@lucent.com>
84530
84531         * lib/dirname.c (memrchr): Declare if necessary.
84532         (dir_name): Remove the restriction that there be no
84533         trailing slashes.  Now, this code skips past them, effectively
84534         ignoring them.
84535         [TEST_DIRNAME] (main): New unit tests.
84536
84537         * lib/memrchr.c: New file from GNU libc.
84538         Undef __memrchr, too.
84539         [!weak_alias]: Define __memrchr to memrchr.
84540         Guard weak_alias use with `#ifdef weak_alias'.
84541
84542 2000-10-21  Jim Meyering  <meyering@lucent.com>
84543
84544         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84545         (dir_name): Use dir_name_r.
84546         * lib/dirname.h (dir_name_r): Declare it.
84547
84548 2000-10-17  Jim Meyering  <meyering@lucent.com>
84549
84550         * lib/quote.h (PARAMS): Define and use.
84551         Reported by Akim Demaille.
84552
84553         * lib/getopt.c: Update from libc.
84554
84555 2000-10-16  Jim Meyering  <meyering@lucent.com>
84556
84557         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84558         setlocale.
84559         From Jan Fedak.
84560
84561 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84562
84563         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84564
84565 2000-09-25  Jim Meyering  <meyering@lucent.com>
84566
84567         * lib/md5.h (rol): Define (from GnuPG).
84568
84569         * lib/sha.c: Give credit (GnuPG) where due.
84570         (M): Use rol rather than open-coding it.
84571         Add a FIXME comment.
84572
84573 2000-09-21  Jim Meyering  <meyering@lucent.com>
84574
84575         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84576         Reported by Michael Stone.
84577
84578 2000-09-20  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84581         (noinst_HEADERS): Add sha.h.
84582         Based on code from Scott G. Miller and from GnuPG.
84583
84584 2000-09-18  Jim Meyering  <meyering@lucent.com>
84585
84586         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84587         LIBS. Otherwise, everyone ends up linking with -lelf for some
84588         configurations.
84589         Reported by Mike Stone.
84590
84591 2000-09-15  Jim Meyering  <meyering@lucent.com>
84592
84593         * lib/regex.c: Update from libc.
84594
84595 2000-09-10  Jim Meyering  <meyering@lucent.com>
84596
84597         * lib/getopt.c (_getopt_internal): Update from glibc.
84598
84599 2000-09-09  Jim Meyering  <meyering@lucent.com>
84600
84601         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84602         think it should be used as a general replacement for isascii.
84603         * lib/fnmatch.c: Likewise.
84604         * lib/mbswidth.c: Likewise
84605         * lib/regex.c: Likewise.
84606
84607         Don't use atoi.
84608         * lib/userspec.c: Include sys/param.h and limits.h.
84609         Include xstrtol.h.
84610         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84611         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84612         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84613         UID, GID.  Check range.
84614
84615 2000-09-06  Jim Meyering  <meyering@lucent.com>
84616
84617         * lib/getopt.c (_getopt_internal): Update from glibc.
84618
84619 2000-08-30  Jim Meyering  <meyering@lucent.com>
84620
84621         * lib/strftime.c: Merge in changes from GNU libc.
84622
84623 2000-08-26  Jim Meyering  <meyering@lucent.com>
84624
84625         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84626         * m4/fpending.m4: New file.
84627
84628 2000-08-26  Jim Meyering  <meyering@lucent.com>
84629
84630         * lib/closeout.c: Include "__fpending.h".
84631         (close_stdout_status): Return right away if there's nothing to flush.
84632
84633         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84634         * lib/__fpending.c: New file.
84635         * lib/__fpending.h: New file.
84636
84637 2000-08-20  Jim Meyering  <meyering@lucent.com>
84638
84639         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84640         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84641         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84642
84643 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84644
84645         Improve fileutils installation on systems where running
84646         programs (like install) can't be unlinked.
84647         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84648         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84649
84650 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84651
84652         Standardize on "memory exhausted" instead of "Memory exhausted"
84653         or "virtual memory exhausted".
84654         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84655         "virtual memory exhausted".
84656         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84657         our own message.
84658         * lib/userspec.c (parse_user_spec): Likewise.
84659         * lib/bumpalloc.h: comment fix
84660         * lib/same.c, userspec.c: Include xalloc.h.
84661
84662         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84663         not char *const and pointing to a constant array.
84664         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84665         (xrealloc): Comment fix.
84666
84667         * lib/userspec.c (parse_user_spec):
84668         Don't translate a message until just before returning,
84669         to avoid unnecessary translation.
84670
84671 2000-08-07  Jim Meyering  <meyering@lucent.com>
84672
84673         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84674         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84675         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84676         getgroups.c, gethostname.c, getopt.h, group-member.c,
84677         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84678         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84679         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84680         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84681         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84682         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84683         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84684         yesno.c: Back out Copyright date changes for each file with no change
84685         this year.  This eases coordination with other programs using the same
84686         source code modules.  From Paul Eggert.
84687
84688 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84689
84690         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84691         not char, for compatibility with glibc 2.1.3 strftime.c.
84692
84693 2000-08-03  Greg McGary  <greg@mcgary.org>
84694
84695         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84696         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84697         (EXTEND_BUFFER): Use them.
84698
84699 2000-08-01  Jim Meyering  <meyering@lucent.com>
84700
84701         * lib/dirname.c (ISSLASH): Define.
84702         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84703         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84704         both `\' and `/' may be use as path separators.
84705         Based on a patch from Prashant TR.
84706
84707 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84708
84709         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84710         slot vector a constant, since it might get modified.
84711
84712 2000-07-31  Jim Meyering  <meyering@lucent.com>
84713
84714         * lib/xmalloc.c: Use `virtual memory exhausted', not
84715         `Memory exhausted'.
84716         * lib/obstack.c (print_and_abort): Likewise.
84717
84718 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84719
84720         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84721         buffer, so that the caller can always quote one small
84722         component of a "memory exhausted" message in slot 0.
84723         From a suggestion by Jim Meyering.
84724
84725 2000-07-30  Jim Meyering  <meyering@lucent.com>
84726
84727         * lib/makepath.c (make_path): Quote the other instance, too.
84728
84729         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84730         (STATIC_BUF_SIZE): Define.
84731         (quotearg_n_options): Use only statically allocated storage when
84732         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84733         than STATIC_BUF_SIZE.
84734
84735 2000-07-29  Jim Meyering  <meyering@lucent.com>
84736
84737         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84738         * lib/dirname.c (dir_name): Likewise.
84739
84740         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84741         `/'.
84742
84743         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84744         (dir_name): Assert that there are no trailing slashes.
84745
84746 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84747
84748         * lib/mbswidth.h (mbswidth): Add a flags argument.
84749         (mbswidth): New declaration.
84750         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84751         * lib/mbswidth.c (mbswidth): Add a flags argument.
84752         (mbsnwidth): New function.
84753
84754 2000-07-24  Jim Meyering  <meyering@lucent.com>
84755
84756         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84757
84758 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84759
84760         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84761
84762 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84763
84764         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84765         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84766         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84767         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84768         invoke multibyte primitives.
84769
84770 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84771
84772         * lib/quotearg.c:
84773         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84774         so that mbstate_t is always defined.
84775
84776         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84777         be 1 in at least one GCC installation, and this configuration
84778         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84779         performance on hosts that have mbrtowc but have only unibyte
84780         locales, but I assume these hosts are rare.
84781
84782 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84783
84784         * lib/mbswidth.c (_XOPEN_SOURCE):
84785         Don't define; this causes problems on Solaris 7.
84786         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84787
84788 2000-07-23  Jim Meyering  <meyering@lucent.com>
84789
84790         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84791         too: getgrgid, getpwuid, getuid.
84792
84793 2000-07-23  Jim Meyering  <meyering@lucent.com>
84794
84795         * lib/basename.c (base_name): Add an assertion.
84796
84797 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84798
84799         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84800         shadow its mbsinit function.
84801
84802 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84803
84804         * lib/mbswidth.h: New file.
84805         * lib/mbswidth.c: New file.
84806         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84807         (noinst_HEADERS): Add mbswidth.h.
84808
84809 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84810
84811         * lib/config.charset: Add support for FreeBSD. Improve support for
84812         HP-UX and IRIX 6.
84813
84814 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84815
84816         * m4/mbswidth.m4: New file.
84817         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84818
84819 2000-07-15  Jim Meyering  <meyering@lucent.com>
84820
84821         * lib/makepath.c: Include quote.h.
84822         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84823         corresponding argument in a `quote (...)' call.
84824         Give better diagnostics.
84825
84826         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84827         (noinst_HEADERS): Add quote.h.
84828
84829         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84830         from tar's src/misc.c.
84831         * lib/quote.h: New file.  Prototypes for same.
84832
84833 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84834
84835         From a suggestion by Bruno Haible.
84836         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84837         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84838         to decide whether to define the BeOS workaround macro;
84839         this adjusts to the change to AC_MBSTATE_T.
84840
84841 2000-07-14  Jim Meyering  <meyering@lucent.com>
84842
84843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84844         jm_AC_TYPE_UINTMAX_T.
84845
84846 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84847
84848         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84849
84850         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84851         quotearg_buffer_restyled): Add support for
84852         clocale_quoting_style.  Undo previous change to
84853         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84854         and "{RIGHT QUOTATION MARK}" msgids.
84855
84856 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84857
84858         From a suggestion by Bruno Haible.
84859         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84860         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84861         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84862         and mbstate_t, to a single-part test that simply defines mbstate_t.
84863         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84864         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84865
84866 2000-07-10  Jim Meyering  <meyering@lucent.com>
84867
84868         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84869
84870         * m4/gnu-source.m4: Output to confdefs.h directly.
84871         Suggestion from Akim Demaille.
84872
84873 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84874
84875         The old behavior of quoting `like this' doesn't look good with
84876         newer, ISO-style fonts.  See:
84877         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84878
84879         Instead, quote "like this" by default.  Let the translator
84880         tailor the locale-specific quoting behavior by providing
84881         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84882
84883         * lib/quotearg.c (N_): New macro.
84884         (gettext_default): New function.
84885         (quotearg_buffer_restyled): Use
84886         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84887         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84888
84889 2000-07-09  Jim Meyering  <meyering@lucent.com>
84890
84891         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84892         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84893
84894         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84896
84897 2000-07-09  Jim Meyering  <meyering@lucent.com>
84898
84899         * lib/Most files: Update copyright dates to include 2000.
84900
84901 2000-07-08  Jim Meyering  <meyering@lucent.com>
84902
84903         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84904         if not defined.
84905         (xgethostname): Remove now-unnecessary #ifdef.
84906         Move declaration of `err' into loop where it's used.
84907
84908 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84909         and Bruno Haible  <haible@clisp.cons.org>
84910
84911         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84912         only if the test for an object-type mbstate_t fails.  This
84913         prevents us from mistakenly reporting that mbstate_t is a
84914         system object type after we "#define mbstate_t int" to work
84915         around its lack.
84916
84917 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84918         and Bruno Haible  <haible@clisp.cons.org>
84919
84920         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84921
84922 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84923
84924         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84925         to strerror_r.
84926         Include <ctype.h> for use of isalpha.
84927
84928 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84929
84930         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84931         by allocating a larger buffer. Test the gethostname return value for
84932         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84933         returns an error and ENAMETOOLONG isn't defined.
84934
84935 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84936
84937         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84938         dimension.
84939
84940 2000-07-04  Jim Meyering  <meyering@lucent.com>
84941
84942         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84943         of the deprecated AC_CHECKING.
84944
84945 2000-07-04  Jim Meyering  <meyering@lucent.com>
84946
84947         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84948         Reported by Bruno Haible.
84949
84950 2000-07-04  Jim Meyering  <meyering@lucent.com>
84951
84952         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84953         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84954         lacks mbrtowc.
84955
84956 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84957
84958         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84959         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84960
84961 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84962         and Bruno Haible  <haible@clisp.cons.org>
84963
84964         * lib/quotearg.c (mbrtowc):
84965         Assign to *pwc, and return 1 only if result is nonzero.
84966         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84967
84968 2000-07-03  Jim Meyering  <meyering@lucent.com>
84969
84970         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84971
84972 2000-07-03  Jim Meyering  <meyering@lucent.com>
84973
84974         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84975         This is necessary to get a definition of e.g., UTMP_FILE on
84976         HP-UX 10.20.
84977         From Bob Proulx.
84978
84979 2000-07-02  Jim Meyering  <meyering@lucent.com>
84980
84981         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84982
84983         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84984         AC_LIBOBJ(function_name).
84985         * m4/chown.m4: Likewise.
84986         * m4/fnmatch.m4: Likewise.
84987         * m4/ftruncate.m4: Likewise.
84988         * m4/getgroups.m4: Likewise.
84989         * m4/getline.m4: Likewise.
84990         * m4/group-member.m4: Likewise.
84991         * m4/jm-macros.m4: Likewise.
84992         * m4/lstat.m4: Likewise.
84993         * m4/malloc.m4: Likewise.
84994         * m4/memcmp.m4: Likewise.
84995         * m4/nanosleep.m4: Likewise.
84996         * m4/putenv.m4: Likewise.
84997         * m4/realloc.m4: Likewise.
84998         * m4/regex.m4: Likewise.
84999         * m4/stat.m4: Likewise.
85000         * m4/strftime.m4: Likewise.
85001
85002 2000-07-02  Jim Meyering  <meyering@lucent.com>
85003
85004         * lib/quotearg.c (mbstate_t): Don't define here.
85005
85006 2000-07-02  Jim Meyering  <meyering@lucent.com>
85007
85008         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85009
85010 2000-07-01  Jim Meyering  <meyering@lucent.com>
85011
85012         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85013
85014 2000-07-01  Jim Meyering  <meyering@lucent.com>
85015
85016         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85017         problem.
85018
85019 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85020
85021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85022         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85023
85024 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85025
85026         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85027         per change in ../m4/ls-mntd-fs.m4.
85028         (read_filesystem_list): Ignore symbolic links.
85029
85030 2000-06-29  Jim Meyering  <meyering@lucent.com>
85031
85032         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85033         for declaration of strcmp.
85034
85035         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85036
85037         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85038         Avoid warning by casting result to `char *' to remove `const'.
85039
85040 2000-06-28  Jim Meyering  <meyering@lucent.com>
85041
85042         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85043         included by quotearg.c, for which we perform this test.  From
85044         Bruno Haible.
85045
85046 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85047
85048         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85049         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85050         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85051
85052 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85053
85054         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85055
85056 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85057
85058         savedir now sets errno on failure and invokes xmalloc to get memory.
85059         Fix a couple of other minor bugs while we're at it.
85060
85061         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85062         (NAMLEN): Remove macro.
85063         (malloc, realloc): Remove decls.
85064         (stpcpy): Likewise.
85065         ("xalloc.h"): Include.
85066         (NAME_SIZE_DEFAULT): New macro.
85067         (savedir): Use xmalloc / xrealloc to allocate memory.
85068         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85069         Skip "" directory entries.
85070         Use strlen to calculate directory entry length, since the old method
85071         is rarely used these days and isn't worth supporting.
85072         Don't use a pointer after freeing it.
85073         Check for integer overflow when calculating allocation size.
85074         Use memcpy to copy entries, instead of stpcpy.
85075         Set errno properly when returning NULL.
85076         Check for readdir error.
85077
85078 2000-06-26  Jim Meyering  <meyering@lucent.com>
85079
85080         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85081
85082 2000-06-25  Jim Meyering  <meyering@lucent.com>
85083
85084         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85085         Linux header bug when _XOPEN_SOURCE is defined to 500.
85086
85087 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85088
85089         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85090         deficiency.
85091
85092 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85093
85094         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85095         Include xalloc.h.
85096         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85097
85098 2000-06-24  Jim Meyering  <meyering@lucent.com>
85099
85100         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85101         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85102         for which strerror does return char*, but which lacks a conveniently
85103         accessible declaration of the function.  If the compile-test says
85104         strerror_r doesn't work, then resort to a `run'-test that works on
85105         BeOS and segfaults on DEC Unix.
85106
85107 2000-06-24  Jim Meyering  <meyering@lucent.com>
85108
85109         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85110
85111 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85112
85113         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85114         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85115
85116 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85117
85118         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85119         (mbrtowc, mbstate_t): Define substitutes if
85120         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85121         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85122         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85123
85124 2000-06-23  Jim Meyering  <meyering@lucent.com>
85125
85126         * m4/afs.m4: Add missing AC_MSG_RESULT.
85127         Reported by Bruno Haible.
85128
85129         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85130         Suggestion from Bruno Haible.
85131
85132 2000-06-23  Jim Meyering  <meyering@lucent.com>
85133
85134         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85135
85136 2000-06-21  Jim Meyering  <meyering@lucent.com>
85137
85138         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85139
85140 2000-06-21  Jim Meyering  <meyering@lucent.com>
85141
85142         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85143         (noinst_HEADERS): Add getstr.h.
85144
85145         * lib/getline.c (getstr): Move into a separate file.
85146         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85147         the following changes: new parameter, delim2; both delim[12]
85148         parameters have type `int', not `char'.  The latter would lose
85149         with 8-bit delimiters.
85150         * lib/getstr.h: New file.
85151
85152 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85153
85154         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85155         than 1024, return a memory chunk of least possible size, instead
85156         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85157         Use free/xmalloc instead of xrealloc to avoid copying for very long
85158         paths.
85159
85160 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85161
85162         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85163         the empty string.
85164
85165 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85166
85167         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85168         address, not strdup.  Include <stdlib.h> and don't declare free().
85169
85170 2000-06-19  Jim Meyering  <meyering@lucent.com>
85171
85172         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85173
85174 2000-06-18  Jim Meyering  <meyering@lucent.com>
85175
85176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85177
85178         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85179         `checking whether...' message to be consistent with that of the
85180         lstat test.
85181
85182 2000-06-18  Jim Meyering  <meyering@lucent.com>
85183
85184         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85185         Besides, these days every porting target provides a mkdir function.
85186
85187         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85188         needed. (this snippet comes from src/system.h).
85189
85190 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85191
85192         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85193
85194 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85195
85196         * lib/human.c (adjust_value): New function.
85197         (human_readable_inexact): Apply rounding style even when
85198         printing approximate values.
85199
85200 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85201
85202         * lib/human.c (human_readable_inexact): Allow an input block
85203         size that is not a multiple of the output block size, and vice versa.
85204         Reported by Piergiorgio Sartor.
85205
85206 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85207
85208         * lib/getdate.y (get_date): Apply relative times after time
85209         zone indicator, not before.  Reported by Todd A. Jacobs.
85210
85211 2000-06-13  Jim Meyering  <meyering@lucent.com>
85212
85213         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85214
85215         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85216
85217 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85218
85219         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85220
85221 2000-06-12  Jim Meyering  <meyering@lucent.com>
85222
85223         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85224         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85225         optional argument.
85226         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85227         the optional argument, `lib'.
85228
85229 2000-06-08  Jim Meyering  <meyering@lucent.com>
85230
85231         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85232
85233 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85234
85235         Rewrite largefile configuration so that we don't need to run
85236         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85237         AC_CANONICAL_HOST in configure.in -- jmm]
85238
85239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85240         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85241         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85242         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85243         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85244         All uses changed.
85245         Instead of inspecting the output of getconf, try to compile the
85246         test program without and with the macro definition.
85247         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85248         for getconf.  Instead, check for the needed flags by compiling
85249         test programs.
85250
85251 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85252
85253         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85254
85255 2000-06-04  Jim Meyering  <meyering@lucent.com>
85256
85257         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85258         SunOS 4.1.4 for which gid_t is an unsigned type.
85259
85260 2000-06-03  Jim Meyering  <meyering@lucent.com>
85261
85262         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85263         now that autoconf requires that.
85264
85265         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85266         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85267         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85268
85269 2000-06-03  Jim Meyering  <meyering@lucent.com>
85270
85271         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85272
85273 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85274
85275         * m4/glibc21.m4: New file.
85276         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85277
85278 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85279
85280         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85281         newer, don't install charset.alias.
85282         * lib/config.charset: Change the Linux/glibc rules so they become empty
85283         on glibc-2.1 or newer.
85284
85285 2000-06-02  Jim Meyering  <meyering@lucent.com>
85286
85287         * lib/mountlist.c: Back out last change.  Instead, do this...
85288         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85289         me_dummy member using the same `ignore'-testing code.
85290         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85291         fs_type strings.
85292         From Mark D. Roth.
85293
85294 2000-05-29  Jim Meyering  <meyering@lucent.com>
85295
85296         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85297         mounts with the `ignore' attribute.  Based on a patch from
85298         Mark D. Roth.
85299
85300 2000-05-28  Jim Meyering  <meyering@lucent.com>
85301
85302         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85303         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85304         * m4/stat.m4: Likewise.
85305         * m4/lstat.m4: Likewise.
85306         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85307
85308         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85309         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85310
85311 2000-05-26  Jim Meyering  <meyering@lucent.com>
85312
85313         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85314
85315 2000-05-24  Jim Meyering  <meyering@lucent.com>
85316
85317         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85318         autoconf requires that.
85319         * m4/lib-check.m4: Likewise.
85320         * m4/jm-macros.m4: Likewise.
85321         * m4/strftime.m4: Likewise.
85322
85323         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85324         AC_CHECK_DECLS, now that autoconf requires that.
85325
85326 2000-05-22  Jim Meyering  <meyering@lucent.com>
85327
85328         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85329         * m4/lstat.m4: Likewise.
85330
85331 2000-05-22  Jim Meyering  <meyering@lucent.com>
85332
85333         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85334
85335 2000-05-20  Jim Meyering  <meyering@lucent.com>
85336
85337         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85338         (jm_PREREQ): Use it.
85339
85340 2000-05-18  Jim Meyering  <meyering@lucent.com>
85341
85342         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85343         back, too, since it may have been modified by allocate_entry.
85344         (hash_delete): Rewrite to use neither the assignment operator
85345         nor the comma operator in an if-expression.
85346
85347 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85348
85349         * lib/closeout.c:
85350         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85351         Remove; no longer needed.
85352         "quotearg.h": Add include.
85353         (file_name): Do not bother to explicitly initialize to NULL; it's less
85354         efficient on some hosts.
85355         (close_stdout_status): Remove test as to whether stdout was already
85356         closed; it breaks for the case "echo x | sort >&-".
85357         Quote file name colons.
85358         Do not assume that _("write error") lacks format strings.
85359
85360 2000-05-15  Jim Meyering  <meyering@lucent.com>
85361
85362         * lib/version-etc.c (version_etc_copyright): Update the copyright
85363         string used in all --version output.
85364
85365 2000-05-14  Jim Meyering  <meyering@lucent.com>
85366
85367         * lib/closeout.c (close_stdout_set_file_name): New function.
85368         (close_stdout_status): Use new file-scoped global.
85369         Return right away if fstat says the stdout file descriptor is invalid.
85370         * lib/closeout.h (close_stdout_set_file_name): Declare.
85371
85372 2000-05-10  Jim Meyering  <meyering@lucent.com>
85373
85374         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85375         (close_stdout_set_status): New function.
85376         * lib/closeout.h (close_stdout_set_status): Declare.
85377
85378 2000-05-09  Jim Meyering  <meyering@lucent.com>
85379
85380         * m4/gettext.m4: Rename this...
85381         * m4/libintl.m4: ...to this.
85382
85383 2000-05-08  Jim Meyering  <meyering@lucent.com>
85384
85385         * lib/long-options.c: Don't include closeout.h.
85386         (parse_long_options): Don't call close_stdout for --version.
85387
85388 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85389
85390         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85391         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85392         2.1.3 bug.  This avoids a clash when files like regex.c define
85393         _GNU_SOURCE.
85394
85395 2000-05-06  Jim Meyering  <meyering@lucent.com>
85396
85397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85398         (AC_REPLACE_FUNCS): Add strnlen.
85399
85400         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85401         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85402
85403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85404         AC_SEARCH_LIBS call for nanosleep.
85405         (LIB_NANOSLEEP): Set and AC_SUBST.
85406
85407 2000-05-06  Jim Meyering  <meyering@lucent.com>
85408
85409         * lib/strnlen.c: Undefine __strnlen and strnlen.
85410         [!weak_alias]: Define __strnlen to strnlen.
85411
85412         * lib/atexit.c: New file, from libiberty.
85413
85414 2000-05-06  Jim Meyering  <meyering@lucent.com>
85415
85416         * lib/closeout.c (close_stdout_status): Also check for errors on the
85417         stderr stream.
85418
85419 2000-05-05  Jim Meyering  <meyering@lucent.com>
85420
85421         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85422         AC_SEARCH_LIBS call for clock_gettime.
85423         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85424
85425         * m4/search-libs.m4: Update from autoconf.
85426
85427         su doesn't work on Solaris 2.6.
85428         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85429         <shadow.h>.  Reported by Dragos Harabor.
85430
85431 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85432
85433         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85434         memcpy instead of xmalloc, xrealloc, path_concat.
85435         (locale_charset): Treat empty environment variables as absent.
85436         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85437
85438 2000-05-04  Jim Meyering  <meyering@lucent.com>
85439
85440         * lib/getopt.c: Update from glibc.
85441         * lib/obstack.c: Likewise.
85442         * lib/obstack.h: Likewise.
85443         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85444         file
85445
85446         * lib/regex.h: Likewise.
85447         * lib/strndup.c: Likewise.
85448         * lib/strnlen.c: New file, from glibc.
85449
85450 2000-05-03  Jim Meyering  <meyering@lucent.com>
85451
85452         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85453
85454 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85455
85456         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85457         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85458         compile-time test, rather than inspecting host and OS, to
85459         decide whether to define _LARGEFILE_SOURCE.
85460
85461 2000-05-01  Jim Meyering  <meyering@lucent.com>
85462
85463         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85464
85465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85466         Based on a patch from Bruno Haible.
85467
85468 2000-05-01  Jim Meyering  <meyering@lucent.com>
85469
85470         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85471
85472 2000-04-29  Jim Meyering  <meyering@lucent.com>
85473
85474         * lib/path-concat.c: Declare strdup only if it's not defined.
85475         * lib/canon-host.c: Likewise.
85476
85477 2000-04-28  Jim Meyering  <meyering@lucent.com>
85478
85479         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85480         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85481         is included first, then limits.h is included by locale.h by libintl.h.
85482         From John David Anglin.
85483
85484 2000-04-25  Jim Meyering  <meyering@lucent.com>
85485
85486         * lib/makepath.c (S_IRWXUGO): Define.
85487         (make_path): Always perform explicit chmod if MODE specifies any
85488         of the `special' permission bits.  Prompted by a bug report against
85489         install from Mate Wierdl and Joost van Baal.
85490
85491 2000-04-18  Jim Meyering  <meyering@lucent.com>
85492
85493         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85494         (jm_PREREQ): Use it.
85495
85496 2000-04-18  Jim Meyering  <meyering@lucent.com>
85497
85498         * lib/README: New file.
85499
85500         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85501         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85502
85503 2000-04-17  Jim Meyering  <meyering@lucent.com>
85504
85505         Get it right :-)
85506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85507         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85508         Suggestion from Akim Demaille.
85509
85510 2000-04-17  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85513         the definition of it to rpl_strftime also defined-away the system's
85514         declaration.
85515
85516 2000-04-15  Jim Meyering  <meyering@lucent.com>
85517
85518         Use `C' to denote so-called `contiguous' files, the same way
85519         that tar does.
85520         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85521         (ftypelet): Use S_ISCTG.
85522         From Michael Deutschmann.
85523
85524 2000-04-14  Jim Meyering  <meyering@lucent.com>
85525
85526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85527         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85528         clobbered.
85529
85530 2000-04-14  Jim Meyering  <meyering@lucent.com>
85531
85532         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85533
85534 2000-04-13  Jim Meyering  <meyering@lucent.com>
85535
85536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85537         AH_VERBATIM to insert required #ifndef into config.h.in.
85538         Suggestion from Akim Demaille.
85539
85540 2000-04-12  Jim Meyering  <meyering@lucent.com>
85541
85542         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85543         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85544         Christian Krackowizer.
85545
85546         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85547         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85548         (AC_SYS_LARGEFILE): Require.
85549         (AM_C_PROTOTYPES): Require.
85550
85551 2000-04-08  Jim Meyering  <meyering@lucent.com>
85552
85553         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85554         names don't conflict.  Reported by Eli Zaretskii.
85555
85556 2000-04-07  Jim Meyering  <meyering@lucent.com>
85557
85558         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85559         sys/types.h, to work around system header problems on AIX 3.2.5.
85560         From Bruno Haible.
85561
85562 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85563
85564         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85565         bug.  Deal with the different error behavior of Irix iconv.
85566
85567 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85568
85569         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85570         IRIX if the installer said otherwise.
85571
85572 2000-04-05  Jim Meyering  <meyering@lucent.com>
85573
85574         Portability tweaks required for ultrix4.3.
85575         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85576         (jm_CHECK_DECLS): Add getutent to the list of functions.
85577         (_jm_DECL_HEADERS): Add utmpx.h.
85578         From John David Anglin.
85579
85580         * m4/strftime.m4: Back out the 2000-04-02 change.
85581         Instead of that change, simply undefine putenv in the test program.
85582
85583 2000-04-05  Jim Meyering  <meyering@lucent.com>
85584
85585         Portability tweaks required for ultrix4.3.
85586         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85587         getutent.
85588         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85589         * lib/canon-host.c: Declare strdup.
85590         * lib/path-concat.c: Likewise.
85591         From John David Anglin.
85592
85593 2000-04-04  Jim Meyering  <meyering@lucent.com>
85594
85595         Be more DOS 8.3-friendly.
85596         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85597         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85598         * lib/Makefile.am: Reflect renaming.
85599         Reported by Eli Zaretskii.
85600
85601         Use a temporary file name that won't clash with `charset.alias'
85602         in the DOS 8.3 name space.
85603         * lib/Makefile.am (charset_tmp): Define.
85604         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85605         (uninstall-local): Likewise.
85606         Reported by Eli Zaretskii.
85607
85608 2000-04-03  Jim Meyering  <meyering@lucent.com>
85609
85610         * m4/gettext.m4: Fix typo in comment.
85611
85612         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85613         textutils/configure.in).  Suggestion from Paul Eggert.
85614         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85615
85616 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85617
85618         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85619         variable in the shell rather than using putenv, which isn't
85620         portable.  This avoids the configure-time inter-test dependency
85621         on the potentially-renamed putenv function.
85622
85623 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85624
85625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85626         before checking struct stat.st_blksize, so that
85627         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85628
85629 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85630
85631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85632         since strftime.c uses HAVE_STRFTIME to decide whether to use
85633         the underlying strftime.
85634
85635 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85636
85637         * lib/time/strftime.c (my_strftime): Make sure we call the system
85638         strftime, not ourselves, when invoking the underlying strftime.
85639
85640 2000-03-24  Jim Meyering  <meyering@lucent.com>
85641
85642         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85643         (charset_alias): Define.
85644         (install-exec-local): Factor out common code.
85645         (uninstall-local): Split lines longer than 80.
85646         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85647         (SUFFIXES): Define.
85648         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85649         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85650
85651 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85652
85653         * lib/config.charset: Output a line containing "Packages using this
85654         file".
85655         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85656         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85657         ref-del.sed): New rules.
85658
85659 2000-03-17  Jim Meyering  <meyering@lucent.com>
85660
85661         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85662         Otherwise, include <strings.h>
85663
85664 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85665
85666         * lib/unicodeio.c (utf8_wctomb): New function.
85667         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85668         format instead of in UCS-4 with platform dependent endianness.
85669
85670 2000-03-10  Jim Meyering  <meyering@lucent.com>
85671
85672         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85673         From Marco Franzen.
85674
85675 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85676
85677         * lib/savedir.c (savedir): Work even if directory size is
85678         negative; this can happen with some screwy NFS configurations.
85679
85680 2000-03-06  Jim Meyering  <meyering@lucent.com>
85681
85682         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85683         if it's NULL (because we ran out of memory).  From Bruno Haible.
85684
85685 2000-03-05  Jim Meyering  <meyering@lucent.com>
85686
85687         * lib/localcharset.c ("path-concat.h"): Include.
85688         (get_charset_aliases): Use path_concat instead of ANSI string
85689         concatenation.
85690
85691         * lib/unicodeio.h (PARAMS): Define.
85692         Use it to guard prototype.
85693
85694 2000-03-04  Jim Meyering  <meyering@lucent.com>
85695
85696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85697         for lib/localcharset.c.
85698
85699 2000-03-04  Jim Meyering  <meyering@lucent.com>
85700
85701         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85702         installing into it.
85703         (uninstall-local): Uncomment this rule so `make distcheck' works
85704         once again.
85705
85706         * lib/unicodeio.c (<errno.h>): Include it.
85707         (errno): Declare if not defined.
85708
85709         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85710
85711         * lib/config.charset: New version, incorporating remarks from a linux
85712         i18n mailing list.  From Bruno Haible.
85713
85714 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85715
85716         * m4/codeset.m4: New file.
85717         * m4/iconv.m4: New file.
85718         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85719
85720 2000-03-03  Jim Meyering  <meyering@lucent.com>
85721
85722         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85723
85724 2000-03-02  Jim Meyering  <meyering@lucent.com>
85725
85726         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85727         the messages come out on separate lines.
85728
85729         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85730         rather than jm_CHECK_DECLARATIONS.
85731         * m4/decl.m4: Remove now-unused file.
85732
85733         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85734         geteuid.
85735
85736 2000-03-02  Jim Meyering  <meyering@lucent.com>
85737
85738         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85739
85740 2000-03-01  Jim Meyering  <meyering@lucent.com>
85741
85742         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85743         * lib/unicodeio.c: Likewise.
85744
85745 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85746
85747         * lib/config.charset: New file.
85748         * lib/localcharset.c: New file.
85749         * lib/unicodeio.h, lib/unicodeio.c: New files.
85750         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85751         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85752         (noinst_HEADERS): Add unicodeio.h.
85753         (all-local, install-exec-local, charset.alias): New targets.
85754
85755 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85756
85757         * lib/quotearg.c (ALERT_CHAR): New macro.
85758         (quotearg_buffer_restyled): Use it.
85759
85760 2000-02-27  Jim Meyering  <meyering@lucent.com>
85761
85762         * m4/check-decl.m4: Add getenv to the list.
85763
85764 2000-02-27  Jim Meyering  <meyering@lucent.com>
85765
85766         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85767         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85768
85769         * lib/backupfile.c: Guard inclusion of stdlib.h with
85770         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85771         Declare malloc if needed.
85772
85773         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85774         `#ifndef HAVE_DECL..'
85775         now that autoconf always defines the HAVE_DECL_ symbols.
85776         * lib/human.c: Likewise.
85777         * lib/same.c: Likewise.
85778         * lib/strtoumax.c: Likewise.
85779
85780         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85781         declaration check was not run.
85782         * lib/hash.c: Likewise.
85783         * lib/human.c: Likewise.
85784         * lib/same.c: Likewise.
85785         * lib/strtoumax.c: Likewise.
85786
85787         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85788         `.', then first look up the entire `.'-containing string as a login
85789         name.
85790
85791 2000-02-23  Jim Meyering  <meyering@lucent.com>
85792
85793         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85794         in place of my hack.
85795
85796 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85797
85798         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85799         (textint): New typedef.
85800         (parser_control): Member year changed from int to textint.
85801         All uses changed.
85802         (YYSTYPE): Removed; replaced by %union with int and textint members.
85803         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85804         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85805         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85806         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85807         (date, number, to_year): Use width of number in digits, not its value,
85808         to determine whether it's a 2-digit year, or a 2-digit time.
85809         (yylex): Store number of digits of numeric tokens.
85810         Reported by John Kendall.
85811
85812         (parser_control): Changed from struct parser_control to typedef (for
85813         consistency).  All uses changed.
85814
85815         (tID): Removed; not used.
85816         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85817
85818 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85819
85820         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85821         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85822
85823 2000-02-12  Jim Meyering  <meyering@lucent.com>
85824
85825         * lib/userspec.c (ISDIGIT): Define it.
85826         (isdigit): Remove definition.
85827         (is_number): Use ISDIGIT, not isdigit.
85828         <libintl.h>: Include.
85829         (_ and N_): Define.
85830         (parse_user_spec): Mark translatable strings.
85831
85832 2000-02-10  Jim Meyering  <meyering@lucent.com>
85833
85834         With these changes, nanosleep.[ch] are finally enough like the other
85835         lib/* replacement files to compile on a few more losing systems.
85836
85837         * lib/nanosleep.h: Don't include config.h.
85838         Remove prototype from declaration of nanosleep.
85839         (PARAMS): Remove now-unneeded definition.
85840         * lib/nanosleep.c: #undef nanosleep.
85841         (rpl_nanosleep): Rename from nanosleep.
85842
85843 2000-02-10  Jim Meyering  <meyering@lucent.com>
85844
85845         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85846         gnu_nanosleep to rpl_nanosleep.
85847
85848 2000-02-09  Jim Meyering  <meyering@lucent.com>
85849
85850         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85851         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85852
85853 2000-02-08  Akim Demaille  <akim@epita.fr>
85854
85855         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85856         `[' and `]' and remove uses of `changequote'.
85857         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85858         (AC_SYS_LARGEFILE): Likewise.
85859         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85860         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85861         of changequote.
85862         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85863         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85864         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85865         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85866
85867 2000-02-05  Jim Meyering  <meyering@lucent.com>
85868
85869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85870         Remove explicit use of AC_HEADER_TIME.  It is required by
85871         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85872         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85873         in autoconf whereby the expansion of the latter ended up preceding
85874         the expansion of its prerequisite, AC_HEADER_TIME.
85875         Reported by Volker Borchert.
85876
85877 2000-02-03  Jim Meyering  <meyering@lucent.com>
85878
85879         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85880
85881 2000-02-03  Jim Meyering  <meyering@lucent.com>
85882
85883         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85884         rather than with `#if HAVE_UTMPNAME'.
85885
85886 2000-02-02  Jim Meyering  <meyering@lucent.com>
85887
85888         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85889         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85890         Reported by Eli Zaretskii.
85891
85892 2000-02-01  Jim Meyering  <meyering@lucent.com>
85893
85894         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85895
85896 2000-01-31  Jim Meyering  <meyering@lucent.com>
85897
85898         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85899         functions.  Add the time.h and sys/time.h headers along with the
85900         AC_REQUIRE'ment of AC_HEADER_TIME.
85901
85902 2000-01-31  Jim Meyering  <meyering@lucent.com>
85903
85904         * lib/nanosleep.h (nanosleep): Guard declaration with
85905         `#if ! HAVE_DECL_NANOSLEEP'.
85906         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85907         the declaration in that vendor's sys/timers.h.
85908         Reported by Christian Krackowizer.
85909
85910         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85911         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85912         (ISPRINT): Likewise.
85913         Reported by Tom Tromey.
85914
85915 2000-01-30  Jim Meyering  <meyering@lucent.com>
85916
85917         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85918
85919         * m4/prereq.m4 (utmp_includes): Define.
85920         Check for ut_user and ut_name members in both struct utmpx
85921         and struct utmp.
85922
85923 2000-01-30  Jim Meyering  <meyering@lucent.com>
85924
85925         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85926         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85927         header files where only utmpx.ut_user is declared.
85928
85929         * lib/readutmp.h (UT_USER): Define.
85930
85931 2000-01-29  Jim Meyering  <meyering@lucent.com>
85932
85933         * m4/lib-check.m4: New file containing library-related checks from
85934         fileutils and sh-utils (textutils had none).
85935
85936 2000-01-28  Jim Meyering  <meyering@lucent.com>
85937
85938         * m4/perl.m4: Change format of warning message to look more like that
85939         from the missing script.  Suggestion from François Pinard.
85940
85941 2000-01-25  Jim Meyering  <meyering@lucent.com>
85942
85943         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85944         well as time.h in the compile check.
85945         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85946         Fix typo in cross-compiling case: s/yes/no/.
85947
85948 2000-01-23  Jim Meyering  <meyering@lucent.com>
85949
85950         * m4/jm-macros.m4: Move df-related tests here from
85951         fileutils/configure.in
85952
85953         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85954         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85955
85956         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85957         s/space/ac_fsusage_space/.
85958         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85959
85960         * m4/ftruncate.m4: New file (derived from part of
85961         fileutils/configure.in).
85962         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85963         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85964
85965         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85966         AC_SUBST these here, rather than just in sh-util/configure.in, so
85967         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85968         all the same.
85969         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85970         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85971         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85972         (AC_SUBST(POW_LIBM)): Likewise.
85973         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85974
85975 2000-01-23  Jim Meyering  <meyering@lucent.com>
85976
85977         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85978         obstack.c.
85979
85980 2000-01-22  Jim Meyering  <meyering@lucent.com>
85981
85982         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85983
85984         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85985
85986         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85987         configure.in
85988         (AC_CHECK_HEADERS): Likewise for sh-utils.
85989         (AC_CHECK_HEADERS): Likewise for textutils.
85990         Merge the three lists of headers.
85991
85992         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85993         from fileutils' configure.in.
85994
85995         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85996         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85997         check-decl.m4.
85998
85999         * m4/check-decl.m4: Use #if rather than #ifdef.
86000         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86001         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86002         (_jm_DECL_HEADERS): Define new function.
86003         (jm_CHECK_DECLARATIONS): Require it.
86004
86005 2000-01-22  Jim Meyering  <meyering@lucent.com>
86006
86007         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86008         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86009         Required for some AIX systems.  Reported by Christian Krackowizer.
86010         [TESTING] (main): New function.
86011
86012         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86013         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86014         letters.
86015
86016         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86017         iswprint.
86018
86019         * lib/strverscmp.c (ISDIGIT): Define.
86020         (strverscmp): Use ISDIGIT, not isdigit.
86021
86022 2000-01-19  Jim Meyering  <meyering@lucent.com>
86023
86024         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86025         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86026         defines `struct timespec' in <sys/time.h>
86027
86028         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86029         Thanks to Akim for explaining.
86030
86031 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86032
86033         * lib/nanosleep.c (nanosleep):
86034         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86035         POSIX.1 doesn't require SA_INTERRUPT and some systems
86036         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86037         it's been part of POSIX.1 since day 1 (in 1988).
86038
86039 2000-01-17  Jim Meyering  <meyering@lucent.com>
86040
86041         * lib/interlock: Remove unused file.  Reported by François Pinard.
86042
86043 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86044
86045         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86046         alert, backslash, formfeed, and vertical tab unnecessarily in
86047         shell quoting style.
86048
86049 2000-01-16  Jim Meyering  <meyering@lucent.com>
86050
86051         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86052         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86053         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86054         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86055
86056 2000-01-16  Jim Meyering  <meyering@lucent.com>
86057
86058         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86059         because the latter didn't work.
86060
86061 2000-01-15  Jim Meyering  <meyering@lucent.com>
86062
86063         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86064         (AC_REPLACE_FUNCS): Add memcpy and memset.
86065         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86066         Add strpbrk.
86067         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86068
86069 2000-01-12  Jim Meyering  <meyering@lucent.com>
86070
86071         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86072         (jm_PREREQ): Use it.
86073         (jm_PREREQ_READUTMP): New macro.
86074         (jm_PREREQ): Use it.
86075
86076 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86077
86078         Quote multibyte characters correctly.
86079         * m4/c-bs-a.m4: New file.
86080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86081         (jm_PREREQ): Use it.
86082
86083 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86084
86085         * m4/uintmax_t.m4: Port to autoconf 2.13.
86086
86087 2000-01-08  Jim Meyering  <meyering@ascend.com>
86088
86089         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86090         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86091
86092 2000-01-04  Jim Meyering  <meyering@ascend.com>
86093
86094         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86095         jm_STRUCT_DIRENT_D_TYPE.
86096         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86097         jm_STRUCT_DIRENT_D_INO.
86098         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86099         jm_STRUCT_UTIMBUF.
86100         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86101         renamings.
86102         * m4/utime.m4: Likewise.
86103
86104         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86105         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86106
86107 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86108
86109         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86110         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86111
86112 2000-01-02  Jim Meyering  <meyering@ascend.com>
86113
86114         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86115         remember if this is necessary.
86116
86117 1999-12-26  Jim Meyering  <meyering@ascend.com>
86118
86119         * m4/jm-macros.m4: Use it here.
86120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86121
86122 1999-12-23  Jim Meyering  <meyering@ascend.com>
86123
86124         * m4/jm-macros.m4: Check for clock_gettime (moved from
86125         fileutils/configure.in)
86126         Check for gettimeofday.
86127
86128 1999-12-20  Jim Meyering  <meyering@ascend.com>
86129
86130         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86131         autoconf-2.14a-1999-12-20.
86132
86133 1999-12-19  Jim Meyering  <meyering@ascend.com>
86134
86135         * m4/lstat-slash.m4: New file.
86136         * m4/jm-macros.m4: Use the new macro:
86137         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86138
86139 1999-12-07  Jim Meyering  <meyering@ascend.com>
86140
86141         * m4/perl.m4: Require that File::Compare be available, too.
86142         Too many systems seem to lack it.
86143
86144         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86145         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86146
86147 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86148
86149         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86150         problem with the QNX 4.25 shell, which doesn't propagate exit
86151         status of failed commands inside shell assignments.
86152
86153 1999-11-17  Jim Meyering  <meyering@ascend.com>
86154
86155         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86156
86157 1999-11-07  Jim Meyering  <meyering@ascend.com>
86158
86159         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86160
86161 1999-11-06  Jim Meyering  <meyering@ascend.com>
86162
86163         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86164         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86165
86166 1999-11-05  Jim Meyering  <meyering@ascend.com>
86167
86168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86169         configure.in of textutils, fileutils, and sh-utils into this one
86170         (shared between those packages) file.
86171         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86172         AC_STRUCT_ST_BLKSIZE.
86173
86174 1999-11-03  Jim Meyering  <meyering@ascend.com>
86175
86176         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86177         of AC_CHECK_TYPE checks includes unistd.h.
86178         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86179         Suggestion from Akim Demaille.
86180
86181 1999-10-30  Jim Meyering  <meyering@ascend.com>
86182
86183         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86184         m4-quoted string.
86185         * m4/ls-mntd-fs.m4: Likewise.
86186         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86187         * m4/jm-winsz1.m4: Likewise.
86188
86189         * m4/const.m4: Remove file, since the fix made it into the experimental
86190         version of autoconf.
86191         * m4/mktime.m4: Likewise.
86192
86193         * m4/check-type.m4: Remove file, now that the latest version of
86194         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86195
86196         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86197         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86198         AC_CHECK_TYPE.
86199
86200 1999-10-04  Jim Meyering  <meyering@ascend.com>
86201
86202         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86203
86204 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86205
86206         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86207         2.95.1 bug with HP-UX 10.20.
86208
86209 1999-09-17  Jim Meyering  <meyering@ascend.com>
86210
86211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86212         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86213         due to missing strdup (against sh-utils-2.0).
86214
86215 1999-08-29  Jim Meyering  <meyering@ascend.com>
86216
86217         * m4/jm-macros.m4: Require jm_BISON.
86218         * m4/bison.m4: New file.
86219
86220 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86221
86222         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86223         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86224
86225 1999-08-05  Jim Meyering  <meyering@ascend.com>
86226
86227         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86228         to avoid conflicts with `conftest' on 8+3 filesystems.
86229         Suggestion from Eli Zaretskii.
86230
86231 1999-08-04  Jim Meyering  <meyering@ascend.com>
86232
86233         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86234         fileutils and sh-utils (textutils's getline test was inadequate).
86235         (AM_FUNC_GETLINE): Run this test.
86236         (AC_CHECK_FUNCS): Check for getdelim.
86237         Reported by Bob Proulx.
86238
86239 1999-08-02  Jim Meyering  <meyering@ascend.com>
86240
86241         * m4/jm-macros.m4: Add a comment.
86242
86243 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86244
86245         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86246         <inttypes.h> defines strtoumax as a macro (and not as a
86247         function).
86248
86249 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86250
86251         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86252         that we can shift, multiply and divide unsigned long long
86253         values; Ultrix cc can't do it.
86254
86255 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86256
86257         * m4/mktime.m4: New file, which is a preview of what should appear
86258         in the next public autoconf release.
86259
86260 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86261
86262         * m4/lfs.m4: Remove this file.
86263         * m4/largefile.m4: New file.  It contains the old contents of
86264         lfs.m4, except that all names with prefix AC_LFS have been
86265         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86266         compatible with future autoconf versions.  Also, some minor m4
86267         quoting problems have been fixed.
86268
86269 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86270
86271         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86272         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86273         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86274         and simplify the shell code.
86275
86276 1999-08-01  Jim Meyering  <meyering@ascend.com>
86277
86278         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86279         m4.
86280
86281 1999-07-20  Jim Meyering  <meyering@ascend.com>
86282
86283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86284
86285 1999-07-15  Jim Meyering  <meyering@ascend.com>
86286
86287         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86288
86289 1999-05-22  Jim Meyering  <meyering@ascend.com>
86290
86291         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86292
86293 1999-05-20  Jim Meyering  <meyering@ascend.com>
86294
86295         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86296         Add a colon after each `then' in case $4 is empty.
86297
86298 1999-05-16  Jim Meyering  <meyering@ascend.com>
86299
86300         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86301
86302 1999-05-10  Jim Meyering  <meyering@ascend.com>
86303
86304         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86305
86306         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86307         AC_FUNC_MKTIME.
86308
86309 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86310
86311         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86312
86313 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86314
86315         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86316         not CPPFLAGS, so that linking works correctly in IRIX.
86317
86318 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86319
86320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86321
86322 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86323
86324         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86325         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86326         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86327         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86328         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86329
86330         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86331
86332 1999-04-20  Jim Meyering  <meyering@ascend.com>
86333
86334         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86335         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86336         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86337
86338 1999-04-18  Jim Meyering  <meyering@ascend.com>
86339
86340         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86341         * m4/jm-macros.m4: Use it.
86342
86343 1999-04-06  Jim Meyering  <meyering@ascend.com>
86344
86345         * m4/strftime.m4: Remove test for %f.
86346
86347 1999-03-29  Jim Meyering  <meyering@ascend.com>
86348
86349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86350         superset of the AC_TYPE_* checks in the textutils, fileutils,
86351         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86352         AC_TYPE_PID_T.
86353
86354 1999-03-28  Jim Meyering  <meyering@ascend.com>
86355
86356         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86357         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86358         replaced e.g., in the *.sh files of the sh-utils.
86359
86360 1999-03-20  Jim Meyering  <meyering@ascend.com>
86361
86362         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86363         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86364         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86365
86366 1999-03-19  Jim Meyering  <meyering@ascend.com>
86367
86368         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86369
86370 1999-03-12  Jim Meyering  <meyering@ascend.com>
86371
86372         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86373
86374 1999-03-07  Jim Meyering  <meyering@ascend.com>
86375
86376         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86377         declared.
86378
86379 1999-02-17  Jim Meyering  <meyering@ascend.com>
86380
86381         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86382         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86383
86384 1999-02-07  Jim Meyering  <meyering@ascend.com>
86385
86386         * m4/group-member.m4: New file -- extracted from sh-utils'
86387         configure.in.
86388
86389         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86390         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86391
86392 1999-02-06  Jim Meyering  <meyering@ascend.com>
86393
86394         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86395         * m4/fnmatch.m4: Likewise.
86396         * m4/getgroups.m4: Likewise.
86397         * m4/lstat.m4: Likewise.
86398         * m4/malloc.m4: Likewise.
86399         * m4/putenv.m4: Likewise.
86400         * m4/realloc.m4: Likewise.
86401         * m4/regex.m4: Likewise.
86402         * m4/stat.m4: Likewise.
86403         * m4/strftime.m4: Likewise.
86404         Suggestion from Alain Magloire.
86405
86406         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86407         * m4/fnmatch.m4: Likewise.
86408         * m4/getgroups.m4: Likewise.
86409         * m4/getline.m4: Likewise.
86410         * m4/lstat.m4: Likewise.
86411         * m4/malloc.m4: Likewise.
86412         * m4/memcmp.m4: Likewise.
86413         * m4/putenv.m4: Likewise.
86414         * m4/realloc.m4: Likewise.
86415         * m4/regex.m4: Likewise.
86416         * m4/stat.m4: Likewise.
86417         * m4/strftime.m4: Likewise.
86418         Suggestion from Alain Magloire.
86419
86420         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86421         an argument.
86422
86423         * m4/regex.m4: Add a run-time Test for proper operation of
86424         re_compile_pattern.
86425
86426 1999-01-31  Jim Meyering  <meyering@ascend.com>
86427
86428         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86429
86430 1999-01-30  Jim Meyering  <meyering@ascend.com>
86431
86432         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86433
86434         * m4/jm-mktime.m4: Make this a wrapper around the official
86435         AM_FUNC_MKTIME rather than my private copy, now that the official one
86436         is up to date.
86437         * m4/mktime.m4: Remove file.
86438
86439         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86440         * m4/uptime.m4: Likewise.
86441         * m4/uintmax_t.m4: Likewise.
86442
86443 1999-01-28  Jim Meyering  <meyering@ascend.com>
86444
86445         * m4/jm-macros.m4: Use jm_AFS.
86446         * m4/afs.m4: New file (from fileutils' configure.in).
86447
86448         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86449         * m4/chown.m4: Likewise.
86450         * m4/d-ino.m4: Likewise.
86451         * m4/d-type.m4: Likewise.
86452         * m4/fnmatch.m4: Likewise.
86453         * m4/getgroups.m4: Likewise.
86454         * m4/gettext.m4: Likewise.
86455         * m4/jm-mktime.m4: Likewise.
86456         * m4/jm-winsz2.m4: Likewise.
86457         * m4/lcmessage.m4: Likewise.
86458         * m4/ls-mntd-fs.m4: Likewise.
86459         * m4/malloc.m4: Likewise.
86460         * m4/memcmp.m4: Likewise.
86461         * m4/putenv.m4: Likewise.
86462         * m4/realloc.m4: Likewise.
86463         * m4/st_mtim.m4: Likewise.
86464         * m4/strftime.m4: Likewise.
86465
86466 1999-01-16  Jim Meyering  <meyering@ascend.com>
86467
86468         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86469         (ARGMATCH_DIE_DECL): Define.
86470
86471 1999-01-12  Jim Meyering  <meyering@ascend.com>
86472
86473         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86474         Reported by Lars Hecking.
86475
86476 1999-01-10  Jim Meyering  <meyering@ascend.com>
86477
86478         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86479         gross kludge.
86480         * m4/inttypes_h.m4: Likewise.
86481         * m4/lstat.m4: Likewise.
86482         * m4/malloc.m4: Likewise.
86483         * m4/readdir.m4: Likewise.
86484         * m4/realloc.m4: Likewise.
86485         * m4/st_dm_mode.m4: Likewise.
86486         * m4/stat.m4: Likewise.
86487         * m4/utimbuf.m4: Likewise.
86488         * m4/utimes.m4: Likewise.
86489
86490         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86491         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86492         comments in config.h.in are meaningful.
86493
86494         * m4/jm-macros.m4: Require autoconf-2.13 here.
86495
86496         * m4/regex.m4: By default, don't use the included regex.c on systems
86497         with glibc 2.  Suggestion from Uli Drepper.
86498
86499 1999-01-02  Jim Meyering  <meyering@ascend.com>
86500
86501         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86502
86503 1998-12-18  Jim Meyering  <meyering@ascend.com>
86504
86505         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86506         Based on a suggestion from Lars Hecking.
86507
86508 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86509
86510         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86511
86512 1998-11-16  Jim Meyering  <meyering@ascend.com>
86513
86514         * m4/lfs.m4: Double-quote the `uname...` expression.
86515
86516 1998-11-14  Jim Meyering  <meyering@ascend.com>
86517
86518         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86519         * m4/stat.m4: Likewise.
86520
86521 1998-11-03  Jim Meyering  <meyering@ascend.com>
86522
86523         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86524         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86525
86526 1998-10-18  Jim Meyering  <meyering@ascend.com>
86527
86528         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86529
86530 1998-10-17  Jim Meyering  <meyering@ascend.com>
86531
86532         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86533         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86534         calls for those previously hard-coded headers.  Instead, take a new
86535         parameter.
86536         (jm_CHECK_DECLARATIONS): Reflect interface change.
86537         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86538         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86539
86540         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86541
86542 1998-10-14  Jim Meyering  <meyering@ascend.com>
86543
86544         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86545         instead of "TZ=America/Vancouver".  From Paul Eggert.
86546
86547 1998-10-11  Jim Meyering  <meyering@ascend.com>
86548
86549         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86550         This adds a test for a recently added compatibility fix for mktime.c.
86551         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86552
86553 1998-09-27  Jim Meyering  <meyering@ascend.com>
86554
86555         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86556
86557         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86558         ../configure.in, including a change from Gordon Matzigkeit to allow
86559         cross-compiling for the Hurd.
86560
86561         * m4/glibc.m4: New file/macro to test for the GNU C Library
86562         versions 1 and 2.  From Gordon Matzigkeit.
86563         Indent.
86564
86565 1998-09-21  Jim Meyering  <meyering@ascend.com>
86566
86567         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86568
86569 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86570
86571         Port nanosecond-resolution times to UnixWare 2.1.2 and
86572         pedantic Solaris 2.6.
86573
86574         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86575         AC_STRUCT_ST_MTIM.
86576         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86577         Generate name of ns member, instead of just 1 or undef.
86578         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86579
86580 1998-08-15  Jim Meyering  <meyering@ascend.com>
86581
86582         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86583         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86584         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86585         instead of jm_TYPE_SSIZE_T.
86586
86587 1998-08-12  Jim Meyering  <meyering@ascend.com>
86588
86589         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86590
86591 1998-08-02  Jim Meyering  <meyering@ascend.com>
86592
86593         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86594         in acconfig.h manually.
86595
86596 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86597
86598         * m4/st_mtim.m4: New file.
86599
86600 1998-07-28  Jim Meyering  <meyering@ascend.com>
86601
86602         * m4/utimes.m4: Undef stat.
86603
86604 1998-07-25  Jim Meyering  <meyering@ascend.com>
86605
86606         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86607         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86608
86609 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86610
86611         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86612         uid and gid actually remain unchanged.
86613
86614 1998-07-07  Jim Meyering  <meyering@ascend.com>
86615
86616         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86617
86618 1998-07-04  Jim Meyering  <meyering@ascend.com>
86619
86620         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86621         to prove that this macro can be used in packages without regex.c.
86622
86623 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86624
86625         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86626         is to be used.
86627
86628 1998-07-03  Jim Meyering  <meyering@ascend.com>
86629
86630         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86631
86632         * m4/gettext.m4: New file -- from gettext-0.10.35.
86633         * m4/lcmessage.m4: Likewise.
86634         * m4/progtest.m4: Likewise.
86635
86636         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86637         * m4/jm-macros.m4: Require the new macro.
86638
86639 1998-06-29  Jim Meyering  <meyering@ascend.com>
86640
86641         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86642         for the definition of NGROUPS (used in a system header included
86643         by sys/mount.h).
86644
86645 1998-06-28  Jim Meyering  <meyering@ascend.com>
86646
86647         * m4/ls-mntd-fs.m4: New file.
86648         * m4/fstypename.m4: New file.
86649
86650         * m4/jm-macros.m4: Require the new macro.
86651         * m4/jm-glibc-io.m4: New file.
86652
86653 1998-05-19  Jim Meyering  <meyering@ascend.com>
86654
86655         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86656         * m4/lchown.m4: New file.
86657
86658         * m4/Makefile.am.in: New file.
86659         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86660
86661 1998-05-14  Jim Meyering  <meyering@ascend.com>
86662
86663         * m4/Makefile.am (EXTRA_DIST): Add them.
86664         * m4/jm-macros.m4: New file.
86665         * m4/utimbuf.m4: New file.
86666
86667 1998-05-12  Jim Meyering  <meyering@ascend.com>
86668
86669         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86670
86671 1998-05-11  Jim Meyering  <meyering@ascend.com>
86672
86673         * m4/isc-posix.m4: New file.
86674
86675 1998-05-10  Jim Meyering  <meyering@ascend.com>
86676
86677         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86678
86679 1998-05-09  Jim Meyering  <meyering@ascend.com>
86680
86681         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86682         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86683         with automake.
86684
86685         * m4/ssize_t.m4: New file.
86686         * m4/mktime.m4: Remove file -- the new automake has this now.
86687
86688 1998-04-26  Jim Meyering  <meyering@ascend.com>
86689
86690         * m4/assert.m4: New file.
86691         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86692
86693 1998-04-05  Jim Meyering  <meyering@ascend.com>
86694
86695         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86696         (jm_PREREQ): Use it here.
86697
86698 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86699
86700         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86701         in acconfig.h.
86702
86703 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86704
86705         * m4/prereq.m4: New file.
86706         * m4/error.m4: New file.
86707         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86708
86709 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86710
86711         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86712         cache-check for the same variable -- that defeated the purpose of
86713         the test; the test program was never run.  This was a problem only
86714         on systems with losing getline functions -- HP-UX 10.20 is one.
86715         Reported by Bjorn Helgaas.
86716
86717 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86718
86719         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86720
86721 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86722
86723         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86724
86725         * m4/const.m4: New file.  Use an initializer in this declaration
86726         typedef int charset[2]; const charset x;
86727         Reported by Bob Glickstein.
86728
86729 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86730
86731         * m4/chown.m4: Fix reversed types on -1 args to chown.
86732         From Kaveh Ghazi.
86733
86734 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86735
86736         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86737         Add lseek and memchr.
86738
86739         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86740         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86741         have a 20-character limit on names.
86742
86743 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86744
86745         * m4/inttypes_h.m4: New file.
86746         * m4/uintmax_t.m4: New file.
86747         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86748
86749
86750         -----
86751
86752         Local Variables:
86753         coding: utf-8
86754         End:
86755
86756         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86757
86758         Copying and distribution of this file, with or without
86759         modification, are permitted provided the copyright notice
86760         and this notice are preserved.