fts: bug fixes
[pspp] / ChangeLog
1 2008-10-02  Jim Meyering  <meyering@redhat.com>
2
3         fts: bug fixes
4         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
5         Include <sys/vfs.h>, not <sys/statfs.h>.
6         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
7         Include <sys/vfs.h>, not <sys/statfs.h>.
8
9 2008-10-01  Bruno Haible  <bruno@clisp.org>
10
11         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
12         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
13         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
14         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
15         * doc/posix-functions/posix_spawnp.texi: Likewise.
16         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17         whether posix_spawn actually works.
18         * m4/pipe.m4 (gl_PIPE): Likewise.
19         * modules/execute (Files): Add m4/posix_spawn.m4.
20         * modules/pipe (Files): Add m4/posix_spawn.m4.
21         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
22
23 2008-10-01  Jim Meyering  <meyering@redhat.com>
24
25         remove trailing spaces
26         * NEWS: Likewise.
27         * lib/poll.c (poll): Likewise.
28         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29         * lib/winsock.c (rpl_close): Likewise.
30         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31         * modules/yield: Likewise.
32         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33         * tests/test-sys_select.c (connect_to_socket): Likewise.
34
35         fts.c: adjust a new interface to be more generally useful
36         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37         (fts_build): Adjust caller.
38
39 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40
41         * modules/cond-tests: New file.
42         * tests/test-cond.c: New file.
43
44 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45             Bruno Haible  <bruno@clisp.org>
46
47         * modules/cond (Dependencies): Add errno, time.
48         * lib/glthread/cond.h: Include <time.h>.
49         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50         across platforms.
51
52 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53             Bruno Haible  <bruno@clisp.org>
54
55         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56
57 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58             Bruno Haible  <bruno@clisp.org>
59
60         * modules/tls-tests (Depends-on): Add thread, yield.
61         (configure.ac): Remove all checks.
62         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
63         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
64         gl_thread_self): Remove definitions. Include glthread/thread.h and
65         glthread/yield.h instead.
66         (test_tls): Pass an additional NULL argument to gl_thread_join.
67
68 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69             Bruno Haible  <bruno@clisp.org>
70
71         * modules/lock-tests (Depends-on): Add thread, yield.
72         (configure.ac): Remove all checks.
73         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
74         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75         gl_thread_self): Remove definitions. Include glthread/thread.h and
76         glthread/yield.h instead.
77         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
78         additional NULL argument to gl_thread_join.
79
80 2008-09-30  Bruno Haible  <bruno@clisp.org>
81
82         Fix the Win32 implementation of the 'thread' module.
83         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
84         pointer type.
85         (gl_thread_self): Invoke gl_thread_self_func.
86         (gl_thread_self_func): New declaration.
87         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
88         (do_init_self_key, init_self_key): New functions.
89         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90         Remove some fields.
91         (running_threads, running_lock): Remove variables.
92         (get_current_thread_handle): New function.
93         (gl_thread_self_func, wrapper_func, glthread_create_func,
94         glthread_join_func, gl_thread_exit_func): Largely rewritten and
95         simplified.
96
97 2008-09-30  Bruno Haible  <bruno@clisp.org>
98
99         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
100         files.
101
102 2008-09-30  Jim Meyering  <meyering@redhat.com>
103
104         fts.m4: correct the test for statfs.f_type
105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
106         when checking for statfs.f_type.
107
108 2008-09-15  Simon Josefsson  <simon@josefsson.org>
109
110         tests: avoid some compiler warnings
111         * tests/test-memchr.c (main): Pass NULL indirectly.
112         * tests/test-getdate.c (main): Remove unused variable 'ret'.
113
114 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
115
116         getdate.y: disallow countable dayshifts like "4 yesterday ago"
117         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
118         exactly specified dayshifts.
119         (dayshift): New rule.
120         (rel): Add dayshift.
121         (relative_time_table) [tomorrow, yesterday, today, now]:
122         Use tDAY_SHIFT in place of tDAY_UNIT.
123         * tests/test-getdate.c: Add tests for now-disallowed countable
124         dayshifts, e.g., "4 yesterday ago".
125
126 2008-09-29  Bruno Haible  <bruno@clisp.org>
127
128         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
129         * tests/test-posix_spawn1.in.sh: Renamed from
130         tests/test-posix_spawn.in.sh.
131         * tests/test-posix_spawn2.c: New file.
132         * tests/test-posix_spawn2.in.sh: New file.
133         * modules/posix_spawnp-tests (Files): Update.
134         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
135
136 2008-09-29  Bruno Haible  <bruno@clisp.org>
137
138         Propagate effects of putenv/setenv/unsetenv to child processes.
139         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
140         * lib/pipe.c (create_pipe): Likewise.
141
142 2008-09-29  Bruno Haible  <bruno@clisp.org>
143
144         Enable use of shell scripts as executables in mingw.
145         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
146         run the program as a shell script.
147         * lib/pipe.c (create_pipe): Likewise.
148         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
149         resulting array.
150
151 2008-09-29  Eric Blake  <ebb9@byu.net>
152
153         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
154
155 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
156
157         * doc/posix-functions/accept.texi: Update mingw problems.
158         * doc/posix-functions/bind.texi: Update mingw problems.
159         * doc/posix-functions/close.texi: Update mingw problems.
160         * doc/posix-functions/connect.texi: Update mingw problems.
161         * doc/posix-functions/getpeername.texi: Update mingw problems.
162         * doc/posix-functions/getsockname.texi: Update mingw problems.
163         * doc/posix-functions/getsockopt.texi: Update mingw problems.
164         * doc/posix-functions/ioctl.texi: Update mingw problems.
165         * doc/posix-functions/listen.texi: Update mingw problems.
166         * doc/posix-functions/recv.texi: Update mingw problems.
167         * doc/posix-functions/recvfrom.texi: Update mingw problems.
168         * doc/posix-functions/select.texi: Update mingw problems.
169         * doc/posix-functions/send.texi: Update mingw problems.
170         * doc/posix-functions/sendto.texi: Update mingw problems.
171         * doc/posix-functions/setsockopt.texi: Update mingw problems.
172         * doc/posix-functions/socket.texi: Update mingw problems.
173
174 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
175             Bruno Haible  <bruno@clisp.org>
176
177         * lib/sys_select.in.h: Include sys/time.h.
178         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
179         * modules/sys_select: Depend on sys_time.
180         * tests/test-sys_select.c: Test that sys/select.h defines struct
181         timeval fully.
182
183 2008-09-29  Bruno Haible  <bruno@clisp.org>
184
185         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
186         * lib/sys_select.in.h: Likewise.
187
188 2008-09-29  Bruno Haible  <bruno@clisp.org>
189
190         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
191
192 2008-09-29  Bruno Haible  <bruno@clisp.org>
193
194         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
195         Set LIBSOCKET instead of augmenting LIBS.
196         * modules/sockets (Link): New section.
197         * modules/sockets-tests (test_sockets_LDADD): New variable.
198         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
199         * modules/poll-tests (test_poll_LDADD): New variable.
200         * NEWS: Document the change.
201
202 2008-09-29  Bruno Haible  <bruno@clisp.org>
203
204         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
205         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
206         ARPA_INET_H directly.
207         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
208
209 2008-09-28  Bruno Haible  <bruno@clisp.org>
210
211         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
212         from gl_HEADER_SYS_SOCKET.
213         (gl_HEADER_SYS_SOCKET): Invoke it.
214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
215
216 2008-09-28  Bruno Haible  <bruno@clisp.org>
217
218         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
219         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
220         Needed on OSF/1 4.0.
221
222 2008-09-28  Bruno Haible  <bruno@clisp.org>
223
224         Override open more carefully.
225         * lib/open.c (orig_open): New function.
226         (rpl_open): Use orig_open instead of open.
227         * lib/fcntl.in.h: Add special invocation convention.
228         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
229         (gl_FUNC_OPEN): Invoke it.
230
231         Override freopen more carefully.
232         * lib/freopen.c (orig_freopen): New function.
233         (rpl_freopen): Use orig_freopen instead of freopen.
234         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
235         (gl_FUNC_FREOPEN): Invoke it.
236
237         Override fopen more carefully.
238         * lib/fopen.c (orig_fopen): New function.
239         (rpl_fopen): Use orig_fopen instead of fopen.
240         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
241         (gl_FUNC_FOPEN): Invoke it.
242         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
243
244 2008-09-28  Bruno Haible  <bruno@clisp.org>
245
246         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
247         SIGPIPE.
248
249 2008-09-28  Bruno Haible  <bruno@clisp.org>
250
251         * tests/test-sigaction.c (handler, main): Disable the check whether
252         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
253         glibc systems with LinuxThreads.
254
255 2008-09-28  Bruno Haible  <bruno@clisp.org>
256
257         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
258
259         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
260         with AIX xlc.
261         * lib/fcntl.in.h (open): Likewise.
262         Reported by Rainer Tammer <tammer@tammer.net>.
263
264 2008-09-28  Bruno Haible  <bruno@clisp.org>
265
266         * modules/posix_spawnp-tests: New file.
267         * tests/test-posix_spawn.c: New file.
268         * tests/test-posix_spawn.in.sh: New file.
269
270         New module 'posix_spawnp'.
271         * modules/posix_spawnp: New file.
272         * lib/spawnp.c: New file, from GNU libc with modifications.
273         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
274
275         New module 'posix_spawn'.
276         * modules/posix_spawn: New file.
277         * lib/spawn.c: New file, from GNU libc with modifications.
278         * doc/posix-functions/posix_spawn.texi: Mention the new module.
279
280         New module 'posix_spawnattr_destroy'.
281         * modules/posix_spawnattr_destroy: New file.
282         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
283         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
284         module.
285
286         New module 'posix_spawnattr_setsigmask'.
287         * modules/posix_spawnattr_setsigmask: New file.
288         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
289         modifications.
290         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
291         new module.
292
293         New module 'posix_spawnattr_getsigmask'.
294         * modules/posix_spawnattr_getsigmask: New file.
295         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
296         modifications.
297         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
298         new module.
299
300         New module 'posix_spawnattr_setsigdefault'.
301         * modules/posix_spawnattr_setsigdefault: New file.
302         * lib/spawnattr_setdefault.c: New file, from GNU libc with
303         modifications.
304         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
305         new module.
306
307         New module 'posix_spawnattr_getsigdefault'.
308         * modules/posix_spawnattr_getsigdefault: New file.
309         * lib/spawnattr_getdefault.c: New file, from GNU libc with
310         modifications.
311         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
312         new module.
313
314         New module 'posix_spawnattr_setschedpolicy'.
315         * modules/posix_spawnattr_setschedpolicy: New file.
316         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
317         modifications.
318         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
319         new module.
320
321         New module 'posix_spawnattr_getschedpolicy'.
322         * modules/posix_spawnattr_getschedpolicy: New file.
323         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
324         modifications.
325         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
326         new module.
327
328         New module 'posix_spawnattr_setschedparam'.
329         * modules/posix_spawnattr_setschedparam: New file.
330         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
331         modifications.
332         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
333         new module.
334
335         New module 'posix_spawnattr_getschedparam'.
336         * modules/posix_spawnattr_getschedparam: New file.
337         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
338         modifications.
339         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
340         new module.
341
342         New module 'posix_spawnattr_setpgroup'.
343         * modules/posix_spawnattr_setpgroup: New file.
344         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
345         modifications.
346         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
347         module.
348
349         New module 'posix_spawnattr_getpgroup'.
350         * modules/posix_spawnattr_getpgroup: New file.
351         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
352         modifications.
353         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
354         module.
355
356         New module 'posix_spawnattr_setflags'.
357         * modules/posix_spawnattr_setflags: New file.
358         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
359         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
360         module.
361
362         New module 'posix_spawnattr_getflags'.
363         * modules/posix_spawnattr_getflags: New file.
364         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
365         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
366         module.
367
368         New module 'posix_spawnattr_init'.
369         * modules/posix_spawnattr_init: New file.
370         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
371         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
372         module.
373
374         New module 'posix_spawn_file_actions_destroy'.
375         * modules/posix_spawn_file_actions_destroy: New file.
376         * lib/spawn_faction_destroy.c: New file, from GNU libc with
377         modifications.
378         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
379         the new module.
380
381         New module 'posix_spawn_file_actions_addopen'.
382         * modules/posix_spawn_file_actions_addopen: New file.
383         * lib/spawn_faction_addopen.c: New file, from GNU libc with
384         modifications.
385         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
386         the new module.
387
388         New module 'posix_spawn_file_actions_adddup2'.
389         * modules/posix_spawn_file_actions_adddup2: New file.
390         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
391         modifications.
392         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
393         the new module.
394
395         New module 'posix_spawn_file_actions_addclose'.
396         * modules/posix_spawn_file_actions_addclose: New file.
397         * lib/spawn_faction_addclose.c: New file, from GNU libc with
398         modifications.
399         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
400         the new module.
401
402         New module 'posix_spawn_file_actions_init'.
403         * modules/posix_spawn_file_actions_init: New file.
404         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
405         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
406         new module.
407
408         New module 'posix_spawn-internal'.
409         * modules/posix_spawn-internal: New file.
410         * lib/spawn_int.h: New file, from GNU libc with modifications.
411         * lib/spawni.c: New file, from GNU libc with modifications.
412         * m4/posix_spawn.m4: New file.
413
414         New module 'spawn'.
415         * modules/spawn: New file.
416         * lib/spawn.in.h: New file, from GNU libc with modifications.
417         * m4/spawn_h.m4: New file.
418         * doc/posix-headers/spawn.texi: Mention the new module.
419
420 2008-09-28  Bruno Haible  <bruno@clisp.org>
421
422         * modules/sched-tests: New file.
423         * tests/test-sched.c: New file.
424
425         New module 'sched'.
426         * modules/sched: New file.
427         * lib/sched.in.h: New file.
428         * m4/sched_h.m4: New file.
429         * doc/posix-headers/sched.texi: Mention the new module.
430
431 2008-09-27  Eric Blake  <ebb9@byu.net>
432
433         Fix previous patch, and tweak references to $0.
434         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
435         (func_version, func_gnulib_dir): Don't call this program
436         gnulib-tool.
437         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
438         with using $0 in function.
439         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
440         (func_fatal_error): Reuse the name the user invoked us with.
441
442 2008-09-27  Bruno Haible  <bruno@clisp.org>
443
444         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
445         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
446         (gl_ICONV_H): Not here.
447         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
448         instead of assigning ICONV_H directly.
449
450         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
452         WCHAR_H directly.
453
454 2008-09-27  Bruno Haible  <bruno@clisp.org>
455
456         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
457         * modules/arpa_inet (Depends-on): Add link-warning.
458         (Makefile.am): Insert the definition of GL_LINK-WARNING.
459         * modules/unistd (Makefile.am): Likewise.
460
461 2008-09-26  Bruno Haible  <bruno@clisp.org>
462
463         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
464         variables.
465         (func_version): Essentially copied from gnulib-tool.
466         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
467         func_readlink): Copied from gnulib-tool.
468
469 2008-09-26  Bruno Haible  <bruno@clisp.org>
470
471         * gnulib-tool (func_version): Change directory to $gnulib_dir before
472         invoking git-version-gen.
473
474 2008-09-26  Bruno Haible  <bruno@clisp.org>
475
476         * posix-modules: Update to directory names changed on 2008-01-19.
477         Remove commas in output before splitting into words. No more need to
478         avoid 'ftruncate' since 2007-02-19.
479
480 2008-09-26  Bruno Haible  <bruno@clisp.org>
481
482         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
483
484 2008-09-26  Bruno Haible  <bruno@clisp.org>
485
486         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
487         * modules/fwriteerror (Depends-on): Add errno.
488
489 2008-09-26  Bruno Haible  <bruno@clisp.org>
490
491         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
492         * tests/test-vc-list-files-cvs.sh: Likewise.
493
494 2008-09-26  Bruno Haible  <bruno@clisp.org>
495
496         * doc/posix-headers/sys_resource.texi: Reorder items.
497
498 2008-09-26  Jim Meyering  <meyering@redhat.com>
499
500         fts: tweak inode comparison function
501         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
502         inode numbers, as documented.
503
504         fts: sort dirent entries on inode number before traversing
505         This avoids a quadratic, seek-related performance penalty when
506         operating on a directory containing many entries (measurable at 10k;
507         3.5 hours at 2 million entries with a cold cache) on certain types
508         of file systems, including ext3 and ext4, but not tmpfs.
509         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
510         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
511         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
512         (fs_handles_readdir_ordered_dirents_efficiently): New function.
513         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
514         (fts_build): Set the stat.st_ino member from D_INO.
515         If it is likely to be useful, sort dirent entries on inode number.
516
517         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
518         and the struct statfs.f_type member.
519         * modules/fts (Depends-on): Add d-ino.
520
521 2008-09-26  Bruno Haible  <bruno@clisp.org>
522
523         * modules/sigpipe-die (Depends-on): Add sigpipe.
524
525         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
526         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
527         and GNULIB_STDIO_H_SIGPIPE are set.
528         * lib/stdio-write.c: New file.
529         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
530         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
531         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
532         REPLACE_STDIO_WRITE_FUNCS.
533         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
534         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
535         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
536         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
537         * modules/stdio (Files): Add lib/stdio-write.c.
538         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
539         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
540         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
541         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
542         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
543         REPLACE_FPRINTF_POSIX.
544         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
545         REPLACE_PRINTF_POSIX.
546         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
547         REPLACE_VFPRINTF_POSIX.
548         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
549         REPLACE_VPRINTF_POSIX.
550         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
551         SIGPIPE issue.
552         * doc/posix-functions/fputc.texi: Likewise.
553         * doc/posix-functions/fputs.texi: Likewise.
554         * doc/posix-functions/fwrite.texi: Likewise.
555         * doc/posix-functions/printf.texi: Likewise.
556         * doc/posix-functions/putc.texi: Likewise.
557         * doc/posix-functions/putchar.texi: Likewise.
558         * doc/posix-functions/puts.texi: Likewise.
559         * doc/posix-functions/vfprintf.texi: Likewise.
560         * doc/posix-functions/vprintf.texi: Likewise.
561
562         * modules/safe-write (Depends-on): Add write.
563
564         * modules/sigpipe-tests: New file.
565         * tests/test-sigpipe.c: New file.
566         * tests/test-sigpipe.sh: New file.
567
568         * modules/write: New file.
569         * lib/unistd.in.h: Include <sys/types.h>.
570         (write): New declaration.
571         * lib/write.c: New file.
572         * m4/write.m4: New file.
573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
574         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
575         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
576         GNULIB_WRITE, REPLACE_WRITE.
577         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
578         and the SIGPIPE issue.
579
580         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
581         (raise): New declaration.
582         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
583         (ext_signal): New function.
584         (rpl_raise): New function.
585         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
586         GNULIB_SIGNAL_H_SIGPIPE.
587         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
588         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
589
590         * modules/sigpipe: New file.
591         * m4/sigpipe.m4: New file.
592
593 2008-09-25  Derek Price  <derek@ximbiot.com>
594             Bruno Haible  <bruno@clisp.org>
595
596         * gnulib-tool (func_import): Report all license incompatibilities, not
597         just the first one.
598
599 2008-09-25  Bruno Haible  <bruno@clisp.org>
600
601         * gnulib-tool (func_import): When computing the edits, consider not
602         only the Makefile.ams that exist but also those that will be generated.
603
604 2008-09-25  Simon Josefsson  <simon@josefsson.org>
605
606         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
607         fixes gnulib-tool --test warning about duplicate dependency.
608
609 2008-09-25  Bruno Haible  <bruno@clisp.org>
610
611         * gnulib-tool: Don't ask the user to perform edits in the generated
612         Makefile.ams.
613         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
614         apply to the Makefile.am being generated.
615         (func_emit_tests_Makefile_am): Execute edits that apply to the
616         Makefile.am being generated.
617         (func_import): Setup list of Makefile.am edits before emitting the
618         Makefile.ams, not at the end.
619         (func_create_testdir): Update.
620         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
621
622 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
623
624         * gnulib-tool (func_import): Store the --tests-base option in the
625         comment in gnulib-cache.m4.
626
627 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
628
629         * NEWS: Document increased portability that sys_select now provides.
630
631         * lib/sys_select.in.h: Install select wrapper.
632         * lib/sys_socket.in.h: Use more descriptive name when there is no
633         select wrapper.
634         * lib/winsock-select.c: New.
635         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
636         Require gl_HEADER_SYS_SOCKET.
637         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
638         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
639         * tests/test-sys_select.c: Add functional tests.
640
641 2008-09-24  Eric Blake  <ebb9@byu.net>
642
643         open, fopen: close fd leak in last patch
644         * lib/open.c (rpl_open): Close fd before returning error.
645         * lib/fopen.c (rpl_fopen): Close fd before returning error.
646         * doc/posix-functions/open.texi (open): Document that Irix also
647         has the bug.
648         * doc/posix-functions/fopen.texi (fopen): Likewise.
649         Reported by Paolo Bonzini.
650
651 2008-09-24  Bruno Haible  <bruno@clisp.org>
652
653         Ensure that a filename ending in a slash cannot be used to access a
654         non-directory.
655         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
656         to check whether it's really a directory.
657         * lib/fopen.c: Include fcntl.h, unistd.h.
658         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
659         and fdopen().
660         * modules/fopen (Depends-on): Add unistd.
661         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
662         * tests/test-fopen.c (main): Likewise.
663         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
664         * doc/posix-functions/fopen.texi: Likewise.
665         Reported by Eric Blake.
666
667 2008-09-23  Eric Blake  <ebb9@byu.net>
668
669         c-stack: avoid compiler optimizations when provoking overflow
670         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
671         recursion harder to optimize, to ensure a stack overflow occurs.
672         * tests/test-c-stack.c (recurse): Likewise.
673         Borrowed from libsigsegv.
674
675         c-stack: work around Irix sigaltstack bug
676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
677         whether sigaltstack uses wrong end of stack_t (copied in part from
678         libsigsegv).
679         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
680         Irix bug, without requiring an over-allocation.
681         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
682         bug.
683
684         fopen: document mingw bug on directories
685         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
686         not allowing a stream visiting a directory, even though reading
687         from such a stream is not portable.
688
689 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
690
691         * lib/poll.c: Rewrite.
692         * modules/poll: Depend on alloca.
693
694 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
695
696         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
697         instead define prototypes for a full set of wrappers.  Ensure
698         that Cygwin does not use the compatibility code, which is only
699         for MinGW.
700         * lib/winsock.c: New.
701         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
702         * modules/sys_socket: Add lib/winsock.c.
703
704         * modules/poll-tests: Add errno and perror.
705         * tests/test-poll.c: Use ioctl, not ioctlsocket.
706
707 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
708
709         * tests/test-poll.c: Downgrade minimum needed Winsock version.
710
711 2008-09-23  Bruno Haible  <bruno@clisp.org>
712
713         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
714         * doc/glibc-functions/*: Likewise.
715
716 2008-09-23  Simon Josefsson  <simon@josefsson.org>
717
718         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
719         success.
720
721 2008-09-22  Eric Blake  <ebb9@byu.net>
722             Bruno Haible  <bruno@clisp.org>
723
724         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
725         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
726         supply %A but mishandle pseudo-NaN.
727         Reported by Simon Josefsson.
728
729 2008-09-21  Bruno Haible  <bruno@clisp.org>
730
731         * tests/test-lock.c (main): Tweak skip message.
732         * tests/test-tls.c (main): Likewise.
733
734 2008-09-21  Bruno Haible  <bruno@clisp.org>
735
736         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
737         whether 'struct sigaction' has sa_sigaction here...
738         (gl_PREREQ_SIG_HANDLER_H): ... not here.
739         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
740
741 2008-09-21  Bruno Haible  <bruno@clisp.org>
742
743         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
744         section.
745         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
746         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
747         the new section.
748         (Support for obsolete systems lacking POSIX:2001): New section.
749         (String handling <string.h>): Move strdup to the new section.
750         Suggested by Simon Josefsson and Paolo Bonzini.
751
752 2008-09-21  Bruno Haible  <bruno@clisp.org>
753
754         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
755         exponents in %e and %g results on 'long double'. Needed for mingw's
756         improved *printf functions.
757         * tests/test-vasprintf-posix.c (test_function): Likewise.
758         * tests/test-snprintf-posix.h (test_function): Likewise.
759         * tests/test-sprintf-posix.h (test_function): Likewise.
760         Reported by Eric Blake.
761
762 2008-09-21  Bruno Haible  <bruno@clisp.org>
763
764         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
765         * tests/test-sprintf-posix.h (test_function): Likewise.
766
767 2008-09-21  Bruno Haible  <bruno@clisp.org>
768
769         * modules/getpass (Depends-on): Add strdup-posix.
770
771         New module 'strdup-posix'.
772         * modules/strdup-posix: New file.
773         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
774         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
776         REPLACE_STRDUP.
777         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
778         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
780         strdup-posix.
781
782         * modules/strdup (Depends-on): Remove malloc-posix.
783
784 2008-09-20  Bruno Haible  <bruno@clisp.org>
785
786         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
787         Wildenhues.
788
789 2008-09-20  Bruno Haible  <bruno@clisp.org>
790
791         Ensure that wint_t gets defined on IRIX 5.3.
792         * lib/wchar.in.h (wint_t): Define if not defined by the system.
793         * lib/wctype.in.h (wint_t): Likewise.
794         (__wctype_wint_t): Remove type.
795         (isw*): Use wint_t instead of __wctype_wint_t.
796         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
797         * modules/wchar (Files): Add m4/wint_t.m4.
798         (Makefile.am): Substitute HAVE_WINT_T.
799         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
800         * tests/test-wctype.c: Check that wint_t is defined.
801         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
802         * doc/posix-headers/wctype.texi: Likewise.
803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
804
805 2008-09-18  Bruno Haible  <bruno@clisp.org>
806
807         * gnulib-tool (func_exit): Update comment.
808
809 2008-09-18  Simon Josefsson  <simon@josefsson.org>
810
811         * modules/getaddrinfo (Depends-on): Remove strdup, this module
812         assumes strdup exists and does not depend on strdup to return
813         ENOMEM on out of memory conditions.
814
815 2008-09-18  Bruno Haible  <bruno@clisp.org>
816
817         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
818         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
819         digits for the exponent.
820
821 2008-09-18  Jim Meyering  <meyering@redhat.com>
822             Bruno Haible  <bruno@clisp.org>
823
824         * lib/vasnprintf.c (decimal_point_char): Define also if
825         NEED_PRINTF_INFINITE_LONG_DOUBLE.
826
827 2008-09-16  Bruno Haible  <bruno@clisp.org>
828         and Eric Blake  <ebb9@byu.net>
829
830         vasnprintf: support Irix 5.3
831         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
832         that mishandle long double infinity.
833         Reported by Tom G. Christensen.
834
835 2008-09-16  Bruno Haible  <bruno@clisp.org>
836
837         * doc/glibc-functions/scandir.texi: Mention the function is missing on
838         Solaris 9.
839         * doc/glibc-functions/alphasort.texi: Likewise.
840         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
841
842 2008-09-16  Jim Meyering  <meyering@redhat.com>
843
844         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
845         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
846         a umask modification leak out of a subshell.  Otherwise, the
847         opensolaris /bin/sh would be accepted and thus cause unwarranted
848         failures in the coreutils test suite.
849
850 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
851
852         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
853         to succeed.
854
855 2008-09-16  Jim Meyering  <meyering@redhat.com>
856
857         avoid spurious test failure when library is built without ACL support
858         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
859         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
860         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
861         * tests/test-copy-acl.sh: Likewise.
862
863 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
864
865         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
866         based on character occurrence counts.
867
868 2008-09-15  Eric Blake  <ebb9@byu.net>
869
870         tests: avoid some compiler warnings
871         * tests/test-memchr.c (main): Pass NULL indirectly.
872         * tests/test-closein.c (main): Avoid unused variable.
873
874 2008-09-15  Bruno Haible  <bruno@clisp.org>
875
876         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
877         are missing on OpenBSD 4.0 individually.
878         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
879
880 2008-09-15  Bruno Haible  <bruno@clisp.org>
881
882         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
883         * doc/posix-functions/strerror.texi: Mention also Cygwin.
884         * doc/posix-functions/perror.texi: Likewise.
885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
886         is missing.
887         Reported by Eric Blake.
888
889         * lib/errno.in.h: Use replacement values >= 2000.
890         Reported by Eric Blake.
891
892 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
893
894         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
895         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
896         limit.
897         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
898         compareseq was aborted.
899
900 2008-09-14  Bruno Haible  <bruno@clisp.org>
901
902         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
903         yvec_edit_count.
904         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
905         (fstrcmp_bounded): Simplify result computation accordingly.
906
907 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
908
909         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
910         (fstrcmp): Define in terms of fstrcmp_bounded.
911         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
912         lower_bound argument.
913         Return quickly if the result is certainly < lower_bound.
914         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
915
916 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
917
918         * lib/diffseq.h (EARLY_ABORT): New macro.
919         (compareseq): Change return type to bool. Return true when EARLY_ABORT
920         evaluates to true.
921
922 2008-09-14  Bruno Haible  <bruno@clisp.org>
923
924         * modules/perror-tests: New file.
925         * tests/test-perror.sh: New file.
926         * tests/test-perror.c: New file.
927
928         New module 'perror'.
929         * lib/stdio.in.h (perror): New declaration.
930         * lib/perror.c: New file.
931         * m4/perror.m4: New file.
932         * modules/perror: New file.
933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
934         * doc/posix-functions/perror.texi: Mention the perror module.
935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
936         REPLACE_PERROR.
937         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
938         REPLACE_PERROR.
939
940 2008-09-14  Bruno Haible  <bruno@clisp.org>
941
942         * modules/stdio (Makefile.am): Reorder to match the order in
943         lib/stdio.in.h.
944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
945
946 2008-09-13  Bruno Haible  <bruno@clisp.org>
947
948         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
949
950 2008-09-13  Bruno Haible  <bruno@clisp.org>
951
952         Extend strerror to cover the added errno values.
953         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
954         (rpl_strerror): Provide error messages for the added errno values and
955         for the WSA* values.
956         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
957         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
958         strerror.
959         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
960         * modules/strerror (Depends-on): Add errno.
961         * doc/posix-functions/strerror.texi: Document the change.
962         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
963         and EOVERFLOW.
964
965 2008-09-13  Bruno Haible  <bruno@clisp.org>
966
967         * modules/EOVERFLOW: Remove file.
968         * m4/eoverflow.m4: Remove file.
969         * modules/EOVERFLOW-tests: Remove file.
970         * tests/test-EOVERFLOW.c: Remove file.
971         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
972         * modules/ftell (Depends-on): Likewise.
973         * modules/getdelim (Depends-on): Likewise.
974         * modules/getugroups (Depends-on): Likewise.
975         * modules/poll (Depends-on): Likewise.
976         * modules/snprintf (Depends-on): Likewise.
977         * modules/sprintf-posix (Depends-on): Likewise.
978         * modules/vasnprintf (Depends-on): Likewise.
979         * modules/vasprintf (Depends-on): Likewise.
980         * modules/vfprintf-posix (Depends-on): Likewise.
981         * modules/vsnprintf (Depends-on): Likewise.
982         * modules/vsprintf-posix (Depends-on): Likewise.
983         * modules/xvasprintf (Depends-on): Likewise.
984         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
985         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
986         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
987         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
988         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
989         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
990         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
991         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
992         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
993         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
994         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
995         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
997         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
998         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
999         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
1000         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1001         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
1002         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
1003         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
1004         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1005         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
1006         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
1007         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
1008         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
1009         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1010         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
1011         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
1012         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
1013         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
1014         * MODULES.html.sh: Remove EOVERFLOW.
1015         * NEWS: Mention the change.
1016
1017 2008-09-13  Bruno Haible  <bruno@clisp.org>
1018
1019         * modules/errno-tests: New file.
1020         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
1021
1022         * lib/errno.in.h: New file.
1023         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
1024         * modules/errno: New file.
1025         * doc/posix-headers/errno.texi: Update documentation.
1026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
1027
1028 2008-09-13  Bruno Haible  <bruno@clisp.org>
1029
1030         * tests/test-poll.c: Use #if for native Windows, rather than testing
1031         __MSVCRT__.
1032
1033 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1034             Bruno Haible  <bruno@clisp.org>
1035
1036         * lib/glob.c: Don't include <pwd.h> on native Windows.
1037         (WINDOWS32): New macro.
1038         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
1039
1040 2008-09-13  Bruno Haible  <bruno@clisp.org>
1041
1042         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
1043         (ETIMEDOUT): Remove macro.
1044         (glthread_cond_timedwait_multithreaded): New declaration.
1045         (glthread_cond_timedwait): Use it.
1046         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
1047         (glthread_cond_timedwait_multithreaded): New function.
1048
1049 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1050
1051         * modules/poll-tests: Do not check for io.h.
1052         * tests/test-poll.c: Check for __MSVCRT__ instead.
1053
1054 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1055
1056         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
1057         * modules/poll-tests: Add inet_pton, stdbool, sockets.
1058         * tests/test-poll.c: Use them.  Use _pipe on Windows.
1059
1060 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
1061
1062         * modules/poll-tests: New.
1063         * tests/test-poll.c: New.
1064
1065 2008-09-12  Eric Blake  <ebb9@byu.net>
1066
1067         frexp: test for NetBSD failure on -0.0
1068         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
1069         not all, bugs from NetBSD 3.0 have been fixed.
1070         * doc/posix-functions/frexp.texi (frexp): Document bug.
1071         Reported by Thomas Klausner.
1072
1073         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
1074         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
1075         literal -0.0.
1076         Reported by Jonathan C. Patschke <jp@centtech.com>.
1077
1078 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1079
1080         * lib/glthread/cond.h: Use dummy implementation also if
1081         USE_WIN32_THREADS.
1082
1083 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1084
1085         * modules/fnmatch-posix (License): Change to LGPLv2+.
1086         * modules/fnmatch-gnu (License): Likewise.
1087
1088 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1089
1090         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
1091
1092 2008-09-11  Jim Meyering  <meyering@redhat.com>
1093
1094         * users.txt: Add gtk-vnc.
1095
1096 2008-09-08  Simon Josefsson  <simon@josefsson.org>
1097
1098         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
1099         rotate amounts.
1100
1101         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
1102         required for 16-bit and 8-bit rotates.
1103         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
1104         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
1105         UINT8_MAX instead of hard-coded constants.
1106         Suggested by Paul Eggert.
1107
1108 2008-09-07  Bruno Haible  <bruno@clisp.org>
1109
1110         * tests/test-striconveh.c (main): Check behaviour when converting from
1111         UTF-7.
1112
1113         Make striconveh work better with stateful encodings.
1114         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
1115         that iconv does not increment the inptr when returning -1/EINVAL.
1116
1117 2008-09-07  Bruno Haible  <bruno@clisp.org>
1118
1119         * build-aux/config.rpath: Update according to libtool-2.2.6.
1120         * build-aux/config.libpath: Likewise.
1121
1122 2008-09-06  Bruno Haible  <bruno@clisp.org>
1123
1124         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
1125         * lib/freadptr.c (freadptr): Likewise.
1126         * lib/freadseek.c (freadptrinc): Likewise.
1127         Reported by Simon Josefsson.
1128
1129 2008-09-06  Bruno Haible  <bruno@clisp.org>
1130
1131         * modules/freadptr (License): Change to LGPLv2+.
1132         * modules/freadseek (License): Likewise.
1133         Suggested by Eric Blake.
1134
1135         * modules/memchr2 (License): Change to LGPLv2+.
1136         Approved by Eric Blake.
1137
1138 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1139             Bruno Haible  <bruno@clisp.org>
1140
1141         Make gnulib-tool work with native 'sed' on AIX.
1142         * gnulib-tool (sed_noop): New variable.
1143         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
1144         func_add_or_update, func_create_testdir): Use it to initialize sed
1145         script variables.
1146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1147
1148 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
1149             Bruno Haible  <bruno@clisp.org>
1150
1151         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
1152         also works after #include directives.
1153
1154 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
1155
1156         getdate.y: reject an out-of-range timezone value
1157         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
1158         the range [-24...+24].  When specified with only one or two digits,
1159         * tests/test-getdate.c: Tests for the fix.
1160         * doc/getdate.texi: Document this change.
1161
1162 2008-09-03  Bruno Haible  <bruno@clisp.org>
1163
1164         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
1165
1166 2008-09-02  Simon Josefsson  <simon@josefsson.org>
1167
1168         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
1169         <bruce.korb@gmail.com> with ideas from Ben Pfaff
1170         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
1171         Blake <ebb9@byu.net>.
1172
1173         * tests/test-bitrotate.c: Add more test vectors.
1174
1175 2008-09-02  Eric Blake  <ebb9@byu.net>
1176
1177         vasnprintf-posix: handle large precision via %.*d
1178         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
1179         when handling it ourselves.
1180         * tests/test-vasnprintf-posix.c (test_function): Add test.
1181         * tests/test-snprintf-posix.h (test_function): Likewise.
1182         * tests/test-sprintf-posix.h (test_function): Likewise.
1183         * tests/test-vasprintf-posix.c (test_function): Likewise.
1184         Reported by Alain Guibert.
1185
1186 2008-09-01  Eric Blake  <ebb9@byu.net>
1187
1188         c-stack: make configure-time check more robust
1189         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
1190         successful sigaction call.
1191         Reported by Tom G. Christensen.
1192
1193 2008-09-01  Bruno Haible  <bruno@clisp.org>
1194
1195         New module 'findprog-lgpl'.
1196         * modules/findprog-lgpl: New file.
1197         * lib/findprog-lgpl.c: New file.
1198         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
1199         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
1200         to decide whether to use strdup or xstrdup, concatenated_filename or
1201         xconcatenated_filename.
1202
1203 2008-09-01  Bruno Haible  <bruno@clisp.org>
1204
1205         Split module 'concat-filename' into 'concat-filename' (LGPL) and
1206         'xconcat-filename' (GPL).
1207         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
1208         (License): Change to LGPLv2+.
1209         * modules/xconcat-filename: New file.
1210         * lib/concat-filename.h (concatenated_filename): Change specification.
1211         (xconcatenated_filename): New declaration.
1212         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
1213         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
1214         memory situations.
1215         * lib/xconcat-filename.c: New file.
1216         * NEWS: Mention the change.
1217         * lib/findprog.c: Include concat-filename.h, not filename.h.
1218         (find_in_path): Use xconcatenated_filename instead of
1219         concatenated_filename.
1220         * lib/javacomp.c: Include concat-filename.h, not filename.h.
1221         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
1222         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
1223         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
1224         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
1225         instead of concatenated_filename.
1226         * lib/javaexec.c: Include concat-filename.h, not filename.h.
1227         (execute_java_class): Use xconcatenated_filename instead of
1228         concatenated_filename.
1229         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
1230         * modules/javacomp (Depends-on): Likewise.
1231         * modules/javaexec (Depends-on): Likewise.
1232
1233 2008-09-01  Bruno Haible  <bruno@clisp.org>
1234
1235         Split module 'filename' into 'filename' and 'concat-filename'.
1236         * modules/filename: Keep only lib/filename.h.
1237         (License): Change to LGPLv2+.
1238         * modules/concat-filename: New file, extracted from modules/filename.
1239         * lib/filename.h (concatenated_filename): Remove declaration.
1240         * lib/concat-filename.h: New file, extracted from lib/filename.h.
1241         * lib/concat-filename.c: Include concat-filename.h.
1242         * NEWS: Mention the change.
1243
1244 2008-09-01  Simon Josefsson  <simon@josefsson.org>
1245
1246         * lib/bitrotate.h (rotl8, rotr8): Add.
1247
1248         * modules/bitrotate (configure.ac): Need
1249         AC_REQUIRE([AC_C_INLINE]).
1250         (Description): Mention stdint.h.  Reported by Bruno Haible
1251         <bruno@clisp.org>.
1252
1253         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
1254         Paolo Bonzini <bonzini@gnu.org>.
1255
1256 2008-08-31  Bruno Haible  <bruno@clisp.org>
1257
1258         Assume Solaris specific bi-arch conventions on Solaris systems.
1259         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
1260         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
1261         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
1262         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
1263         like acl_libdirstem.
1264         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
1265         acl_libdirstem.
1266         * NEWS: Mention the change.
1267         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
1268
1269 2008-08-31  Jim Meyering  <meyering@redhat.com>
1270
1271         * lib/strftime.h: Add comments describing the two added arguments.
1272
1273         remove duplicate #include directives
1274         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
1275         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
1276
1277 2008-08-31  Bruno Haible  <bruno@clisp.org>
1278
1279         New module 'sigpipe-die'.
1280         * modules/sigpipe-die: New file.
1281         * lib/sigpipe-die.h: New file.
1282         * lib/sigpipe-die.c: New file.
1283         * MODULES.html.sh (Signal handling): Add sigpipe-die.
1284
1285 2008-08-31  Bruno Haible  <bruno@clisp.org>
1286
1287         Don't override previously installed signal handlers.
1288         * lib/fatal-signal.c (saved_sigactions): New variable.
1289         (uninstall_handlers): Reset the signal to the saved handler, not
1290         to SIG_DFL (except when ignored).
1291         (install_handlers): Save the previous handlers.
1292
1293 2008-08-30  Bruno Haible  <bruno@clisp.org>
1294
1295         * gnulib-tool (func_reset_sigpipe): New function.
1296         (func_get_automake_snippet, func_modules_transitive_closure,
1297         func_import): Invoke it before a join command that reads from stdin,
1298         to avoid "echo: write error: Broken pipe" error messages on stderr.
1299         Reported by Sam Steingold <sds@gnu.org>.
1300
1301 2008-08-30  Bruno Haible  <bruno@clisp.org>
1302
1303         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
1304         Code copied from m4/open.m4.
1305         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
1306         access and the filename ends in a slash. Code copied from lib/open.c.
1307         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
1308         * tests/test-fopen.c (main): Check against bug with trailing slash.
1309
1310 2008-08-29  Bruno Haible  <bruno@clisp.org>
1311
1312         Avoid some "gcc -pedantic" warnings.
1313         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
1314         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
1315         * lib/dirent.in.h: Likewise.
1316         * lib/fcntl.in.h: Likewise.
1317         * lib/float.in.h: Likewise.
1318         * lib/iconv.in.h: Likewise.
1319         * lib/inttypes.in.h: Likewise.
1320         * lib/locale.in.h: Likewise.
1321         * lib/math.in.h: Likewise.
1322         * lib/netinet_in.in.h: Likewise.
1323         * lib/search.in.h: Likewise.
1324         * lib/signal.in.h: Likewise.
1325         * lib/stdarg.in.h: Likewise.
1326         * lib/stdint.in.h: Likewise.
1327         * lib/stdio.in.h: Likewise.
1328         * lib/stdlib.in.h: Likewise.
1329         * lib/string.in.h: Likewise.
1330         * lib/strings.in.h: Likewise.
1331         * lib/sys_select.in.h: Likewise.
1332         * lib/sys_socket.in.h: Likewise.
1333         * lib/sys_stat.in.h: Likewise.
1334         * lib/sys_time.in.h: Likewise.
1335         * lib/sysexits.in.h: Likewise.
1336         * lib/time.in.h: Likewise.
1337         * lib/unistd.in.h: Likewise.
1338         * lib/wchar.in.h: Likewise.
1339         * lib/wctype.in.h: Likewise.
1340         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1341         * modules/fchdir (Makefile.am): Likewise.
1342         * modules/fcntl (Makefile.am): Likewise.
1343         * modules/float (Makefile.am): Likewise.
1344         * modules/iconv_open (Makefile.am): Likewise.
1345         * modules/inttypes (Makefile.am): Likewise.
1346         * modules/locale (Makefile.am): Likewise.
1347         * modules/math (Makefile.am): Likewise.
1348         * modules/netinet_in (Makefile.am): Likewise.
1349         * modules/search (Makefile.am): Likewise.
1350         * modules/signal (Makefile.am): Likewise.
1351         * modules/stdarg (Makefile.am): Likewise.
1352         * modules/stdint (Makefile.am): Likewise.
1353         * modules/stdio (Makefile.am): Likewise.
1354         * modules/stdlib (Makefile.am): Likewise.
1355         * modules/string (Makefile.am): Likewise.
1356         * modules/strings (Makefile.am): Likewise.
1357         * modules/sys_select (Makefile.am): Likewise.
1358         * modules/sys_socket (Makefile.am): Likewise.
1359         * modules/sys_stat (Makefile.am): Likewise.
1360         * modules/sys_time (Makefile.am): Likewise.
1361         * modules/sysexits (Makefile.am): Likewise.
1362         * modules/time (Makefile.am): Likewise.
1363         * modules/unistd (Makefile.am): Likewise.
1364         * modules/wchar (Makefile.am): Likewise.
1365         * modules/wctype (Makefile.am): Likewise.
1366         Reported by Reuben Thomas <rrt@sc3d.org>.
1367
1368 2008-08-29  Bruno Haible  <bruno@clisp.org>
1369
1370         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
1371         any more.
1372
1373 2008-08-29  Simon Josefsson  <simon@josefsson.org>
1374
1375         * MODULES.html.sh (Misc): Add bitrotate.
1376
1377         * modules/bitrotate: New file.
1378
1379         * lib/bitrotate.h: New file.
1380
1381         * modules/bitrotate-tests: New file.
1382
1383         * tests/test-bitrotate.c: New file.
1384
1385         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
1386         on the bitrotate module.
1387
1388         * lib/arctwo.c: Use new bitrotate module.
1389
1390 2008-08-29  Jim Meyering  <meyering@redhat.com>
1391
1392         bootstrap: merge changes from coreutils
1393         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
1394         of copied files.  Remove a kludge, now that this is fixed.
1395         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
1396         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
1397         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
1398
1399 2008-08-29  Bruno Haible  <bruno@clisp.org>
1400
1401         * MODULES.html.sh: Remove --cvs-urls option.
1402
1403 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
1404
1405         maint.mk: adjust to file name change
1406         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
1407
1408 2008-08-28  Jim Meyering  <meyering@redhat.com>
1409
1410         * modules/getndelim2 (License): Relicense to LGPLv2+.
1411         Approved by Richard Stallman for the version of 1995, and by
1412         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
1413
1414 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
1415
1416         * lib/getdelim.c (flockfile, funlockfile): Make all of them
1417         dummy if one is not available.  Do not touch them if
1418         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
1419         (getc_maybe_unlocked): New.
1420         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
1421
1422 2008-08-26  Eric Blake  <ebb9@byu.net>
1423
1424         doc/INSTALL: resync from autoconf
1425         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1426         (INSTALL_PRELUDE): Delete; this is done more efficiently by
1427         moving...
1428         * install.texi [!autoconf]: ...here.  Resync from autoconf.
1429         * INSTALL: Regenerate.
1430         * INSTALL.ISO: New file.
1431         * INSTALL.UTF-8: Likewise.
1432
1433 2008-08-26  Jim Meyering  <meyering@redhat.com>
1434
1435         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
1436         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
1437         these definitions conditional, so that they may be overridden, too.
1438
1439 2008-08-26  Bruno Haible  <bruno@clisp.org>
1440
1441         Generate INSTALL file variants with prettier quotes.
1442         * doc/Makefile (INSTALL_PRELUDE): New macro.
1443         (INSTALL): Use it.
1444         (INSTALL.ISO, INSTALL.UTF-8): New rules.
1445
1446 2008-08-26  Bruno Haible  <bruno@clisp.org>
1447
1448         Run makeinfo in an English locale.
1449         * doc/Makefile (MAKEINFO): New variable.
1450
1451 2008-08-26  Bruno Haible  <bruno@clisp.org>
1452
1453         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
1454         Suggested by Eric Blake.
1455
1456 2008-08-25  Bruno Haible  <bruno@clisp.org>
1457
1458         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
1459
1460 2008-08-25  Eric Blake  <ebb9@byu.net>
1461
1462         c-stack: test that stack overflow can be caught
1463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
1464         that platform allows handling stack overflow; at least OS/2 EMX
1465         has sigaltstack, but crashes before transferring control to
1466         handler on stack overflow.
1467         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
1468         check for HAVE_STACK_OVERFLOW_HANDLING.
1469         Reported by Elbert Pol.
1470
1471 2008-08-25  Bruno Haible  <bruno@clisp.org>
1472
1473         * doc/posix-functions/strftime.texi: Fix description of strftime
1474         module.
1475
1476 2008-08-24  Bruno Haible  <bruno@clisp.org>
1477
1478         * tests/uniwidth/test-uc_width2.c: New file.
1479         * tests/uniwidth/test-uc_width2.sh: New file.
1480         * modules/uniwidth/width-tests (Files): Add the new files.
1481         (TESTS): Add uniwidth/test-uc_width2.sh.
1482         (TESTS_ENVIRONMENT): New variable.
1483         (check_PROGRAMS): Add test-uc_width2.
1484         (test_uc_width2_SOURCES): New variable.
1485
1486         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
1487         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
1488         not 0x00AB.
1489         Reported by Alexander V. Lukyanov <lav@netis.ru>.
1490
1491 2008-08-22  Eric Blake  <ebb9@byu.net>
1492
1493         test-lock, test-tls: mention why a test is skipped
1494         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
1495         skipped.
1496         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
1497
1498         count-one-bits: relax license
1499         * modules/count-one-bits (License): Relicense to LGPLv2+.
1500         Suggested by Ludovic Courtès, approved by Ben Pfaff.
1501
1502 2008-08-22  Andreas Schwab  <schwab@suse.de>
1503
1504         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1505         Remove spurious space in assignment.
1506
1507 2008-08-21  Simon Josefsson  <simon@josefsson.org>
1508
1509         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
1510         Paul Eggert <eggert@CS.UCLA.EDU>.
1511
1512 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
1513
1514         * modules/gettext: Add m4/threadlib.m4.
1515
1516 2008-08-19  Eric Blake  <ebb9@byu.net>
1517
1518         test-c-stack: fix compilation failure on FreeBSD 5.0
1519         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
1520         headers before <sys/resource.h>.
1521         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
1522         the bug.
1523         Reported by Nelson H. F. Beebe.
1524
1525         strverscmp: migrate from "strverscmp.h" to <string.h>
1526         * modules/string (Makefile.am): Add new hooks.
1527         * modules/strverscmp (Files): Remove strverscmp.h.
1528         (Depends-on): Add string.
1529         (configure.ac): Add indicator.
1530         (Include): Mention new header.
1531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
1532         defaults.
1533         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
1534         results.
1535         * lib/strverscmp.h: Delete.
1536         * lib/string.in.h (strverscmp): Provide declaration, when needed.
1537         * tests/test-strverscmp.c (includes): Adjust client.
1538         * lib/check-version.c (includes): Likewise.
1539         * NEWS: Document the change.
1540
1541         strverscmp: add unit test
1542         * modules/strverscmp-tests: New file.
1543         * tests/test-strverscmp.c: Likewise.
1544
1545 2008-08-19  Simon Josefsson  <simon@josefsson.org>
1546
1547         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
1548         regarding Windows crypto stuff, from Mono.
1549
1550 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
1551
1552         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
1553         if present, for intel RND.  Return error on failures.
1554
1555 2008-08-18  Ben Pfaff  <blp@gnu.org>
1556
1557         gitlog-to-changelog: give better diagnostic for failed pipe-open
1558         * build-aux/gitlog-to-changelog: Improve error message: suggest
1559         that the version of Git may be too old.
1560
1561 2008-08-18  Simon Josefsson  <simon@josefsson.org>
1562
1563         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
1564         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
1565
1566 2008-08-18  Bruno Haible  <bruno@clisp.org>
1567
1568         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
1569         pthread_in_use().
1570
1571 2008-08-18  Bruno Haible  <bruno@clisp.org>
1572
1573         * lib/glthread/threadlib.c: Include <pthread.h>.
1574
1575 2008-08-18  Bruno Haible  <bruno@clisp.org>
1576
1577         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
1578         glthread_recursive_lock_* macros.
1579         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
1580         Fix syntax error.
1581
1582 2008-08-18  Bruno Haible  <bruno@clisp.org>
1583
1584         * lib/glthread/thread.c: Avoid forcing a context switch right after
1585         thread creation.
1586
1587 2008-08-17  Bruno Haible  <bruno@clisp.org>
1588
1589         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
1590         * lib/glthread/thread.h: Provide Win32 specific implementation.
1591         * modules/thread (Files): Add lib/glthread/thread.c.
1592         (Depends-on): Add lock.
1593         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1594
1595 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1596
1597         New module 'yield'.
1598         * modules/yield: New file.
1599         * lib/glthread/yield.h: New file.
1600         * m4/yield.m4: New file.
1601         * MODULES.html.sh (Multithreading): Add yield.
1602
1603 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1604
1605         New module 'thread'.
1606         * modules/thread: New file.
1607         * lib/glthread/thread.h: New file.
1608         * m4/thread.m4: New file.
1609         * MODULES.html.sh (Multithreading): Add thread.
1610
1611 2008-08-17  Bruno Haible  <bruno@clisp.org>
1612
1613         * lib/glthread/lock.h: Include <stdlib.h> always.
1614         * lib/glthread/tls.h: Likewise.
1615         * lib/glthread/cond.h: Likewise.
1616
1617 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1618
1619         New module 'cond'.
1620         * modules/cond: New file.
1621         * lib/glthread/cond.h: New file.
1622         * lib/glthread/cond.c: New file.
1623         * m4/cond.m4: New file.
1624         * MODULES.html.sh (Multithreading): Add cond.
1625
1626 2008-08-16  Eric Blake  <ebb9@byu.net>
1627
1628         c-stack: fix regression on Irix 5.3 from 2008-06-21
1629         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1630         sa_sigaction...
1631         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1632         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1633         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1634         * modules/signal (Makefile.am): Use the value.
1635         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1636         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1637         * doc/posix-headers/signal.texi (signal.h): Document this
1638         portability issue.
1639         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1640         Reported by Tom G. Christensen.
1641
1642 2008-08-17  Bruno Haible  <bruno@clisp.org>
1643
1644         New module 'threadlib'.
1645         * modules/threadlib: New file.
1646         * lib/glthread/threadlib.c: New file, extracted from
1647         lib/glthread/lock.c.
1648         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1649         functions.
1650         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1651         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1652         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1653         macros.
1654         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1655         (gl_DISABLE_THREADS): Remove macro.
1656         * modules/lock (Files): Remove build-aux/config.rpath.
1657         (Depends-on): Remove havelib. Add threadlib.
1658         (configure.ac-early): Remove section.
1659         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1660         * modules/tls (Depends-on): Remove lock. Add threadlib.
1661         (Link): New section, copied from threadlib.
1662         * MODULES.html.sh (Multithreading): Add threadlib.
1663
1664 2008-08-14  Bruno Haible  <bruno@clisp.org>
1665
1666         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1667         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1668         glthread_rwlock_unlock, glthread_rwlock_destroy,
1669         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1670         glthread_recursive_lock_destroy): Define as macros always.
1671         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1672         glthread_lock_lock.
1673         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1674         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1675         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1676         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1677         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1678         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1679         (glthread_recursive_lock_lock_func): Renamed from
1680         glthread_recursive_lock_lock.
1681         (glthread_recursive_lock_unlock_func): Renamed from
1682         glthread_recursive_lock_unlock.
1683         (glthread_recursive_lock_destroy_func): Renamed from
1684         glthread_recursive_lock_destroy.
1685
1686 2008-08-14  Bruno Haible  <bruno@clisp.org>
1687
1688         * lib/glthread/lock.h: Renamed from lib/lock.h.
1689         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1690         * lib/glthread/tls.h: Renamed from lib/tls.h.
1691         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1692         * lib/fstrcmp.c: Update includes.
1693         * lib/strsignal.c: Update includes.
1694         * modules/lock (Files, Makefile.am): Update.
1695         (Include): Change to "glthread/lock.h".
1696         * modules/tls (Files, Makefile.am): Update.
1697         (Include): Change to "glthread/tls.h".
1698         * tests/test-lock.c: Update includes.
1699         * tests/test-tls.c: Update includes.
1700         * NEWS: Mention the renamed header files.
1701
1702 2008-08-11  Jim Meyering  <meyering@redhat.com>
1703
1704         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1705
1706 2008-08-11  Eric Blake  <ebb9@byu.net>
1707
1708         test-c-stack: avoid C99-ism
1709         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1710         before statement.
1711         Reported by Alain Guibert.
1712
1713 2008-08-10  Jim Meyering  <meyering@redhat.com>
1714
1715         ensure that return value of uinttostr et al are not ignored
1716         * lib/inttostr.h (__GNUC_PREREQ): Define.
1717         (__attribute_warn_unused_result__): Define.
1718         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1719
1720 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1721
1722         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1723         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1724
1725 2008-08-07  Jim Meyering  <meyering@redhat.com>
1726
1727         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1728
1729         * modules/mkstemp (License): Relicense under LGPLv2+.
1730         * modules/tempname (License): Likewise.
1731
1732 2008-08-06  Bruno Haible  <bruno@clisp.org>
1733
1734         * lib/poll.c (poll): Further micro-optimization.
1735
1736 2008-08-06  Jim Meyering  <meyering@redhat.com>
1737
1738         inet_pton.c: use locale-independent tolower
1739         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1740         (inet_pton6): Use c_tolower rather than tolower.
1741         * modules/inet_pton (Depends-on): Add c-ctype.
1742
1743 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1744
1745         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1746         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1747
1748 2008-08-06  Jim Meyering  <meyering@redhat.com>
1749
1750         * modules/inet_pton (License): Relicense under LGPLv2+.
1751
1752 2008-08-03  Bruno Haible  <bruno@clisp.org>
1753
1754         Additional non-aborting API for lock and tls.
1755         * lib/lock.h: Include <errno.h>.
1756         (glthread_lock_init): New macro/function.
1757         (gl_lock_init): Define as wrapper around glthread_lock_init.
1758         (glthread_lock_lock): New macro/function.
1759         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1760         (glthread_lock_unlock): New macro/function.
1761         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1762         (glthread_lock_destroy): New macro/function.
1763         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1764         (glthread_rwlock_init): New macro/function.
1765         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1766         (glthread_rwlock_rdlock): New macro/function.
1767         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1768         (glthread_rwlock_wrlock): New macro/function.
1769         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1770         (glthread_rwlock_unlock): New macro/function.
1771         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1772         (glthread_rwlock_destroy): New macro/function.
1773         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1774         (glthread_recursive_lock_init): New macro/function.
1775         (gl_recursive_lock_init): Define as wrapper around
1776         glthread_recursive_lock_init.
1777         (glthread_recursive_lock_lock): New macro/function.
1778         (gl_recursive_lock_lock): Define as wrapper around
1779         glthread_recursive_lock_lock.
1780         (glthread_recursive_lock_unlock): New macro/function.
1781         (gl_recursive_lock_unlock): Define as wrapper around
1782         glthread_recursive_lock_unlock.
1783         (glthread_recursive_lock_destroy): New macro/function.
1784         (gl_recursive_lock_destroy): Define as wrapper around
1785         glthread_recursive_lock_destroy.
1786         (glthread_once): New macro/function.
1787         (gl_once): Define as wrapper around glthread_once.
1788         Update function declarations.
1789         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1790         glthread_rwlock_init. Return error code.
1791         (glthread_rwlock_rdlock_multithreaded): Renamed from
1792         glthread_rwlock_rdlock. Return error code.
1793         (glthread_rwlock_wrlock_multithreaded): Renamed from
1794         glthread_rwlock_wrlock. Return error code.
1795         (glthread_rwlock_unlock_multithreaded): Renamed from
1796         glthread_rwlock_unlock. Return error code.
1797         (glthread_rwlock_destroy_multithreaded): Renamed from
1798         glthread_rwlock_destroy. Return error code.
1799         (glthread_recursive_lock_init_multithreaded): Renamed from
1800         glthread_recursive_lock_init. Return error code.
1801         (glthread_recursive_lock_lock_multithreaded): Renamed from
1802         glthread_recursive_lock_lock. Return error code.
1803         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1804         glthread_recursive_lock_unlock. Return error code.
1805         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1806         glthread_recursive_lock_destroy. Return error code.
1807         (glthread_once_call): Make static.
1808         (glthread_once_multithreaded): Renamed from glthread_once.
1809         * lib/tls.h: Include <errno.h>.
1810         (glthread_tls_key_init): New macro/function.
1811         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1812         (glthread_tls_set): New macro/function.
1813         (gl_tls_set): Define as wrapper around glthread_tls_set.
1814         (glthread_tls_key_destroy): New macro/function.
1815         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1816         Update function declarations.
1817         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1818         glthread_tls_get.
1819         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1820
1821 2008-08-04  Eric Blake  <ebb9@byu.net>
1822
1823         gnumakefile: use space, not TAB, outside of targets
1824         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1825
1826 2008-08-02  Jim Meyering  <meyering@redhat.com>
1827
1828         getdate.y: avoid locale-dependent date parsing failure
1829         In Turkish locales, getdate would fail to recognize keywords
1830         containing a lowercase "i".  The solution is not to rely on
1831         locale-sensitive case-conversion.
1832         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1833         (lookup_word): Use c_toupper in place of toupper.
1834         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1835         Reported by Vefa Bicakci <bicave@superonline.com> in
1836         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1837         * modules/getdate (Depends-on): Add c-ctype.
1838
1839 2008-08-02  Bruno Haible  <bruno@clisp.org>
1840
1841         * gnulib-tool (func_import): When updating or creating a .gitignore
1842         file, prepend each added line with a slash, and ignore leading slashes
1843         from the existing lines.
1844         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1845
1846 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1847
1848         Portability fix for GNU make 3.79.1.
1849         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1850         versions do not understand.
1851
1852 2008-08-01  Bruno Haible  <bruno@clisp.org>
1853
1854         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1855         * tests/test-isnanf.h (zero): New variable.
1856         (main): Avoid literal -0.0f.
1857         * tests/test-isnand.h (zero): New variable.
1858         (main): Avoid literal -0.0.
1859         * tests/test-isnanl.h (zero): New variable.
1860         (main): Avoid literal -0.0L.
1861         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1862         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1863         -0.0, -0.0L.
1864         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1865         (test_signbitd): Avoid literal -0.0.
1866         (test_signbitl): Avoid literal -0.0L.
1867         * tests/test-ceilf1.c (zero): New variable.
1868         (main): Avoid literal -0.0f.
1869         * tests/test-ceill.c (zero): New variable.
1870         (main): Avoid literal -0.0L.
1871         * tests/test-floorf1.c (zero): New variable.
1872         (main): Avoid literal -0.0f.
1873         * tests/test-floorl.c (zero): New variable.
1874         (main): Avoid literal -0.0L.
1875         * tests/test-roundf1.c (zero): New variable.
1876         (main): Avoid literal -0.0f.
1877         * tests/test-round1.c (zero): New variable.
1878         (main): Avoid literal -0.0.
1879         * tests/test-roundl.c (zero): New variable.
1880         (main): Avoid literal -0.0L.
1881         * tests/test-truncf1.c (zero): New variable.
1882         (main): Avoid literal -0.0f.
1883         * tests/test-trunc1.c (zero): New variable.
1884         (main): Avoid literal -0.0.
1885         * tests/test-truncl.c (zero): New variable.
1886         (main): Avoid literal -0.0L.
1887         * tests/test-frexp.c (zero): New variable.
1888         (main): Avoid literal -0.0.
1889         * tests/test-frexpl.c (zero): New variable.
1890         (main): Avoid literal -0.0L.
1891         * tests/test-ldexpl.c (zero): New variable.
1892         (main): Avoid literal -0.0L.
1893         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1894         (zerod, zerol): New variables.
1895         (test_function): Avoid literals -0.0, -0.0L.
1896         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1897         (zerod, zerol): New variables.
1898         (test_function): Avoid literals -0.0, -0.0L.
1899         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1900         (zerod, zerol): New variables.
1901         (test_function): Avoid literals -0.0, -0.0L.
1902         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1903         (zerod, zerol): New variables.
1904         (test_function): Avoid literals -0.0, -0.0L.
1905         * tests/test-strtod.c (zero): New variable.
1906         (main): Avoid literal -0.0.
1907         Reported by Jonathan C. Patschke <jp@centtech.com>.
1908
1909 2008-07-31  Jim Meyering  <meyering@redhat.com>
1910
1911         sha256.h: correct definition of SHA224_DIGEST_SIZE
1912         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1913         Reported by Paulie Pena IV <paulie4@gmail.com>.
1914         Define as 224 / 8, rather than as a literal.
1915         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1916         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1917         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1918
1919 2008-07-31  Bruno Haible  <bruno@clisp.org>
1920
1921         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1922         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1923         Reported by Jonathan Patschke <jp@centtech.com>.
1924
1925 2008-07-31  Bruno Haible  <bruno@clisp.org>
1926
1927         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1928         Reported by Paolo Bonzini <bonzini@gnu.org>.
1929
1930 2008-07-30  Eric Blake  <ebb9@byu.net>
1931
1932         test-strtod: allow compilation without -lm
1933         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1934         Reported by Dennis Clarke <blastwave@gmail.com>.
1935
1936 2008-07-28  Jim Meyering  <meyering@redhat.com>
1937
1938         bootstrap: work also when there are no .po files in po/
1939         * build-aux/bootstrap (update_po_files): Complete the change
1940         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1941
1942 2008-07-27  Jim Meyering  <meyering@redhat.com>
1943
1944         * users.txt: Add zile.
1945
1946 2008-07-26  Ben Pfaff  <blp@gnu.org>
1947
1948         Add missing dependencies on new m4/exponent[fdl].m4 files.
1949         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1950         * modules/isnand-nolibm: Add m4/exponentd.m4.
1951         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1952         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1953         m4/isnan[fdl].m4, because the macros actually used moved.
1954         Reported by Jim Meyering.
1955
1956 2008-07-14  Ben Pfaff  <blp@gnu.org>
1957
1958         Add isinf module.
1959         * lib/isinf.c: New file.
1960         * lib/math.in.h: Define isinf macro if we have decided to replace
1961         it.
1962         * m4/isinf.m4: New file.
1963         * m4/math_h.m4: Initialize and substitute variables for isinf
1964         module.
1965         * modules/isinf: New file.
1966         * modules/isinf-tests: New file.
1967         * modules/math: Add substitutions for new module.
1968         * tests/test-isinf.c: New file.
1969         * doc/posix-functions/isinf.texi: Mention new module.
1970         * MODULES.html.sh: Mention new module.
1971
1972 2008-07-14  Ben Pfaff  <blp@gnu.org>
1973
1974         Factor out some macros for use by additional modules.
1975         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1976         exponentf.m4.
1977         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1978         exponentd.m4.
1979         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1980         file exponentl.m4.
1981         * m4/exponentf.m4: New file.
1982         * m4/exponentd.m4: New file.
1983         * m4/exponentl.m4: New file.
1984         * modules/isnanf: Use new file m4/exponentf.m4.
1985         * modules/isnand: Use new file m4/exponentd.m4.
1986         * modules/isnanl: Use new file m4/exponentl.m4.
1987
1988 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1989
1990         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1991         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1992         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1993         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1994
1995         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1996         readlink on platforms without PATH_MAX.
1997
1998 2008-07-21  Eric Blake  <ebb9@byu.net>
1999
2000         Warn, not fail, on stale version.
2001         * top/GNUmakefile (_curr-ver): Tone down previous patch.
2002
2003         Don't allow installation with stale devel version number.
2004         * top/GNUmakefile (_is-install-target): New macro.
2005         (_curr-ver): Forbid installation with stale version number.
2006
2007 2008-07-20  Bruno Haible  <bruno@clisp.org>
2008
2009         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
2010         TESTS_ENVIRONMENT.
2011         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
2012
2013 2008-07-20  Bruno Haible  <bruno@clisp.org>
2014
2015         * lib/c-stack.h (c_stack_action): Add documentation.
2016         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
2017
2018 2008-07-20  Bruno Haible  <bruno@clisp.org>
2019
2020         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
2021         * modules/readlink (License): Likewise.
2022
2023 2008-07-17  Eric Blake  <ebb9@byu.net>
2024
2025         * modules/c-stack (Link): Fix typo.
2026
2027         Make c-stack use libsigsegv, when available.
2028         * modules/c-stack (Depends-on): Add libsigsegv.
2029         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
2030         needed.
2031         * lib/c-stack.c (SIGSTKSZ): Define fallback.
2032         (segv_handler, overflow_handler, c_stack_action)
2033         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
2034         implementation when libsigsegv is available, but only when using
2035         the library is necessary.
2036         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
2037         comment, explaining why XSI check fails on Linux.
2038         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
2039         * tests/test-c-stack2.sh: Tweak skip message.
2040         * NEWS: Document new link-time requirements.
2041
2042 2008-07-16  Eric Blake  <ebb9@byu.net>
2043
2044         c-stack: Expose false positives when not using libsigsegv.
2045         * modules/c-stack-tests (Files): Expand test.
2046         * tests/test-c-stack.c (main): Add means to conditionally trigger
2047         non-overflow SIGSEGV.
2048         * tests/test-c-stack2.sh: New file.
2049
2050 2008-07-14  Bruno Haible  <bruno@clisp.org>
2051
2052         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
2053         Reported by Eric Blake.
2054
2055 2008-07-14  Sam Steingold  <sds@gnu.org>
2056             Bruno Haible  <bruno@clisp.org>
2057
2058         New module libsigsegv.
2059         * modules/libsigsegv: New file.
2060         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
2061         modifications.
2062         * MODULES.html.sh (Signal handling): New section.
2063
2064 2008-07-14  Bruno Haible  <bruno@clisp.org>
2065
2066         * modules/unictype/ctype-* (Description): Add the word "function".
2067         Improves the resulting doc in MODULES.html.
2068
2069 2008-07-12  Ben Pfaff  <blp@gnu.org>
2070
2071         Add longlong module.
2072         * modules/longlong: New file.
2073
2074 2008-07-12  Bruno Haible  <bruno@clisp.org>
2075
2076         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
2077         to empty.
2078
2079 2008-07-10  Ben Pfaff  <blp@gnu.org>
2080
2081         Add isnan module.
2082         * doc/posix-functions/isnan.texi: Mention new module.
2083         * lib/math.in.h: Define isnan macro if we have decided to replace
2084         it.
2085         * m4/isnan.m4: New file.
2086         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
2087         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
2088         also.
2089         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
2090         redundancy.
2091         * m4/math_h.m4: Initialize and substitute variables for isnan
2092         module.
2093         * modules/isnan: New file.
2094         * modules/isnan-tests: New file.
2095         * modules/math: Add substitutions for new module.
2096         * tests/test-isnan.c: New file.
2097         * MODULES.html.sh: Mention new module.
2098
2099 2008-07-10  Ben Pfaff  <blp@gnu.org>
2100
2101         Add isnanf module.
2102         * lib/isnanf.m4: New file.
2103         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
2104         (gl_HAVE_ISNANF_IN_LIBM): New macro.
2105         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
2106         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
2107         * modules/isnanf: New file.
2108         * modules/isnanf-tests: New file.
2109         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
2110         files.
2111         * tests/test-isnanf-nolibm.c: factored most of its contents into
2112         new file tests/test-isnanf.h.
2113         * tests/test-isnanf.h: New file.
2114         * tests/test-isnanf.c: New file.
2115         * MODULES.html.sh: Mention new module.
2116         * doc/glibc-functions/isnanf.texi: Mention new module.
2117
2118 2008-07-10  Ben Pfaff  <blp@gnu.org>
2119
2120         Add isnand module.
2121         * lib/isnand.h: New file.
2122         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
2123         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
2124         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
2125         functionality also.
2126         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
2127         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
2128         (gl_HAVE_ISNAND_IN_LIBM): New macro.
2129         * modules/isnand: New file.
2130         * modules/isnand-tests: New file.
2131         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
2132         files.
2133         * tests/test-isnand-nolibm.c: factored most of its contents into
2134         new file tests/test-isnand.h.
2135         * tests/test-isnand.h: New file.
2136         * tests/test-isnand.c: New file.
2137         * MODULES.html.sh: Mention new module.
2138
2139 2008-07-10  Ben Pfaff  <blp@gnu.org>
2140
2141         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
2142         * lib/isnand.h: Rename lib/isnand-nolibm.h.
2143         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
2144         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
2145         * modules/isnanf-nolibm: Update references to renamed files.
2146         * modules/isnand-nolibm: Likewise.
2147         * modules/isnanf-nolibm-tests: Likewise.
2148         * modules/isnand-nolibm-tests: Likewise.
2149         * lib/frexp.c: Likewise.
2150         * lib/isfinite.c: Likewise.
2151         * lib/signbitd.c: Likewise.
2152         * lib/signbitf.c: Likewise.
2153         * lib/vasnprintf.c: Likewise.
2154         * tests/test-ceilf1.c: Likewise.
2155         * tests/test-ceilf2.c: Likewise.
2156         * tests/test-floorf1.c: Likewise.
2157         * tests/test-floorf2.c: Likewise.
2158         * tests/test-frexp.c: Likewise.
2159         * tests/test-round1.c: Likewise.
2160         * tests/test-round2.c: Likewise.
2161         * tests/test-roundf1.c: Likewise.
2162         * tests/test-strtod.c: Likewise.
2163         * tests/test-trunc1.c: Likewise.
2164         * tests/test-trunc2.c: Likewise.
2165         * tests/test-truncf1.c: Likewise.
2166         * tests/test-truncf2.c: Likewise.
2167         * NEWS: Mention the renamed header files.
2168
2169 2008-07-11  Jim Meyering  <meyering@redhat.com>
2170
2171         vc-list-files: make the last-resort awk code more portable
2172         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
2173         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
2174         does not support it.
2175
2176 2008-07-10  Eric Blake  <ebb9@byu.net>
2177
2178         Work with tar's bootstrap.
2179         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
2180         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
2181         an m4 comment.
2182
2183 2008-07-09  Jim Meyering  <meyering@redhat.com>
2184
2185         posix-shell.m4: fix typo that made this test malfunction
2186         * m4/posix-shell.m4: Remove capitalization in variable name.
2187
2188 2008-07-08  Bruno Haible  <bruno@clisp.org>
2189
2190         * m4/onceonly.m4: Update comments.
2191         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2192
2193 2008-07-04  Jim Meyering  <meyering@redhat.com>
2194
2195         * users.txt: Add vc-dwim.
2196         (bison, coreutils): Use the gitweb URL.
2197
2198 2008-07-03  Jim Meyering  <meyering@redhat.com>
2199
2200         * users.txt: Add libffcall.  From Sam Steingold.
2201
2202 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
2203
2204         getdate.y: do not ignore TZ with relative day, month or year offset
2205         * lib/getdate.y (get_date): Move the tz-handling block to follow the
2206         relative-date-handling, since otherwise, the latter would clobber the
2207         sole output (an updated Start value) of the tz-handling block.
2208         * tests/test-getdate.c: Tests for the fix
2209
2210 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2211
2212         Recognize 'foo_LIBRARIES += libgnu.a'.
2213         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
2214         makefile snippet has already specified an installation location,
2215         also using '+='.
2216
2217 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
2218
2219         getdate.y: factor out common actions
2220         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
2221         Use them in place of open-coded actions.
2222
2223 2008-07-01  Simon Josefsson  <simon@josefsson.org>
2224
2225         Add self-test for getdate module.
2226         * modules/getdate-tests: New file.
2227         * tests/test-getdate.c: New file.
2228
2229 2008-06-29  Bruno Haible  <bruno@clisp.org>
2230
2231         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
2232         .gitignore.
2233         Reported by Sylvain Beucler <beuc@beuc.net>.
2234
2235 2008-06-29  Bruno Haible  <bruno@clisp.org>
2236
2237         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
2238         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
2239
2240 2008-06-29  Bruno Haible  <bruno@clisp.org>
2241
2242         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
2243         EXTRA_DIST.
2244         Reported by Sylvain Beucler <beuc@beuc.net>.
2245
2246 2008-06-26  Jim Meyering  <meyering@redhat.com>
2247
2248         make several modules depend on the "open" module
2249         This provides slightly increased consistency when opening-for-write
2250         the name of a non-directory spelled with a trailing slash.
2251         * modules/chdir-safer: Likewise.
2252         * modules/chown: Likewise.
2253         * modules/clean-temp: Likewise.
2254         * modules/copy-file: Likewise.
2255         * modules/fchdir: Likewise.
2256         * modules/fcntl-safer: Likewise.
2257         * modules/pipe: Likewise.
2258         * modules/utime: Likewise.
2259         Prompted by Eric Blake and Bruno Haible.
2260
2261 2008-06-24  Andreas Schwab  <schwab@suse.de>
2262
2263         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
2264         literals can be used as initializers for global variables.
2265
2266 2008-06-23  Eric Blake  <ebb9@byu.net>
2267
2268         Make gnulib-cache.m4 easier to diff.
2269         * gnulib-tool (func_import): Allow newlines when reading cached
2270         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
2271
2272 2008-06-23  Bruno Haible  <bruno@clisp.org>
2273
2274         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
2275         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
2276         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
2277         m4/signalblocking.m4.
2278         (gl_PREREQ_SIGACTION): Don't invoke it.
2279         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
2280         gl_PREREQ_SIG_HANDLER_H.
2281         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2282         Don't check for sigaction here.
2283
2284 2008-06-23  Bruno Haible  <bruno@clisp.org>
2285
2286         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
2287         (install_handlers): Don't set the SA_RESETHAND flag.
2288
2289 2008-06-23  Bruno Haible  <bruno@clisp.org>
2290
2291         * m4/sigaction.m4: Comment fixes.
2292         * lib/signal.in.h: Likewise.
2293
2294 2008-06-23  Eric Blake  <ebb9@byu.net>
2295
2296         Fix typo.
2297         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
2298
2299         Avoid SA_ namespace.
2300         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
2301         Reported by Ralf Wildenhues.
2302
2303         Avoid test failure due to SA_RESTORER.
2304         * tests/test-sigaction.c (SA_MASK): New macro.
2305         (main): Avoid failing due to extension flags being set.
2306         Reported by Jim Meyering.
2307
2308         Revert use of sig-handler.h in sigprocmask.c.
2309         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
2310         it requires the existence of struct sigaction.
2311         * lib/sigprocmask.c (handler_t): Restore typedef.
2312         (rpl_signal, old_handlers): Use local type.
2313
2314 2008-06-22  Bruno Haible  <bruno@clisp.org>
2315
2316         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
2317         conditionally.
2318         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2319
2320 2008-06-22  Bruno Haible  <bruno@clisp.org>
2321
2322         * doc/posix-functions/siginterrupt.texi: Move note.
2323
2324         * lib/signal.in.h (SA_RESTART): New macro.
2325         * lib/sigaction.c: Update comment.
2326
2327         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2328
2329         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2330         (gl_PREREQ_SIGPROCMASK): Invoke it.
2331         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2332
2333         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2334
2335         * lib/sigprocmask.c: Update a comment.
2336
2337 2008-06-21  Eric Blake  <ebb9@byu.net>
2338
2339         Use sigaction module rather than signal().
2340         * modules/c-stack (Depends-on): Add sigaction.
2341         * modules/fatal-signal (Depends-on): Likewise.
2342         * modules/nanosleep (Depends-on): Likewise.
2343         * modules/sigprocmask (Files): Add sig-handler.h.
2344         * modules/sigaction (Files): Likewise.
2345         * lib/sig-handler.h (get_handler): New file, suggested by Paul
2346         Eggert.
2347         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
2348         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
2349         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2350         (init_fatal_signals): Likewise.
2351         * lib/nanosleep.c (rpl_nanosleep): Likewise.
2352         (siginterrupt): Delete fallback.
2353         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
2354         instead.
2355         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
2356         siginterrupt.
2357
2358         New module sigaction, for mingw.
2359         * modules/sigaction: New module...
2360         * modules/sigaction-tests: ...and its test.
2361         * m4/sigaction.m4: New file.
2362         * lib/sigaction.c: Likewise.
2363         * tests/test-sigaction.c: Likewise.
2364         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
2365         * modules/signal (Makefile.am): Likewise.
2366         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
2367         needed.
2368         * doc/posix-headers/signal.texi (signal.h): Mention provided
2369         types.
2370         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
2371         that sigaction is preferable.
2372         * doc/posix-functions/sigaction.texi (sigaction): Mention new
2373         module.
2374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2375         sigaction.
2376
2377         Improve robustness of sigprocmask by overriding signal.
2378         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
2379         is in use.
2380         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
2381         (SIGKILL, SIGSTOP): Provide fallbacks.
2382         (rpl_signal): Implement.
2383         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
2384         signal can be called inside handlers.
2385
2386         Fix nanosleep module on mingw.
2387         * modules/nanosleep (Depends-on): Add sys_select.
2388         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
2389
2390         Fix licensing of sigprocmask.
2391         * modules/raise (License): Relicense as LGPL.
2392
2393 2008-06-21  Bruno Haible  <bruno@clisp.org>
2394
2395         * lib/propername.c (proper_name_utf8): Don't use the transliterated
2396         result if it contains question marks.
2397         Reported by Michael Geng <linux@michaelgeng.de>.
2398
2399 2008-06-19  Bruno Haible  <bruno@clisp.org>
2400
2401         Fix CVS-ism.
2402         * doc/gnulib.texi: Include updated-stamp.texi.
2403         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
2404         (updated-stamp.texi): New rule.
2405         (gnulib.info): Depend on it.
2406         * doc/.gitignore: Add updated-stamp.texi.
2407         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
2408
2409 2008-06-19  Bruno Haible  <bruno@clisp.org>
2410
2411         * doc/Makefile (gnulib.info): Update and simplify dependencies.
2412         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2413
2414 2008-06-19  Eric Blake  <ebb9@byu.net>
2415
2416         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
2417         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
2418         Reported by Stepan Kasal.
2419
2420 2008-06-18  Bruno Haible  <bruno@clisp.org>
2421
2422         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2423         Reported by Eric Blake.
2424
2425 2008-06-18  Eric Blake  <ebb9@byu.net>
2426
2427         Work around cygwin 1.5.25 strsignal bug.
2428         * tests/test-strsignal.c: Allow for const char *.
2429         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
2430
2431 2008-06-18  Simon Josefsson  <simon@josefsson.org>
2432
2433         * users.txt: Update URL to article and add author/date
2434         information.
2435
2436 2008-06-17  Bruno Haible  <bruno@clisp.org>
2437
2438         New macro gl_DISABLE_THREADS.
2439         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
2440         if the user did not pass --enable-threads or --disable-threads option.
2441         (gl_DISABLE_THREADS): New macro.
2442         Reported by Eric Blake <ebb9@byu.net>.
2443
2444 2008-06-17  Bruno Haible  <bruno@clisp.org>
2445
2446         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
2447         when the macro ignores it.
2448         Based on a patch by Eric Blake <ebb9@byu.net>.
2449
2450 2008-06-17  Bruno Haible  <bruno@clisp.org>
2451
2452         * modules/tls (License): Change to LGPLv2+.
2453         Reported by Eric Blake.
2454
2455 2008-06-17  Eric Blake  <ebb9@byu.net>
2456
2457         Simplify c-stack prerequisites.
2458         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
2459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
2460         no longer requires <ucontext.h> to exist.  Optimize setrlimit
2461         check.
2462         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
2463         <sys/resource.h>.
2464
2465         Move c-stack test into testsuite.
2466         * modules/c-stack-tests: New file.
2467         * lib/c-stack.c [DEBUG]: Move test program...
2468         * tests/test-c-stack.c: ...into this new file.  Skip rather than
2469         fail test if sigaltstack is lacking.
2470         * tests/test-c-stack.sh: New driver file.
2471
2472 2008-06-16  Eric Blake  <ebb9@byu.net>
2473
2474         Use raise module consistently.
2475         * modules/fatal-signal (Depends-on): Add raise.
2476         * modules/sigprocmask (Depends-on): Likewise.
2477         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
2478         * lib/sigprocmask.c (sigprocmask): Likewise.
2479         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2480         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
2481
2482         Fix compliance bug in sigpending.
2483         * lib/sigprocmask.c (sigpending): Return pending array via
2484         parameter, not return value.
2485
2486 2008-06-14  Eric Blake  <ebb9@byu.net>
2487
2488         Improve obstack-printf test code.
2489         * tests/test-obstack-printf.c (test_function): Fix comment, and
2490         simplify usage of obstack_* in macros.  Add a test for coverage.
2491         Reported by Bruno Haible.
2492
2493 2008-06-14  Bruno Haible  <bruno@clisp.org>
2494
2495         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
2496         array size as a constant, not as a const variable.
2497         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
2498         AC_USE_SYSTEM_EXTENSIONS.
2499         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2500         Test whether the obstack_printf function actually exists.
2501         * modules/obstack-printf (Depends-on): Add extensions.
2502         (Include): Remove obstack.h.
2503         * modules/obstack-printf-posix (Depends-on): Add extensions.
2504         (Include): Remove obstack.h.
2505
2506 2008-06-13  Eric Blake  <ebb9@byu.net>
2507
2508         Add obstack-printf and obstack-printf-posix modules.
2509         * modules/obstack-printf: New file.
2510         * modules/obstack-printf-posix: Likewise.
2511         * MODULES.html.sh (Misc): Mention them.
2512         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2513         Likewise.
2514         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2515         Likewise.
2516         * modules/stdio (Makefile.am): Accomodate new modules.
2517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2518         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
2519         Declare.
2520         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
2521         functions.
2522         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
2523         (gl_REPLACE_OBSTACK_PRINTF): New macros
2524         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
2525         * tests/test-obstack-printf.c: New file.
2526         * modules/obstack-printf-tests: Likewise.
2527         * modules/obstack-printf-posix-tests: Likewise.
2528
2529 2008-06-11  Bruno Haible  <bruno@clisp.org>
2530
2531         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
2532         * lib/open.c: Include errno.h.
2533         (open): Fail when attempting to write to a file that has a trailing
2534         slash.
2535         * tests/test-open.c (main): Test against trailing slash bug.
2536         * doc/posix-functions/open.texi: Mention the trailing slash bug.
2537
2538 2008-06-10  Bruno Haible  <bruno@clisp.org>
2539
2540         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
2541         for $? to work inside the trap command, with various /bin/sh-s.
2542         * tests/test-vc-list-files-cvs.sh: Likewise.
2543
2544 2008-06-10  Bruno Haible  <bruno@clisp.org>
2545
2546         * lib/acl-internal.h: Don't include gettext.h here.
2547         * lib/set-mode-acl.c: Include gettext.h here.
2548         * lib/copy-acl.c: Likewise.
2549
2550 2008-06-10  Bruno Haible  <bruno@clisp.org>
2551
2552         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
2553         * lib/wait-process.c (wait_subprocess): Likewise.
2554         * lib/execute.h (execute): Add termsigp argument.
2555         * lib/execute.c (execute): Likewise.
2556         * lib/csharpcomp.c (compile_csharp_using_pnet,
2557         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
2558         * lib/csharpexec.c (execute_csharp_using_pnet,
2559         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
2560         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2561         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2562         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2563         is_jikes_present): Update.
2564         * lib/javaexec.c (execute_java_class): Update.
2565         * lib/javaversion.c (execute_and_read_line): Update.
2566         * NEWS: Document the changes.
2567         Reported by Eric Blake.
2568
2569 2008-06-10  Eric Blake  <ebb9@byu.net>
2570
2571         Add missing include.
2572         * tests/test-strstr.c (includes): Add <signal.h>.
2573         * tests/test-strcasestr.c (includes): Likewise.
2574         * tests/test-memmem.c (includes): Likewise.
2575
2576 2008-06-10  Bruno Haible  <bruno@clisp.org>
2577
2578         * lib/wait-process.c (wait_subprocess): Add an assertion.
2579
2580 2008-06-10  Bruno Haible  <bruno@clisp.org>
2581
2582         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
2583
2584 2008-06-10  Bruno Haible  <bruno@clisp.org>
2585
2586         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
2587         using alarm().
2588         * tests/test-strcasestr.c (main): Likewise.
2589         * tests/test-strstr.c (main): Likewise.
2590
2591 2008-06-09  Bruno Haible  <bruno@clisp.org>
2592
2593         Work around the Solaris 10 ACE ACLs ABI change.
2594         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2595         declare if ACL_NO_TRIVIAL is present.
2596         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2597         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2598         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2599         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2600         define if ACL_NO_TRIVIAL is present.
2601         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2602         and use the current ABI.
2603         (file_has_acl): Use same #if condition as elsewhere.
2604         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2605         in use, and use the current ABI.
2606         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2607         Reported by Jim Meyering.
2608
2609 2008-06-09  Eric Blake  <ebb9@byu.net>
2610
2611         Work around environments that (stupidly) ignore SIGALRM.
2612         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2613         before using alarm().
2614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2615         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2616         Reported by Ian Beckwith <ianb@erislabs.net>.
2617
2618         Produce autobuild blurb earlier in log.
2619         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2620
2621 2008-06-09  Jim Meyering  <meyering@redhat.com>
2622         and Ondřej Vašík  <ovasik@redhat.com>
2623
2624         utimens.c: correct kernel bug work-around
2625         Ondřej Vašík found that the invalid return value of 280 indicates
2626         failure, not success, and the kernel bug we're trying to work
2627         around affects not just the utimensat call, but also the fallback
2628         futimens call.
2629         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2630         not success.
2631         [HAVE_FUTIMENS]: Use the same work-around, here.
2632
2633 2008-06-09  Jim Meyering  <meyering@redhat.com>
2634
2635         add more guards around definition of ACE_-related code
2636         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2637         ALLOW and ACE_OWNER are also defined.
2638
2639 2008-06-08  Bruno Haible  <bruno@clisp.org>
2640
2641         * lib/acl-internal.h: Add me as co-author.
2642         * lib/file-has-acl.c: Likewise.
2643         * lib/set-mode-acl.c: Likewise.
2644         * lib/copy-acl.c: Likewise.
2645
2646 2008-06-08  Bruno Haible  <bruno@clisp.org>
2647
2648         Add support for AIX ACLs.
2649         * lib/acl-internal.h (acl_nontrivial): New declaration.
2650         * lib/file-has-acl.c (acl_nontrivial): New function.
2651         (file_has_acl): Add implementation using AIX 4 ACL API.
2652         * lib/set-mode-acl.c (qset_acl): Likewise.
2653         * lib/copy-acl.c (qcopy_acl): Likewise.
2654
2655 2008-06-08  Bruno Haible  <bruno@clisp.org>
2656
2657         Add support for HP-UX ACLs.
2658         * lib/acl-internal.h (acl_nontrivial): New declaration.
2659         * lib/file-has-acl.c (acl_nontrivial): New function.
2660         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2661         * lib/set-mode-acl.c (qset_acl): Likewise.
2662         * lib/copy-acl.c (qcopy_acl): Likewise.
2663
2664 2008-06-08  Bruno Haible  <bruno@clisp.org>
2665
2666         Add support for Cygwin ACLs.
2667         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2668         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2669         the chmod_or_fchmod call.
2670         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2671
2672 2008-06-08  Bruno Haible  <bruno@clisp.org>
2673
2674         Fix bug with setuid modes in Solaris 10+ code.
2675         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2676         succeeded, when the mode contains some special bits.
2677
2678 2008-06-08  Bruno Haible  <bruno@clisp.org>
2679
2680         Add support for Solaris 7..10 ACLs.
2681         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2682         declarations.
2683         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2684         functions.
2685         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2686         * lib/set-mode-acl.c (qset_acl): Likewise.
2687         * lib/copy-acl.c (qcopy_acl): Likewise.
2688
2689 2008-06-08  Bruno Haible  <bruno@clisp.org>
2690
2691         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2692         declaration.
2693         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2694         (acl_access_nontrivial): Remove MacOS X case.
2695         (file_has_acl): Use acl_extended_nontrivial.
2696         * lib/copy-acl.c (qcopy_acl): Likewise.
2697
2698 2008-06-08  Bruno Haible  <bruno@clisp.org>
2699
2700         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2701
2702 2008-06-08  Jim Meyering  <meyering@redhat.com>
2703
2704         * modules/acl (Maintainer): Add Bruno Haible.
2705
2706 2008-06-07  Bruno Haible  <bruno@clisp.org>
2707
2708         Improve support for Tru64 ACLs.
2709         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2710         ACL on OSF/1.
2711
2712 2008-06-07  Bruno Haible  <bruno@clisp.org>
2713
2714         Add support for MacOS X ACLs.
2715         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2716         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2717         * lib/set-mode-acl.c (qset_acl): Likewise.
2718         * lib/copy-acl.c (qcopy_acl): Likewise.
2719
2720 2008-06-07  Bruno Haible  <bruno@clisp.org>
2721
2722         Fix memory leak introduced on 2008-05-22.
2723         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2724         use.
2725
2726 2008-06-07  Bruno Haible  <bruno@clisp.org>
2727
2728         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2729         to construct an empty ACL.
2730
2731 2008-06-07  Bruno Haible  <bruno@clisp.org>
2732
2733         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2734         precisely.
2735         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2736
2737 2008-06-07  Bruno Haible  <bruno@clisp.org>
2738
2739         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2740         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2741
2742 2008-06-07  Bruno Haible  <bruno@clisp.org>
2743
2744         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2745         regardless of POSIX.
2746         * doc/posix-functions/_longjmp.texi: Likewise.
2747         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2748         SystemV platform in this case.
2749
2750 2008-06-06  Eric Blake  <ebb9@byu.net>
2751
2752         Document abort() bugs.
2753         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2754
2755         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2756         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2757         sigsetjmp.
2758         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2759         siglongjmp, but only as a macro.
2760         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2761         is obsolete.
2762         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2763
2764         Tweak documentation to cover cygwin argz bugs.
2765         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2766         argz bug fix; no code change needed since no cygwin releases
2767         occurred between the last fix and the bug being tested.
2768         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2769         module and recently fixed cygwin bugs.
2770         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2771         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2772         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2773         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2774         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2775         Likewise.
2776         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2777         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2778         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2779         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2780         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2781         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2782         Likewise.
2783
2784         Avoid gcc warning on cygwin.
2785         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2786         !ACL_NO_TRIVIAL]: Avoid unused variable.
2787
2788 2008-06-05  Eric Blake  <ebb9@byu.net>
2789
2790         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2791         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2792         git-version-gen fails to come up with a version.
2793         Reported by Simon Josefsson.
2794
2795 2008-06-05  Jim Meyering  <meyering@redhat.com>
2796             Paul Eggert  <eggert@cs.ucla.edu>
2797
2798         utimens.c: work around a probable Linux kernel bug
2799         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2800         appears to be a kernel bug that causes utimensat to return 280
2801         instead of 0, indicating success.
2802
2803 2008-06-04  Bruno Haible  <bruno@clisp.org>
2804
2805         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2806         2008-06-01 commit.
2807
2808 2008-06-04  Bruno Haible  <bruno@clisp.org>
2809
2810         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2811         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2812         (file_has_acl): Use it. Save errno afterwards.
2813         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2814
2815 2008-06-03  Bruno Haible  <bruno@clisp.org>
2816
2817         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2818         draft code. Simplify #ifs.
2819         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2820         Put Solaris code after POSIX-draft code. Fix comments regarding
2821         Solaris 10, HP-UX. Mention Cygwin.
2822         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2823
2824 2008-06-03  Eric Blake  <ebb9@byu.net>
2825
2826         Provide fallback for older kernels.
2827         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2828         Provide runtime fallback if kernel lacks support.
2829         Reported by Mike Frysinger.
2830
2831 2008-06-02  Bruno Haible  <bruno@clisp.org>
2832
2833         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2834         it exists.
2835
2836 2008-06-02  Bruno Haible  <bruno@clisp.org>
2837
2838         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2839         * lib/copy-acl.c (qcopy_acl): Update comment.
2840
2841 2008-06-02  Bruno Haible  <bruno@clisp.org>
2842
2843         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2844         like ACL APIs.
2845
2846 2008-06-02  Bruno Haible  <bruno@clisp.org>
2847
2848         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2849         * tests/test-set-mode-acl.sh: Likewise.
2850         * tests/test-copy-acl.sh: Likewise.
2851         * tests/test-copy-file.sh: Likewise.
2852
2853 2008-06-02  Bruno Haible  <bruno@clisp.org>
2854
2855         * tests/test-file-has-acl.sh: Remove unused code.
2856
2857 2008-06-01  Bruno Haible  <bruno@clisp.org>
2858
2859         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2860         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2861         messages.
2862         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2863
2864 2008-06-01  Bruno Haible  <bruno@clisp.org>
2865
2866         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2867         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2868         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2869         APIs.
2870         * modules/acl-tests (configure.ac): Remove tests now contained in
2871         m4/acl.m4.
2872
2873 2008-06-02  Jim Meyering  <meyering@redhat.com>
2874
2875         announce-gen: use a better key-server host name
2876         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2877         it may be more consistently reliable.  Suggested by Werner Koch
2878         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2879
2880 2008-06-01  Bruno Haible  <bruno@clisp.org>
2881
2882         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2883         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2884
2885 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2886
2887         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2888
2889 2008-06-01  Bruno Haible  <bruno@clisp.org>
2890
2891         New ACL tests.
2892         * tests/test-file-has-acl.sh: New file.
2893         * tests/test-file-has-acl.c: New file.
2894         * tests/test-set-mode-acl.sh: New file.
2895         * tests/test-set-mode-acl.c: New file.
2896         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2897         * tests/test-copy-acl.c: New file.
2898         * modules/acl-tests: New file, based on modules/copy-file-tests.
2899         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2900         (Depends-on): Add acl-tests.
2901         (configure.ac): Remove checks.
2902         (Makefile.am): Don't create test-sameacls program here any more.
2903
2904 2008-06-01  Bruno Haible  <bruno@clisp.org>
2905
2906         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2907         * tests/test-sameacls.c: Include progname.h.
2908         (main): Invoke set_program_name. Portability fixes for MacOS X,
2909         Solaris, HP-UX.
2910
2911 2008-06-01  Bruno Haible  <bruno@clisp.org>
2912
2913         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2914         function.
2915         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2916
2917 2008-06-01  Bruno Haible  <bruno@clisp.org>
2918
2919         * modules/rpmatch (Depends-on): Add strdup.
2920
2921 2008-06-01  Bruno Haible  <bruno@clisp.org>
2922
2923         * lib/pipe.c: Include unistd-safer.h.
2924         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2925         * modules/pipe (Depends-on): Add unistd-safer.
2926
2927 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2928
2929         * modules/autobuild (configure.ac): Call AB_INIT.
2930
2931 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2932
2933         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2934         Suggested by Bruno Haible <bruno@clisp.org>.
2935
2936 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2937
2938         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2939         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2940         <bruno@clisp.org>.
2941
2942 2008-05-29  Eric Blake  <ebb9@byu.net>
2943
2944         Prefer new POSIX 200x interfaces over futimesat.
2945         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2946         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2947         when available.
2948         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2949
2950 2008-05-28  Bruno Haible  <bruno@clisp.org>
2951
2952         * modules/stpcpy (License): Change to LGPLv2+.
2953         Requested by David Lutterkort <dlutter@redhat.com>.
2954
2955 2008-05-27  Bruno Haible  <bruno@clisp.org>
2956
2957         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2958         current mingw.
2959         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2960
2961 2008-05-27  Bruno Haible  <bruno@clisp.org>
2962
2963         * modules/iconv_open (Link): New section, from module 'iconv'.
2964         * modules/striconv (Link): Likewise.
2965         * modules/striconveh (Link): Likewise.
2966         * modules/xstriconv (Link): Likewise.
2967         * modules/unicodeio (Link): Likewise.
2968         * modules/propername (Link): Likewise.
2969         Reported by Jim Meyering.
2970
2971 2008-05-26  Jim Meyering  <meyering@redhat.com>
2972
2973         sha256: do not artificially restrict buffer length to be < 2^32
2974         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2975         uint32_t to size_t.
2976         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2977         to match.
2978
2979         avoid unaligned access errors, e.g., on sparc
2980         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2981         direct access through a possibly-unaligned uint64* pointer.
2982         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2983         direct access through a possibly-unaligned uint32* pointer.
2984         Prompted by this patch from Tom "spot" Callaway:
2985         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2986
2987         sha512.c: fix typo in comment
2988         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2989
2990 2008-05-25  Bruno Haible  <bruno@clisp.org>
2991
2992         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2993         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2994         (Makefile.am): Update lib_SOURCES.
2995
2996 2008-05-25  Bruno Haible  <bruno@clisp.org>
2997
2998         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2999
3000 2008-05-25  Jim Meyering  <meyering@redhat.com>
3001
3002         useless-if-before-free: freed expr may have white-space differences
3003         * build-aux/useless-if-before-free: Recognize cases in which the
3004         freed expression differs from the tested one in embedded white
3005         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
3006         $1 was used, so we can't make any regexp shy.  Improved tests now
3007         detect this.
3008
3009         useless-if-before-free: accept white space in the expression.
3010         * build-aux/useless-if-before-free: For now, any white space
3011         in the expression must be identical in the free argument.
3012
3013         useless-if-before-free: efficiency tweak
3014         * build-aux/useless-if-before-free: Make the expression-matching
3015         regexp "shy".
3016         Make the *outer* regexp shy, not the expr-matching one.
3017
3018         update code-in-comment to accept cast of free arg
3019         * build-aux/useless-if-before-free: Update regexp.
3020
3021 2008-05-25  Bruno Haible  <bruno@clisp.org>
3022
3023         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
3024         * modules/copy-file-tests (Files, Makefile.am): Update.
3025         * tests/test-copy-file.c (func_test_copy): Update.
3026
3027 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
3028
3029         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
3030
3031 2008-05-23  Bruno Haible  <bruno@clisp.org>
3032
3033         Improve support for ACLs on OSF/1.
3034         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
3035         Remove fallback for unknown flavors of ACLs.
3036
3037 2008-05-22  Bruno Haible  <bruno@clisp.org>
3038
3039         Add support for ACLs on OSF/1.
3040         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
3041         replacements.
3042         (acl_free_text): New macro fallback.
3043         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
3044         acl_free.
3045         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
3046         acl_free_text function. Require AC_C_INLINE.
3047
3048 2008-05-22  Bruno Haible  <bruno@clisp.org>
3049
3050         Make copy_acl work on MacOS X 10.5.
3051         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
3052         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
3053         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
3054         If MODE_INSIDE_ACL, don't assume that every system has the same text
3055         representation for ACLs as FreeBSD.
3056         * lib/copy-acl.c (copy_acl): Add support for platforms with
3057         !MODE_INSIDE_ACL.
3058         * lib/file-has-acl.c (file_has_acl): Likewise.
3059         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
3060         FreeBSD, MacOS X, or IRIX, respectively.
3061
3062 2008-05-22  Bruno Haible  <bruno@clisp.org>
3063
3064         * lib/acl.h: Don't include <sys/acl.h>.
3065         (GETACLCNT): Move fallback to lib/acl-internal.h.
3066         * lib/acl-internal.h: Include <sys/acl.h> here.
3067         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
3068
3069 2008-05-22  Bruno Haible  <bruno@clisp.org>
3070
3071         Split off copy_acl function to separate file.
3072         * lib/copy-acl.c: New file, extracted from lib/acl.c.
3073         * lib/acl.c (copy_acl): Moved function to separate file.
3074         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
3075         * modules/acl (Files): Add lib/copy-acl.c.
3076         (Makefiles.am): Augment lib_SOURCES.
3077
3078 2008-05-22  Bruno Haible  <bruno@clisp.org>
3079
3080         * modules/copy-file-tests: New file.
3081         * tests/test-copy-file.sh: New file.
3082         * tests/test-copy-file.c: New file.
3083         * tests/test-copy-file-sameacls.c: New file.
3084
3085 2008-05-22  Eric Blake  <ebb9@byu.net>
3086
3087         Avoid gcc warning.
3088         * tests/test-memcmp.c (main): Pass NULL indirectly.
3089
3090 2008-05-21  Bruno Haible  <bruno@clisp.org>
3091
3092         Add reference doc about ACLs.
3093         * doc/acl-resources.txt: New file.
3094         * doc/acl-cygwin.txt: New file.
3095
3096 2008-05-21  Bruno Haible  <bruno@clisp.org>
3097
3098         Avoid one more warning from gcc.
3099         * lib/vasnprintf.c (IF_LINT): Update comments.
3100         (VASNPRINTF): Use it also for the 'prefix' array initializer.
3101
3102 2008-05-21  Jim Meyering  <meyering@redhat.com>
3103
3104         avoid a warning from gcc
3105         * lib/vasnprintf.c (IF_LINT): Define.
3106         (scale10_round_decimal_long_double):
3107         Use it to avoid a "may be used uninitialized" warning.
3108         (scale10_round_decimal_double): Likewise.
3109
3110 2008-05-21  Simon Josefsson  <simon@josefsson.org>
3111
3112         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
3113         declared.
3114
3115 2008-05-20  Bruno Haible  <bruno@clisp.org>
3116
3117         * tests/test-memcmp.c (main): Test also the sign of the result. Test
3118         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
3119
3120 2008-05-20  Simon Josefsson  <simon@josefsson.org>
3121
3122         * modules/memcmp-tests: New file.
3123         * tests/test-memcmp.c: New file.
3124
3125 2008-05-19  Bruno Haible  <bruno@clisp.org>
3126
3127         * modules/propername (Notice, configure.ac): Put quoted "..." into
3128         --keyword option.
3129         * lib/propername.h: Update comments accordingly.
3130         Reported by Eric Blake.
3131
3132 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
3133
3134         * modules/getpass-gnu (Depends-on): Add fseeko.
3135
3136 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3137
3138         * modules/base64-tests: New file.
3139
3140 2008-05-19  Bo Borgerson <gigabo@gmail.com>
3141
3142         * lib/base64.c (base64_decode_ctx): If a decode context structure
3143         was passed in use it to ignore newlines.  If a context structure
3144         was _not_ passed in, continue to treat newlines as garbage (this
3145         is the historical behavior).  Formerly base64_decode.
3146         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3147         takes a decode context structure.
3148         * lib/base64.h (base64_decode): Macro for four-argument calls.
3149         (base64_decode_alloc): Likewise.
3150         * lib/base64.c (base64_decode_ctx): If a decode context structure
3151         was passed in use it to ignore newlines.  If a context structure
3152         was _not_ passed in, continue to treat newlines as garbage (this
3153         is the historical behavior).  Formerly base64_decode.
3154         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
3155         takes a decode context structure.
3156         * lib/base64.h (base64_decode): Macro for four-argument calls.
3157         (base64_decode_alloc): Likewise.
3158
3159 2008-05-19  Jim Meyering  <meyering@redhat.com>
3160
3161         avoid a warning from gcc
3162         * lib/trim.c (IF_LINT): Define.
3163         (trim2): Use it to avoid a "may be used uninitialized" warning.
3164
3165         Fix doc typo.
3166         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
3167
3168 2008-05-19  Bruno Haible  <bruno@clisp.org>
3169
3170         * doc/glibc-functions/getpass.texi: Document limits of other
3171         implementations.
3172
3173 2008-05-19  Simon Josefsson  <simon@josefsson.org>
3174             Bruno Haible <bruno@clisp.org>
3175
3176         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
3177
3178 2008-05-18  Bruno Haible  <bruno@clisp.org>
3179
3180         * modules/propername: New file, from GNU gettext.
3181         * lib/propername.h: New file, from GNU gettext.
3182         * lib/propername.c: New file, from GNU gettext.
3183         * MODULES.html.sh (Internationalization functions): Add propername.
3184
3185 2008-05-16  Jim Meyering  <meyering@redhat.com>
3186             Bruno Haible  <bruno@clisp.org>
3187
3188         Avoid some warnings from "gcc -Wshadow".
3189         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
3190
3191 2008-05-15  Eric Blake  <ebb9@byu.net>
3192
3193         Extend previous patch to cygwin 1.7.0.
3194         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
3195         fast implementation in cygwin >= 1.7.0.
3196         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3198
3199 2008-05-15  Bruno Haible  <bruno@clisp.org>
3200
3201         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
3202         implementation in glibc >= 2.9.
3203         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3205
3206 2008-05-15  Bruno Haible  <bruno@clisp.org>
3207
3208         * MODULES.html.sh (Internationalization functions): Remove linebreak.
3209         (Unicode string functions): Add unilbrk/*.
3210         Reported by Karl Berry.
3211
3212 2008-05-15  Eric Blake  <ebb9@byu.net>
3213
3214         Fix violation of <stdbool.h> replacement in regex.
3215         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
3216         * lib/regexec.c (re_search_internal): Likewise.
3217         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
3218
3219 2008-05-15  Jim Meyering  <meyering@redhat.com>
3220
3221         avoid distracting test output when git or cvs is not found
3222         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
3223         * tests/test-vc-list-files-git.sh: Likewise.
3224
3225 2008-05-15  Eric Blake  <ebb9@byu.net>
3226
3227         Glibc finally accepted the memmem speedup code, bugzilla #5514.
3228         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
3229         glibc version.
3230         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3231         * doc/posix-functions/strstr.texi (strstr): Likewise.
3232         * lib/str-two-way.h (MAX): Sychronize with glibc.
3233
3234 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
3235
3236         * lib/regcomp.c (optimize_utf8): Add a note on why we test
3237         opr.ctx_type.
3238         (calc_first): Initialize constraint field.
3239         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3240         Fix grammar.
3241         (duplicate_node): Merge constraint field for all node types.
3242         (calc_eclosure_iter): Look at constraint field for all node types.
3243         * lib/regex_internal.c (create_cd_newstate): Don't look at
3244         opr.ctx_type.
3245
3246 2008-05-14  Bruno Haible  <bruno@clisp.org>
3247
3248         Help GCC to do better code generation.
3249         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
3250         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3251         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
3252         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
3253         Declare with attribute 'malloc' if supported.
3254
3255 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
3256
3257         use "echo STR|wc -c" rather than unportable "expr length STR"
3258         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
3259         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
3260
3261 2008-05-14  Jim Meyering  <meyering@redhat.com>
3262
3263         use dd ibs=$n count=1 ... rather than less-portable head -c$n
3264         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
3265         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
3266         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
3267         via Collin Lasse.
3268
3269 2008-05-14  Eric Blake  <ebb9@byu.net>
3270
3271         Avoid quadratic growth in gl_LIBSOURCES.
3272         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
3273         Suggested by Bruno Haible.
3274
3275         Test xmemdup0.
3276         * modules/xmemdup0-tests: New file.
3277         * tests/test-xmemdup0.c: Likewise.
3278
3279 2008-05-13  Eric Blake  <ebb9@byu.net>
3280
3281         Split xmemdup0 into its own module.
3282         * modules/xmemdup0: New file.
3283         * lib/xmemdup0.h: Likewise.
3284         * lib/xmemdup0.c: Likewise.
3285         * MODULES.html.sh (Memory management functions): Add xmemdup0.
3286         * lib/xalloc.h (xmemdup0): Remove.
3287         * lib/xmalloc.c (xmemdup0): Likewise.
3288
3289 2008-05-13  Eric Blake  <ebb9@byu.net>
3290             Bruno Haible  <bruno@clisp.org>
3291
3292         Reduce number of forks required during autoconf.
3293         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
3294         and gl_LIBSOURCES_DIR.
3295         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
3296         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
3297         m4_syscmd per file.
3298         <m4_foreach_w>: Move...
3299         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
3300
3301 2008-05-13  Eric Blake  <ebb9@byu.net>
3302
3303         * gnulib-tool: Fix various comment typos.
3304
3305 2008-05-12  Bruno Haible  <bruno@clisp.org>
3306
3307         Tailor the linebreaking algorithm.
3308         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
3309
3310 2008-05-12  Bruno Haible  <bruno@clisp.org>
3311
3312         Update to Unicode 5.0.0.
3313         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3314         LBP_JV, LBP_JT. Redistribute values.
3315         (unilbrk_table): Change size.
3316         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
3317         Unicode TR#14 rev. 22.
3318         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
3319         LBP_JV, LBP_JT. Redistribute values.
3320         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
3321         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
3322         Update.
3323         * lib/unilbrk/lbrkprop1.h: Regenerated.
3324         * lib/unilbrk/lbrkprop2.h: Regenerated.
3325         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3326         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3327         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3328         Likewise.
3329         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3330         Likewise.
3331         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3332         result.
3333         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3334         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3335         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3336         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3337         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3338         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3339
3340 2008-05-11  Bruno Haible  <bruno@clisp.org>
3341
3342         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3343
3344 2008-05-11  Bruno Haible  <bruno@clisp.org>
3345
3346         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3347         * modules/unilbrk/gen-lbrk: New file.
3348
3349 2008-05-11  Bruno Haible  <bruno@clisp.org>
3350
3351         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
3352         * m4/sha512.m4 (gl_SHA512): Likewise.
3353
3354 2008-05-11  Jim Meyering  <meyering@redhat.com>
3355
3356         New modules: crypto/sha256, crypto/sha512 (from coreutils)
3357         * modules/crypto/sha256: New file.
3358         * modules/crypto/sha512: Likewise.
3359         * lib/sha256.c: Likewise.
3360         * lib/sha256.h: Likewise.
3361         * lib/sha512.c: Likewise.
3362         * lib/sha512.h: Likewise.
3363         * lib/u64.h: Likewise.
3364         * m4/sha256.m4: Likewise.
3365         * m4/sha512.m4: Likewise.
3366         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
3367
3368 2008-05-10  Bruno Haible  <bruno@clisp.org>
3369
3370         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
3371         (Input/Output <stdio.h>): Add xprintf.
3372         (Signal handling <signal.h>): Add strsignal.
3373         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
3374         (Core language properties): Add func.
3375         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
3376         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
3377         strings.
3378         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
3379         (Input/output): New section.
3380         (File system functions): Add openat-die, stat-macros.
3381         (Networking functions): Add sockets.
3382         (Unicode string functions): Add unictype/*.
3383         (Support for building libraries and executables): Add gperf.
3384         (Support for building documentation): Add agpl-3.0.
3385         (Misc): Add nocrash.
3386
3387 2008-05-10  Bruno Haible  <bruno@clisp.org>
3388
3389         * modules/unictype/gen-ctype: New file.
3390
3391 2008-05-10  Jim Meyering  <meyering@redhat.com>
3392
3393         Make chdir-safer.c more efficient on a system with no symlinks.
3394         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
3395         also if ELOOP is zero.  Suggested by Bruno Haible.
3396
3397         Make chdir-safer.c slightly safer.
3398         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
3399         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
3400
3401         Avoid compile failure on systems without ELOOP (like mingw).
3402         * lib/chdir-safer.c (ELOOP): Define if not already defined.
3403         Reported by Bruno Haible.
3404
3405 2008-05-10  Bruno Haible  <bruno@clisp.org>
3406
3407         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
3408         (is_utf8_encoding): Use a case-insensitive comparison.
3409         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
3410         streq.
3411
3412 2008-05-10  Bruno Haible  <bruno@clisp.org>
3413
3414         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
3415         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
3416         * lib/unilbrk/ulc-common.h (iconv_string_length,
3417         iconv_string_keeping_offsets): Remove declarations.
3418         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
3419         Don't include <iconv.h>, streq.h, xsize.h.
3420         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
3421         conversion.
3422         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3423         <iconv.h>, streq.h, xsize.h.
3424         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3425         conversion.
3426         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3427         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
3428         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
3429         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
3430
3431 2008-05-10  Bruno Haible  <bruno@clisp.org>
3432
3433         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
3434         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
3435
3436         * modules/unilbrk/u32-width-linebreaks-tests: New file.
3437         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
3438
3439         * modules/unilbrk/u16-width-linebreaks-tests: New file.
3440         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
3441
3442         * modules/unilbrk/u8-width-linebreaks-tests: New file.
3443         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
3444
3445         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
3446         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
3447
3448         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
3449         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
3450
3451         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
3452         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
3453
3454         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
3455         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
3456
3457 2008-05-10  Bruno Haible  <bruno@clisp.org>
3458
3459         Split up 'linebreak' module.
3460         * lib/unilbrk.h: New file, based on lib/linebreak.h.
3461         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
3462         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
3463         modifications.
3464         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
3465         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
3466         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
3467         lib/linebreak.c.
3468         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
3469         lib/linebreak.c.
3470         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
3471         lib/linebreak.c.
3472         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
3473         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
3474         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
3475         lib/linebreak.c.
3476         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
3477         lib/linebreak.c.
3478         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
3479         lib/linebreak.c.
3480         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
3481         lib/linebreak.c.
3482         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
3483         lib/linebreak.c.
3484         * modules/unilbrk/base: New file.
3485         * modules/unilbrk/tables: New file.
3486         * modules/unilbrk/u8-possible-linebreaks: New file.
3487         * modules/unilbrk/u16-possible-linebreaks: New file.
3488         * modules/unilbrk/u32-possible-linebreaks: New file.
3489         * modules/unilbrk/ulc-common: New file.
3490         * modules/unilbrk/ulc-possible-linebreaks: New file.
3491         * modules/unilbrk/u8-width-linebreaks: New file.
3492         * modules/unilbrk/u16-width-linebreaks: New file.
3493         * modules/unilbrk/u32-width-linebreaks: New file.
3494         * modules/unilbrk/ulc-width-linebreaks: New file.
3495         * lib/linebreak.h: Remove file.
3496         * lib/linebreak.c: Remove file.
3497         * m4/linebreak.m4: Remove file.
3498         * modules/linebreak: Remove file.
3499         * NEWS: Mention the changes.
3500
3501 2008-05-09  Eric Blake  <ebb9@byu.net>
3502
3503         Add xmemdup0.
3504         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
3505         implementation.
3506         * lib/xmalloc.c (xmemdup0): New C implementation.
3507
3508 2008-05-08  Bruno Haible  <bruno@clisp.org>
3509
3510         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
3511
3512 2008-05-07  Eric Blake  <ebb9@byu.net>
3513
3514         Support cross-compilation of <wctype.h>.
3515         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
3516         AC_CACHE_CHECK.
3517
3518 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
3519
3520         * build-aux/vc-list-files: Add support for bzr.
3521
3522 2008-05-03  Jim Meyering  <meyering@redhat.com>
3523
3524         avoid failed assertion with tight malloc
3525         * tests/test-getndelim2.c: Correct an off-by-one assertion.
3526
3527 2008-05-03  Simon Josefsson  <simon@josefsson.org>
3528
3529         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
3530         are needed from arpa/inet.h.
3531         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
3532         Reported by Bruno Haible.
3533
3534 2008-05-02  Jim Meyering  <meyering@redhat.com>
3535
3536         avoid compilation error on FreeBSD 6
3537         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
3538
3539 2008-05-01  Jim Meyering  <meyering@redhat.com>
3540
3541         useless-if-before-free: correct --help's exit status description
3542         * build-aux/useless-if-before-free (usage): Like grep, exit 0
3543         for one or more matches, etc.  Reported by Bruno Haible.
3544
3545         vc-list-files: make the stand-alone gnulib test work
3546         * modules/vc-list-files-tests (configure.ac):
3547         Define and AC_SUBST abs_aux_dir.
3548         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
3549         $(abs_top_srcdir) to each script and having each of them
3550         duplicate the work of setting PATH, set PATH here, using
3551         the new variable, abs_aux_dir instead.
3552         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
3553         * tests/test-vc-list-files-git.sh: Likewise.
3554         Reported by Bruno Haible.
3555
3556 2008-05-01  Bruno Haible  <bruno@clisp.org>
3557
3558         * lib/getndelim2.c (getndelim2): Fix newsize computation during
3559         reallocation. Rename 'done' to 'found_delimiter'.
3560
3561 2008-05-01  Jim Meyering  <meyering@redhat.com>
3562
3563         vc-list-files: accommodate /bin/sh like the one from Solaris 10
3564         * build-aux/vc-list-files: Use `...`, not $(...).
3565
3566 2008-04-30  Jim Meyering  <meyering@redhat.com>
3567
3568         add tests for vc-list-files
3569         * modules/vc-list-files-tests: New module.
3570         * tests/test-vc-list-files-cvs.sh: New file.
3571         * tests/test-vc-list-files-git.sh: New file.
3572
3573         avoid a warning from gcc
3574         * lib/getndelim2.c (IF_LINT): Define.
3575         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
3576
3577         vc-list-files: work properly with build-aux/cvsu, too
3578         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
3579         to all cvs-based clauses.
3580
3581         vc-list-files: work properly in the CVS+awk case, too
3582         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
3583
3584         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
3585         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
3586         take more than one file argument, so .  Add quotes, just in case $dir
3587         ever contains a shell meta-character.  Prompted by Soren Hansen in
3588         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
3589
3590 2008-04-29  Eric Blake  <ebb9@byu.net>
3591
3592         Optimize getndelim2 to use block operations when possible.
3593         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3594         freadseek, and memchr2.
3595         * lib/getndelim2.c (getndelim2): Use them for block reads.
3596
3597 2008-04-29  Bruno Haible  <bruno@clisp.org>
3598
3599         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3600         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3601         * modules/inet_ntop (Depends-on): Add extensions.
3602         * modules/inet_pton (Depends-on): Likewise.
3603         Reported by Simon Josefsson.
3604
3605 2008-04-29  Jim Meyering  <meyering@redhat.com>
3606
3607         When the is more than one match in a block, match all of them.
3608         * build-aux/useless-if-before-free: Iterate through each block
3609         until there are no more matches.
3610
3611         Fix broken useless-if-before-free script.
3612         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3613         the expression to match cast of argument to free-like function.
3614
3615 2008-04-29  Eric Blake  <ebb9@byu.net>
3616
3617         Use new header.
3618         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3619
3620 2008-04-29  Jim Meyering  <meyering@redhat.com>
3621
3622         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3623         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3624         by gnulib to exist and to declare e.g., inet_ntop.
3625         Don't include "inet_ntop.h", now removed.
3626
3627         * m4/arpa_inet_h.m4: Remove trailing blanks.
3628
3629 2008-04-29  Eric Blake  <ebb9@byu.net>
3630
3631         Silence valgrind on safe reads beyond potential array bounds.
3632         * lib/rawmemchr.valgrind: New file.
3633         * lib/strchrnul.valgrind: Likewise.
3634         * modules/rawmemchr (Files): Distribute new file.
3635         * modules/strchrnul (Files): Likewise.
3636         Suggested by Bruno Haible.
3637
3638 2008-04-29  Bruno Haible  <bruno@clisp.org>
3639
3640         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3641         (inet_ntop, inet_pton): Change portability warning's wording.
3642         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3643         Invoke gl_CHECK_NEXT_HEADERS.
3644         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3645         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3646         set ARPA_INET_H.
3647         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3648         * modules/arpa_inet (Description): No longer only for systems that
3649         lack it.
3650         (Depends-on): Add include_next.
3651         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3652         HAVE_ARPA_INET_H.
3653
3654 2008-04-29  Jim Meyering  <meyering@redhat.com>
3655
3656         * modules/mkdir (License): Re-license as LGPLv2+.
3657
3658 2008-04-29  Bruno Haible  <bruno@clisp.org>
3659
3660         * modules/rawmemchr (Maintainer): Set to Eric.
3661         * modules/strchrnul (Maintainer): Likewise.
3662
3663 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3664
3665         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3666         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3667
3668         * modules/arpa_inet (arpa/inet.h): Use them.
3669
3670 2008-04-28  Eric Blake  <ebb9@byu.net>
3671
3672         Test getndelim2.
3673         * modules/getndelim2-tests: New file.
3674         * tests/test-getndelim2.c: Likewise.
3675         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3676         stream.
3677         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3678
3679         * MODULES.html.sh: Document new module.
3680
3681 2008-04-20  Bruno Haible  <bruno@clisp.org>
3682
3683         * lib/c-stack.c (die): Use raise.
3684         * modules/c-stack (Depends-on): Add raise.
3685
3686 2008-04-28  Bruno Haible  <bruno@clisp.org>
3687
3688         Expect rpmatch to be declared.
3689         * lib/yesno.c (rpmatch): Remove declaration.
3690
3691         Declare rpmatch.
3692         * lib/stdlib.in.h (rpmatch): New declaration.
3693         * lib/rpmatch.c: Include <stdlib.h> first.
3694         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3695         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3697         HAVE_RPMATCH.
3698         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3699         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3700         (Include): Set to <stdlib.h>.
3701         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3702         HAVE_RPMATCH.
3703         * NEWS: Document the change.
3704
3705 2008-04-28  Bruno Haible  <bruno@clisp.org>
3706
3707         Change rpmatch to use nl_langinfo when appropriate.
3708         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3709         (N_): New macro.
3710         (localized_pattern): New function/macro.
3711         (try): Remove match, nomatch arguments. Copy the pattern into safe
3712         memory before caching it.
3713         (rpmatch): Use localized_pattern. Add translator comments.
3714         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3715         Suggested by Eric Blake.
3716         * modules/rpmatch (Depends-on): Add stdbool.
3717
3718 2008-04-28  Eric Blake  <ebb9@byu.net>
3719
3720         Add rawmemchr module, matching glibc.
3721         * modules/string (Makefile.am): New indicator.
3722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3723         * lib/string.in.h (rawmemchr): Declare when appropriate.
3724         * modules/rawmemchr: New file.
3725         * m4/rawmemchr.m4: Likewise.
3726         * lib/rawmemchr.c: Likewise.
3727         * modules/rawmemchr-tests: Likewise.
3728         * tests/test-rawmemchr.c: Likewise.
3729         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3730         module.
3731         * modules/strchrnul (Depends-on): Add rawmemchr.
3732         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3733
3734         Whitespace cleanup.
3735         * tests/test-strchrnul.c: Reindent.
3736         * lib/strchrnul.c: Likewise.
3737
3738         Optimize and test strchrnul.
3739         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3740         * modules/strchrnul-tests: New file.
3741         * tests/test-strchrnul.c: Likewise.
3742
3743         Remove intprops dependency.
3744         * modules/memchr (Depends-on): Remove intprops.
3745         * modules/memrchr (Depends-on): Likewise.
3746         * modules/memchr2 (Depends-on): Likewise.
3747         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3748         * lib/memrchr.c (__memrchr): Likewise.
3749         * lib/memrchr2.c (memchr2): Likewise.
3750         Reported by Simon Josefsson.
3751
3752 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3753
3754         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3755         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3756
3757 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3758
3759         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3760
3761         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3762
3763         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3764
3765         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3766         declarations.
3767         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3768
3769         * m4/inet_pton.m4: Don't check for header files.
3770
3771         * m4/inet_ntop.m4: Don't check for header files.
3772
3773 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3774
3775         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3776         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3777         trigger for cygwin).
3778         Reported by Bruno Haible  <bruno@clisp.org>.
3779
3780 2008-04-28  Bruno Haible  <bruno@clisp.org>
3781
3782         * doc/posix-functions/strdup.texi: Mention mingw problem.
3783
3784 2008-04-27  Bruno Haible  <bruno@clisp.org>
3785
3786         * modules/stat-time-tests (Depends-on): Add sleep.
3787         * tests/test-stat-time.c (force_unlink): New function.
3788         (cleanup): Use it.
3789         (test_mtime): Remove the ctime related tests.
3790         (test_ctime): New function, containing the ctime related tests.
3791         (main): Call test_ctime, except on native Windows platforms.
3792
3793 2008-04-27  Bruno Haible  <bruno@clisp.org>
3794
3795         * lib/rpmatch.c (rpmatch): Add some comments.
3796         Reported by James Youngman <jay@gnu.org>.
3797
3798 2008-04-27  Bruno Haible  <bruno@clisp.org>
3799
3800         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3801         quiet NaNs.
3802
3803 2008-04-27  Bruno Haible  <bruno@clisp.org>
3804
3805         Make test-yesno.sh work on mingw.
3806         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3807         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3808         (main): Set stdin to binary mode.
3809         * modules/yesno-tests (Depends-on): Add binary-io.
3810
3811 2008-04-27  Bruno Haible  <bruno@clisp.org>
3812
3813         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3814         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3815         argument that lie outside the IEEE 854 domain.
3816         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3817         (gl_ISFINITE): Use it.
3818         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3819
3820 2008-04-27  Bruno Haible  <bruno@clisp.org>
3821
3822         Allow local renaming in config.h.
3823         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3824
3825 2008-04-27  Bruno Haible  <bruno@clisp.org>
3826
3827         * lib/memchr.c (__memchr): Change type of 'i'.
3828         * lib/memchr2.c (memchr2): Likewise.
3829
3830 2008-04-26  Eric Blake  <ebb9@byu.net>
3831         and Bruno Haible  <bruno@clisp.org>
3832
3833         Optimize and test memrchr.
3834         * modules/memrchr (Depends-on): Add intprops.
3835         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3836         * modules/memrchr-tests: New file.
3837         * tests/test-memrchr.c: New file.
3838
3839 2008-04-26  Bruno Haible  <bruno@clisp.org>
3840
3841         Add tentative support for DragonFly BSD.
3842         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3843         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3844         fp.
3845         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3846         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3847         * lib/fpurge.c (fpurge): Likewise.
3848         * lib/freadable.c (freaadable): Likewise.
3849         * lib/freadahead.c (freadahead): Likewise.
3850         * lib/freading.c (freading): Likewise.
3851         * lib/freadptr.c (freadptr): Likewise.
3852         * lib/freadseek.c (freadptrinc): Likewise.
3853         * lib/fseeko.c (fseeko): Likewise.
3854         * lib/fseterr.c (fseterr): Likewise.
3855         * lib/fwritable.c (fwritable): Likewise.
3856         * lib/fwriting.c (fwriting): Likewise.
3857
3858 2008-04-26  Bruno Haible  <bruno@clisp.org>
3859
3860         * lib/stdio-impl.h: New file.
3861         * lib/fbufmode.c: Include stdio-impl.h.
3862         (fbufmode): Use fp_, remove redundant #defines.
3863         * lib/fflush.c: Include stdio-impl.h.
3864         (clear_ungetc_buffer): Remove redundant #defines.
3865         * lib/fpurge.c: Include stdio-impl.h.
3866         (fpurge): Remove redundant #defines.
3867         * lib/freadable.c: Include stdio-impl.h.
3868         (freadable): Remove redundant #defines.
3869         * lib/freadahead.c: Include stdio-impl.h.
3870         (freadahead): Remove redundant #defines.
3871         * lib/freading.c: Include stdio-impl.h.
3872         (freading): Remove redundant #defines.
3873         * lib/freadptr.c: Include stdio-impl.h.
3874         (freadptr): Remove redundant #defines.
3875         * lib/freadseek.c: Include stdio-impl.h.
3876         (freadptrinc): Remove redundant #defines.
3877         * lib/fseeko.c: Include stdio-impl.h.
3878         (rpl_fseeko): Remove redundant #defines.
3879         * lib/fseterr.c: Include stdio-impl.h.
3880         (fseterr): Remove redundant #defines.
3881         * lib/fwritable.c: Include stdio-impl.h.
3882         (fwritable: Remove redundant #defines.
3883         * lib/fwriting.c: Include stdio-impl.h.
3884         (fwriting): Remove redundant #defines.
3885         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3886         * modules/fflush (Files): Likewise.
3887         * modules/fpurge (Files): Likewise.
3888         * modules/freadable (Files): Likewise.
3889         * modules/freadahead (Files): Likewise.
3890         * modules/freading (Files): Likewise.
3891         * modules/freadptr (Files): Likewise.
3892         * modules/freadseek (Files): Likewise.
3893         * modules/fseeko (Files): Likewise.
3894         * modules/fseterr (Files): Likewise.
3895         * modules/fwritable (Files): Likewise.
3896         * modules/fwriting (Files): Likewise.
3897
3898 2008-04-26  Bruno Haible  <bruno@clisp.org>
3899
3900         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3901         restore_seek_optimization, update_fpos_cache): New functions, extracted
3902         from rpl_fflush.
3903         (rpl_fflush): Use them.
3904         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3905         (gl_REPLACE_FFLUSH): Use it.
3906
3907 2008-04-26  Bruno Haible  <bruno@clisp.org>
3908
3909         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3910         on Solaris.
3911         * tests/test-xstrtoimax.sh: Likewise.
3912         * tests/test-xstrtoumax.sh: Likewise.
3913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3914
3915 2008-04-26  Bruno Haible  <bruno@clisp.org>
3916
3917         * modules/memchr-tests: New file.
3918         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3919
3920 2008-04-26  Eric Blake  <ebb9@byu.net>
3921             Bruno Haible  <bruno@clisp.org>
3922
3923         * lib/memchr.c: Include intprops.h.
3924         (__memchr): Optimize parallel detection of matching bytes. Rename local
3925         variables. Add explanatory comments.
3926
3927 2008-04-26  Bruno Haible  <bruno@clisp.org>
3928
3929         Fix module 'memchr', broken since 2000-10-28.
3930         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3931
3932 2008-04-26  Bruno Haible  <bruno@clisp.org>
3933
3934         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3935         comments.
3936
3937 2008-04-25  Eric Blake  <ebb9@byu.net>
3938
3939         Use native fstatat on cygwin 1.7.0.
3940         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3941         first.
3942
3943 2008-04-23  Eric Blake  <ebb9@byu.net>
3944
3945         Improve memchr2 performance.
3946         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3947         NUL bytes.
3948         * modules/memchr2 (Depends-on): Use intprops.h.
3949
3950 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3951
3952         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3953         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3954         <blp@cs.stanford.edu>.
3955
3956 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3957
3958         * lib/arpa_inet.in.h: New file.
3959
3960         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3961         (Makefile.am): Sed in substitute header file.
3962
3963         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3964         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3965
3966         * modules/inet_ntop (configure.ac): Use
3967         gl_ARPA_INET_MODULE_INDICATOR.
3968
3969         * modules/inet_pton (configure.ac): Use
3970         gl_ARPA_INET_MODULE_INDICATOR.
3971
3972 2008-04-22  Jim Meyering  <meyering@redhat.com>
3973
3974         * modules/verify (License): Re-license as LGPLv2+.
3975
3976 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3977
3978         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3979         parameter to void* as per POSIX standard (MinGW uses char*).
3980
3981 2008-04-21  Bruno Haible  <bruno@clisp.org>
3982
3983         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3984         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3985         Define to replacements if REPLACE_ISWCNTRL is 1.
3986         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3987         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3988         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3989         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3990         what it fixes.
3991         * doc/posix-functions/iswalpha.texi: Likewise.
3992         * doc/posix-functions/iswblank.texi: Likewise.
3993         * doc/posix-functions/iswcntrl.texi: Likewise.
3994         * doc/posix-functions/iswdigit.texi: Likewise.
3995         * doc/posix-functions/iswgraph.texi: Likewise.
3996         * doc/posix-functions/iswlower.texi: Likewise.
3997         * doc/posix-functions/iswprint.texi: Likewise.
3998         * doc/posix-functions/iswpunct.texi: Likewise.
3999         * doc/posix-functions/iswspace.texi: Likewise.
4000         * doc/posix-functions/iswupper.texi: Likewise.
4001         * doc/posix-functions/iswxdigit.texi: Likewise.
4002         Reported by Alain Guibert.
4003
4004 2008-04-21  Bruno Haible  <bruno@clisp.org>
4005
4006         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
4007         Patch by Alain Guibert.
4008
4009 2008-04-21  Bruno Haible  <bruno@clisp.org>
4010
4011         Fix test failures on mingw.
4012         * tests/test-xstrtol.c (print_no_progname): New function.
4013         (main): Install it in error_print_progname hook.
4014         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
4015         * tests/test-xstrtoimax.sh: Likewise.
4016         * tests/test-xstrtoumax.sh: Likewise.
4017
4018 2008-04-21  Bruno Haible  <bruno@clisp.org>
4019
4020         Fix test failure on mingw.
4021         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
4022
4023 2008-04-21  Bruno Haible  <bruno@clisp.org>
4024
4025         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
4026         Actually assign a value.
4027
4028 2008-04-20  Bruno Haible  <bruno@clisp.org>
4029
4030         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4031         take 2.
4032         * lib/canonicalize.c (canonicalize_file_name): Elide if the
4033         'canonicalize-lgpl' module is also used.
4034         * lib/canonicalize-lgpl.c: Undo last change.
4035         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
4036
4037 2008-04-20  Bruno Haible  <bruno@clisp.org>
4038
4039         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
4040         config.h. Provide _mkdir based fallback for mingw.
4041         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
4042         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
4043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
4044         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
4045         rather than defining mkdir in config.h.
4046         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
4047         (gl_SYS_STAT_H_DEFAULTS): New macro.
4048         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
4049         HAVE_IO_H any more.
4050         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
4051         HAVE_DECL_MKDIR and HAVE_IO_H.
4052
4053 2008-04-20  Bruno Haible  <bruno@clisp.org>
4054
4055         * lib/isapipe.c: Port to native Windows platforms.
4056
4057 2008-04-20  Bruno Haible  <bruno@clisp.org>
4058
4059         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
4060
4061 2008-04-21  Eric Blake  <ebb9@byu.net>
4062
4063         Work around preprocessors that don't handle UINTMAX_MAX.
4064         * lib/memchr2.c (memchr2): Avoid embedded #if.
4065         Reported by Alain Guibert, fix suggested by Bruno Haible.
4066
4067 2008-04-21  Simon Josefsson  <simon@josefsson.org>
4068
4069         * doc/posix-functions/strftime.texi (strftime): Explain better
4070         Windows incompatibility.  Suggested by Micah Cowan
4071         <micah@cowan.name>.
4072
4073 2008-04-20  Bruno Haible  <bruno@clisp.org>
4074
4075         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
4076         unistr/u8-mblen.
4077
4078 2008-04-20  Bruno Haible  <bruno@clisp.org>
4079
4080         Fix test failure on platforms with non-GNU iconv.
4081         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
4082         (U_TO_U8): Use it, rather than u16_to_u8.
4083         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
4084         units at the end of the input string.
4085         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
4086
4087 2008-04-20  Bruno Haible  <bruno@clisp.org>
4088
4089         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
4090         when the resulting length is 0.
4091         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
4092
4093 2008-04-20  Bruno Haible  <bruno@clisp.org>
4094
4095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
4096         works.
4097         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
4098
4099 2008-04-20  Bruno Haible  <bruno@clisp.org>
4100
4101         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
4102         * modules/tsearch-tests (configure.ac): Test for initstate function.
4103
4104 2008-04-20  Bruno Haible  <bruno@clisp.org>
4105
4106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
4107         for nlink_t if missing.
4108         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
4109
4110 2008-04-19  Bruno Haible  <bruno@clisp.org>
4111
4112         Work around snprintf bug on Linux libc5.
4113         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
4114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4115         gl_SNPRINTF_SIZE1.
4116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4117         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
4118         that test failed.
4119         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4120         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
4121         * modules/snprintf (Files): Add m4/printf.m4.
4122         * modules/vsnprintf (Files): Likewise.
4123         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
4124         * doc/posix-functions/vsnprintf.texi: Likewise.
4125
4126 2008-04-19  Bruno Haible  <bruno@clisp.org>
4127
4128         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4129         from 0.0058 to less than 10^-7.
4130
4131 2008-04-19  Bruno Haible  <bruno@clisp.org>
4132
4133         Fix rounding when a precision is given.
4134         * lib/vasnprintf.c (is_borderline): New function.
4135         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
4136         9...9x.
4137         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
4138         %e, %g.
4139         * tests/test-vasprintf-posix.c (test_function): Likewise.
4140         * tests/test-snprintf-posix.h (test_function): Likewise.
4141         * tests/test-sprintf-posix.h (test_function): Likewise.
4142         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
4143         * tests/test-printf-posix.h (test_function): Likewise.
4144         * tests/test-printf-posix.output: Update.
4145         Reported by John Darrington <john@darrington.wattle.id.au> via
4146         Ben Pfaff <blp@cs.stanford.edu>.
4147
4148 2008-04-18  Simon Josefsson  <simon@josefsson.org>
4149
4150         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
4151         Suggested by Bruno Haible <bruno@clisp.org>.
4152
4153 2008-04-17  Bruno Haible  <bruno@clisp.org>
4154
4155         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
4156         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
4157         implementation.
4158         Patch by Bruce Merry <bmerry@gmail.com>.
4159
4160 2008-04-17  Simon Josefsson  <simon@josefsson.org>
4161
4162         * doc/posix-functions/strftime.texi (strftime): Mention that %e
4163         doesn't work under Windows.
4164
4165 2008-04-16  Bruno Haible  <bruno@clisp.org>
4166
4167         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
4168         New macros.
4169         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
4170         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
4171         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
4172         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
4173         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
4174         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
4175         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
4176         macros.
4177         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
4178         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
4179         Northern Sotho, Uighur.
4180
4181 2008-04-16  Bruno Haible  <bruno@clisp.org>
4182
4183         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
4184         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
4185         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
4186         Reported by Daniel Bergström <daniel@octocode.com>.
4187
4188 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
4189             Bruno Haible  <bruno@clisp.org>
4190
4191         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
4192         function.
4193         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
4194         New functions, mostly extracted from gl_locale_name_default.
4195         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
4196
4197 2008-04-16  Eric Blake  <ebb9@byu.net>
4198
4199         Adjust strtod detection to catch glibc 2.7 bug.
4200         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
4201         Reported by John Gatewood Ham.
4202
4203 2008-04-16  Bruno Haible  <bruno@clisp.org>
4204
4205         Add tentative support for Linux libc5.
4206         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
4207         * lib/fpurge.c (fpurge): Likewise.
4208         * lib/freadable.c (freadable): Likewise.
4209         * lib/freadahead.c (freadahead): Likewise.
4210         * lib/freading.c (freading): Likewise.
4211         * lib/freadptr.c (freadptr): Likewise.
4212         * lib/freadseek.c (freadptrinc): Likewise.
4213         * lib/fseeko.c (rpl_fseeko): Likewise.
4214         * lib/fseterr.c (fseterr): Likewise.
4215         * lib/fwritable.c (fwritable): Likewise.
4216         * lib/fwriting.c (fwriting): Likewise.
4217         Reported by Alain Guibert <alguibert+bts@free.fr>.
4218
4219 2008-04-15  Bruno Haible  <bruno@clisp.org>
4220
4221         * modules/mathl (configure.ac): Define module indicator.
4222
4223 2008-04-15  Bruno Haible  <bruno@clisp.org>
4224
4225         * lib/logl.c (logl): Remove unused variables.
4226
4227 2008-04-15  Bruno Haible  <bruno@clisp.org>
4228
4229         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
4230         fails.
4231
4232 2008-04-15  Bruno Haible  <bruno@clisp.org>
4233
4234         * lib/trim.c (trim2): Fix argument of isspace() macro.
4235
4236 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
4237
4238         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
4239         to 0.
4240         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
4241
4242 2008-04-14  Bruno Haible  <bruno@clisp.org>
4243
4244         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
4245         AC_LANG_PROGRAM argument.
4246         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
4247         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
4248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4249         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4250         * m4/math_h.m4 (gl_MATH_H): Likewise.
4251         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4253         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4254         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4255         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4256         * m4/regex.m4 (gl_REGEX): Likewise.
4257         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
4258         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
4259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4260         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
4261         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4262         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4265
4266 2008-04-14  Jim Meyering  <meyering@redhat.com>
4267
4268         test-strtod: fix typos: s/abs/fabs/
4269         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
4270
4271 2008-04-13  Bruno Haible  <bruno@clisp.org>
4272
4273         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
4274         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
4275         module is also used and while not building the reloc-wrapper.
4276
4277 2008-04-13  Bruno Haible  <bruno@clisp.org>
4278
4279         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
4280
4281 2008-04-13  Bruno Haible  <bruno@clisp.org>
4282
4283         Fix AIX compilation failure introduced on 2008-04-02.
4284         * tests/test-frexp.c (exp): Undefine before redefining.
4285         * tests/test-frexpl.c (exp): Likewise.
4286
4287 2008-04-13  Bruno Haible  <bruno@clisp.org>
4288
4289         Work around a HP-UX stdio bug.
4290         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
4291         * tests/test-ftello.c (main): Likewise.
4292         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
4293         * doc/posix-functions/ftello.texi: Likewise.
4294
4295 2008-04-13  Bruno Haible  <bruno@clisp.org>
4296
4297         Make test-signbit pass on HP-UX/hppa.
4298         * tests/test-signbit.c (minus_zerol): New variable.
4299         (test_signbitl): Use it.
4300
4301 2008-04-13  Bruno Haible  <bruno@clisp.org>
4302
4303         Make truncl work on OSF/1 4.0.
4304         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
4305         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4306         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
4307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
4308         HAVE_DECL_TRUNCL.
4309         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
4310         HAVE_DECL_TRUNCL.
4311         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
4312
4313 2008-04-13  Bruno Haible  <bruno@clisp.org>
4314
4315         * lib/unictype.h: Remove trailing comma from enumeration definitions.
4316
4317 2008-04-13  Bruno Haible  <bruno@clisp.org>
4318
4319         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4320         expression, so as to avoid HP-UX 11 cc compiler bug.
4321
4322 2008-04-13  Bruno Haible  <bruno@clisp.org>
4323
4324         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4325
4326 2008-04-13  Bruno Haible  <bruno@clisp.org>
4327
4328         * lib/git-merge-changelog.c: Remove empty declaration outside of
4329         functions.
4330
4331 2008-04-13  Bruno Haible  <bruno@clisp.org>
4332
4333         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4334
4335 2008-04-13  Bruno Haible  <bruno@clisp.org>
4336
4337         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4338         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4340         also if it exists but lacks definitions of the SHUT_* macros.
4341         * modules/sys_socket (Description): Update.
4342         Reported by Elbert Pol <e.pol@chello.nl>.
4343
4344 2008-04-13  Bruno Haible  <bruno@clisp.org>
4345
4346         * lib/localcharset.c (OS2): Don't redefine if already defined.
4347         Reported by Elbert Pol <e.pol@chello.nl>.
4348
4349 2008-04-13  Bruno Haible  <bruno@clisp.org>
4350
4351         * lib/binary-io.h [__EMX__]: Include <io.h>.
4352         Reported by Elbert Pol <e.pol@chello.nl>.
4353
4354 2008-04-12  Bruno Haible  <bruno@clisp.org>
4355
4356         * lib/fpucw.h: Enable the definitions also for x86_64.
4357         Needed for NetBSD/x86_64.
4358         Reported by Thomas Klausner <tk@giga.or.at>.
4359
4360 2008-04-12  Bruno Haible  <bruno@clisp.org>
4361
4362         * tests/test-strtod.c: Include isnand.h.
4363         (main): Use isnand instead of isnan.
4364         Reported by Jim Meyering.
4365
4366 2008-04-12  Bruno Haible  <bruno@clisp.org>
4367
4368         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
4369         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4370
4371 2008-04-12  Jim Meyering  <meyering@redhat.com>
4372
4373         * m4/math_h.m4 (gl_MATH_H): Fix typos.
4374
4375 2008-04-12  Bruno Haible  <bruno@clisp.org>
4376
4377         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
4378         Reported by Elbert Pol <e.pol@chello.nl>.
4379
4380 2008-04-12  Eric Blake  <ebb9@byu.net>
4381
4382         Work around Solaris 10 math.h bug.
4383         * m4/math_h.m4 (gl_MATH_H): Check for bug.
4384         (gl_MATH_H_DEFAULTS): Set up default.
4385         * modules/math (Makefile.am): Replace new indicators.
4386         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
4387         * tests/test-math.c (main): Test this.
4388         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
4389         * doc/posix-headers/math.texi (math.h): Mention bug.
4390         Reported by Nelson H. F. Beebe and Jim Meyering.
4391
4392 2008-04-11  Bruno Haible  <bruno@clisp.org>
4393
4394         Adapt to future versions of Apple GCC.
4395         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
4396         Reported by Peter O'Gorman <peter@pogma.com>.
4397
4398 2008-04-11  Bruno Haible  <bruno@clisp.org>
4399
4400         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
4401
4402 2008-04-11  Bruno Haible  <bruno@clisp.org>
4403
4404         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
4405
4406         * modules/getaddrinfo-tests (Makefile.am): Define
4407         test_getaddrinfo_LDADD.
4408
4409 2008-04-11  Bruno Haible  <bruno@clisp.org>
4410
4411         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
4412         (init): Fix syntax error.
4413         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
4414         is declared.
4415
4416 2008-04-11  Bruno Haible  <bruno@clisp.org>
4417
4418         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
4419         * modules/glob (Depends-on): Add stdbool.
4420
4421 2008-04-11  Bruno Haible  <bruno@clisp.org>
4422
4423         * lib/trim.c: Include <string.h>.
4424
4425 2008-04-11  Eric Blake  <ebb9@byu.net>
4426
4427         Avoid compile failure on OS/2.
4428         * lib/regex_internal.h (internal_function): Disable optimization
4429         on OS/2 (__EMX__), where it caused compiler error.
4430         Reported by Elbert Pol.
4431
4432 2008-04-11  Bruno Haible  <bruno@clisp.org>
4433
4434         Flush the standard error stream before aborting. Needed on mingw.
4435         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
4436         * tests/test-array_list.c (ASSERT): Likewise.
4437         * tests/test-array_oset.c (ASSERT): Likewise.
4438         * tests/test-avltree_list.c (ASSERT): Likewise.
4439         * tests/test-avltree_oset.c (ASSERT): Likewise.
4440         * tests/test-avltreehash_list.c (ASSERT): Likewise.
4441         * tests/test-binary-io.c (ASSERT): Likewise.
4442         * tests/test-byteswap.c (ASSERT): Likewise.
4443         * tests/test-c-ctype.c (ASSERT): Likewise.
4444         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
4445         * tests/test-c-strcasestr.c (ASSERT): Likewise.
4446         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
4447         * tests/test-c-strstr.c (ASSERT): Likewise.
4448         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
4449         * tests/test-canonicalize.c (ASSERT): Likewise.
4450         * tests/test-carray_list.c (ASSERT): Likewise.
4451         * tests/test-ceilf1.c (ASSERT): Likewise.
4452         * tests/test-ceilf2.c (ASSERT): Likewise.
4453         * tests/test-ceill.c (ASSERT): Likewise.
4454         * tests/test-count-one-bits.c (ASSERT): Likewise.
4455         * tests/test-fbufmode.c (ASSERT): Likewise.
4456         * tests/test-fflush2.c (ASSERT): Likewise.
4457         * tests/test-floorf1.c (ASSERT): Likewise.
4458         * tests/test-floorf2.c (ASSERT): Likewise.
4459         * tests/test-floorl.c (ASSERT): Likewise.
4460         * tests/test-fopen.c (ASSERT): Likewise.
4461         * tests/test-fpending.c (ASSERT): Likewise.
4462         * tests/test-fprintf-posix.c (ASSERT): Likewise.
4463         * tests/test-fpurge.c (ASSERT): Likewise.
4464         * tests/test-freadable.c (ASSERT): Likewise.
4465         * tests/test-freadahead.c (ASSERT): Likewise.
4466         * tests/test-freading.c (ASSERT): Likewise.
4467         * tests/test-freadptr.c (ASSERT): Likewise.
4468         * tests/test-freadptr2.c (ASSERT): Likewise.
4469         * tests/test-freadseek.c (ASSERT): Likewise.
4470         * tests/test-freopen.c (ASSERT): Likewise.
4471         * tests/test-frexp.c (ASSERT): Likewise.
4472         * tests/test-frexpl.c (ASSERT): Likewise.
4473         * tests/test-fseek.c (ASSERT): Likewise.
4474         * tests/test-fseeko.c (ASSERT): Likewise.
4475         * tests/test-fstrcmp.c (ASSERT): Likewise.
4476         * tests/test-ftell.c (ASSERT): Likewise.
4477         * tests/test-ftello.c (ASSERT): Likewise.
4478         * tests/test-func.c (ASSERT): Likewise.
4479         * tests/test-fwritable.c (ASSERT): Likewise.
4480         * tests/test-fwriting.c (ASSERT): Likewise.
4481         * tests/test-getdelim.c (ASSERT): Likewise.
4482         * tests/test-getline.c (ASSERT): Likewise.
4483         * tests/test-i-ring.c (ASSERT): Likewise.
4484         * tests/test-iconv-utf.c (ASSERT): Likewise.
4485         * tests/test-iconv.c (ASSERT): Likewise.
4486         * tests/test-isfinite.c (ASSERT): Likewise.
4487         * tests/test-isnand.c (ASSERT): Likewise.
4488         * tests/test-isnanf.c (ASSERT): Likewise.
4489         * tests/test-isnanl.h (ASSERT): Likewise.
4490         * tests/test-ldexpl.c (ASSERT): Likewise.
4491         * tests/test-linked_list.c (ASSERT): Likewise.
4492         * tests/test-linkedhash_list.c (ASSERT): Likewise.
4493         * tests/test-localename.c (ASSERT): Likewise.
4494         * tests/test-lseek.c (ASSERT): Likewise.
4495         * tests/test-mbscasecmp.c (ASSERT): Likewise.
4496         * tests/test-mbscasestr1.c (ASSERT): Likewise.
4497         * tests/test-mbscasestr2.c (ASSERT): Likewise.
4498         * tests/test-mbscasestr3.c (ASSERT): Likewise.
4499         * tests/test-mbscasestr4.c (ASSERT): Likewise.
4500         * tests/test-mbschr.c (ASSERT): Likewise.
4501         * tests/test-mbscspn.c (ASSERT): Likewise.
4502         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
4503         * tests/test-mbspbrk.c (ASSERT): Likewise.
4504         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
4505         * tests/test-mbsrchr.c (ASSERT): Likewise.
4506         * tests/test-mbsspn.c (ASSERT): Likewise.
4507         * tests/test-mbsstr1.c (ASSERT): Likewise.
4508         * tests/test-mbsstr2.c (ASSERT): Likewise.
4509         * tests/test-mbsstr3.c (ASSERT): Likewise.
4510         * tests/test-memchr2.c (ASSERT): Likewise.
4511         * tests/test-memmem.c (ASSERT): Likewise.
4512         * tests/test-open.c (ASSERT): Likewise.
4513         * tests/test-printf-frexp.c (ASSERT): Likewise.
4514         * tests/test-printf-frexpl.c (ASSERT): Likewise.
4515         * tests/test-printf-posix.c (ASSERT): Likewise.
4516         * tests/test-quotearg.c (ASSERT): Likewise.
4517         * tests/test-rbtree_list.c (ASSERT): Likewise.
4518         * tests/test-rbtree_oset.c (ASSERT): Likewise.
4519         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
4520         * tests/test-round1.c (ASSERT): Likewise.
4521         * tests/test-roundf1.c (ASSERT): Likewise.
4522         * tests/test-roundl.c (ASSERT): Likewise.
4523         * tests/test-signbit.c (ASSERT): Likewise.
4524         * tests/test-sleep.c (ASSERT): Likewise.
4525         * tests/test-snprintf-posix.c (ASSERT): Likewise.
4526         * tests/test-snprintf.c (ASSERT): Likewise.
4527         * tests/test-sprintf-posix.c (ASSERT): Likewise.
4528         * tests/test-stat-time.c (ASSERT): Likewise.
4529         * tests/test-strcasestr.c (ASSERT): Likewise.
4530         * tests/test-strerror.c (ASSERT): Likewise.
4531         * tests/test-striconv.c (ASSERT): Likewise.
4532         * tests/test-striconveh.c (ASSERT): Likewise.
4533         * tests/test-striconveha.c (ASSERT): Likewise.
4534         * tests/test-strsignal.c (ASSERT): Likewise.
4535         * tests/test-strstr.c (ASSERT): Likewise.
4536         * tests/test-strtod.c (ASSERT): Likewise.
4537         * tests/test-trunc1.c (ASSERT): Likewise.
4538         * tests/test-trunc2.c (ASSERT): Likewise.
4539         * tests/test-truncf1.c (ASSERT): Likewise.
4540         * tests/test-truncf2.c (ASSERT): Likewise.
4541         * tests/test-truncl.c (ASSERT): Likewise.
4542         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
4543         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
4544         * tests/test-vasnprintf.c (ASSERT): Likewise.
4545         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
4546         * tests/test-vasprintf.c (ASSERT): Likewise.
4547         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
4548         * tests/test-vprintf-posix.c (ASSERT): Likewise.
4549         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
4550         * tests/test-vsnprintf.c (ASSERT): Likewise.
4551         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
4552         * tests/test-wcwidth.c (ASSERT): Likewise.
4553         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
4554         * tests/test-xprintf-posix.c (ASSERT): Likewise.
4555         * tests/test-xvasprintf.c (ASSERT): Likewise.
4556         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
4557         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
4558         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
4559         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
4560         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
4561         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
4562         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
4563         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
4564         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
4565         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
4566         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
4567         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
4568         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
4569         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
4570         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
4571         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
4572         * tests/unictype/test-block_list.c (ASSERT): Likewise.
4573         * tests/unictype/test-block_of.c (ASSERT): Likewise.
4574         * tests/unictype/test-block_test.c (ASSERT): Likewise.
4575         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
4576         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
4577         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
4578         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
4579         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
4580         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
4581         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
4582         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
4583         * tests/unictype/test-combining.c (ASSERT): Likewise.
4584         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
4585         * tests/unictype/test-digit.c (ASSERT): Likewise.
4586         * tests/unictype/test-mirror.c (ASSERT): Likewise.
4587         * tests/unictype/test-numeric.c (ASSERT): Likewise.
4588         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
4589         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
4590         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
4591         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4592         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4593         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4594         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4595         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4596         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4597         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4598         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4599         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4600         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4601         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4602         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4603         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4604         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4605         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4606         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4607         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4608         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4609         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4610         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4611         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4612         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4613         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4614         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4615         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4616         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4617         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4618         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4619         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4620         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4621         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4622         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4623         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4624         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4625         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4626         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4627         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4628         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4629         Reported by Eric Blake.
4630
4631 2008-04-11  Bruno Haible  <bruno@clisp.org>
4632
4633         * lib/wchar.in.h: Tweak comment.
4634
4635 2008-04-11  Bruno Haible  <bruno@clisp.org>
4636
4637         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4638         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4639         gl_COMMON.
4640         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4641
4642 2008-04-11  Bruno Haible  <bruno@clisp.org>
4643
4644         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4645
4646 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4647
4648         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4649         of attempting to use non-existing /dev/*random.  Based on patch
4650         from Adam Strzelecki <ono@java.pl> in
4651         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4652
4653 2008-04-08  Bruno Haible  <bruno@clisp.org>
4654
4655         Add tentative support for emx+gcc.
4656         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4657         * lib/fpurge.c (fpurge): Likewise.
4658         * lib/freadable.c (freadable): Likewise.
4659         * lib/freadahead.c (freadahead): Likewise.
4660         * lib/freading.c (freading): Likewise.
4661         * lib/freadptr.c (freadptr): Likewise.
4662         * lib/freadseek.c (freadptrinc): Likewise.
4663         * lib/fseeko.c (rpl_fseeko): Likewise.
4664         * lib/fseterr.c (fseterr): Likewise.
4665         * lib/fwritable.c (fwritable): Likewise.
4666         * lib/fwriting.c (fwriting): Likewise.
4667         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4668
4669 2008-04-09  Eric Blake  <ebb9@byu.net>
4670
4671         Avoid some autoconf warnings.
4672         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4673         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4674         * m4/afs.m4 (gl_AFS): Likewise.
4675         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4676         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4677         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4678         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4679         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4680         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4681         (AC_CHECK_DECLS_ONCE): Likewise.
4682         Rename file...
4683         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4684         gnulib-tool requires autoconf 2.59 or better.
4685         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4686
4687 2008-04-08  Eric Blake  <ebb9@byu.net>
4688
4689         Use 'git describe --match' if present (added in git 1.5.5).
4690         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4691         if possible.
4692
4693 2008-04-08  Bruno Haible  <bruno@clisp.org>
4694
4695         Add tentative support for OpenServer.
4696         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4697         _ptr, _cnt.
4698         * lib/fpurge.c (fpurge): Likewise.
4699         * lib/freadable.c (freadable): Likewise.
4700         * lib/freadahead.c (freadahead): Likewise.
4701         * lib/freading.c (freading): Likewise.
4702         * lib/freadptr.c (freadptr): Likewise.
4703         * lib/freadseek.c (freadptrinc): Likewise.
4704         * lib/fseeko.c (rpl_fseeko): Likewise.
4705         * lib/fseterr.c (fseterr): Likewise.
4706         * lib/fwritable.c (fwritable): Likewise.
4707         * lib/fwriting.c (fwriting): Likewise.
4708         Reported by Roger Cornelius <rac@tenzing.org> and
4709         Brian K. White <brian@aljex.com>.
4710
4711 2008-04-06  Jim Meyering  <meyering@redhat.com>
4712
4713         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4714
4715 2008-04-06  Bruno Haible  <bruno@clisp.org>
4716
4717         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4718         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4719         * tests/test-printf-posix.sh: Likewise.
4720         * tests/test-vfprintf-posix.sh: Likewise.
4721         * tests/test-vprintf-posix.sh: Likewise.
4722         * tests/test-xprintf-posix.sh: Likewise.
4723
4724 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4725
4726         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4727         hide error from 'ls', needed on OS/2.
4728         Report by Elbert Pol <elbert.pol@gmail.com>.
4729
4730 2008-04-04  Eric Blake  <ebb9@byu.net>
4731
4732         Make test-fseeko.c failures meaningful.
4733         * tests/test-fseeko.c: Print line number on failure.
4734         * tests/test-fseek.c: Likewise.
4735         Reported by Nelson H. F. Beebe.
4736
4737         Improve strtod bug detection check.
4738         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4739         required for Solaris 10.
4740         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4741
4742 2008-04-04  Bruno Haible  <bruno@clisp.org>
4743
4744         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4745         by m4/setenv.m4.
4746
4747 2008-04-03  Eric Blake  <ebb9@byu.net>
4748
4749         Ensure sane .version contents.
4750         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4751         version string.
4752         * build-aux/git-version-gen: Improve documentation.
4753
4754         Make GNU make output nicer.
4755         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4756         MAKECMDGOALS to enforce message for all command line targets.  Set
4757         srcdir for use in maint.mk.
4758
4759         Another maintainer tweak.
4760         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4761         a target that regenerates version.
4762
4763 2008-04-03  Jim Meyering  <meyering@redhat.com>
4764
4765         vc-list-files: don't cause coreutils "make po-check" failure
4766         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4767
4768 2008-04-03  Eric Blake  <ebb9@byu.net>
4769
4770         Allow VPATH usage of vc-list-files.
4771         * build-aux/vc-list-files (scriptversion): Add timestamp.
4772         (options): Add --help, --version, -C.
4773         (CVS): Support installed cvsu.
4774
4775 2008-04-02  Bruno Haible  <bruno@clisp.org>
4776
4777         Avoid some "statement with no effect" warnings from gcc.
4778         * tests/test-wctype.c (main): Explicitly ignore unused values.
4779         Reported by Jim Meyering.
4780
4781 2008-04-02  Jim Meyering  <meyering@redhat.com>
4782
4783         Avoid some warnings from "gcc -Wshadow".
4784         * tests/test-frexp.c (exp): Define to a different identifier.
4785         * tests/test-frexpl.c (exp): Likewise.
4786
4787 2008-04-03  Jim Meyering  <meyering@redhat.com>
4788
4789         bootstrap: remove dangling *.[ch] symlinks from lib
4790         * build-aux/bootstrap [dangling symlink removal]: Move find's
4791         -depth option to precede all others, to avoid a warning.
4792         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4793
4794 2008-04-02  Bruno Haible  <bruno@clisp.org>
4795
4796         Avoid some warnings from "gcc -Wshadow".
4797         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4798         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4799         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4800         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4801         Reported by Jim Meyering.
4802
4803 2008-04-01  Bruno Haible  <bruno@clisp.org>
4804
4805         Fix test to work on IRIX 6.5 with cc.
4806         * tests/test-math.c (numeric_equal): New function.
4807         (main): Use it.
4808
4809 2008-04-01  Bruno Haible  <bruno@clisp.org>
4810
4811         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4812
4813 2008-04-01  Bruno Haible  <bruno@clisp.org>
4814
4815         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4816         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4817         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4818         (Depends-on): Remove math.
4819
4820         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4821         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4822         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4823         (Depends-on): Remove math.
4824
4825         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4826         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4827         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4828         (Depends-on): Remove math.
4829         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4830         (Depends-on): Remove math.
4831
4832         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4833         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4834         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4835         (Depends-on): Remove math.
4836         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4837         (Depends-on): Remove math.
4838
4839         * tests/test-round1.c: Include nan.h.
4840         (main): Use NaNd instead of NAN.
4841         * modules/round-tests (Files): Add tests/nan.h.
4842
4843         * tests/test-trunc1.c: Include nan.h.
4844         (main): Use NaNd instead of NAN.
4845         * modules/trunc-tests (Files): Add tests/nan.h.
4846
4847         * tests/test-roundf1.c: Include nan.h.
4848         (main): Use NaNf instead of NAN.
4849         * modules/roundf-tests (Files): Add tests/nan.h.
4850
4851         * tests/test-truncf1.c: Include nan.h.
4852         (main): Use NaNf instead of NAN.
4853         * modules/truncf-tests (Files): Add tests/nan.h.
4854
4855         * tests/test-ceilf1.c: Include nan.h.
4856         (main): Use NaNf instead of NAN.
4857         * modules/ceilf-tests (Files): Add tests/nan.h.
4858
4859         * tests/test-floorf1.c: Include nan.h.
4860         (main): Use NaNf instead of NAN.
4861         * modules/floorf-tests (Files): Add tests/nan.h.
4862
4863         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4864         (main): Use NaNf instead of NAN.
4865         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4866
4867         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4868         (main): Use NaNd instead of NAN.
4869         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4870
4871         * tests/test-frexp.c: Include nan.h.
4872         (main): Use NaNd instead of NAN.
4873         * modules/frexp-tests (Files): Add tests/nan.h.
4874
4875         * lib/isnan.c: Don't include <math.h>.
4876         (FUNC): Don't use NAN macro.
4877         * modules/isnand-nolibm (Depends-on): Remove math.
4878         * modules/isnanf-nolibm (Depends-on): Remove math.
4879         * modules/isnanl (Depends-on): Remove math.
4880         * modules/isnanl-nolibm (Depends-on): Remove math.
4881
4882         * tests/nan.h: New file.
4883
4884 2008-04-01  Eric Blake  <ebb9@byu.net>
4885
4886         Fix typos.
4887         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4888         values to be the right type.
4889
4890         For now, cater to gnulib strtod inaccuracies.
4891         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4892         fractional results.  While not as nice from a QoI perspective, it
4893         is a quicker patch than correctly implementing decimal to binary
4894         rounding.
4895
4896 2008-03-31  Eric Blake  <ebb9@byu.net>
4897
4898         Guarantee a definition of NAN.
4899         * lib/math.in.h (NAN): Define if missing.
4900         * tests/test-math.c (main): Test it.
4901         * doc/posix-headers/math.texi (math.h): Document this.
4902         * lib/isnan.c (rpl_isnand): Use it.
4903         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4904         * tests/test-floorf1.c (NaN): Likewise.
4905         * tests/test-frexp.c (NaN): Likewise.
4906         * tests/test-isnand.c (NaN): Likewise.
4907         * tests/test-isnanf.c (NaN): Likewise.
4908         * tests/test-round1.c (NaN): Likewise.
4909         * tests/test-roundf1.c (NaN): Likewise.
4910         * tests/test-snprintf-posix.h (NaN): Likewise.
4911         * tests/test-sprintf-posix.h (NaN): Likewise.
4912         * tests/test-trunc1.c (NaN): Likewise.
4913         * tests/test-truncf1.c (NaN): Likewise.
4914         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4915         * tests/test-vasprintf-posix.c (NaN): Likewise.
4916         * modules/isnand-nolibm (Depends-on): Add math.
4917         * modules/isnanf-nolibm (Depends-on): Likewise.
4918         * modules/isnanl (Depends-on): Likewise.
4919         * modules/isnanl-nolibm (Depends-on): Likewise.
4920         * modules/snprintf-posix-tests (Depends-on): Likewise.
4921         * modules/sprintf-posix-tests (Depends-on): Likewise.
4922         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4923         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4924         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4925         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4926
4927 2008-03-31  Bruno Haible  <bruno@clisp.org>
4928
4929         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4930         * doc/posix-functions/strtod.texi: Likewise.
4931
4932 2008-03-31  Bruno Haible  <bruno@clisp.org>
4933
4934         * tests/test-strtod.c (main): Don't use C99 syntax.
4935
4936 2008-03-31  Bruno Haible  <bruno@clisp.org>
4937
4938         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4939         Reported by Eric Blake.
4940
4941 2008-03-31  Jim Meyering  <meyering@redhat.com>
4942
4943         Don't compare actual signbit return values.
4944         * tests/test-strtod.c (main): Rather, compare only their
4945         zero/non-zero nature.
4946
4947 2008-03-31  Eric Blake  <ebb9@byu.net>
4948
4949         More strtod documentation.
4950         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4951         failures as distinct bugs.
4952
4953 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4954
4955         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4956         Problem reported by Erik Benada in
4957         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4958
4959 2008-03-30  Bruno Haible  <bruno@clisp.org>
4960
4961         * tests/test-strtod.c: Add comments about which assertion fails on which
4962         platform.
4963         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4964
4965 2008-03-30  Eric Blake  <ebb9@byu.net>
4966
4967         Test signbit behavior on zeros.
4968         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4969         (test_signbitd, test_signbitl): Likewise.
4970
4971         More strtod touchups.
4972         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4973         sign of negative underflow, for now.  Use .5, not .1.
4974         * doc/posix-functions/strtod.texi (strtod): Mention these
4975         limitations.
4976         Reported by Jim Meyering.
4977
4978 2008-03-30  Bruno Haible  <bruno@clisp.org>
4979
4980         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4981         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4982
4983 2008-03-30  Bruno Haible  <bruno@clisp.org>
4984
4985         Avoid failure when attempting to return empty iconv results on some
4986         platforms.
4987         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4988         allocation, don't report ENOMEM when the resulting string is empty.
4989
4990 2008-03-30  Bruno Haible  <bruno@clisp.org>
4991
4992         Fix buffer overrun.
4993         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4994         Don't consider the width for tmp_length. Check count against tmp_length
4995         before doing the padding. Ensure enough allocation during padding.
4996
4997 2008-03-30  Eric Blake  <ebb9@byu.net>
4998
4999         strtod touchups.
5000         * lib/strtod.c (strtod): Avoid compiler warnings.
5001         Reported by Jim Meyering.
5002
5003 2008-03-30  Bruno Haible  <bruno@clisp.org>
5004
5005         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
5006         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
5007         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
5008         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
5009         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
5010         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
5011         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
5012         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
5013
5014         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
5015         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
5016         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
5017         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
5018         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
5019         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
5020         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
5021         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
5022
5023         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
5024         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
5025         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
5026         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
5027         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
5028         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
5029         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
5030         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
5031
5032         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
5033         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
5034
5035         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
5036         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
5037
5038         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
5039         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
5040
5041         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
5042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
5043         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
5044
5045         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
5046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
5047         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
5048
5049         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
5050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
5051         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
5052
5053         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
5054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
5055         * modules/vasprintf (Depends-on): Add EOVERFLOW.
5056
5057         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
5058         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
5059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
5060         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
5061         (Depends-on): Add EOVERFLOW.
5062         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
5063         (Depends-on): Add EOVERFLOW.
5064         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5065         (Depends-on): Add EOVERFLOW.
5066         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
5067         (Depends-on): Add EOVERFLOW.
5068         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5069         (Depends-on): Add EOVERFLOW.
5070         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
5071         (Depends-on): Add EOVERFLOW.
5072         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5073         (Depends-on): Add EOVERFLOW.
5074         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
5075         (Depends-on): Add EOVERFLOW.
5076
5077         * lib/sprintf.c (EOVERFLOW): Remove fallback.
5078         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
5079         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
5080
5081         * lib/snprintf.c (EOVERFLOW): Remove fallback.
5082         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
5083         * modules/snprintf (Depends-on): Add EOVERFLOW.
5084
5085         * lib/poll.c (EOVERFLOW): Remove fallback.
5086         * modules/poll (Depends-on): Add EOVERFLOW.
5087
5088         * lib/getugroups.c (EOVERFLOW): Remove fallback.
5089         * modules/getugroups (Depends-on): Add EOVERFLOW.
5090
5091         * lib/getdelim.c (EOVERFLOW): Remove fallback.
5092         * modules/getdelim (Depends-on): Add EOVERFLOW.
5093
5094         * lib/ftell.c (EOVERFLOW): Remove fallback.
5095         * modules/ftell (Depends-on): Add EOVERFLOW.
5096
5097         * lib/fprintf.c (EOVERFLOW): Remove fallback.
5098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
5099         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
5100
5101         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
5102
5103         * modules/EOVERFLOW-tests: New file.
5104         * tests/test-EOVERFLOW.c: New file.
5105
5106         * modules/EOVERFLOW: New file.
5107         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
5108
5109 2008-03-30  Bruno Haible  <bruno@clisp.org>
5110
5111         Fix bug introduced on 2007-06-10.
5112         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
5113         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
5114
5115 2008-03-30  Bruno Haible  <bruno@clisp.org>
5116
5117         Improve freadseek's efficiency after ungetc.
5118         * lib/freadseek.c: Include freadahead.h.
5119         (freadptrinc): New function, extracted from freadseek.
5120         (freadseek): Use it in a loop. Use freadahead to determine the number
5121         of loop iterations.
5122         * modules/freadseek (Depends-on): Add freadahead.
5123         (configure.ac): Require AC_C_INLINE.
5124
5125 2008-03-30  Bruno Haible  <bruno@clisp.org>
5126
5127         * lib/freadseek.c (freadseek): Don't ignore the return value of
5128         freadptr.
5129
5130 2008-03-29  Eric Blake  <ebb9@byu.net>
5131
5132         Add hex float support.
5133         * modules/strtod (Depends-on): Add c-ctype.
5134         (Link): Mention POW_LIB.
5135         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
5136         whitespace between 'e' and exponent.
5137         * tests/test-strtod.c (main): Enable hex float tests.
5138         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
5139         now provides.
5140
5141         Document various strtod bugs, with some fixes.
5142         * doc/posix-functions/strtod.texi (strtod): Document bugs with
5143         "-0x", "inf", "nan", and hex constants.
5144         * doc/posix-functions/atof.texi (atof): Likewise.
5145         * modules/stdlib (Makefile.am): Support strtod.
5146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5147         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
5148         detect additional strtod bugs.
5149         * lib/stdlib.in.h (rpl_strtod): Add declarations.
5150         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
5151         bool where appropriate.  Parse 'inf' and 'nan'.
5152         * tests/test-strtod.c: New file.
5153         * modules/strtod (Depends-on): Add stdbool, stdlib.
5154         (configure.ac): Turn on module indicator.
5155         * modules/strtod-tests: New module.
5156
5157 2008-03-29  Eric Blake  <ebb9@byu.net>
5158
5159         Fix ftell on mingw.
5160         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
5161         * modules/ftell-tests (Depends-on): Add binary-io.
5162         * modules/ftello-tests (Depends-on): Likewise.
5163         * tests/test-ftell.c (main): Enhance test to cover behavior after
5164         ungetc.  Enforce binary mode.
5165         * tests/test-ftello.c (main): Likewise.
5166
5167         Pass test-freadseek on cygwin.
5168         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
5169         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
5170         ungetc buffer.
5171
5172         * tests/test-fflush2.c (main): Fix typo.
5173
5174 2008-03-29  Bruno Haible  <bruno@clisp.org>
5175
5176         * tests/test-fflush2.c (main): Temporarily disable the contents of
5177         this test.
5178         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
5179         Reported by Eric Blake.
5180
5181 2008-03-28  Simon Josefsson  <simon@josefsson.org>
5182
5183         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
5184         (GC_SHA224_DIGEST_SIZE): Add.
5185
5186         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
5187         (gc_hash_digest_length): Likewise.
5188         (gc_hash_buffer): Likewise.
5189
5190 2008-03-25  Bruno Haible  <bruno@clisp.org>
5191
5192         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
5193         detail which gettext release to use.
5194         Reported by Simon Josefsson.
5195
5196 2008-03-26  Jim Meyering  <meyering@redhat.com>
5197
5198         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
5199         * modules/gnumakefile (clean-GNUmakefile): Also, use
5200         test ... && ... || : syntax rather than if-then ... fi.
5201
5202         gnumakefile: Don't double-quote-expand $(VPATH) value.
5203         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
5204
5205 2008-03-24  Eric Blake  <ebb9@byu.net>
5206
5207         Alter GNUmakefile to install into top directory.
5208         * modules/maintainer-makefile: Split, and add dependency...
5209         * modules/gnumakefile: to this new module.
5210         * build-aux/GNUmakefile: Move...
5211         * top/GNUmakefile: ...here.
5212         * build-aux/maint.mk: Move...
5213         * top/maint.mk: ...here.
5214         * MODULES.html.sh (Support for maintaining...): Document new
5215         module.
5216
5217 2008-03-23  Bruno Haible  <bruno@clisp.org>
5218
5219         * gnulib-tool: New options --vc-files, --no-vc-files.
5220         (func_usage): Document them.
5221         (vc_files): New variable.
5222         (func_import): Consider vc_files.
5223         (func_create_testdir): Set vc_files to empty.
5224         Suggested by Jim Meyering and Karl Berry.
5225
5226 2008-03-23  Bruno Haible  <bruno@clisp.org>
5227
5228         Fix regex compilation error on HP-UX 11.
5229         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
5230         * modules/regex (Files): Add m4/mbstate_t.m4.
5231         Reported by Ton Voon <ton.voon@altinity.com>.
5232
5233 2008-03-23  Bruno Haible  <bruno@clisp.org>
5234
5235         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
5236
5237 2008-03-23  Eric Blake  <ebb9@byu.net>
5238             Bruno Haible  <bruno@clisp.org>
5239
5240         Install files from top/ in the destination directory.
5241         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5242         augmentation also for the files from top/.
5243         (func_import, func_create_testdir): Rewrite file names:
5244         top/filename -> filename.
5245
5246 2008-03-23  Bruno Haible  <bruno@clisp.org>
5247
5248         Tweak "gnulib --version" output.
5249         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
5250
5251 2008-03-23  Bruno Haible  <bruno@clisp.org>
5252
5253         Tweak "gnulib --version" output.
5254         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
5255         rather than contents of ChangeLog, when possible.
5256
5257 2008-03-21  Eric Blake  <ebb9@byu.net>
5258
5259         More --version tweaks.
5260         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
5261         date of last ChangeLog entry.
5262
5263 2008-03-21  Jim Meyering  <meyering@redhat.com>
5264
5265         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
5266
5267 2008-03-20  Eric Blake  <ebb9@byu.net>
5268
5269         VPATH fix.
5270         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
5271
5272 2008-03-20  Simon Josefsson  <simon@josefsson.org>
5273
5274         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
5275         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
5276
5277 2008-03-20  Eric Blake  <ebb9@byu.net>
5278
5279         Sync GNUmakefile with coreutils.
5280         * build-aux/GNUmakefile (have-Makefile): Rename...
5281         (_have-Makefile): ...to this, for namespace consideration.
5282         (GNUmakefile.cfg): Include, if present.
5283         (_autoreconf): Define a default.
5284         (_is-dist-target): New rule for rebuilds to pick up intra-release
5285         version.
5286         (maint-cfg.mk): Rename...
5287         (cfg.mk): ...to this.
5288
5289 2008-03-18  Jim Meyering  <meyering@redhat.com>
5290
5291         New script and module: mktempd
5292         * MODULES.html.sh (maint+release support): Add mktempd.
5293         * build-aux/mktempd: New file.
5294         * modules/mktempd: New file.
5295
5296 2008-03-15  Jim Meyering  <meyering@redhat.com>
5297
5298         Undo last change.
5299         * lib/sha1.c, lib/md5.c: 63 != ~63.
5300         Reported by Andreas Schwab.
5301
5302         sha1.c, md5.c: Hoist a redundant expression.
5303         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
5304         "ctx->buflen" only once, before calling *_process_block.
5305         * lib/md5.c (md5_process_bytes): Likewise.
5306
5307 2008-03-14  Eric Blake  <ebb9@byu.net>
5308
5309         Bump copyright year in files generated by gnulib-tool.
5310         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
5311         gnulib-tool, rather than hard-coding it.
5312
5313         Fix 'gnulib-tool --version' output to work with git.
5314         * gnulib-tool (func_gnulib_dir): New function, extracted from...
5315         (startup): ...here.
5316         (func_version): Use it to invoke git-version-gen, rather than
5317         relying on CVS keyword expansion.  Modernize wording.
5318         (cvsdatestamp, last_checkin_date, version): Kill unused
5319         variables.
5320
5321 2008-03-12  Jim Meyering  <meyering@redhat.com>
5322
5323         Recognize optional cast of the argument to free.
5324         * build-aux/useless-if-before-free: Update regexps.
5325
5326         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5327
5328 2008-03-11  Bruno Haible  <bruno@clisp.org>
5329
5330         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5331         by a single package.
5332         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5333         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5334         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5335         Reported by Sam Steingold <sds@gnu.org>.
5336
5337 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5338
5339         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5340         repositories.
5341
5342 2008-03-11  Bruno Haible  <bruno@clisp.org>
5343
5344         Avoid conflicts between local macro definitions.
5345         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5346         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5347
5348 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
5349             Bruno Haible  <bruno@clisp.org>
5350
5351         Make va_copy work with some version of xlc on AIX 5.1.
5352         * lib/stdarg.in.h: New file.
5353         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
5354         On AIX, use a <stdarg.h> file substitute.
5355         * modules/stdarg (Files): Add lib/stdarg.in.h.
5356         (Depends-on): Add include_next.
5357         (Makefile.am): Build a stdarg.h substitute if requested.
5358         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
5359
5360 2008-03-10  Bruno Haible  <bruno@clisp.org>
5361
5362         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
5363         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5364         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5365
5366 2008-03-10  Bruno Haible  <bruno@clisp.org>
5367
5368         * modules/stdlib (Depends-on): Add include_next, remove
5369         absolute-header.
5370
5371 2008-03-09  Bruno Haible  <bruno@clisp.org>
5372
5373         * lib/freadahead.h (freadahead): Document more precisely.
5374         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
5375         the sum of both buffer sizes.
5376         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
5377         * NEWS: Document the change.
5378
5379 2008-03-09  Bruno Haible  <bruno@clisp.org>
5380
5381         Extend freadptr to return also the buffer size.
5382         * lib/freadptr.h (freadptr): Add sizep argument.
5383         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
5384         (freadptr): Add sizep argument. Determine buffer size like freadahead
5385         does.
5386         * tests/test-freadptr.c: Don't include freadahead.h.
5387         (main): Adapt for new calling convention of freadptr.
5388         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
5389         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
5390         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
5391         tests/test-freadptr2.sh.
5392         (Depends): Remove freadahead.
5393         (TESTS): Add test-freadptr2.sh.
5394         (check_PROGRAMS): Add test-freadptr2.
5395
5396 2008-03-09  Bruno Haible  <bruno@clisp.org>
5397
5398         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
5399         Report and solution by Simon Josefsson.
5400
5401 2008-03-06  Bruno Haible  <bruno@clisp.org>
5402
5403         Make fflush after ungetc work on BSD platforms.
5404         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
5405         * tests/test-fflush2.c: New file.
5406         * tests/test-fflush2.sh: New file.
5407         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
5408         tests/test-fflush2.c.
5409         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
5410         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
5411
5412 2008-03-06  Eric Blake  <ebb9@byu.net>
5413
5414         Likewise for ftello.
5415         * modules/ftello (Dependencies): Add extensions.
5416         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
5417
5418 2008-03-06  Bruno Haible  <bruno@clisp.org>
5419
5420         * modules/fseeko (Dependencies): Add extensions.
5421         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5422         Needed on glibc systems.
5423
5424 2008-03-06  Bruno Haible  <bruno@clisp.org>
5425
5426         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
5427         email address.
5428         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5429
5430 2008-03-06  Bruno Haible  <bruno@clisp.org>
5431
5432         * users.txt: Add libgnupdf.
5433
5434 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5435
5436         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
5437         (Header File Substitutes, Function Substitutes,
5438         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
5439         (Build robot for gnulib): Fix typo.
5440
5441 2008-03-06  Bruno Haible  <bruno@clisp.org>
5442
5443         * doc/gnulib-tool.texi (VCS Issues): Small updates.
5444         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5445
5446 2008-03-06  Bruno Haible  <bruno@clisp.org>
5447
5448         * doc/func.texi: New file, extracted from doc/gnulib.texi.
5449         * doc/gnulib.texi: Include it.
5450
5451 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5452
5453         * modules/func (License): Change license to unlimited; there was
5454         no LGPL parts in the module anyway.
5455
5456 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5457
5458         * modules/__func__: Renamed to modules/func.
5459         * modules/__func__-tests: Renamed to modules/func-tests.
5460         * tests/test-__func__.c: Renamed to tests/test-func.c.
5461         * m4/__func__.m4: Renamed to m4/func.m4.
5462         * doc/gnulib.texi (__func__): Section renamed to func.
5463         Suggested by Eric Blake <ebb9@byu.net>.
5464
5465 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5466
5467         * doc/gnulib.texi (__func__): Use C99 terminology when talking
5468         about __func__.  Make example self-contained.  Suggested by Eric
5469         Blake <ebb9@byu.net>.
5470
5471         * tests/test-__func__.c (main): Avoid extraneous () around __func.
5472         Suggested by Eric Blake <ebb9@byu.net>.
5473
5474 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5475
5476         * modules/__func__: New file.
5477         * modules/__func__-tests: New file.
5478         * tests/test-__func__.c: New file.
5479         * m4/__func__.m4: New file.
5480         * doc/gnulib.texi (__func__): Document __func__ module.
5481
5482 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5483
5484         * modules/byteswap (License): Re-license as LGPLv2+.
5485
5486 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5487
5488         * doc/Makefile: Add pdf target.
5489
5490 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5491
5492         * modules/inline (License): Use 'unlimited', since there are only
5493         *.m4 files in this module.
5494
5495 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5496             Bruno Haible  <bruno@clisp.org>
5497
5498         Add support for HP C 7.1 on OpenVMS 8.3.
5499         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
5500
5501 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5502
5503         Update VMS specifics.
5504         * lib/getopt.c [VMS]: Remove include of unixlib.h.
5505
5506 2008-03-02  Jim Meyering  <meyering@redhat.com>
5507
5508         Remove the last dependency on the "free" module.
5509         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
5510         Reported by Bob Proulx.
5511
5512         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
5513
5514         Remove useless "if" tests before free.  Deprecate "free" module.
5515         * doc/posix-functions/free.texi: Mention that this
5516         module is no longer useful.
5517         * modules/free (Notice): Say this module is obsolete.
5518         * modules/readutmp (Depends-on): Remove free.
5519         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
5520         * lib/putenv.c (putenv): Likewise.
5521         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
5522         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
5523         * tests/test-c-strcasestr.c (main): Likewise.
5524         * tests/test-c-strstr.c (main): Likewise.
5525         * tests/test-mbscasestr1.c (main): Likewise.
5526         * tests/test-mbscasestr2.c (main): Likewise.
5527         * tests/test-mbsstr1.c (main): Likewise.
5528         * tests/test-mbsstr2.c (main): Likewise.
5529         * tests/test-memmem.c (main): Likewise.
5530         * tests/test-strcasestr.c (main): Likewise.
5531         * tests/test-striconv.c (main): Likewise.
5532         * tests/test-striconveh.c (main): Likewise.
5533         * tests/test-striconveha.c (main): Likewise.
5534         * tests/test-strstr.c (main): Likewise.
5535
5536         * build-aux/git-version-gen: Adjust a comment and the Usage string.
5537
5538         bootstrap: sync from coreutils again
5539         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
5540
5541 2008-03-01  Jim Meyering  <meyering@redhat.com>
5542
5543         bootstrap: sync from coreutils
5544         * build-aux/bootstrap (update_po_files): Copy a .po file into place
5545         also when the target doesn't exist.
5546
5547 2008-03-01  Eric Blake  <ebb9@byu.net>
5548
5549         Fix bugs in last patch.
5550         * lib/memchr2.c (memchr2): Fix typo.
5551         * tests/test-memchr2.c: Test previous bug, and don't use GNU
5552         extension.
5553         Reported by Bruce Korb.
5554
5555         New module 'memchr2'.
5556         * modules/memchr2: New file.
5557         * modules/memchr2-tests: Likewise.
5558         * lib/memchr2.h: Likewise.
5559         * lib/memchr2.c: Likewise, based on memchr.c.
5560         * tests/test-memchr2.c: New test.
5561         * MODULES.html.sh (String handling): Add memchr2.
5562
5563 2008-02-29  Bruno Haible  <bruno@clisp.org>
5564
5565         * modules/freadseek-tests: New file.
5566         * tests/test-freadseek.sh: New file.
5567         * tests/test-freadseek.c: New file.
5568
5569         New module 'freadseek'.
5570         * modules/freadseek: New file.
5571         * lib/freadseek.h: New file.
5572         * lib/freadseek.c: New file.
5573         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
5574
5575 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5576
5577         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
5578         wydawca.
5579
5580         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
5581         program_invocation_name and program_invocation_short_name are
5582         present.
5583
5584 2008-02-28  Bruno Haible  <bruno@clisp.org>
5585
5586         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
5587         * tests/test-freadptr.sh: Also test non-seekable stdin.
5588
5589 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
5590
5591         * build-aux/bootstrap (source_base, m4_base)
5592         (doc_base, tests_base): New variables.
5593         (gnulib_tool_options): Do not hardcode base directories, use
5594         the above variables instead.
5595
5596 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5597
5598         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5599
5600 2008-02-28  Bruno Haible  <bruno@clisp.org>
5601
5602         * modules/freadptr-tests: New file.
5603         * tests/test-freadptr.sh: New file.
5604         * tests/test-freadptr.c: New file.
5605
5606         New module 'freadptr'.
5607         * modules/freadptr: New file.
5608         * lib/freadptr.h: New file.
5609         * lib/freadptr.c: New file.
5610         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5611
5612 2008-02-26  Karl Berry  <karl@freefriends.org>
5613
5614         Sync from Libtool:
5615         * libltdl/argz.c (argz_add, argz_count): New functions.
5616         * libltdl/argz.in.h: Declare them.
5617         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5618
5619 2008-02-22  Bruno Haible  <bruno@clisp.org>
5620
5621         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5622         is a pointer type.  Needed for HP-UX 10.
5623         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5624         * doc/posix-functions/gmtime_r.texi: Likewise.
5625         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5626
5627 2008-02-24  Bruno Haible  <bruno@clisp.org>
5628
5629         * modules/environ-tests: New file.
5630         * tests/test-environ.c: New file.
5631
5632         New module 'environ'.
5633         * modules/environ: New file.
5634         * lib/unistd.in.h (environ): New declaration.
5635         * m4/environ.m4: New file.
5636         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5637         after use.
5638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5639         HAVE_DECL_ENVIRON.
5640         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5641         HAVE_DECL_ENVIRON.
5642         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5643         wrong claim that 'environ' is missing on some systems.
5644         * modules/execute (Depends-on): Add environ.
5645         * lib/execute.c (environ): Remove fallback declaration.
5646         * modules/pipe (Depends-on): Add environ.
5647         * lib/pipe.c (environ): Remove fallback declaration.
5648         * modules/setenv (Depends-on): Add environ.
5649         * lib/setenv.c (environ): Remove fallback declaration.
5650         * modules/unsetenv (Depends-on): Add environ.
5651         * lib/unsetenv.c (environ): Remove fallback declaration.
5652         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5653         m4/environ.m4.
5654         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5655         (gl_PREREQ_UNSETENV): Likewise.
5656
5657 2008-02-24  Bruno Haible  <bruno@clisp.org>
5658
5659         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5660
5661 2008-02-20  Bob Proulx  <bob@proulx.com>
5662
5663         Enable use of older two part flavor 'git describe'.
5664         * build-aux/git-version-gen: If using the older two part flavor of
5665         git version then recreate the third part now present in the
5666         newer three part flavor of git describe.
5667
5668 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5669
5670         * lib/fts.c (fts_build): Typo correction to comment.
5671
5672 2008-02-17  Bruno Haible  <bruno@clisp.org>
5673
5674         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5675         generating no-op conflicts.
5676
5677 2008-02-17  Bruno Haible  <bruno@clisp.org>
5678
5679         Speed up by 10%.
5680         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5681         result_entries, rather than an index-based loop.
5682
5683 2008-02-17  Bruno Haible  <bruno@clisp.org>
5684
5685         Speed up by 25%.
5686         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5687         'hashcode_cached'.
5688         (entry_create): New function.
5689         (entry_hashcode): Use the cached hashcode if possible.
5690         (read_changelog_file, try_split_merged_entry): Use entry_create.
5691
5692 2008-02-17  Bruno Haible  <bruno@clisp.org>
5693
5694         Speed up from O(n^2) to O(n) for long ChangeLog files.
5695         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5696         (read_changelog_file): Change implementation of entries_reversed list
5697         to rbtreehash.
5698         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5699
5700 2008-02-17  Bruno Haible  <bruno@clisp.org>
5701
5702         New option --split-merged-entry.
5703         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5704         (find_paragraph_end, try_split_merged_entry): New functions.
5705         (long_options): Add option --split-merged-entry.
5706         (usage): Document option --split-merged-entry.
5707         (main): Implement option --split-merged-entry.
5708         Reported by Eric Blake.
5709
5710 2008-02-17  Bruno Haible  <bruno@clisp.org>
5711
5712         * lib/git-merge-changelog.c: Include c-strstr.h.
5713         (main): Support the "git pull --rebase" situation.
5714         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5715         Reported by Eric Blake.
5716
5717 2008-02-16  Eric Blake  <ebb9@byu.net>
5718
5719         Avoid doubling \ in common case of "c-maybe" quoting style.
5720         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5721         eliding outer quotes.
5722         * lib/quotearg.h: Document this.
5723         * tests/test-quotearg.c (result_strings, inputs, results_g)
5724         (flag_results, locale_results): Test it by adding a new string to
5725         each test group.
5726         (compare_strings): Test new string.
5727
5728 2008-02-13  Eric Blake  <ebb9@byu.net>
5729
5730         Avoid trigraph quoting in default output.
5731         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5732         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5733         unless explicitly requested.
5734         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5735
5736 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5737
5738         Don't rely on signed integer overflowing to negative value.
5739         * lib/getugroups.c (getugroups): Include <limits.h>.
5740         Instead, compare against INT_MAX, and increment only if the test passes.
5741
5742 2008-02-13  Jim Meyering  <meyering@redhat.com>
5743         and Eric Blake  <ebb9@byu.net>
5744
5745         Avoid shadowing warning and compile errors on Linux.
5746         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5747         forwarding macros on Linux.
5748         (dcgettext): Define a stub, for Linux.
5749         (results_g, main): Avoid warnings.
5750
5751 2008-02-12  Eric Blake  <ebb9@byu.net>
5752
5753         Silence warning in last patch.
5754         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5755
5756         Quotearg part 4: add tests, fix c-maybe colon quoting.
5757         * lib/quotearg.h: Improve documentation.
5758         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5759         escapes when adding outer quotes.  When quoting trigraphs, use
5760         valid C notation.  When quoting NUL, omit extra characters if next
5761         character is not digit.  Alter prototype.
5762         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5763         callers.
5764         * modules/quotearg-tests: New module.
5765         * tests/test-quotearg.c: New test.
5766
5767 2008-02-07  Eric Blake  <ebb9@byu.net>
5768
5769         Quotearg part 3: add flag to control outer quote elision.
5770         * lib/quotearg.h (c_maybe_quoting_style): New style.
5771         (enum quoting_flags): Better documentation of flags.
5772         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5773         c-maybe style.
5774         (quotearg_buffer_restyled): Handle new flag to elide outer
5775         quotes.
5776
5777         Quotearg part 2: add flag that can control NUL elision.
5778         * lib/quotearg.h (set_quoting_flags): New prototype.
5779         * lib/quotearg.c (struct quoting_options): Add flag field.
5780         (set_quoting_flags): New function.
5781         (quotearg_buffer_restyled): Add flags parameter.
5782         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5783         (quotearg_n_options): Set the flag, since length cannot be
5784         returned.
5785         (quoting_options_from_style): Default flags correctly.
5786
5787         Quotearg part 1: more wrappers, restore quotearg_char state.
5788         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5789         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5790         (quotearg_colon_mem): New wrappers.
5791         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5792         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5793         functions.
5794         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5795         (quotearg_colon_mem): New functions.
5796
5797 2008-02-11  Bruno Haible  <bruno@clisp.org>
5798
5799         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5800         library in the current directory: it does not work with parallel make.
5801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5802
5803 2008-02-11  Bruno Haible  <bruno@clisp.org>
5804
5805         * .gitattributes: New file.
5806
5807 2008-02-11  Jim Meyering  <meyering@redhat.com>
5808
5809         useless-if-before-free: Fix reversed exit values.
5810         * build-aux/useless-if-before-free: Use correct values
5811         for EXIT_MATCH and EXIT_NO_MATCH.
5812
5813         * build-aux/useless-if-before-free: Close stdout carefully.
5814
5815 2008-02-10  Bruno Haible  <bruno@clisp.org>
5816
5817         New module 'git-merge-changelog'.
5818         * modules/git-merge-changelog: New file.
5819         * lib/git-merge-changelog.c: New file.
5820
5821 2008-02-10  Jim Meyering  <meyering@redhat.com>
5822
5823         useless-if-before-free: New option: --list (-l).
5824
5825         useless-if-before-free: Don't exit immediately upon open failure.
5826         * build-aux/useless-if-before-free: Exit 2 for errors.
5827         Upon failure to open a file, don't exit immediately.
5828         Rather, just warn and continue with any remaining files.
5829
5830 2008-02-10  Bruno Haible  <bruno@clisp.org>
5831
5832         New abstract list operation 'node_set_value'.
5833         * lib/gl_list.h (gl_list_node_set_value): New function.
5834         (struct gl_list_implementation): New field node_set_value.
5835         * lib/gl_list.c (gl_list_node_set_value): New function.
5836         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5837         (gl_array_list_implementation): Update.
5838         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5839         (gl_carray_list_implementation): Update.
5840         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5841         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5842         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5843         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5844         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5845         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5846         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5847         Update.
5848         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5849         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5850         (gl_sublist_list_implementation): Update.
5851
5852 2008-02-10  Bruno Haible  <bruno@clisp.org>
5853
5854         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5855         Needed when ELEMENT is #defined to 'some_type *'.
5856
5857 2008-02-10  Jim Meyering  <meyering@redhat.com>
5858
5859         New script and module: useless-if-before-free
5860         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5861         * build-aux/useless-if-before-free: New file.
5862         * modules/useless-if-before-free: New file.
5863
5864         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5865
5866         xstrtol_error: Fix typo.
5867         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5868         s/exit_failure/exit_status/.
5869
5870 2008-02-09  Jim Meyering  <meyering@redhat.com>
5871
5872         New script and module: gitlog-to-changelog
5873         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5874         * modules/gitlog-to-changelog: New file.
5875         * build-aux/gitlog-to-changelog: New file.
5876
5877 2008-02-08  Jim Meyering  <meyering@redhat.com>
5878
5879         Avoid two "parameter unused" warnings.
5880         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5881         Mark "st" as used.
5882
5883         Use "git COMMAND", not "git-COMMAND".
5884         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5885         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5886         * build-aux/git-version-gen: Use "git status", not "git-status".
5887
5888 2008-02-07  Bruno Haible  <bruno@clisp.org>
5889
5890         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5891         Avoids a crash on Windows Vista.
5892         Reported by Adam Strzelecki <ono@java.pl> via
5893         Simon Josefsson <simon@josefsson.org>.
5894
5895 2008-02-06  Bruno Haible  <bruno@clisp.org>
5896
5897         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5898         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5899         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5901         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5903         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5904         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5909         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5912         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5913         left-adjust flag.
5914         * tests/test-snprintf-posix.h (test_function): Likewise.
5915         * tests/test-sprintf-posix.h (test_function): Likewise.
5916         * tests/test-vasprintf-posix.c (test_function): Likewise.
5917         * doc/posix-functions/fprintf.texi: Update.
5918         * doc/posix-functions/printf.texi: Update.
5919         * doc/posix-functions/snprintf.texi: Update.
5920         * doc/posix-functions/sprintf.texi: Update.
5921         * doc/posix-functions/vfprintf.texi: Update.
5922         * doc/posix-functions/vprintf.texi: Update.
5923         * doc/posix-functions/vsnprintf.texi: Update.
5924         * doc/posix-functions/vsprintf.texi: Update.
5925         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5926
5927 2008-02-06  Bruno Haible  <bruno@clisp.org>
5928
5929         Fix bug introduced on 2008-01-26.
5930         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5931
5932 2008-02-06  Bruno Haible  <bruno@clisp.org>
5933
5934         Fix bug introduced on 2007-06-10.
5935         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5936         !NEED_PRINTF_FLAG_ZERO.
5937
5938 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5939
5940         getloadavg: use libperfstat on AIX5
5941         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5942
5943 2008-02-03  Bruno Haible  <bruno@clisp.org>
5944
5945         * lib/diffseq.h: Add comments about required #includes.
5946         Reported by Michael Biggs <gnulib@doubleplum.net>.
5947
5948 2008-02-01  Bruno Haible  <bruno@clisp.org>
5949
5950         * users.txt: Add gnuit.
5951
5952 2008-01-31  Bruno Haible  <bruno@clisp.org>
5953
5954         * lib/md4.c (set_uint32): Mark as inline.
5955         * lib/md5.c (set_uint32): Likewise.
5956         * lib/sha1.c (set_uint32): Likewise.
5957         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5958         * m4/md5.m4 (gl_MD5): Likewise.
5959         * m4/sha1.m4 (gl_SHA1): Likewise.
5960
5961 2008-01-31  Jim Meyering  <meyering@redhat.com>
5962
5963         Use "sizeof VAR", rather than a literal "4".
5964         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5965         * lib/md4.c (md4_read_ctx): Likewise.
5966         * lib/sha1.c (sha1_read_ctx): Likewise.
5967
5968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5969
5970         * tests/test-sha1.c: New file, based on test-md5.c.
5971
5972         * modules/crypto/sha1-tests: New file.
5973
5974 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5975
5976         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5977
5978 2008-01-31  Jim Meyering  <meyering@redhat.com>
5979
5980         Prefer "sizeof v" over the equivalent "4".
5981         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5982         * lib/md5.c (set_uint32): Likewise.
5983         * lib/sha1.c (set_uint32): Likewise.
5984
5985 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5986
5987         * lib/sha1.c (set_uint32): Mark function as static.
5988
5989 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5990
5991         md2: clarify comments to say that alignment is not required.
5992         * lib/md2.h: Remove warning about alignment in comment.
5993         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5994         never been required.
5995
5996 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5997
5998         md4: adapt alignment constraint fix from sha1.
5999         * lib/md4.c (set_uint32): New function, from sha1.c
6000         (md4_read_ctx): Use it.
6001         (md4_finish_ctx): Doc fix.
6002         * lib/md4.h: Doc fix.
6003
6004 2008-01-31  Simon Josefsson  <simon@josefsson.org>
6005
6006         md5: adapt alignment constraint fix from sha1.
6007         * lib/md5.c (set_uint32): New function, from sha1.c
6008         (md5_read_ctx): Use it.
6009         (md5_finish_ctx): Doc fix.
6010         * lib/md5.h: Doc fix.
6011
6012 2008-01-30  Peter Palfrader  <weasel@debian.org>
6013
6014         sha1: remove the result buffer alignment constraint
6015         * lib/sha1.c (set_uint32): New function.
6016         (sha1_read_ctx): Rewrite to remove the result buffer alignment
6017         constraint.
6018         (sha1_finish_ctx): Remove comment warning about alignment constraint.
6019         * lib/sha1.h: Likewise.
6020
6021 2008-01-30  Andreas Schwab  <schwab@suse.de>
6022             Bruno Haible  <bruno@clisp.org>
6023
6024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
6025         correct definition of LDBL_MIN_EXP.
6026
6027 2008-01-30  Karl Berry  <karl@gnu.org>
6028
6029         * config/srclist-update: try to preserve x bit on updates.
6030         * config/srclistvars.sh: update for karl.
6031
6032 2008-01-29  Jim Meyering  <meyering@redhat.com>
6033
6034         vasnprintf.c: Avoid warning about unused label
6035         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
6036         "overflow" label definition and associated code with the
6037         same cpp condition that guards the sole use of that label.
6038
6039 2008-01-26  Bruno Haible  <bruno@clisp.org>
6040
6041         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6042         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
6043         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
6044         * lib/isnanl-nolibm.h (isnanl): Likewise.
6045         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6046
6047 2008-01-26  Bruno Haible  <bruno@clisp.org>
6048
6049         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
6050         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
6051
6052 2008-01-26  Bruno Haible  <bruno@clisp.org>
6053
6054         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
6055         GCC >= 4.0 built-in.
6056         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
6057
6058 2008-01-26  Bruno Haible  <bruno@clisp.org>
6059
6060         Rename isnan, applicable to 'double' only, to isnand.
6061         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
6062         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
6063         (configure.ac): Update.
6064         (Include): Replace "isnan.h" with "isnand.h".
6065         * m4/isnand.m4: Renamed from m4/isnan.m4.
6066         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
6067         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
6068         instead of isnan.c.
6069         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
6070         instead of HAVE_ISNAN_IN_LIBC.
6071         (isnand): Renamed from isnan.
6072         * lib/isnand.c: New file.
6073         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
6074         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
6075         (Makefile.am): Update.
6076         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
6077         Include isnand.h instead of isnan.h.
6078         (main): Test isnand instead of isnan.
6079         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
6080         isnan-nolibm.
6081         * modules/frexp (Depends-on): Likewise.
6082         * modules/frexp-tests (Depends-on): Likewise.
6083         * modules/frexp-nolibm (Depends-on): Likewise.
6084         * modules/frexp-nolibm-tests (Depends-on): Likewise.
6085         * modules/isfinite (Depends-on): Likewise.
6086         * modules/round-tests (Depends-on): Likewise.
6087         * modules/signbit (Depends-on): Likewise.
6088         * modules/signbit-tests (Depends-on): Likewise.
6089         * modules/snprintf-posix (Depends-on): Likewise.
6090         * modules/sprintf-posix (Depends-on): Likewise.
6091         * modules/trunc-tests (Depends-on): Likewise.
6092         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6093         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6094         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6095         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6096         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6097         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6098         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6099         * modules/vasnprintf-posix (Depends-on): Likewise.
6100         * modules/vasprintf-posix (Depends-on): Likewise.
6101         * modules/vfprintf-posix (Depends-on): Likewise.
6102         * modules/vsnprintf-posix (Depends-on): Likewise.
6103         * modules/vsprintf-posix (Depends-on): Likewise.
6104         * lib/frexp.c: Include isnand.h instead of isnan.h.
6105         (ISNAN): Set to isnand instead of isnan.
6106         * lib/isfinite.c: Include isnand.h instead of isnan.h.
6107         (gl_isfinited): Use isnand instead of isnan.
6108         * lib/signbitd.c: Include isnand.h instead of isnan.h.
6109         (gl_signbitd): Use isnand instead of isnan.
6110         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
6111         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
6112         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
6113         (main): Use isnand instead of isnan.
6114         * tests/test-round1.c: Include isnand.h.
6115         (main): Use isnand instead of isnan.
6116         * tests/test-round2.c: Include isnand.h instead of isnan.h.
6117         (ISNAN): Set to isnand instead of isnan.
6118         * tests/test-trunc1.c: Include isnand.h.
6119         (main): Use isnand instead of isnan.
6120         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
6121         (equal): Use isnand instead of isnan.
6122         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
6123         isnand-nolibm.
6124         * NEWS: Mention the change.
6125
6126 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6127             Bruno Haible  <bruno@clisp.org>
6128
6129         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
6130         the GCC builtins for signbits are present and set
6131         REPLACE_SIGNBIT_USING_GCC if so.
6132         * lib/math.in.h (signbit): Define using GCC builtins if
6133         REPLACE_SIGNBIT_USING_GCC is set.
6134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
6135         REPLACE_SIGNBIT_USING_GCC.
6136         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
6137
6138 2008-01-25  Jim Meyering  <meyering@redhat.com>
6139
6140         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
6141         * lib/poll.c: Include <config.h>, not "config.h".
6142         * tests/test-getaddrinfo.c: Likewise.
6143
6144 2008-01-25  Simon Josefsson  <simon@josefsson.org>
6145
6146         * modules/sockets-tests: New file.
6147
6148 2008-01-24  Simon Josefsson  <simon@josefsson.org>
6149
6150         * modules/sockets: New module, can be used to call WSA_Startup and
6151         WSA_Cleanup when needed.
6152
6153         * lib/sockets.h, lib/sockets.c: New files.
6154
6155         * m4/sockets.m4: New file.
6156
6157         * tests/test-sockets.c: New file.
6158
6159 2008-01-19  Bruno Haible  <bruno@clisp.org>
6160
6161         * doc/posix-headers: Renamed from doc/headers.
6162         * doc/posix-functions: Renamed from doc/functions.
6163         * doc/gnulib.texi: Update.
6164
6165 2008-01-19  Bruno Haible  <bruno@clisp.org>
6166
6167         * doc/glibc-functions/strcasestr.texi: Include contents of
6168         doc/functions/strcasestr.texi, fixing the list of platforms.
6169         * doc/functions/strcasestr.texi: Remove file.
6170
6171 2008-01-19  Bruno Haible  <bruno@clisp.org>
6172
6173         * doc/glibc-functions/memmem.texi: Include contents of
6174         doc/functions/memmem.texi.
6175         * doc/functions/memmem.texi: Remove file.
6176
6177 2008-01-18  Bruno Haible  <bruno@clisp.org>
6178
6179         * doc/glibc-functions/*.texi: New files.
6180         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
6181         to use the new files.
6182
6183 2008-01-17  Bruno Haible  <bruno@clisp.org>
6184
6185         * tests/test-gethostname.c (main): Fix printf statement.
6186
6187 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6188
6189         * modules/gethostname-tests: New file.
6190
6191         * tests/test-gethostname.c: New file.
6192
6193 2008-01-17  Simon Josefsson  <simon@josefsson.org>
6194
6195         * lib/gethostname.c: Include string.h unconditionally, strncpy is
6196         used by the UNAME case.  Reported by Bruno Haible
6197         <bruno@clisp.org>.
6198
6199 2008-01-17  Eric Blake  <ebb9@byu.net>
6200
6201         Convert c-strcasestr to be more efficient.
6202         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
6203         (Depends-on): Add c-strcase, remove malloca, strnlen.
6204         * tests/test-c-strcasestr.c (main): Enhance test.
6205         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
6206
6207 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
6208
6209         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
6210         Use it in creating po/Makevars.
6211
6212 2008-01-15  Simon Josefsson  <simon@josefsson.org>
6213
6214         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
6215         Applications that requires it should initialize libgcrypt
6216         manually.
6217
6218 2008-01-16  Simon Josefsson  <simon@josefsson.org>
6219
6220         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
6221
6222 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6223
6224         Fix problem with getdate on mingw32 reported by Simon Josefsson
6225         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
6226         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6227         tzname", when deciding whether to declare tzname.
6228         * lib/strftime.c (tzname): Likewise.
6229
6230 2008-01-15  Bruno Haible  <bruno@clisp.org>
6231
6232         Work around a MacOS X 10.5 bug in frexpl().
6233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
6234         * doc/functions/frexpl.texi: Document the bug.
6235         Reported by Elias Pipping <pipping@gentoo.org>.
6236
6237 2008-01-14  Eric Blake  <ebb9@byu.net>
6238
6239         Touch up previous patch.
6240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
6241         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
6242
6243         Convert strcasestr module to use Two-Way algorithm.
6244         * modules/strcasestr-simple: New module, based on the old
6245         strcasestr, but with Two-Way rather than KMP.
6246         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
6247         * lib/string.in.h (rpl_strcasestr): Declare.
6248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
6249         performance.
6250         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
6251         * modules/string (Makefile.am): Support strcasestr.
6252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6253         * modules/strcasestr-tests (Depends-on): Check for alarm.
6254         * tests/test-strcasestr.c: Augment test.
6255         * lib/str-two-way.h: Clean up stray macro.
6256         * NEWS: Document new module.
6257         * MODULES.html.sh (string handling): Likewise.
6258         * doc/functions/strcasestr.texi: New file.
6259         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
6260         here, since it is not a POSIX function.
6261
6262 2008-01-14  Colin Watson  <cjwatson@debian.org>
6263             Bruno Haible  <bruno@clisp.org>
6264
6265         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
6266         works fine; if not, set REPLACE_STRSIGNAL.
6267         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
6268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6269         REPLACE_STRSIGNAL.
6270         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
6271         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
6272         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
6273
6274 2008-01-14  Bruno Haible  <bruno@clisp.org>
6275
6276         * modules/strsignal (Include): Change to <string.h>.
6277
6278 2008-01-14  Colin Watson  <cjwatson@debian.org>
6279
6280         * modules/argp (Notice): Add a notice recommending to change
6281         XGETTEXT_OPTIONS.
6282         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
6283
6284 2008-01-13  Colin Watson  <cjwatson@debian.org>
6285
6286         * modules/strsignal-tests: New file.
6287         * tests/test-strsignal.c: New file.
6288
6289         * lib/strsignal.c: New file, from glibc with modifications.
6290         * lib/siglist.h: New file, from glibc with modifications.
6291         * lib/string.in.h (strsignal): New declaration.
6292         * m4/strsignal.m4: New file.
6293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6294         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
6295         * modules/strsignal: New file.
6296         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
6297         HAVE_DECL_STRSIGNAL.
6298
6299 2008-01-13  Bruno Haible  <bruno@clisp.org>
6300
6301         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
6302         locale encoding is not ASCII. Needed for OpenBSD 4.0.
6303         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6304         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6305
6306 2008-01-13  Bruno Haible  <bruno@clisp.org>
6307
6308         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
6309         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
6310         * lib/argp.h (__attribute__): Likewise.
6311         * lib/c-stack.c (__attribute__): Likewise.
6312         * lib/error.h (__attribute__): Likewise.
6313         * lib/fts.c (__attribute__): Likewise.
6314         * lib/openat.h (__attribute__): Likewise.
6315         * lib/stdio.in.h (__attribute__): Likewise.
6316         * lib/string.in.h (__attribute__): Likewise.
6317         * lib/utimens.c (__attribute__): Likewise.
6318         * lib/vasnprintf.h (__attribute__): Likewise.
6319         * lib/xalloc.h (__attribute__): Likewise.
6320         * lib/xprintf.h (__attribute__): Likewise.
6321         * lib/xstrtol.h (__attribute__): Likewise.
6322         * lib/xvasprintf.h (__attribute__): Likewise.
6323
6324 2008-01-12  Bruno Haible  <bruno@clisp.org>
6325
6326         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6327         * doc/glibc-headers/a.out.texi: New file.
6328         * doc/glibc-headers/aliases.texi: New file.
6329         * doc/glibc-headers/alloca.texi: New file.
6330         * doc/glibc-headers/ar.texi: New file.
6331         * doc/glibc-headers/argp.texi: New file.
6332         * doc/glibc-headers/argz.texi: New file.
6333         * doc/glibc-headers/byteswap.texi: New file.
6334         * doc/glibc-headers/crypt.texi: New file.
6335         * doc/glibc-headers/endian.texi: New file.
6336         * doc/glibc-headers/envz.texi: New file.
6337         * doc/glibc-headers/err.texi: New file.
6338         * doc/glibc-headers/error.texi: New file.
6339         * doc/glibc-headers/execinfo.texi: New file.
6340         * doc/glibc-headers/fpu_control.texi: New file.
6341         * doc/glibc-headers/fstab.texi: New file.
6342         * doc/glibc-headers/fts.texi: New file.
6343         * doc/glibc-headers/getopt.texi: New file.
6344         * doc/glibc-headers/ieee754.texi: New file.
6345         * doc/glibc-headers/ifaddrs.texi: New file.
6346         * doc/glibc-headers/libintl.texi: New file.
6347         * doc/glibc-headers/mcheck.texi: New file.
6348         * doc/glibc-headers/mntent.texi: New file.
6349         * doc/glibc-headers/obstack.texi: New file.
6350         * doc/glibc-headers/paths.texi: New file.
6351         * doc/glibc-headers/printf.texi: New file.
6352         * doc/glibc-headers/pty.texi: New file.
6353         * doc/glibc-headers/resolv.texi: New file.
6354         * doc/glibc-headers/shadow.texi: New file.
6355         * doc/glibc-headers/sysexits.texi: New file.
6356         * doc/glibc-headers/ttyent.texi: New file.
6357
6358 2008-01-12  Jim Meyering  <meyering@redhat.com>
6359
6360         announce-gen: emit Gnulib's git-based version string.
6361         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
6362         New option --gnulib-version=V, where V is expected to be
6363         the output of running git describe in the gnulib directory.
6364         (get_tool_versions): Request feedback on xdelta.  I suspect it's
6365         not useful, and plan to stop publishing an xdelta file with each
6366         coreutils release.
6367
6368         * build-aux/announce-gen: Also check for lzma-compressed files.
6369
6370 2008-01-11  Bruno Haible  <bruno@clisp.org>
6371
6372         * tests/test-memmem.c (main): Increase maximum allowed time.
6373         * tests/test-strstr.c (main): Likewise.
6374
6375 2008-01-11  Bruno Haible  <bruno@clisp.org>
6376
6377         * doc/functions/memmem.texi: Add more precisions about platforms.
6378         * doc/functions/strstr.texi: Likewise.
6379
6380 2008-01-10  Eric Blake  <ebb9@byu.net>
6381
6382         * m4/strstr.m4: Delete cruft from copy-n-paste.
6383         Reported by Bruno Haible.
6384
6385 2008-01-10  Bruno Haible  <bruno@clisp.org>
6386
6387         Make c-strstr rely on strstr.
6388         * lib/c-strstr.c: Don't include str-kmp.h.
6389         (c_strstr): Define in terms of strstr.
6390         * modules/c-strstr (Files): Remove lib/str-kmp.h.
6391         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
6392
6393 2008-01-10  Bruno Haible  <bruno@clisp.org>
6394
6395         * doc/gnulib.texi (String Functions in C Locale): New section.
6396         * doc/c-ctype.texi: New file.
6397         * doc/c-strcase.texi: New file.
6398         * doc/c-strcaseeq.texi: New file.
6399         * doc/c-strcasestr.texi: New file.
6400         * doc/c-strstr.texi: New file.
6401         * doc/c-strtod.texi: New file.
6402         * doc/c-strtold.texi: New file.
6403
6404 2008-01-10  Eric Blake  <ebb9@byu.net>
6405
6406         * lib/relocatable.h: Fix a comment.
6407
6408 2008-01-10  Eric Blake  <ebb9@byu.net>
6409
6410         Share two-way algorithm.
6411         * lib/str-two-way.h: New file, merged from...
6412         * lib/memmem.c: ...here...
6413         * lib/strstr.c: ...and here.
6414         * modules/memmem (Files): Use it.
6415         * modules/strstr (Files): Likewise.
6416
6417         Avoid quadratic strstr implementations.
6418         * lib/strstr.c: New file.
6419         * m4/strstr.m4: Likewise.
6420         * modules/strstr: Likewise.
6421         * modules/strstr-tests: Likewise.
6422         * tests/test-strstr.c: Likewise.
6423         * lib/string.in.h (rpl_strstr): Declare.
6424         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6426         * modules/string (Makefile.am): Likewise.
6427         * MODULES.html.sh (string handling): Mention new module.
6428         * doc/functions/strstr.texi (strstr): Document the bug.
6429
6430 2008-01-10  Bruno Haible  <bruno@clisp.org>
6431
6432         * lib/relocatable.h (relocate): State whether result is freshly
6433         allocated or not.
6434         * lib/relocatable.c (relocate): Return a freshly allocated string
6435         instead of a pointer to a privately held string.
6436         Reported by Sylvain Beucler <beuc@gnu.org>.
6437
6438 2008-01-10  Colin Watson  <cjwatson@debian.org>
6439
6440         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
6441         s/S_ISNLK/S_ISLNK/.
6442
6443 2008-01-09  Bruno Haible  <bruno@clisp.org>
6444
6445         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
6446         and other files.
6447         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
6448         if it's only a guess.
6449         * modules/memmem: Simplify by depending on memmem-simple.
6450
6451 2008-01-09  Bruno Haible  <bruno@clisp.org>
6452
6453         Work around OpenBSD 4.0 tdelete() bug.
6454         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
6455         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
6456         macros and don't redefine the enum values.
6457         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
6458         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
6459         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
6460
6461 2008-01-09  Bruno Haible  <bruno@clisp.org>
6462
6463         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
6464         (main): Don't perform the tests if setlocale did not install a UTF-8
6465         locale. Needed on OpenBSD 4.0.
6466         * modules/wcwidth-tests (Depends-on): Add localcharset.
6467
6468 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6469
6470         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
6471         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
6472         * NEWS: announce this.
6473         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
6474
6475 2008-01-09  Simon Josefsson  <simon@josefsson.org>
6476         and Eric Blake  <ebb9@byu.net>
6477
6478         Add memmem-simple module.
6479         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
6480         (gl_FUNC_MEMMEM): Separate performance from presence checks.
6481         * modules/memmem-simple: New file.
6482         * modules/memmem (Description): Tweak.
6483         * MODULES.html.sh (string handling): Mention new module.
6484         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
6485         addressed by memmem-simple.
6486         * NEWS: Document the difference.
6487
6488 2008-01-09  Eric Blake  <ebb9@byu.net>
6489
6490         Give gcc some memmem optimization hints.
6491         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
6492         (strcasestr): Declare as pure.
6493         * modules/memmem (Maintainer): Claim my implementation.
6494
6495 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6496
6497         Support AIX 6.1 and higher.
6498         * build-aux/config.libpath: Likewise.
6499         * build-aux/config.rpath: Likewise.
6500
6501 2008-01-08  Jim Meyering  <meyering@redhat.com>
6502             Bruno Haible  <bruno@clisp.org>
6503
6504         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
6505         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
6506         Reported by Peter Fales in
6507         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
6508
6509 2008-01-08  Bruno Haible  <bruno@clisp.org>
6510
6511         * modules/unictype/category-of (Depends-on): Add
6512         unictype/category-none.
6513         * modules/unictype/category-and-tests (Depends-on): Add
6514         unictype/category-{L,N,Lu,Nd}.
6515         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
6516         * modules/unictype/category-or-tests (Depends-on): Add
6517         unictype/category-{L,N}.
6518         * modules/unictype/category-name-tests (Depends-on): Add
6519         unictype/category-{Z,Nl}.
6520         Reported by Simon Josefsson.
6521
6522 2008-01-08  Bruno Haible  <bruno@clisp.org>
6523
6524         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
6525         convention better.
6526         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
6527         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
6528         Reported by Peter Miller <millerp@canb.auug.org.au>.
6529
6530 2008-01-08  Eric Blake  <ebb9@byu.net>
6531
6532         Rewrite memmem to guarantee linear complexity without malloc.
6533         * lib/memmem.c (memmem): Use Two-Way rather than
6534         Knuth-Morris-Pratt, to allow O(1) space usage.
6535         (critical_factorization, two_way_short_needle)
6536         (two_way_long_needle): New functions.
6537         (knuth_morris_pratt): Delete.
6538         * modules/memmem (Depends-on): No longer need malloca or stdbool.
6539         Add stdint.
6540         * tests/test-memmem.c (main): Add tests for periodic needle and
6541         sublinear performance.
6542         * doc/functions/memmem.texi (memmem): Document other deficiencies
6543         in cygwin and older glibc.
6544
6545 2008-01-08  Bruno Haible  <bruno@clisp.org>
6546
6547         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
6548         augmentation.
6549
6550 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
6551
6552         Add a configure time option: --disable-acl.
6553         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
6554         AC_ARG_ENABLE(acl).
6555
6556 2008-01-06  Simon Josefsson  <simon@josefsson.org>
6557
6558         * tests/test-localename.c: Don't include obsolete "setenv.h".
6559
6560         * modules/localename-tests (Depends-on): Need unsetenv.
6561
6562 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6563
6564         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
6565
6566 2008-01-06  Colin Watson  <cjwatson@debian.org>
6567
6568         * users.txt: Add man-db.
6569
6570 2008-01-07  Bruno Haible  <bruno@clisp.org>
6571
6572         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
6573         previous section name.
6574
6575 2008-01-07  Bruno Haible  <bruno@clisp.org>
6576
6577         * lib/progname.c (set_program_name): Don't strip off a leading
6578         "lt-" prefix outside a .libs directory.
6579         Suggested by Paul Eggert.
6580
6581 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
6582             Bruno Haible  <bruno@clisp.org>
6583
6584         Improve memory cleanup in 'relocatable' module.
6585         * lib/relocatable.h (compute_curr_prefix): Change return type to
6586         'char *'.
6587         * lib/relocatable.c (compute_curr_prefix): Change return type to
6588         'char *'. Free curr_installdir after use.
6589         (relocate): Free curr_prefix_better after use.
6590         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
6591
6592 2008-01-01  Bruno Haible  <bruno@clisp.org>
6593
6594         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6595         failure on older glibc systems.
6596         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6597
6598 2008-01-05  Eric Blake  <ebb9@byu.net>
6599
6600         Avoid quadratic system memmem.
6601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6602         Reported by Ralf Wildenhues.
6603
6604         Fix memmem test for mingw.
6605         * modules/memmem-tests (configure.ac): Check for alarm.
6606         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6607         it.
6608         * doc/functions/memmem.texi: New file.
6609         * doc/gnulib.texi (Function Substitutes): Add memmem.
6610         Reported by Bruno Haible.
6611
6612 2008-01-04  Bruno Haible  <bruno@clisp.org>
6613
6614         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6615         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6616         gl_HEADER_STRING_H_DEFAULTS.
6617
6618 2008-01-04  Eric Blake  <ebb9@byu.net>
6619
6620         Shorten duration of memmem test.
6621         * tests/test-memmem.c (main): Use alarm to declare failure if test
6622         is taking too long.
6623         Reported by Ralf Wildenhues.
6624
6625 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6626
6627         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6628         string, needed by strerror.
6629
6630 2008-01-03  Colin Watson  <cjwatson@debian.org>
6631             Bruno Haible  <bruno@clisp.org>
6632
6633         * doc/gnulib-tool.texi (Localization): New section.
6634
6635 2008-01-02  Bruno Haible  <bruno@clisp.org>
6636
6637         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6638         variables to 'unsigned char *' type.
6639         Reported by Paul Eggert.
6640
6641 2008-01-02  Jim Meyering  <jim@meyering.net>
6642
6643         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6644
6645 2007-12-31  Jim Meyering  <jim@meyering.net>
6646
6647         Avoid use of private FTS type name.
6648         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6649
6650 2007-12-30  Karl Berry  <karl@gnu.org>
6651
6652         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6653         work around defect in Texinfo and/or the standalone Info browser.
6654
6655 2007-12-30  Bruno Haible  <bruno@clisp.org>
6656
6657         Unify 5 copies of the KMP code.
6658         * lib/str-kmp.h: New file.
6659         * lib/c-strcasestr.c: Include str-kmp.h.
6660         (knuth_morris_pratt): Remove function.
6661         (c_strcasestr): Update.
6662         * lib/c-strstr.c: Include str-kmp.h.
6663         (knuth_morris_pratt): Remove function.
6664         (c_strcasestr): Update.
6665         * lib/mbscasestr.c: Include str-kmp.h.
6666         (knuth_morris_pratt_unibyte): Remove function.
6667         * lib/mbsstr.c: Include str-kmp.h.
6668         (knuth_morris_pratt_unibyte): Remove function.
6669         * lib/strcasestr.c: Include str-kmp.h.
6670         (knuth_morris_pratt): Remove function.
6671         (strcasestr): Update.
6672         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6673         * modules/c-strstr (Files): Likewise.
6674         * modules/mbscasestr (Files): Likewise.
6675         * modules/mbsstr (Files): Likewise.
6676         * modules/strcasestr (Files): Likewise.
6677         Suggested by Paul Eggert.
6678
6679 2007-12-30  Bruno Haible  <bruno@clisp.org>
6680
6681         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6682         defined.
6683
6684 2007-12-30  Bruno Haible  <bruno@clisp.org>
6685
6686         * lib/xmalloca.h: Include xalloc.h.
6687         (xnmalloca): New macro.
6688
6689 2007-12-30  Bruno Haible  <bruno@clisp.org>
6690
6691         * lib/malloca.h (nmalloca): New macro.
6692         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6693         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6694         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6695         knuth_morris_pratt_multibyte): Likewise.
6696         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6697         knuth_morris_pratt_multibyte): Likewise.
6698         * lib/memmem.c (knuth_morris_pratt): Likewise.
6699         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6700
6701 2007-12-25  Bruno Haible  <bruno@clisp.org>
6702
6703         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6704         * lib/glob.c: Don't include openat.h.
6705         (link_exists2_p): Add back the code that deals with the
6706         !GLOB_ALTDIRFUNC case.
6707         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6708         let it do the filename concatenation.
6709         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6710         * modules/glob (Depends-on): Remove openat.
6711
6712 2007-12-31  Bruno Haible  <bruno@clisp.org>
6713
6714         * modules/dirfd (License): Change to LGPLv2+.
6715         Approved by Jim Meyering.
6716
6717 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6718
6719         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6720         when multiplying M by sizeof (size_t).
6721
6722 2007-12-10  Martin Lambers  <marlam@marlam.de>
6723
6724         Override getpagesize on mingw.
6725         * lib/getpagesize.c: New file.
6726         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6727         * modules/getpagesize (Files): Add lib/getpagesize.c.
6728         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6730         REPLACE_GETPAGESIZE.
6731         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6732
6733 2007-12-25  Bruno Haible  <bruno@clisp.org>
6734
6735         * modules/localcharset (Notice): New field.
6736         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6737         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6738
6739 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6740             Bruno Haible  <bruno@clisp.org>
6741
6742         Avoid using the syntax symbol() in formatted documentation.
6743         * MODULES.html.sh (func_module): When replacing symbol() with a
6744         hyperlink, remove the parentheses. Show an error if some remain.
6745         Recognize and render the '...' syntax.
6746         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6747         Rework. Add paragraph about GCC's inlining.
6748         * doc/alloca.texi: Likewise.
6749         * doc/error.texi: Remove parentheses from symbol reference.
6750         * doc/gnulib-intro.texi: Likewise.
6751         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6752         * modules/fnmatch (Description): Reword to say "the ... function".
6753         * modules/full-read (Description): Likewise.
6754         * modules/full-write (Description): Likewise.
6755         * modules/safe-read (Description): Likewise.
6756         * modules/safe-write (Description): Likewise.
6757         * modules/strchrnul (Description): Likewise.
6758         * modules/trim (Description): Likewise.
6759         * modules/error (Description): Remove parentheses from symbol
6760         references.
6761         * modules/verror (Description): Likewise.
6762         Reported by Karl Berry.
6763
6764 2007-12-25  Bruno Haible  <bruno@clisp.org>
6765
6766         Fixup after 2007-10-16 commit.
6767         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6768
6769 2007-12-24  Bruno Haible  <bruno@clisp.org>
6770
6771         Make --enable-relocatable work with DESTDIR.
6772         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6773         to compute installdir from destprog.
6774         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6775         also set the RELOC_DESTDIR variable.
6776         Reported by Левашев Иван <octagram@bluebottle.com>.
6777
6778 2007-12-24  Bruno Haible  <bruno@clisp.org>
6779
6780         Fix link error due to xalloc_die().
6781         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6782         of xreadlink.
6783         * lib/relocwrapper.c: Update comments.
6784         * build-aux/install-reloc: Remove xreadlink.c from file list.
6785         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6786         xreadlink.c.
6787         Reported by Левашев Иван <octagram@bluebottle.com>.
6788
6789 2007-12-24  Bruno Haible  <bruno@clisp.org>
6790
6791         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6792         * lib/setenv.h: Remove file.
6793         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6794         lib/setenv.h.
6795         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6796         (Depends-on): Add stdlib.
6797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6798         gl_FUNC_UNSETENV.
6799         (Include): Replace setenv.h with <stdlib.h>.
6800         * modules/unsetenv: New file.
6801         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6802         * lib/unsetenv.c: Include <stdlib.h> first.
6803         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6804         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6805         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6806         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6807         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6808         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6810         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6811         * doc/functions/unsetenv.texi: Update.
6812         * modules/xsetenv (Depends-on): Add unsetenv.
6813         * modules/getdate (Depends-on): Likewise.
6814         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6815         * lib/xsetenv.c: Don't include setenv.h.
6816         * lib/getdate.y: Likewise.
6817         * lib/relocwrapper.c: Likewise.
6818         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6819         (Depends-on): Add stdlib.
6820         * NEWS: Mention the changes.
6821         Reported by Левашев Иван <octagram@bluebottle.com>.
6822
6823 2007-12-23  Bruno Haible  <bruno@clisp.org>
6824
6825         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6826         indentation.
6827
6828 2007-12-23  Bruno Haible  <bruno@clisp.org>
6829
6830         * lib/c-strcasestr.c: Add more comments.
6831         * lib/c-strstr.c: Likewise.
6832         * lib/mbscasestr.c: Likewise.
6833         * lib/mbsstr.c: Likewise.
6834         * lib/strcasestr.c: Likewise.
6835         * lib/memmem.c: Likewise.
6836
6837 2007-12-23  Bruno Haible  <bruno@clisp.org>
6838
6839         * tests/test-memmem.c: Include <string.h> first.
6840
6841 2007-12-22  Bruno Haible  <bruno@clisp.org>
6842
6843         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6844         the contents of $testsbase.
6845         Reported by Ralf Wildenhues.
6846
6847 2007-12-22  Bruno Haible  <bruno@clisp.org>
6848
6849         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6850         two variables local_ldadd_before, local_ldadd_last.
6851
6852 2007-12-20  Eric Blake  <ebb9@byu.net>
6853
6854         Work around circular library issue when cross-compiling.
6855         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6856         that progname.o does not need to pull in rpl_memcmp.
6857
6858 2007-12-19  Eric Blake  <ebb9@byu.net>
6859
6860         Fix memmem to avoid O(n^2) worst-case complexity.
6861         * lib/memmem.c (knuth_morris_pratt): New function.
6862         (memmem): Use it if first few naive iterations fail.
6863         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6864         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6865         * modules/memchr (License): Likewise.
6866         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6867         malloca.
6868         * tests/test-memmem.c: Rewrite, borrowing ideas from
6869         test-mbsstr1.c; the old version wouldn't even compile!
6870         * modules/memmem-tests: New file.
6871         * lib/string.in.h (rpl_memmem): Add declaration.
6872         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6874         REPLACE_MEMMEM.
6875
6876 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6877
6878         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6879         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6880         before any system include files, and undef after them all.  This
6881         should fix a problem on VMS reported by John E. Malmberg in
6882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6883
6884 2007-12-17  Eric Blake  <ebb9@byu.net>
6885
6886         Revert addition of verify, for BSD/OS.
6887         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6888         can't handle large files, for the sake of obsolete platforms.
6889         * modules/fseeko (Depends-on): Remove verify.
6890         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6891         * doc/functions/ftello.texi (ftello): Likewise.
6892         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6893         Reported by Larry Jones.
6894
6895 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6896
6897         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6898         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6899
6900 2007-12-17  Jim Meyering  <meyering@redhat.com>
6901
6902         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6903         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6904         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6905         * modules/getcwd (Depends-on): Add openat.
6906         Reported by Petr Salinger.
6907
6908 2007-12-17  Bruno Haible  <bruno@clisp.org>
6909
6910         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6911         avoid a segmentation fault of the configure test on x86_64 systems.
6912
6913 2007-12-15  Jim Meyering  <meyering@redhat.com>
6914
6915         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6916
6917 2007-12-13  Eric Blake  <ebb9@byu.net>
6918
6919         Another fseek test.
6920         * tests/test-fseek.c (main): Also test ungetc handling.
6921         * tests/test-fseeko.c (main): Likewise.
6922         * modules/fseeko (Depends-on): Add verify.
6923         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6924         large.
6925         Reported by Larry Jones.
6926
6927         Fix fseeko on mingw.
6928         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6929         seek.
6930
6931         Beef up fseek tests.
6932         * tests/test-fseek.c (main): Also test eof handling.
6933         * tests/test-fseeko.c (main): Likewise.
6934         Reported by Larry Jones.
6935
6936 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6937
6938         Fix fseeko on BSD-based platforms.
6939         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6940         successful seek.
6941
6942 2007-12-12  Eric Blake  <ebb9@byu.net>
6943
6944         Allow circular dependency of separate libtests.a
6945         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6946         when use_libtests.
6947
6948 2007-12-11  Eric Blake  <ebb9@byu.net>
6949
6950         Fix bug with -0.0L in previous patch.
6951         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6952         * tests/test-isnan.c (main): Also test on zeroes.
6953         * tests/test-isnanf.c (main): Likewise.
6954         * tests/test-isnanl.h (main): Likewise.
6955
6956         Detect pseudo-denormals on x86 even when cross-compiling.
6957         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6958         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6959         invalid bit patterns that happen to satisfy ==.
6960
6961         Avoid link failures with separate libtests.a.
6962         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6963         last, to satisfy circular dependencies.
6964
6965 2007-12-11  Eric Blake  <ebb9@byu.net>
6966         and Bruno Haible  <bruno@clisp.org>
6967
6968         Fix OpenBSD 4.0 <float.h> handling of long double.
6969         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6970         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6971         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6972
6973 2007-12-11  Jim Meyering  <meyering@redhat.com>
6974
6975         * users.txt: Add libvirt.
6976
6977         Support versions of autoconf prior to 2.59c.
6978         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6979         if it is not already defined.
6980
6981 2007-12-09  Bruno Haible  <bruno@clisp.org>
6982
6983         Let 'gnulib-tool --import' collect sources needed for the tests in
6984         tests/ rather than in lib/.
6985         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6986         argument. If true, add rules to generate libtests.a, and put libtests.a
6987         into $(LDADD). Consider source files in subdirectories and set
6988         uses_subdirs.
6989         (func_emit_initmacro_start, func_emit_initmacro_end,
6990         func_emit_initmacro_done): Pass all arguments explicitly.
6991         (func_import): Determine two module lists main_modules,
6992         testsrelated_modules. Determine use_libtests. Determine two variables
6993         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6994         instead of just sed_transform_lib_file. Determine two variables
6995         main_files and testsrelated_files. Compute 'files' as the union of
6996         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6997         func_add_or_update. In the generated gnulib-comp.m4, collect the
6998         object files for tests/ in different variables than those for lib/.
6999         Substitute LIBTESTS_LIBDEPS.
7000         (func_create_testdir): Combine the uses_subdirs results from
7001         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
7002
7003 2007-12-09  Bruno Haible  <bruno@clisp.org>
7004
7005         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
7006         the build-aux directory.
7007
7008 2007-12-09  Bruno Haible  <bruno@clisp.org>
7009
7010         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
7011         introduced on 2006-09-09.
7012
7013 2007-12-07  Jim Meyering  <meyering@redhat.com>
7014
7015         Let these macros work also with autoconf-2.59.
7016         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
7017         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
7018         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7019
7020 2007-12-06  Jim Meyering  <meyering@redhat.com>
7021
7022         Avoid a configure-time syntax error in gl_FUNC_ACL.
7023         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
7024         function in each branch, before testing the cache variable.
7025
7026 2007-12-04  Eric Blake  <ebb9@byu.net>
7027
7028         Make scripts executable.
7029         * build-aux/config.guess: Add execute permissions.
7030         * build-aux/config.sub: Likewise.
7031         * build-aux/gendocs.sh: Likewise.
7032
7033         Fix frexp on mingw.
7034         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
7035         cross-compiling.
7036         * doc/functions/frexp.texi (frexp): Document the bug.
7037
7038         Make cygwin fseeko check more reliable.
7039         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
7040         version numbers, rather than unrelated feature check.
7041         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
7042         * doc/functions/ftello.texi (ftello): Likewise.
7043         Reported by Bruno Haible.
7044
7045         * m4/strerror.m4: Bump version number.
7046
7047 2007-12-03  Bruno Haible  <bruno@clisp.org>
7048
7049         * doc/functions/mprotect.texi: Mention the mingw problem.
7050
7051 2007-12-03  Eric Blake  <ebb9@byu.net>
7052
7053         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
7054         REPLACE_STRERROR is initialized before this macro.
7055
7056 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
7057
7058         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
7059         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
7060         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
7061         put -lsec in even for programs other than 'ls'.  This fixes a problem
7062         for gettext reported by Bruno Haible in
7063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
7064         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
7065         Add support for Solaris 10.  This isn't efficient, but should get the
7066         job done for now.
7067
7068 2007-12-03  James Youngman  <jay@gnu.org>
7069
7070         * doc/regexprops-generic.texi: change "an close-group" to "a
7071         close-group" and "illegal" to "not allowed".
7072
7073 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7074
7075         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
7076         pr_byname.h. Needed for the rare case when the maintainer has done
7077         "make maintainer-clean" in the source directory and then attempts a
7078         build outside the source directory.
7079         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
7080         scripts_byname.h.
7081
7082 2007-12-02  Martin Lambers <marlam@marlam.de>
7083             Bruno Haible  <bruno@clisp.org>
7084
7085         * lib/getpagesize.h: Remove file.
7086         * lib/unistd.in.h: Include declaration of getpagesize here.
7087         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
7088         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
7089         HAVE_SYS_PARAM_H.
7090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
7091         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7092         * modules/getpagesize (Files): Remove lib/getpagesize.h.
7093         (Depends-on): Add unistd.
7094         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7095         (Include): Use <unistd.h> instead of getpagesize.h.
7096         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
7097         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
7098         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
7099         gl_GETPAGESIZE invocation, already handled by module dependency.
7100         * lib/pagealign_alloc.c: Don't include getpagesize.h.
7101
7102 2007-12-02  Bruno Haible  <bruno@clisp.org>
7103
7104         * modules/strings-tests: New file.
7105         * tests/test-strings.c: New file.
7106
7107         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
7108         * lib/strings.in.h: New file.
7109         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
7110         * m4/strings_h.m4: New file.
7111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
7112         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
7113         * modules/strings: New file.
7114         * modules/string (Makefile.am): Update.
7115         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
7116         Reported by Karl Berry.
7117
7118 2007-12-01  Eric Blake  <ebb9@byu.net>
7119
7120         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
7121         accomodate fix in cygwin 1.5.25.
7122
7123 2007-12-01  Jim Meyering  <meyering@redhat.com>
7124
7125         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
7126         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7127         that would inhibit utf8-optimization of a regexp containing line-
7128         or buffer-anchors, e.g., `^', `$'.
7129
7130 2007-11-30  Bruno Haible  <bruno@clisp.org>
7131
7132         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
7133         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
7134         glthread_recursive_lock_init.
7135         * lib/lock.c (glthread_recursive_lock_init)
7136         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
7137         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7138
7139 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
7140
7141         New function qset_acl, like set_acl but with syscall semantics.
7142         * lib/acl.h (qset_acl): New decl.
7143         * lib/acl.c (qset_acl): New function.
7144         (set_acl): Use new function.  Use more-consistent diagnostics.
7145
7146 2007-11-28  Jim Meyering  <meyering@redhat.com>
7147
7148         * modules/physmem (License): Change from GPL to LGPLv2+.
7149
7150 2007-11-26  Bruno Haible  <bruno@clisp.org>
7151
7152         * lib/vasnprintf.c (decode_long_double): Don't abort if the
7153         'long double' type has excess precision.
7154         Reported by Jim Meyering in
7155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
7156
7157 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7158
7159         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
7160         Sync from <http://gnu.org/licenses>.
7161         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
7162         with license text from same location.
7163         * doc/maintain.texi, doc/standards.texi:  Sync from
7164         <http://savannah.gnu.org/projects/gnustandards>.
7165
7166 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
7167         and Jim Meyering  <meyering@redhat.com>
7168
7169         Adjust getdate' grammar to accept a slightly more regular language.
7170         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
7171         Before, the former was rejected.
7172         * lib/getdate.y (digits_to_date_time): New function, factored
7173         out of ...
7174         (number): ...here.  Just call digits_to_date_time.
7175         (hybrid): New non-terminal to handle an <unsigned number,
7176         signed relative offset> sequence consistently.
7177
7178 2007-11-18  Jim Meyering  <meyering@redhat.com>
7179
7180         Pull my changes from coreutils:
7181         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
7182         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
7183         use of $gnulib_tool_option_extras, so that it's separated from the
7184         preceding argument.
7185
7186         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
7187         * build-aux/bootstrap (cp_mark_as_generated): Create any required
7188         parent destination directories before copying a file into place.
7189
7190 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
7191
7192         bootstrap: work also with 4-argument variant of AC_INIT
7193         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
7194
7195 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
7196
7197         Port test-getaddrinfo to Solaris.
7198         Problem reported by Bruno Haible in
7199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
7200         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
7201         explanation of setting 'hints'.
7202         Don't reject an implementation merely because it returns EAI_SERVICE.
7203         (EAI_SERVICE): Define to 0 if not defined.
7204
7205 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7206
7207         The license of gnu-make and posix-shell is now "GPLed build tool".
7208         * modules/gnu-make (License): Likewise.
7209         * modules/posix-shell (License): Likewise.
7210
7211         New module posix-shell, for determining a POSIX shell
7212         or perhaps something that is close enough to a POSIX shell.
7213         * m4/posix-shell.m4: New file.
7214         * modules/posix-shell: New file.
7215
7216         * MODULES.html.sh: Mention new module.
7217
7218         New module gnu-make, for determining whether we're using GNU Make.
7219         * m4/gnu-make.m4: New file.
7220         * modules/gnu-make: New file.
7221         * MODULES.html.sh: Mention new module.
7222
7223 2007-11-14  Jim Meyering  <meyering@redhat.com>
7224
7225         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
7226         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
7227         use this macro to create a function _definition_.
7228         Remove useless "#undef ARGMATCH_DIE".
7229
7230 2007-11-14  Bruno Haible  <bruno@clisp.org>
7231
7232         * lib/config.charset: Update for OpenBSD 4.1.
7233         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
7234
7235 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7236
7237         Document 64-bit #if problems in stdint.texi.
7238         * doc/headers/stdint.texi (stdint.h): Mention problems with
7239         64-bit-#if, and how to work around them.
7240
7241         Don't insist on 'long long int' support in the preprocessor.  It
7242         breaks too many things.  For example, PRIdMAX still uses a 'long
7243         long int' format with the latest Sun compiler, even though
7244         HAVE_LONG_LONG_INT isn't defined due to that compiler's
7245         preprocessor problem.  This causes the latest coreutils to dump
7246         core on Solaris 10 sparc with the Sun C compiler.
7247         Instead, fix the 2007-10-16 problem in a different way, by evaluating
7248         the troublesome expressions at configure-time, not at #if-time.
7249         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
7250         preprocessor.
7251         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
7252         compile-time C checks, done at 'configure'-time.
7253         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
7254         * modules/inttypes (Makefile): Substitute the new symbols that
7255         gl_INTTYPES_H now generates.
7256         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
7257
7258 2007-11-12  Bruno Haible  <bruno@clisp.org>
7259
7260         Tests for Unicode character classification functions.
7261
7262         * modules/unictype/bidicategory-byname-tests: New file.
7263         * modules/unictype/bidicategory-name-tests: New file.
7264         * modules/unictype/bidicategory-of-tests: New file.
7265         * modules/unictype/bidicategory-test-tests: New file.
7266         * modules/unictype/block-list-tests: New file.
7267         * modules/unictype/block-of-tests: New file.
7268         * modules/unictype/block-test-tests: New file.
7269         * modules/unictype/category-C-tests: New file.
7270         * modules/unictype/category-Cc-tests: New file.
7271         * modules/unictype/category-Cf-tests: New file.
7272         * modules/unictype/category-Cn-tests: New file.
7273         * modules/unictype/category-Co-tests: New file.
7274         * modules/unictype/category-Cs-tests: New file.
7275         * modules/unictype/category-L-tests: New file.
7276         * modules/unictype/category-Ll-tests: New file.
7277         * modules/unictype/category-Lm-tests: New file.
7278         * modules/unictype/category-Lo-tests: New file.
7279         * modules/unictype/category-Lt-tests: New file.
7280         * modules/unictype/category-Lu-tests: New file.
7281         * modules/unictype/category-M-tests: New file.
7282         * modules/unictype/category-Mc-tests: New file.
7283         * modules/unictype/category-Me-tests: New file.
7284         * modules/unictype/category-Mn-tests: New file.
7285         * modules/unictype/category-N-tests: New file.
7286         * modules/unictype/category-Nd-tests: New file.
7287         * modules/unictype/category-Nl-tests: New file.
7288         * modules/unictype/category-No-tests: New file.
7289         * modules/unictype/category-P-tests: New file.
7290         * modules/unictype/category-Pc-tests: New file.
7291         * modules/unictype/category-Pd-tests: New file.
7292         * modules/unictype/category-Pe-tests: New file.
7293         * modules/unictype/category-Pf-tests: New file.
7294         * modules/unictype/category-Pi-tests: New file.
7295         * modules/unictype/category-Po-tests: New file.
7296         * modules/unictype/category-Ps-tests: New file.
7297         * modules/unictype/category-S-tests: New file.
7298         * modules/unictype/category-Sc-tests: New file.
7299         * modules/unictype/category-Sk-tests: New file.
7300         * modules/unictype/category-Sm-tests: New file.
7301         * modules/unictype/category-So-tests: New file.
7302         * modules/unictype/category-Z-tests: New file.
7303         * modules/unictype/category-Zl-tests: New file.
7304         * modules/unictype/category-Zp-tests: New file.
7305         * modules/unictype/category-Zs-tests: New file.
7306         * modules/unictype/category-and-not-tests: New file.
7307         * modules/unictype/category-and-tests: New file.
7308         * modules/unictype/category-byname-tests: New file.
7309         * modules/unictype/category-name-tests: New file.
7310         * modules/unictype/category-none-tests: New file.
7311         * modules/unictype/category-of-tests: New file.
7312         * modules/unictype/category-or-tests: New file.
7313         * modules/unictype/category-test-withtable-tests: New file.
7314         * modules/unictype/combining-class-tests: New file.
7315         * modules/unictype/ctype-alnum-tests: New file.
7316         * modules/unictype/ctype-alpha-tests: New file.
7317         * modules/unictype/ctype-blank-tests: New file.
7318         * modules/unictype/ctype-cntrl-tests: New file.
7319         * modules/unictype/ctype-digit-tests: New file.
7320         * modules/unictype/ctype-graph-tests: New file.
7321         * modules/unictype/ctype-lower-tests: New file.
7322         * modules/unictype/ctype-print-tests: New file.
7323         * modules/unictype/ctype-punct-tests: New file.
7324         * modules/unictype/ctype-space-tests: New file.
7325         * modules/unictype/ctype-upper-tests: New file.
7326         * modules/unictype/ctype-xdigit-tests: New file.
7327         * modules/unictype/decimal-digit-tests: New file.
7328         * modules/unictype/digit-tests: New file.
7329         * modules/unictype/mirror-tests: New file.
7330         * modules/unictype/numeric-tests: New file.
7331         * modules/unictype/property-alphabetic-tests: New file.
7332         * modules/unictype/property-ascii-hex-digit-tests: New file.
7333         * modules/unictype/property-bidi-arabic-digit-tests: New file.
7334         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7335         * modules/unictype/property-bidi-block-separator-tests: New file.
7336         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7337         * modules/unictype/property-bidi-common-separator-tests: New file.
7338         * modules/unictype/property-bidi-control-tests: New file.
7339         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7340         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7341         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7342         * modules/unictype/property-bidi-european-digit-tests: New file.
7343         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7344         * modules/unictype/property-bidi-left-to-right-tests: New file.
7345         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7346         * modules/unictype/property-bidi-other-neutral-tests: New file.
7347         * modules/unictype/property-bidi-pdf-tests: New file.
7348         * modules/unictype/property-bidi-segment-separator-tests: New file.
7349         * modules/unictype/property-bidi-whitespace-tests: New file.
7350         * modules/unictype/property-byname-tests: New file.
7351         * modules/unictype/property-combining-tests: New file.
7352         * modules/unictype/property-composite-tests: New file.
7353         * modules/unictype/property-currency-symbol-tests: New file.
7354         * modules/unictype/property-dash-tests: New file.
7355         * modules/unictype/property-decimal-digit-tests: New file.
7356         * modules/unictype/property-default-ignorable-code-point-tests: New file.
7357         * modules/unictype/property-deprecated-tests: New file.
7358         * modules/unictype/property-diacritic-tests: New file.
7359         * modules/unictype/property-extender-tests: New file.
7360         * modules/unictype/property-format-control-tests: New file.
7361         * modules/unictype/property-grapheme-base-tests: New file.
7362         * modules/unictype/property-grapheme-extend-tests: New file.
7363         * modules/unictype/property-grapheme-link-tests: New file.
7364         * modules/unictype/property-hex-digit-tests: New file.
7365         * modules/unictype/property-hyphen-tests: New file.
7366         * modules/unictype/property-id-continue-tests: New file.
7367         * modules/unictype/property-id-start-tests: New file.
7368         * modules/unictype/property-ideographic-tests: New file.
7369         * modules/unictype/property-ids-binary-operator-tests: New file.
7370         * modules/unictype/property-ids-trinary-operator-tests: New file.
7371         * modules/unictype/property-ignorable-control-tests: New file.
7372         * modules/unictype/property-iso-control-tests: New file.
7373         * modules/unictype/property-join-control-tests: New file.
7374         * modules/unictype/property-left-of-pair-tests: New file.
7375         * modules/unictype/property-line-separator-tests: New file.
7376         * modules/unictype/property-logical-order-exception-tests: New file.
7377         * modules/unictype/property-lowercase-tests: New file.
7378         * modules/unictype/property-math-tests: New file.
7379         * modules/unictype/property-non-break-tests: New file.
7380         * modules/unictype/property-not-a-character-tests: New file.
7381         * modules/unictype/property-numeric-tests: New file.
7382         * modules/unictype/property-other-alphabetic-tests: New file.
7383         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
7384         * modules/unictype/property-other-grapheme-extend-tests: New file.
7385         * modules/unictype/property-other-id-continue-tests: New file.
7386         * modules/unictype/property-other-id-start-tests: New file.
7387         * modules/unictype/property-other-lowercase-tests: New file.
7388         * modules/unictype/property-other-math-tests: New file.
7389         * modules/unictype/property-other-uppercase-tests: New file.
7390         * modules/unictype/property-paired-punctuation-tests: New file.
7391         * modules/unictype/property-paragraph-separator-tests: New file.
7392         * modules/unictype/property-pattern-syntax-tests: New file.
7393         * modules/unictype/property-pattern-white-space-tests: New file.
7394         * modules/unictype/property-private-use-tests: New file.
7395         * modules/unictype/property-punctuation-tests: New file.
7396         * modules/unictype/property-quotation-mark-tests: New file.
7397         * modules/unictype/property-radical-tests: New file.
7398         * modules/unictype/property-sentence-terminal-tests: New file.
7399         * modules/unictype/property-soft-dotted-tests: New file.
7400         * modules/unictype/property-space-tests: New file.
7401         * modules/unictype/property-terminal-punctuation-tests: New file.
7402         * modules/unictype/property-test-tests: New file.
7403         * modules/unictype/property-titlecase-tests: New file.
7404         * modules/unictype/property-unassigned-code-value-tests: New file.
7405         * modules/unictype/property-unified-ideograph-tests: New file.
7406         * modules/unictype/property-uppercase-tests: New file.
7407         * modules/unictype/property-variation-selector-tests: New file.
7408         * modules/unictype/property-white-space-tests: New file.
7409         * modules/unictype/property-xid-continue-tests: New file.
7410         * modules/unictype/property-xid-start-tests: New file.
7411         * modules/unictype/property-zero-width-tests: New file.
7412         * modules/unictype/scripts-tests: New file.
7413         * modules/unictype/syntax-c-ident-tests: New file.
7414         * modules/unictype/syntax-c-whitespace-tests: New file.
7415         * modules/unictype/syntax-java-ident-tests: New file.
7416         * modules/unictype/syntax-java-whitespace-tests: New file.
7417         * tests/unictype/test-bidi_byname.c: New file.
7418         * tests/unictype/test-bidi_name.c: New file.
7419         * tests/unictype/test-bidi_of.c: New file.
7420         * tests/unictype/test-bidi_test.c: New file.
7421         * tests/unictype/test-block_list.c: New file.
7422         * tests/unictype/test-block_of.c: New file.
7423         * tests/unictype/test-block_test.c: New file.
7424         * tests/unictype/test-categ_and.c: New file.
7425         * tests/unictype/test-categ_and_not.c: New file.
7426         * tests/unictype/test-categ_byname.c: New file.
7427         * tests/unictype/test-categ_name.c: New file.
7428         * tests/unictype/test-categ_none.c: New file.
7429         * tests/unictype/test-categ_of.c: New file.
7430         * tests/unictype/test-categ_or.c: New file.
7431         * tests/unictype/test-categ_test_withtable.c: New file.
7432         * tests/unictype/test-combining.c: New file.
7433         * tests/unictype/test-decdigit.c: New file.
7434         * tests/unictype/test-digit.c: New file.
7435         * tests/unictype/test-mirror.c: New file.
7436         * tests/unictype/test-numeric.c: New file.
7437         * tests/unictype/test-pr_byname.c: New file.
7438         * tests/unictype/test-pr_test.c: New file.
7439         * tests/unictype/test-predicate-part1.h: New file.
7440         * tests/unictype/test-predicate-part2.h: New file.
7441         * tests/unictype/test-scripts.c: New file.
7442         * tests/unictype/test-sy_c_ident.c: New file.
7443         * tests/unictype/test-sy_java_ident.c: New file.
7444
7445         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
7446         for Unicode 5.0.0.
7447         * tests/unictype/test-categ_Cc.c: Likewise.
7448         * tests/unictype/test-categ_Cf.c: Likewise.
7449         * tests/unictype/test-categ_Cn.c: Likewise.
7450         * tests/unictype/test-categ_Co.c: Likewise.
7451         * tests/unictype/test-categ_Cs.c: Likewise.
7452         * tests/unictype/test-categ_L.c: Likewise.
7453         * tests/unictype/test-categ_Ll.c: Likewise.
7454         * tests/unictype/test-categ_Lm.c: Likewise.
7455         * tests/unictype/test-categ_Lo.c: Likewise.
7456         * tests/unictype/test-categ_Lt.c: Likewise.
7457         * tests/unictype/test-categ_Lu.c: Likewise.
7458         * tests/unictype/test-categ_M.c: Likewise.
7459         * tests/unictype/test-categ_Mc.c: Likewise.
7460         * tests/unictype/test-categ_Me.c: Likewise.
7461         * tests/unictype/test-categ_Mn.c: Likewise.
7462         * tests/unictype/test-categ_N.c: Likewise.
7463         * tests/unictype/test-categ_Nd.c: Likewise.
7464         * tests/unictype/test-categ_Nl.c: Likewise.
7465         * tests/unictype/test-categ_No.c: Likewise.
7466         * tests/unictype/test-categ_P.c: Likewise.
7467         * tests/unictype/test-categ_Pc.c: Likewise.
7468         * tests/unictype/test-categ_Pd.c: Likewise.
7469         * tests/unictype/test-categ_Pe.c: Likewise.
7470         * tests/unictype/test-categ_Pf.c: Likewise.
7471         * tests/unictype/test-categ_Pi.c: Likewise.
7472         * tests/unictype/test-categ_Po.c: Likewise.
7473         * tests/unictype/test-categ_Ps.c: Likewise.
7474         * tests/unictype/test-categ_S.c: Likewise.
7475         * tests/unictype/test-categ_Sc.c: Likewise.
7476         * tests/unictype/test-categ_Sk.c: Likewise.
7477         * tests/unictype/test-categ_Sm.c: Likewise.
7478         * tests/unictype/test-categ_So.c: Likewise.
7479         * tests/unictype/test-categ_Z.c: Likewise.
7480         * tests/unictype/test-categ_Zl.c: Likewise.
7481         * tests/unictype/test-categ_Zp.c: Likewise.
7482         * tests/unictype/test-categ_Zs.c: Likewise.
7483         * tests/unictype/test-ctype_alnum.c: Likewise.
7484         * tests/unictype/test-ctype_alpha.c: Likewise.
7485         * tests/unictype/test-ctype_blank.c: Likewise.
7486         * tests/unictype/test-ctype_cntrl.c: Likewise.
7487         * tests/unictype/test-ctype_digit.c: Likewise.
7488         * tests/unictype/test-ctype_graph.c: Likewise.
7489         * tests/unictype/test-ctype_lower.c: Likewise.
7490         * tests/unictype/test-ctype_print.c: Likewise.
7491         * tests/unictype/test-ctype_punct.c: Likewise.
7492         * tests/unictype/test-ctype_space.c: Likewise.
7493         * tests/unictype/test-ctype_upper.c: Likewise.
7494         * tests/unictype/test-ctype_xdigit.c: Likewise.
7495         * tests/unictype/test-decdigit.h: Likewise.
7496         * tests/unictype/test-digit.h: Likewise.
7497         * tests/unictype/test-numeric.h: Likewise.
7498         * tests/unictype/test-pr_alphabetic.c: Likewise.
7499         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
7500         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7501         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7502         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
7503         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7504         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
7505         * tests/unictype/test-pr_bidi_control.c: Likewise.
7506         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
7507         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
7508         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7509         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7510         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7511         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7512         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7513         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7514         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
7515         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
7516         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
7517         * tests/unictype/test-pr_combining.c: Likewise.
7518         * tests/unictype/test-pr_composite.c: Likewise.
7519         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7520         * tests/unictype/test-pr_dash.c: Likewise.
7521         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7522         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
7523         * tests/unictype/test-pr_deprecated.c: Likewise.
7524         * tests/unictype/test-pr_diacritic.c: Likewise.
7525         * tests/unictype/test-pr_extender.c: Likewise.
7526         * tests/unictype/test-pr_format_control.c: Likewise.
7527         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7528         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7529         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7530         * tests/unictype/test-pr_hex_digit.c: Likewise.
7531         * tests/unictype/test-pr_hyphen.c: Likewise.
7532         * tests/unictype/test-pr_id_continue.c: Likewise.
7533         * tests/unictype/test-pr_id_start.c: Likewise.
7534         * tests/unictype/test-pr_ideographic.c: Likewise.
7535         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
7536         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
7537         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7538         * tests/unictype/test-pr_iso_control.c: Likewise.
7539         * tests/unictype/test-pr_join_control.c: Likewise.
7540         * tests/unictype/test-pr_left_of_pair.c: Likewise.
7541         * tests/unictype/test-pr_line_separator.c: Likewise.
7542         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7543         * tests/unictype/test-pr_lowercase.c: Likewise.
7544         * tests/unictype/test-pr_math.c: Likewise.
7545         * tests/unictype/test-pr_non_break.c: Likewise.
7546         * tests/unictype/test-pr_not_a_character.c: Likewise.
7547         * tests/unictype/test-pr_numeric.c: Likewise.
7548         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7549         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
7550         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
7551         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7552         * tests/unictype/test-pr_other_id_start.c: Likewise.
7553         * tests/unictype/test-pr_other_lowercase.c: Likewise.
7554         * tests/unictype/test-pr_other_math.c: Likewise.
7555         * tests/unictype/test-pr_other_uppercase.c: Likewise.
7556         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
7557         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
7558         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
7559         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
7560         * tests/unictype/test-pr_private_use.c: Likewise.
7561         * tests/unictype/test-pr_punctuation.c: Likewise.
7562         * tests/unictype/test-pr_quotation_mark.c: Likewise.
7563         * tests/unictype/test-pr_radical.c: Likewise.
7564         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7565         * tests/unictype/test-pr_soft_dotted.c: Likewise.
7566         * tests/unictype/test-pr_space.c: Likewise.
7567         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7568         * tests/unictype/test-pr_titlecase.c: Likewise.
7569         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7570         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7571         * tests/unictype/test-pr_uppercase.c: Likewise.
7572         * tests/unictype/test-pr_variation_selector.c: Likewise.
7573         * tests/unictype/test-pr_white_space.c: Likewise.
7574         * tests/unictype/test-pr_xid_continue.c: Likewise.
7575         * tests/unictype/test-pr_xid_start.c: Likewise.
7576         * tests/unictype/test-pr_zero_width.c: Likewise.
7577         * tests/unictype/test-sy_c_whitespace.c: Likewise.
7578         * tests/unictype/test-sy_java_whitespace.c: Likewise.
7579
7580 2007-11-12  Bruno Haible  <bruno@clisp.org>
7581
7582         Unicode character classification functions.
7583         * lib/unictype.h: New file.
7584         * modules/unictype/base: New file.
7585         * modules/unictype/category-L: New file.
7586         * modules/unictype/category-Lu: New file.
7587         * modules/unictype/category-Ll: New file.
7588         * modules/unictype/category-Lt: New file.
7589         * modules/unictype/category-Lm: New file.
7590         * modules/unictype/category-Lo: New file.
7591         * modules/unictype/category-M: New file.
7592         * modules/unictype/category-Mn: New file.
7593         * modules/unictype/category-Mc: New file.
7594         * modules/unictype/category-Me: New file.
7595         * modules/unictype/category-N: New file.
7596         * modules/unictype/category-Nd: New file.
7597         * modules/unictype/category-Nl: New file.
7598         * modules/unictype/category-No: New file.
7599         * modules/unictype/category-P: New file.
7600         * modules/unictype/category-Pc: New file.
7601         * modules/unictype/category-Pd: New file.
7602         * modules/unictype/category-Ps: New file.
7603         * modules/unictype/category-Pe: New file.
7604         * modules/unictype/category-Pi: New file.
7605         * modules/unictype/category-Pf: New file.
7606         * modules/unictype/category-Po: New file.
7607         * modules/unictype/category-S: New file.
7608         * modules/unictype/category-Sm: New file.
7609         * modules/unictype/category-Sc: New file.
7610         * modules/unictype/category-Sk: New file.
7611         * modules/unictype/category-So: New file.
7612         * modules/unictype/category-Z: New file.
7613         * modules/unictype/category-Zs: New file.
7614         * modules/unictype/category-Zl: New file.
7615         * modules/unictype/category-Zp: New file.
7616         * modules/unictype/category-C: New file.
7617         * modules/unictype/category-Cc: New file.
7618         * modules/unictype/category-Cf: New file.
7619         * modules/unictype/category-Cs: New file.
7620         * modules/unictype/category-Co: New file.
7621         * modules/unictype/category-Cn: New file.
7622         * modules/unictype/category-or: New file.
7623         * modules/unictype/category-of: New file.
7624         * modules/unictype/category-test: New file.
7625         * modules/unictype/category-test-withtable: New file.
7626         * modules/unictype/category-byname: New file.
7627         * modules/unictype/category-none: New file.
7628         * modules/unictype/category-and: New file.
7629         * modules/unictype/category-and-not: New file.
7630         * modules/unictype/category-name: New file.
7631         * modules/unictype/combining-class: New file.
7632         * modules/unictype/category-all: New file.
7633         * modules/unictype/bidicategory-all: New file.
7634         * modules/unictype/bidicategory-byname: New file.
7635         * modules/unictype/bidicategory-name: New file.
7636         * modules/unictype/bidicategory-of: New file.
7637         * modules/unictype/bidicategory-test: New file.
7638         * modules/unictype/decimal-digit: New file.
7639         * modules/unictype/digit: New file.
7640         * modules/unictype/numeric: New file.
7641         * modules/unictype/mirror: New file.
7642         * modules/unictype/property-white-space: New file.
7643         * modules/unictype/property-alphabetic: New file.
7644         * modules/unictype/property-other-alphabetic: New file.
7645         * modules/unictype/property-not-a-character: New file.
7646         * modules/unictype/property-default-ignorable-code-point: New file.
7647         * modules/unictype/property-other-default-ignorable-code-point: New
7648         file.
7649         * modules/unictype/property-deprecated: New file.
7650         * modules/unictype/property-logical-order-exception: New file.
7651         * modules/unictype/property-variation-selector: New file.
7652         * modules/unictype/property-private-use: New file.
7653         * modules/unictype/property-unassigned-code-value: New file.
7654         * modules/unictype/property-uppercase: New file.
7655         * modules/unictype/property-other-uppercase: New file.
7656         * modules/unictype/property-lowercase: New file.
7657         * modules/unictype/property-other-lowercase: New file.
7658         * modules/unictype/property-titlecase: New file.
7659         * modules/unictype/property-soft-dotted: New file.
7660         * modules/unictype/property-id-start: New file.
7661         * modules/unictype/property-other-id-start: New file.
7662         * modules/unictype/property-id-continue: New file.
7663         * modules/unictype/property-other-id-continue: New file.
7664         * modules/unictype/property-xid-start: New file.
7665         * modules/unictype/property-xid-continue: New file.
7666         * modules/unictype/property-pattern-white-space: New file.
7667         * modules/unictype/property-pattern-syntax: New file.
7668         * modules/unictype/property-join-control: New file.
7669         * modules/unictype/property-grapheme-base: New file.
7670         * modules/unictype/property-grapheme-extend: New file.
7671         * modules/unictype/property-other-grapheme-extend: New file.
7672         * modules/unictype/property-grapheme-link: New file.
7673         * modules/unictype/property-bidi-control: New file.
7674         * modules/unictype/property-bidi-left-to-right: New file.
7675         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7676         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7677         * modules/unictype/property-bidi-european-digit: New file.
7678         * modules/unictype/property-bidi-eur-num-separator: New file.
7679         * modules/unictype/property-bidi-eur-num-terminator: New file.
7680         * modules/unictype/property-bidi-arabic-digit: New file.
7681         * modules/unictype/property-bidi-common-separator: New file.
7682         * modules/unictype/property-bidi-block-separator: New file.
7683         * modules/unictype/property-bidi-segment-separator: New file.
7684         * modules/unictype/property-bidi-whitespace: New file.
7685         * modules/unictype/property-bidi-non-spacing-mark: New file.
7686         * modules/unictype/property-bidi-boundary-neutral: New file.
7687         * modules/unictype/property-bidi-pdf: New file.
7688         * modules/unictype/property-bidi-embedding-or-override: New file.
7689         * modules/unictype/property-bidi-other-neutral: New file.
7690         * modules/unictype/property-hex-digit: New file.
7691         * modules/unictype/property-ascii-hex-digit: New file.
7692         * modules/unictype/property-ideographic: New file.
7693         * modules/unictype/property-unified-ideograph: New file.
7694         * modules/unictype/property-radical: New file.
7695         * modules/unictype/property-ids-binary-operator: New file.
7696         * modules/unictype/property-ids-trinary-operator: New file.
7697         * modules/unictype/property-zero-width: New file.
7698         * modules/unictype/property-space: New file.
7699         * modules/unictype/property-non-break: New file.
7700         * modules/unictype/property-iso-control: New file.
7701         * modules/unictype/property-format-control: New file.
7702         * modules/unictype/property-dash: New file.
7703         * modules/unictype/property-hyphen: New file.
7704         * modules/unictype/property-punctuation: New file.
7705         * modules/unictype/property-line-separator: New file.
7706         * modules/unictype/property-paragraph-separator: New file.
7707         * modules/unictype/property-quotation-mark: New file.
7708         * modules/unictype/property-sentence-terminal: New file.
7709         * modules/unictype/property-terminal-punctuation: New file.
7710         * modules/unictype/property-currency-symbol: New file.
7711         * modules/unictype/property-math: New file.
7712         * modules/unictype/property-other-math: New file.
7713         * modules/unictype/property-paired-punctuation: New file.
7714         * modules/unictype/property-left-of-pair: New file.
7715         * modules/unictype/property-combining: New file.
7716         * modules/unictype/property-composite: New file.
7717         * modules/unictype/property-decimal-digit: New file.
7718         * modules/unictype/property-numeric: New file.
7719         * modules/unictype/property-diacritic: New file.
7720         * modules/unictype/property-extender: New file.
7721         * modules/unictype/property-ignorable-control: New file.
7722         * modules/unictype/property-test: New file.
7723         * modules/unictype/property-byname: New file.
7724         * modules/unictype/property-all: New file.
7725         * modules/unictype/scripts: New file.
7726         * modules/unictype/scripts-all: New file.
7727         * modules/unictype/block-of: New file.
7728         * modules/unictype/block-test: New file.
7729         * modules/unictype/block-list: New file.
7730         * modules/unictype/block-all: New file.
7731         * modules/unictype/syntax-c-whitespace: New file.
7732         * modules/unictype/syntax-java-whitespace: New file.
7733         * modules/unictype/syntax-c-ident: New file.
7734         * modules/unictype/syntax-java-ident: New file.
7735         * modules/unictype/ctype-alnum: New file.
7736         * modules/unictype/ctype-alpha: New file.
7737         * modules/unictype/ctype-cntrl: New file.
7738         * modules/unictype/ctype-digit: New file.
7739         * modules/unictype/ctype-graph: New file.
7740         * modules/unictype/ctype-lower: New file.
7741         * modules/unictype/ctype-print: New file.
7742         * modules/unictype/ctype-punct: New file.
7743         * modules/unictype/ctype-space: New file.
7744         * modules/unictype/ctype-upper: New file.
7745         * modules/unictype/ctype-xdigit: New file.
7746         * modules/unictype/ctype-blank: New file.
7747         * lib/unictype/bidi_byname.c: New file.
7748         * lib/unictype/bidi_name.c: New file.
7749         * lib/unictype/bidi_of.c: New file.
7750         * lib/unictype/bidi_test.c: New file.
7751         * lib/unictype/bitmap.h: New file.
7752         * lib/unictype/block_test.c: New file.
7753         * lib/unictype/blocks.c: New file.
7754         * lib/unictype/categ_C.c: New file.
7755         * lib/unictype/categ_Cc.c: New file.
7756         * lib/unictype/categ_Cf.c: New file.
7757         * lib/unictype/categ_Cn.c: New file.
7758         * lib/unictype/categ_Co.c: New file.
7759         * lib/unictype/categ_Cs.c: New file.
7760         * lib/unictype/categ_L.c: New file.
7761         * lib/unictype/categ_Ll.c: New file.
7762         * lib/unictype/categ_Lm.c: New file.
7763         * lib/unictype/categ_Lo.c: New file.
7764         * lib/unictype/categ_Lt.c: New file.
7765         * lib/unictype/categ_Lu.c: New file.
7766         * lib/unictype/categ_M.c: New file.
7767         * lib/unictype/categ_Mc.c: New file.
7768         * lib/unictype/categ_Me.c: New file.
7769         * lib/unictype/categ_Mn.c: New file.
7770         * lib/unictype/categ_N.c: New file.
7771         * lib/unictype/categ_Nd.c: New file.
7772         * lib/unictype/categ_Nl.c: New file.
7773         * lib/unictype/categ_No.c: New file.
7774         * lib/unictype/categ_P.c: New file.
7775         * lib/unictype/categ_Pc.c: New file.
7776         * lib/unictype/categ_Pd.c: New file.
7777         * lib/unictype/categ_Pe.c: New file.
7778         * lib/unictype/categ_Pf.c: New file.
7779         * lib/unictype/categ_Pi.c: New file.
7780         * lib/unictype/categ_Po.c: New file.
7781         * lib/unictype/categ_Ps.c: New file.
7782         * lib/unictype/categ_S.c: New file.
7783         * lib/unictype/categ_Sc.c: New file.
7784         * lib/unictype/categ_Sk.c: New file.
7785         * lib/unictype/categ_Sm.c: New file.
7786         * lib/unictype/categ_So.c: New file.
7787         * lib/unictype/categ_Z.c: New file.
7788         * lib/unictype/categ_Zl.c: New file.
7789         * lib/unictype/categ_Zp.c: New file.
7790         * lib/unictype/categ_Zs.c: New file.
7791         * lib/unictype/categ_and.c: New file.
7792         * lib/unictype/categ_and_not.c: New file.
7793         * lib/unictype/categ_byname.c: New file.
7794         * lib/unictype/categ_name.c: New file.
7795         * lib/unictype/categ_none.c: New file.
7796         * lib/unictype/categ_of.c: New file.
7797         * lib/unictype/categ_or.c: New file.
7798         * lib/unictype/categ_test.c: New file.
7799         * lib/unictype/combining.c: New file.
7800         * lib/unictype/ctype_alnum.c: New file.
7801         * lib/unictype/ctype_alpha.c: New file.
7802         * lib/unictype/ctype_blank.c: New file.
7803         * lib/unictype/ctype_cntrl.c: New file.
7804         * lib/unictype/ctype_digit.c: New file.
7805         * lib/unictype/ctype_graph.c: New file.
7806         * lib/unictype/ctype_lower.c: New file.
7807         * lib/unictype/ctype_print.c: New file.
7808         * lib/unictype/ctype_punct.c: New file.
7809         * lib/unictype/ctype_space.c: New file.
7810         * lib/unictype/ctype_upper.c: New file.
7811         * lib/unictype/ctype_xdigit.c: New file.
7812         * lib/unictype/decdigit.c: New file.
7813         * lib/unictype/digit.c: New file.
7814         * lib/unictype/identsyntaxmap.h: New file.
7815         * lib/unictype/mirror.c: New file.
7816         * lib/unictype/numeric.c: New file.
7817         * lib/unictype/pr_alphabetic.c: New file.
7818         * lib/unictype/pr_ascii_hex_digit.c: New file.
7819         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7820         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7821         * lib/unictype/pr_bidi_block_separator.c: New file.
7822         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7823         * lib/unictype/pr_bidi_common_separator.c: New file.
7824         * lib/unictype/pr_bidi_control.c: New file.
7825         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7826         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7827         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7828         * lib/unictype/pr_bidi_european_digit.c: New file.
7829         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7830         * lib/unictype/pr_bidi_left_to_right.c: New file.
7831         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7832         * lib/unictype/pr_bidi_other_neutral.c: New file.
7833         * lib/unictype/pr_bidi_pdf.c: New file.
7834         * lib/unictype/pr_bidi_segment_separator.c: New file.
7835         * lib/unictype/pr_bidi_whitespace.c: New file.
7836         * lib/unictype/pr_byname.c: New file.
7837         * lib/unictype/pr_byname.gperf: New file.
7838         * lib/unictype/pr_combining.c: New file.
7839         * lib/unictype/pr_composite.c: New file.
7840         * lib/unictype/pr_currency_symbol.c: New file.
7841         * lib/unictype/pr_dash.c: New file.
7842         * lib/unictype/pr_decimal_digit.c: New file.
7843         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7844         * lib/unictype/pr_deprecated.c: New file.
7845         * lib/unictype/pr_diacritic.c: New file.
7846         * lib/unictype/pr_extender.c: New file.
7847         * lib/unictype/pr_format_control.c: New file.
7848         * lib/unictype/pr_grapheme_base.c: New file.
7849         * lib/unictype/pr_grapheme_extend.c: New file.
7850         * lib/unictype/pr_grapheme_link.c: New file.
7851         * lib/unictype/pr_hex_digit.c: New file.
7852         * lib/unictype/pr_hyphen.c: New file.
7853         * lib/unictype/pr_id_continue.c: New file.
7854         * lib/unictype/pr_id_start.c: New file.
7855         * lib/unictype/pr_ideographic.c: New file.
7856         * lib/unictype/pr_ids_binary_operator.c: New file.
7857         * lib/unictype/pr_ids_trinary_operator.c: New file.
7858         * lib/unictype/pr_ignorable_control.c: New file.
7859         * lib/unictype/pr_iso_control.c: New file.
7860         * lib/unictype/pr_join_control.c: New file.
7861         * lib/unictype/pr_left_of_pair.c: New file.
7862         * lib/unictype/pr_line_separator.c: New file.
7863         * lib/unictype/pr_logical_order_exception.c: New file.
7864         * lib/unictype/pr_lowercase.c: New file.
7865         * lib/unictype/pr_math.c: New file.
7866         * lib/unictype/pr_non_break.c: New file.
7867         * lib/unictype/pr_not_a_character.c: New file.
7868         * lib/unictype/pr_numeric.c: New file.
7869         * lib/unictype/pr_other_alphabetic.c: New file.
7870         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7871         * lib/unictype/pr_other_grapheme_extend.c: New file.
7872         * lib/unictype/pr_other_id_continue.c: New file.
7873         * lib/unictype/pr_other_id_start.c: New file.
7874         * lib/unictype/pr_other_lowercase.c: New file.
7875         * lib/unictype/pr_other_math.c: New file.
7876         * lib/unictype/pr_other_uppercase.c: New file.
7877         * lib/unictype/pr_paired_punctuation.c: New file.
7878         * lib/unictype/pr_paragraph_separator.c: New file.
7879         * lib/unictype/pr_pattern_syntax.c: New file.
7880         * lib/unictype/pr_pattern_white_space.c: New file.
7881         * lib/unictype/pr_private_use.c: New file.
7882         * lib/unictype/pr_punctuation.c: New file.
7883         * lib/unictype/pr_quotation_mark.c: New file.
7884         * lib/unictype/pr_radical.c: New file.
7885         * lib/unictype/pr_sentence_terminal.c: New file.
7886         * lib/unictype/pr_soft_dotted.c: New file.
7887         * lib/unictype/pr_space.c: New file.
7888         * lib/unictype/pr_terminal_punctuation.c: New file.
7889         * lib/unictype/pr_test.c: New file.
7890         * lib/unictype/pr_titlecase.c: New file.
7891         * lib/unictype/pr_unassigned_code_value.c: New file.
7892         * lib/unictype/pr_unified_ideograph.c: New file.
7893         * lib/unictype/pr_uppercase.c: New file.
7894         * lib/unictype/pr_variation_selector.c: New file.
7895         * lib/unictype/pr_white_space.c: New file.
7896         * lib/unictype/pr_xid_continue.c: New file.
7897         * lib/unictype/pr_xid_start.c: New file.
7898         * lib/unictype/pr_zero_width.c: New file.
7899         * lib/unictype/scripts.c: New file.
7900         * lib/unictype/sy_c_ident.c: New file.
7901         * lib/unictype/sy_c_whitespace.c: New file.
7902         * lib/unictype/sy_java_ident.c: New file.
7903         * lib/unictype/sy_java_whitespace.c: New file.
7904
7905         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7906         Unicode 5.0.0.
7907         * lib/unictype/blocks.h: Likewise.
7908         * lib/unictype/categ_C.h: Likewise.
7909         * lib/unictype/categ_Cc.h: Likewise.
7910         * lib/unictype/categ_Cf.h: Likewise.
7911         * lib/unictype/categ_Cn.h: Likewise.
7912         * lib/unictype/categ_Co.h: Likewise.
7913         * lib/unictype/categ_Cs.h: Likewise.
7914         * lib/unictype/categ_L.h: Likewise.
7915         * lib/unictype/categ_Ll.h: Likewise.
7916         * lib/unictype/categ_Lm.h: Likewise.
7917         * lib/unictype/categ_Lo.h: Likewise.
7918         * lib/unictype/categ_Lt.h: Likewise.
7919         * lib/unictype/categ_Lu.h: Likewise.
7920         * lib/unictype/categ_M.h: Likewise.
7921         * lib/unictype/categ_Mc.h: Likewise.
7922         * lib/unictype/categ_Me.h: Likewise.
7923         * lib/unictype/categ_Mn.h: Likewise.
7924         * lib/unictype/categ_N.h: Likewise.
7925         * lib/unictype/categ_Nd.h: Likewise.
7926         * lib/unictype/categ_Nl.h: Likewise.
7927         * lib/unictype/categ_No.h: Likewise.
7928         * lib/unictype/categ_P.h: Likewise.
7929         * lib/unictype/categ_Pc.h: Likewise.
7930         * lib/unictype/categ_Pd.h: Likewise.
7931         * lib/unictype/categ_Pe.h: Likewise.
7932         * lib/unictype/categ_Pf.h: Likewise.
7933         * lib/unictype/categ_Pi.h: Likewise.
7934         * lib/unictype/categ_Po.h: Likewise.
7935         * lib/unictype/categ_Ps.h: Likewise.
7936         * lib/unictype/categ_S.h: Likewise.
7937         * lib/unictype/categ_Sc.h: Likewise.
7938         * lib/unictype/categ_Sk.h: Likewise.
7939         * lib/unictype/categ_Sm.h: Likewise.
7940         * lib/unictype/categ_So.h: Likewise.
7941         * lib/unictype/categ_Z.h: Likewise.
7942         * lib/unictype/categ_Zl.h: Likewise.
7943         * lib/unictype/categ_Zp.h: Likewise.
7944         * lib/unictype/categ_Zs.h: Likewise.
7945         * lib/unictype/categ_of.h: Likewise.
7946         * lib/unictype/combining.h: Likewise.
7947         * lib/unictype/ctype_alnum.h: Likewise.
7948         * lib/unictype/ctype_alpha.h: Likewise.
7949         * lib/unictype/ctype_blank.h: Likewise.
7950         * lib/unictype/ctype_cntrl.h: Likewise.
7951         * lib/unictype/ctype_digit.h: Likewise.
7952         * lib/unictype/ctype_graph.h: Likewise.
7953         * lib/unictype/ctype_lower.h: Likewise.
7954         * lib/unictype/ctype_print.h: Likewise.
7955         * lib/unictype/ctype_punct.h: Likewise.
7956         * lib/unictype/ctype_space.h: Likewise.
7957         * lib/unictype/ctype_upper.h: Likewise.
7958         * lib/unictype/ctype_xdigit.h: Likewise.
7959         * lib/unictype/decdigit.h: Likewise.
7960         * lib/unictype/digit.h: Likewise.
7961         * lib/unictype/mirror.h: Likewise.
7962         * lib/unictype/numeric.h: Likewise.
7963         * lib/unictype/pr_alphabetic.h: Likewise.
7964         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7965         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7966         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7967         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7968         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7969         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7970         * lib/unictype/pr_bidi_control.h: Likewise.
7971         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7972         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7973         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7974         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7975         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7976         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7977         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7978         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7979         * lib/unictype/pr_bidi_pdf.h: Likewise.
7980         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7981         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7982         * lib/unictype/pr_combining.h: Likewise.
7983         * lib/unictype/pr_composite.h: Likewise.
7984         * lib/unictype/pr_currency_symbol.h: Likewise.
7985         * lib/unictype/pr_dash.h: Likewise.
7986         * lib/unictype/pr_decimal_digit.h: Likewise.
7987         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7988         * lib/unictype/pr_deprecated.h: Likewise.
7989         * lib/unictype/pr_diacritic.h: Likewise.
7990         * lib/unictype/pr_extender.h: Likewise.
7991         * lib/unictype/pr_format_control.h: Likewise.
7992         * lib/unictype/pr_grapheme_base.h: Likewise.
7993         * lib/unictype/pr_grapheme_extend.h: Likewise.
7994         * lib/unictype/pr_grapheme_link.h: Likewise.
7995         * lib/unictype/pr_hex_digit.h: Likewise.
7996         * lib/unictype/pr_hyphen.h: Likewise.
7997         * lib/unictype/pr_id_continue.h: Likewise.
7998         * lib/unictype/pr_id_start.h: Likewise.
7999         * lib/unictype/pr_ideographic.h: Likewise.
8000         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8001         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8002         * lib/unictype/pr_ignorable_control.h: Likewise.
8003         * lib/unictype/pr_iso_control.h: Likewise.
8004         * lib/unictype/pr_join_control.h: Likewise.
8005         * lib/unictype/pr_left_of_pair.h: Likewise.
8006         * lib/unictype/pr_line_separator.h: Likewise.
8007         * lib/unictype/pr_logical_order_exception.h: Likewise.
8008         * lib/unictype/pr_lowercase.h: Likewise.
8009         * lib/unictype/pr_math.h: Likewise.
8010         * lib/unictype/pr_non_break.h: Likewise.
8011         * lib/unictype/pr_not_a_character.h: Likewise.
8012         * lib/unictype/pr_numeric.h: Likewise.
8013         * lib/unictype/pr_other_alphabetic.h: Likewise.
8014         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8015         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8016         * lib/unictype/pr_other_id_continue.h: Likewise.
8017         * lib/unictype/pr_other_id_start.h: Likewise.
8018         * lib/unictype/pr_other_lowercase.h: Likewise.
8019         * lib/unictype/pr_other_math.h: Likewise.
8020         * lib/unictype/pr_other_uppercase.h: Likewise.
8021         * lib/unictype/pr_paired_punctuation.h: Likewise.
8022         * lib/unictype/pr_paragraph_separator.h: Likewise.
8023         * lib/unictype/pr_pattern_syntax.h: Likewise.
8024         * lib/unictype/pr_pattern_white_space.h: Likewise.
8025         * lib/unictype/pr_private_use.h: Likewise.
8026         * lib/unictype/pr_punctuation.h: Likewise.
8027         * lib/unictype/pr_quotation_mark.h: Likewise.
8028         * lib/unictype/pr_radical.h: Likewise.
8029         * lib/unictype/pr_sentence_terminal.h: Likewise.
8030         * lib/unictype/pr_soft_dotted.h: Likewise.
8031         * lib/unictype/pr_space.h: Likewise.
8032         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8033         * lib/unictype/pr_titlecase.h: Likewise.
8034         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8035         * lib/unictype/pr_unified_ideograph.h: Likewise.
8036         * lib/unictype/pr_uppercase.h: Likewise.
8037         * lib/unictype/pr_variation_selector.h: Likewise.
8038         * lib/unictype/pr_white_space.h: Likewise.
8039         * lib/unictype/pr_xid_continue.h: Likewise.
8040         * lib/unictype/pr_xid_start.h: Likewise.
8041         * lib/unictype/pr_zero_width.h: Likewise.
8042         * lib/unictype/scripts.h: Likewise.
8043         * lib/unictype/scripts_byname.gperf: Likewise.
8044         * lib/unictype/sy_c_ident.h: Likewise.
8045         * lib/unictype/sy_c_whitespace.h: Likewise.
8046         * lib/unictype/sy_java_ident.h: Likewise.
8047         * lib/unictype/sy_java_whitespace.h: Likewise.
8048
8049         * lib/unictype/Makefile: New file.
8050         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
8051         glibc.
8052         * lib/unictype/3level.h: New file, copied from glibc.
8053         * lib/unictype/3levelbit.h: New file.
8054
8055 2007-11-11  Bruno Haible  <bruno@clisp.org>
8056
8057         * modules/gperf: New file.
8058         * modules/iconv_open (Depends-on): Add it.
8059         (Makefile.am): Remove the GPERF definition.
8060
8061 2007-11-11  Bruno Haible  <bruno@clisp.org>
8062
8063         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
8064         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
8065
8066 2007-11-11  Bruno Haible  <bruno@clisp.org>
8067
8068         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
8069         (usage): Remove function.
8070
8071 2007-11-11  Bruno Haible  <bruno@clisp.org>
8072
8073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
8074         gl_FUNC_CEILF_LIBS.
8075         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
8076         gl_FUNC_CEIL_LIBS.
8077         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
8078         gl_FUNC_CEILL_LIBS.
8079         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
8080         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
8081         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
8082
8083 2007-11-11  Bruno Haible  <bruno@clisp.org>
8084
8085         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
8086         roundf were declared but do not exist on functions.
8087         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
8088         roundl were declared but do not exist on functions.
8089         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
8090         HAVE_FLOORL_AND_CEILL, respectively.
8091         Needed for Sun C on Solaris 10.
8092
8093 2007-11-11  Bruno Haible  <bruno@clisp.org>
8094
8095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
8096         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
8097         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
8098         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
8099         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
8100         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
8101         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
8102         HAVE_DECL_ROUNDF.
8103         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
8104         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
8105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
8106         of HAVE_DECL_ROUND*.
8107         * modules/math (Makefile.am): Update.
8108
8109 2007-11-10  Bruno Haible  <bruno@clisp.org>
8110
8111         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
8112         ptrdiff_t as m4/intl.m4.
8113
8114 2007-11-10  Jim Meyering  <meyering@redhat.com>
8115
8116         Avoid link failure for the argmatch test.
8117         * tests/test-argmatch.c (usage): Define function to avoid a link
8118         failure: argmatch_die requires a usage function.
8119
8120 2007-11-09  Bruno Haible  <bruno@clisp.org>
8121
8122         * doc/functions/snprintf.texi: Mention BeOS deficiency.
8123         * doc/functions/vsnprintf.texi: Likewise.
8124         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
8125         with a size argument < 2.
8126
8127 2007-11-09  Bruno Haible  <bruno@clisp.org>
8128
8129         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
8130         buffer. Fixes an inefficiency introduced on 2007-11-03.
8131
8132 2007-11-09  Bruno Haible  <bruno@clisp.org>
8133
8134         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
8135         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
8136
8137 2007-11-08  Jim Meyering  <meyering@redhat.com>
8138
8139         Change cache variable name prefix "jm_" to "gl_" everywhere.
8140         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
8141         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
8142         * m4/uptime.m4: s/gl_/jm_/
8143
8144 2007-11-07  Bruno Haible  <bruno@clisp.org>
8145
8146         Update to GNU gettext 0.17.
8147         * m4/intl.m4: Update to GNU gettext 0.17.
8148         * m4/po.m4: Likewise.
8149         * modules/gettext (Files): Remove m4/ulonglong.m4.
8150         (configure.ac): Require gettext infrastructure from version 0.17.
8151
8152 2007-11-06  Bruno Haible  <bruno@clisp.org>
8153
8154         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
8155         symbolic values are not defined in a public header.
8156         * lib/freadable.c (freadable) [QNX]: Likewise.
8157         * lib/freadahead.c (freadahead) [QNX]: Likewise.
8158         * lib/freading.c (freading) [QNX]: Likewise.
8159         * lib/fseterr.c (fseterr) [QNX]: Likewise.
8160         * lib/fwritable.c (fwritable) [QNX]: Likewise.
8161         * lib/fwriting.c (fwriting) [QNX]: Likewise.
8162         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
8163         Reported by Alain Magloire.
8164
8165         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
8166
8167 2007-11-05  Bruno Haible  <bruno@clisp.org>
8168
8169         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
8170         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
8171         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
8172         Reported by Eric Blake.
8173
8174 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8175             Bruno Haible  <bruno@clisp.org>
8176
8177         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
8178         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
8179         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
8180         (malloc): Undefine also before including <stdlib.h>.
8181         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
8182         Needed on OSF/1 4.0.
8183
8184 2007-11-05  Jim Meyering  <meyering@redhat.com>
8185
8186         git-version-gen: sync from coreutils.
8187         * build-aux/git-version-gen: Add comments.
8188         Change the first '-' to '.' in the snapshot version string,
8189         e.g., 6.9-377-08144 -> 6.9.377-08144
8190         Remove first parameter.
8191         Don't declare a version "-dirty" merely because a time
8192         stamp has changed.
8193
8194 2007-11-04  Bruno Haible  <bruno@clisp.org>
8195
8196         * lib/lock.h: Protect all macro definitions containing an 'if'
8197         statement through a "do { ... } while (0)".
8198         * lib/tls.h: Likewise.
8199
8200 2007-11-04  Bruno Haible  <bruno@clisp.org>
8201
8202         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
8203
8204 2007-11-04  Bruno Haible  <bruno@clisp.org>
8205
8206         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
8207         * modules/fprintf-posix (Depends-on): Add nocrash.
8208         * modules/snprintf-posix (Depends-on): Likewise.
8209         * modules/sprintf-posix (Depends-on): Likewise.
8210         * modules/vasnprintf-posix (Depends-on): Likewise.
8211         * modules/vasprintf-posix (Depends-on): Likewise.
8212         * modules/vfprintf-posix (Depends-on): Likewise.
8213         * modules/vsnprintf-posix (Depends-on): Likewise.
8214         * modules/vsprintf-posix (Depends-on): Likewise.
8215         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8216         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8217         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8218         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8219         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8220         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8221         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8222
8223 2007-11-04  Bruno Haible  <bruno@clisp.org>
8224
8225         * modules/nocrash: New file.
8226         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
8227         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
8228
8229 2007-11-04  Bruno Haible  <bruno@clisp.org>
8230
8231         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
8232         precision handling.
8233         * tests/test-vasprintf-posix.c (test_function): Likewise.
8234         * tests/test-snprintf-posix.h (test_function): Likewise.
8235         * tests/test-sprintf-posix.h (test_function): Likewise.
8236
8237         Fix *printf behaviour for large precisions on mingw and BeOS.
8238         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
8239         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
8240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
8241         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8243         gl_PRINTF_PRECISION and test its result. Invoke
8244         gl_PREREQ_VASNPRINTF_PRECISION.
8245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8246         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8252         * doc/functions/fprintf.texi: Update.
8253         * doc/functions/printf.texi: Update.
8254         * doc/functions/snprintf.texi: Update.
8255         * doc/functions/sprintf.texi: Update.
8256         * doc/functions/vfprintf.texi: Update.
8257         * doc/functions/vprintf.texi: Update.
8258         * doc/functions/vsnprintf.texi: Update.
8259         * doc/functions/vsprintf.texi: Update.
8260
8261 2007-11-04  Bruno Haible  <bruno@clisp.org>
8262
8263         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
8264
8265 2007-11-04  Bruno Haible  <bruno@clisp.org>
8266
8267         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
8268         Reported by Sylvain Beucler <beuc@gnu.org>.
8269
8270 2007-11-03  Bruno Haible  <bruno@clisp.org>
8271
8272         * tests/test-fprintf-posix2.sh: New file.
8273         * tests/test-fprintf-posix2.c: New file.
8274         * modules/fprintf-posix-tests (Files): Add them.
8275         (TESTS): Add test-fprintf-posix2.sh.
8276         (configure.ac): Check for getrlimit and setrlimit.
8277         (check_PROGRAMS): Add test-fprintf-posix2.
8278
8279         * tests/test-printf-posix2.sh: New file.
8280         * tests/test-printf-posix2.c: New file.
8281         * modules/printf-posix-tests (Files): Add them.
8282         (TESTS): Add test-printf-posix2.sh.
8283         (configure.ac): Check for getrlimit and setrlimit.
8284         (check_PROGRAMS): Add test-printf-posix2.
8285
8286         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
8287         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
8288         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
8289         (decode_double): New function, copied from decode_long_double.
8290         (scale10_round_decimal_decoded): New function, extracted from
8291         scale10_round_decimal_long_double.
8292         (scale10_round_decimal_long_double): Use it.
8293         (scale10_round_decimal_double): New function.
8294         (floorlog10): New function.
8295         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
8296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
8297         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8299         gl_PRINTF_ENOMEM and test its result. Invoke
8300         gl_PREREQ_VASNPRINTF_ENOMEM.
8301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8305         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8308         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
8309         * modules/snprintf-posix (Depends-on): Likewise.
8310         * modules/sprintf-posix (Depends-on): Likewise.
8311         * modules/vasnprintf-posix (Depends-on): Likewise.
8312         * modules/vasprintf-posix (Depends-on): Likewise.
8313         * modules/vfprintf-posix (Depends-on): Likewise.
8314         * modules/vsnprintf-posix (Depends-on): Likewise.
8315         * modules/vsprintf-posix (Depends-on): Likewise.
8316         * doc/functions/fprintf.texi: Update.
8317         * doc/functions/printf.texi: Update.
8318         * doc/functions/snprintf.texi: Update.
8319         * doc/functions/sprintf.texi: Update.
8320         * doc/functions/vfprintf.texi: Update.
8321         * doc/functions/vprintf.texi: Update.
8322         * doc/functions/vsnprintf.texi: Update.
8323         * doc/functions/vsprintf.texi: Update.
8324
8325 2007-11-03  Bruno Haible  <bruno@clisp.org>
8326
8327         * modules/frexp-nolibm-tests: New file.
8328
8329         * modules/frexp-nolibm: New file.
8330         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8331
8332 2007-11-03  Bruno Haible  <bruno@clisp.org>
8333
8334         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8335         value is C99 compliant.
8336         Needed for OSF/1 5.1.
8337
8338 2007-11-03  Bruno Haible  <bruno@clisp.org>
8339
8340         Fix out-of-memory handling of vasnprintf.
8341         * lib/printf-parse.c: Include <errno.h>.
8342         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8343         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8344         is already set.
8345
8346 2007-11-02  Eric Blake  <ebb9@byu.net>
8347
8348         Fix tests on cygwin.
8349         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
8350
8351 2007-11-01  Bruno Haible  <bruno@clisp.org>
8352
8353         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
8354         warning.
8355         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
8356         needed for POSIX compatibility.
8357
8358 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8359
8360         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
8361         for compatibility with GNU.
8362
8363 2007-11-01  Bruno Haible  <bruno@clisp.org>
8364
8365         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
8366         (putenv): Renamed from rpl_putenv. Change argument type from
8367         'const char *' to 'char *'.
8368         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
8369         of defining putenv in config.h, just set REPLACE_PUTENV.
8370         * modules/putenv (Depends-on): Add stdlib.
8371         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8372         (Include): Use <stdlib.h>.
8373         * lib/stdlib.in.h (putenv): New declaration.
8374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
8375         REPLACE_PUTENV.
8376         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
8377         REPLACE_PUTENV.
8378         Needed for MacOS X 10.5.0.
8379         Reported by Peter O'Gorman <peter@pogma.com>.
8380
8381 2007-11-01  Jim Meyering  <meyering@redhat.com>
8382
8383         Treat an empty date string exactly like "0".
8384         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
8385         if the remaining date string (to be parsed) is empty, use "0".
8386         Reported by Mischa Molhoek and discussed in this thread:
8387         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
8388
8389 2007-10-31  Bruno Haible  <bruno@clisp.org>
8390
8391         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
8392         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
8393         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
8394         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
8395         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
8396         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
8397
8398 2007-10-31  Bruno Haible  <bruno@clisp.org>
8399
8400         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
8401         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
8402         (AC_TYPE_LONG_LONG_INT): Use it.
8403         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
8404         it as well.
8405         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
8406         to m4/longlong.m4.
8407         * modules/stdint (Files): Remove m4/ulonglong.m4.
8408         * modules/strtoull (Files): Use m4/longlong.m4 instead of
8409         m4/ulonglong.m4.
8410         * modules/strtoumax (Files): Likewise.
8411
8412 2007-10-30  Bruno Haible  <bruno@clisp.org>
8413
8414         * modules/xvasprintf-posix: New file.
8415         Suggested by Eric Blake.
8416
8417 2007-10-30  Bruno Haible  <bruno@clisp.org>
8418
8419         * modules/xprintf-posix-tests: New file.
8420         * tests/test-xprintf-posix.sh: New file.
8421         * tests/test-xprintf-posix.c: New file.
8422         * tests/test-xfprintf-posix.c: New file.
8423
8424         * modules/xprintf-posix: New file.
8425
8426 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8427
8428         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
8429         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
8430         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
8431
8432 2007-10-29  Bruno Haible  <bruno@clisp.org>
8433
8434         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
8435         contain the special marker '_cv_'.
8436         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8437         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8438         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8439         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8440         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8441         Reported by Ralf Wildenhues.
8442
8443 2007-10-29  Bruno Haible  <bruno@clisp.org>
8444
8445         * gnulib-tool (func_import): When --lgpl is not specified, set
8446         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
8447         GPLv3.
8448         Reported by Simon Josefsson.
8449
8450 2007-10-28  Bruno Haible  <bruno@clisp.org>
8451
8452         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
8453         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
8454         HAVE_DECL_ISFINITE.
8455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8456         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
8457         HAVE_DECL_ISFINITE.
8458
8459 2007-10-28  Bruno Haible  <bruno@clisp.org>
8460
8461         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
8462         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
8463
8464 2007-10-28  Bruno Haible  <bruno@clisp.org>
8465
8466         Fix link errors with Sun C 5.0 on Solaris 10.
8467         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
8468         function is declared but not present in the compiler's libm.
8469         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8470         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8471         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
8472         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
8473         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
8474         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
8475         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
8476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8477         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
8478         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
8479         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
8480         HAVE_DECL_FLOORL.
8481
8482 2007-10-28  Bruno Haible  <bruno@clisp.org>
8483
8484         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
8485         gl_FUNC_FLOORL. Cache the result.
8486         (gl_FUNC_FLOORL): Use it.
8487         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
8488         gl_FUNC_CEILL. Cache the result.
8489         (gl_FUNC_CEILL): Use it.
8490
8491         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
8492         gl_FUNC_FLOOR. Cache the result.
8493         (gl_FUNC_FLOOR): Use it.
8494         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
8495         gl_FUNC_CEIL. Cache the result.
8496         (gl_FUNC_CEIL): Use it.
8497
8498         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
8499         gl_FUNC_FLOORF. Cache the result.
8500         (gl_FUNC_FLOORF): Use it.
8501         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
8502         gl_FUNC_CEILF. Cache the result.
8503         (gl_FUNC_CEILF): Use it.
8504
8505 2007-10-28  Bruno Haible  <bruno@clisp.org>
8506
8507         * gnulib-tool: Allow specifying the LGPL version number through
8508         --lgpl=2 or --lgpl=3.
8509         (func_usage): Document --lgpl with argument.
8510         Handle --lgpl=... arguments.
8511         (func_import): Recognize also gl_LGPL calls with an argument. When
8512         --lgpl=2 is used and the module's license is just LGPL, report an
8513         error. Set sed_transform_lib_file according to the lgpl variable. In
8514         the generated files, use --lgpl or gl_LGPL invocations with argument,
8515         if necessary.
8516         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
8517         an LGPv2+ license.
8518         * doc/gnulib-tool.texi (Modified imports): Update explanation of
8519         gl_LGPL macro.
8520
8521 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8522             Bruno Haible  <bruno@clisp.org>
8523
8524         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
8525         (u16_uctomb_aux): Likewise.
8526         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
8527         !HAVE_INLINE.
8528         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
8529
8530 2007-10-28  Bruno Haible  <bruno@clisp.org>
8531
8532         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
8533         Invoke AM_GETTEXT_OPTION if it exists.
8534         * modules/vasprintf: Likewise.
8535         * modules/verror: Likewise.
8536         * modules/xprintf: Likewise.
8537         * modules/xvasprintf: Likewise.
8538
8539 2007-10-27  Ben Pfaff  <blp@gnu.org>
8540
8541         * lib/math.in.h: Define isfinite macro and prototypes for
8542         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
8543         implementations.
8544         * m4/math_h.m4: New substitutions for isfinite module.
8545         * lib/isfinite.c: New file.
8546         * m4/isfinite.m4: New file.
8547         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
8548         * modules/isfinite: New file.
8549         * modules/isfinite-tests: New file.
8550         * tests/tests-isfinite.c: New file.
8551         * doc/functions/isfinite.texi: Mention isfinite module.
8552         * MODULES.html.sh: Mention new module.
8553
8554 2007-10-27  Ben Pfaff  <blp@gnu.org>
8555
8556         Ralf Wildenhues reported that Tru64 4.0D declares the round
8557         functions but does not have definitions.
8558         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
8559         cannot be found in any library, set the output variable to
8560         "missing" instead of "".
8561         * m4/round.m4: Also use our substitute if we cannot find round in
8562         any library, even if it is declared.
8563         * m4/roundf.m4: Likewise for roundf.
8564         * m4/roundl.m4: Likewise for roundl.
8565         * lib/math.in.h: Undefine roundf, round, roundl before defining
8566         their replacements, to allow for hypothetical systems where these
8567         may be defined as macros but not available in libraries.
8568
8569 2007-10-27  Bruno Haible  <bruno@clisp.org>
8570
8571         * doc/gnulib.texi: Invoke @firstparagraphindent.
8572         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
8573         changes in gnulib.
8574         (Source changes): New section.
8575
8576 2007-10-26  Bruno Haible  <bruno@clisp.org>
8577
8578         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
8579         borrowed from autoconf.
8580
8581 2007-10-26  Bruno Haible  <bruno@clisp.org>
8582
8583         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
8584         strerror returned the empty string. Needed on HP-UX 11.00.
8585
8586 2007-10-24  Micah Cowan  <micah@cowan.name>
8587
8588         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
8589         * build-aux/bootstrap: Remove support for now-unnecessary option,
8590         --cvs-user, and envvars CVS_USER, CVS_RSH.
8591
8592 2007-10-24  Jim Meyering  <meyering@redhat.com>
8593
8594         Avoid diagnostics from sha1sum when there is no cached checksum.
8595         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8596         if the po.s1 file hasn't been created yet.
8597
8598         * build-aux/bootstrap: Sync from coreutils:
8599         2007-10-24  Jim Meyering  <meyering@redhat.com>
8600         Get gnulib from the git repository, not from an obsolete cvs one.
8601         * build-aux/bootstrap: Suggestion from Micah Cowan.
8602         2007-10-04  Jim Meyering  <jim@meyering.net>
8603         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8604         (update_po_files): Work also when there are no .po files in po/.
8605
8606 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8607
8608         * README: Append ".git" to git and cg examples.
8609         Problem reported by Benoit Sigoure.
8610
8611 2007-10-23  Micah Cowan  <micah@cowan.name>
8612
8613         * users.txt: Add wget.
8614
8615 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8616
8617         Fix linking of some unistdio tests on FreeBSD.
8618         * modules/unistdio/u16-vsnprintf-tests
8619         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8620         * modules/unistdio/u16-vsprintf-tests
8621         (test_u16_vsnprintf1_LDADD): Likewise.
8622         * modules/unistdio/u32-vsnprintf-tests
8623         (test_u32_vsnprintf1_LDADD): Likewise.
8624         * modules/unistdio/u32-vsprintf-tests
8625         (test_u32_vsprintf1_LDADD): Likewise.
8626         * modules/unistdio/u8-vsnprintf-tests
8627         (test_u8_vsnprintf1_LDADD): Likewise.
8628         * modules/unistdio/u8-vsprintf-tests
8629         (test_u8_vsprintf1_LDADD): Likewise.
8630         * modules/unistdio/ulc-vsnprintf-tests
8631         (test_ulc_vsnprintf1_LDADD): Likewise.
8632         * modules/unistdio/ulc-vsprintf-tests
8633         (test_ulc_vsprintf1_LDADD): Likewise.
8634
8635         Fix linking of some uniconv tests on FreeBSD.
8636         * modules/uniconv/u16-conv-from-enc-tests
8637         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8638         * modules/uniconv/u16-conv-to-enc-tests
8639         (test_u16_conv_to_enc_LDADD): Likewise.
8640         * modules/uniconv/u16-strconv-from-enc-tests
8641         (test_u16_strconv_from_enc_LDADD): Likewise.
8642         * modules/uniconv/u16-strconv-to-enc-tests
8643         (test_u16_strconv_to_enc_LDADD): Likewise.
8644         * modules/uniconv/u32-conv-from-enc-tests
8645         (test_u32_conv_from_enc_LDADD): Likewise.
8646         * modules/uniconv/u32-conv-to-enc-tests
8647         (test_u32_conv_to_enc_LDADD): Likewise.
8648         * modules/uniconv/u32-strconv-from-enc-tests
8649         (test_u32_strconv_from_enc_LDADD): Likewise.
8650         * modules/uniconv/u32-strconv-to-enc-tests
8651         (test_u32_strconv_to_enc_LDADD): Likewise.
8652         * modules/uniconv/u8-conv-from-enc-tests
8653         (test_u8_conv_from_enc_LDADD): Likewise.
8654         * modules/uniconv/u8-conv-to-enc-tests
8655         (test_u8_conv_to_enc_LDADD): Likewise.
8656         * modules/uniconv/u8-strconv-from-enc-tests
8657         (test_u8_strconv_from_enc_LDADD): Likewise.
8658         * modules/uniconv/u8-strconv-to-enc-tests
8659         (test_u8_strconv_to_enc_LDADD): Likewise.
8660
8661 2007-10-22  Bruno Haible  <bruno@clisp.org>
8662
8663         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8664         size.
8665
8666 2007-10-22  Eric Blake  <ebb9@byu.net>
8667
8668         Tweak x*printf documentation.
8669         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8670         variable name and comments.
8671         Suggested by Bruno Haible.
8672
8673 2007-10-22  Bruno Haible  <bruno@clisp.org>
8674
8675         * lib/acl.c (copy_acl): Fix file name in comment.
8676
8677 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8678
8679         Fix Tru64 problem with stdbool.h.
8680         * lib/stdbool.in.h (false, true):
8681         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8682         Don't declare as an enum in this situation; it runs afoul of Tru64.
8683         Problem reported by Steven M. Schweda in
8684         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8685
8686 2007-10-22  Eric Blake  <ebb9@byu.net>
8687
8688         Also wrap vf?printf.
8689         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8690         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8691         (xvprintf, xvfprintf): New functions.
8692
8693 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8694
8695         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8696         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8697
8698         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8699         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8700
8701 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8702
8703         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8704         by Bruno Haible.
8705
8706 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8707
8708         * lib/getloadavg.c
8709         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8710         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8711
8712         * tests/test-i-ring.c: Work for C89.
8713
8714 2007-10-22  Bruno Haible  <bruno@clisp.org>
8715
8716         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8717         -1u, in preprocessor expression, so that we don't test for the bug
8718         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8719         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8720
8721 2007-10-22  Eric Blake  <ebb9@byu.net>
8722
8723         * tests/test-yesno.sh: Silence stderr during test.
8724
8725 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8726
8727         * modules/crypto/gc-camellia: New file.
8728
8729         * m4/gc-camellia.m4: New file.
8730
8731         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8732
8733         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8734
8735 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8736
8737         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8738         --help to stdout.  Reported by sms@antinode.org (Steven
8739         M. Schweda).
8740
8741 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8742
8743         * users.txt: Fix link to libksba.
8744
8745 2007-10-21  Ben Pfaff  <blp@gnu.org>
8746
8747         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8748         round.c roundf implementation that depends on floorf and ceilf to
8749         be tested unconditionally.
8750
8751 2007-10-21  Ben Pfaff  <blp@gnu.org>
8752
8753         * m4/check-libm-func.m4: Removed.
8754         * m4/check-math-lib.m4: New file.
8755         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8756         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8757         definition and lack of AC_LIBOBJ([roundf]).
8758         * m4/roundl.m4: Ditto, and similarly for roundl.
8759         * modules/round: Reference new m4 file.
8760         * modules/roundf: Ditto.
8761         * modules/roundl: Ditto.
8762         * tests/test-round2.c (main): Use ROUND instead of round.
8763         Bug report from Bruno Haible.
8764
8765 2007-10-21  Bruno Haible  <bruno@clisp.org>
8766
8767         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8768         context.
8769
8770 2007-10-21  Bruno Haible  <bruno@clisp.org>
8771
8772         * tests/test-wcwidth.c (main): Allow negative result for some control
8773         characters.
8774
8775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8776         Needed on OSF/1 5.1.
8777
8778 2007-10-21  Bruno Haible  <bruno@clisp.org>
8779
8780         * tests/test-floorf1.c: Include isnanf.h.
8781         (main): Use isnanf() instead of isnan().
8782         * tests/test-ceilf1.c: Include isnanf.h.
8783         (main): Use isnanf() instead of isnan().
8784         * tests/test-truncf1.c: Include isnanf.h.
8785         (main): Use isnanf() instead of isnan().
8786         * tests/test-roundf1.c: Include isnanf.h.
8787         (main): Use isnanf() instead of isnan().
8788
8789 2007-10-21  Eric Blake  <ebb9@byu.net>
8790
8791         * users.txt: Update URL for m4.
8792
8793 2007-10-21  Bruno Haible  <bruno@clisp.org>
8794
8795         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8796
8797 2007-10-21  Bruno Haible  <bruno@clisp.org>
8798
8799         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8800         Git's management files if the CVS files are not present.
8801
8802 2007-10-20  Bruno Haible  <bruno@clisp.org>
8803
8804         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8805         gcc-3.4.x.
8806
8807 2007-10-20  Ben Pfaff  <blp@gnu.org>
8808
8809         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8810         implementations.
8811         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8812         * lib/round.c: New file.
8813         * lib/roundf.c: New file.
8814         * lib/roundl.c: New file.
8815         * m4/round.m4: New file.
8816         * m4/roundf.m4: New file.
8817         * m4/roundl.m4: New file.
8818         * m4/check-libm-func-m4: New file.
8819         * modules/math: Replace round, roundf, roundl related @VARS@ in
8820         math.in.h.
8821         * modules/round: New file.
8822         * modules/round-tests: New file.
8823         * modules/roundf: New file.
8824         * modules/roundf-tests: New file.
8825         * modules/roundl: New file.
8826         * modules/roundl-tests: New file.
8827         * tests/test-round1.c: New file.
8828         * tests/test-round2.c: New file.
8829         * tests/test-roundf1.c: New file.
8830         * tests/test-roundf2.c: New file.
8831         * tests/test-roundl.c: New file.
8832         * doc/functions/round.texi: Mention round module.
8833         * doc/functions/roundf.texi: Mention roundf module.
8834         * doc/functions/roundl.texi: Mention roundl module.
8835         * MODULES.html.sh: Mention new modules.
8836         Thanks to Bruno Haible for suggestions.
8837
8838 2007-10-20  Jim Meyering  <meyering@redhat.com>
8839
8840         * lib/xprintf.c: Include <config.h> unconditionally.
8841
8842         Change xprintf's license to GPL.
8843         * modules/xprintf (License): s/LGPL/GPL/, since this module
8844         depends on modules (exit and exitfail) which are GPL.
8845         Suggestion from Bruno Haible.
8846
8847         xprintf fixes.
8848         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8849         Use a clearer diagnostic.
8850         Patch from Bruno Haible.
8851
8852 2007-10-20  Bruno Haible  <bruno@clisp.org>
8853
8854         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8855         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8857
8858 2007-10-20  Bruno Haible  <bruno@clisp.org>
8859
8860         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8861         precision in the comparison result > x - 1 or similar.
8862         * tests/test-ceilf2.c (correct_result_p): Likewise.
8863         * tests/test-truncf2.c (correct_result_p): Likewise.
8864         * tests/test-trunc2.c (correct_result_p): Likewise.
8865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8866
8867 2007-10-20  Bruno Haible  <bruno@clisp.org>
8868
8869         * modules/ceil: New file.
8870         * m4/ceil.m4: New file.
8871         * doc/functions/ceil.texi: Mention the 'ceil' module.
8872
8873 2007-10-20  Bruno Haible  <bruno@clisp.org>
8874
8875         * modules/floor: New file.
8876         * m4/floor.m4: New file.
8877         * doc/functions/floor.texi: Mention the 'floor' module.
8878
8879 2007-10-20  Bruno Haible  <bruno@clisp.org>
8880
8881         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8882         of %a.
8883         * modules/floorf-tests (Depends-on): Likewise.
8884         * modules/truncf-tests (Depends-on): Likewise.
8885         * modules/trunc-tests (Depends-on): Likewise.
8886         Reported by Ben Pfaff.
8887
8888 2007-10-19  Jim Meyering  <meyering@redhat.com>
8889
8890         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8891         Don't bother testing specific errno values.  Just test ferror.
8892
8893         New module: xprintf
8894         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8895
8896 2007-10-19  Bruno Haible  <bruno@clisp.org>
8897
8898         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8899         syntax.
8900         * modules/javaexec (Makefile.am): Likewise.
8901         * modules/relocatable-prog (Makefile.am): Likewise.
8902         Suggested by Jim Meyering.
8903
8904 2007-10-18  Bruno Haible  <bruno@clisp.org>
8905
8906         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8907         Reported by Jim Meyering.
8908
8909 2007-10-18  Eric Blake  <ebb9@byu.net>
8910
8911         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8912
8913 2007-10-18  Bruno Haible  <bruno@clisp.org>
8914
8915         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8916         the format string into writable memory. Needed in Fortify conditions.
8917
8918 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8919             Bruno Haible  <bruno@clisp.org>
8920
8921         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8922         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8923         * modules/trim (Depends-on): Add mbchar.
8924         (configure.ac): Add gl_FUNC_MBRTOWC.
8925         (Makefile.am): Augment lib_SOURCES.
8926
8927 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8928
8929         Modify glob.c to use fstatat and dirfd, to simplify it.
8930         Suggested by Eric Blake.
8931         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8932         Don't include <stdbool.h>; not used.
8933         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8934         (link_exists_p): Simplify implementation, since we can now assume
8935         dirfd and fstatat.
8936         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8937
8938 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8939
8940         * gnulib-tool (func_get_dependencies): Fix sed script to
8941         match only tests.
8942
8943 2007-10-17  Bruno Haible  <bruno@clisp.org>
8944
8945         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8946         allow locale names without encoding suffix.
8947         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8948         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8949
8950 2007-10-16  Bruno Haible  <bruno@clisp.org>
8951
8952         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8953         * lib/getgroups.c (getgroups): Likewise.
8954         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8955
8956 2007-10-16  Bruno Haible  <bruno@clisp.org>
8957
8958         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8959         * modules/malloc-posix (License): Likewise.
8960         * modules/realloc-posix (License): Likewise.
8961         * modules/calloc-posix (License): Likewise.
8962         * modules/intprops (License): Change from GPL to LGPL, with
8963         Paul Eggert's approval.
8964
8965 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8966
8967         Merge glibc changes into lib/glob.c.
8968
8969         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8970         2007-10-15 04:59:03 UTC.  Here are the changes:
8971
8972         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8973
8974         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8975
8976         * lib/glob.c: Add some branch prediction throughout.
8977
8978         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8979
8980         [BZ #5103]
8981         * lib/glob.c (glob): Recognize patterns starting \/.
8982
8983         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8984
8985         [BZ #3996]
8986         * lib/glob.c (attribute_hidden): Define if not defined.
8987         (glob): Unescape dirname, filename or username when needed and not
8988         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8989         is NULL.  Handle unescaped [ in pattern without closing ].
8990         Don't pass GLOB_CHECK down to recursive glob for directories.
8991         (__glob_pattern_type): New function.
8992         (__glob_pattern_p): Implement using __glob_pattern_type.
8993         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8994         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8995         Remove unreachable code.
8996
8997         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8998
8999         * lib/glob.c (glob_in_dir): Add some comments and asserts to
9000         explain why there are no leaks.
9001
9002         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9003
9004         [BZ #3253]
9005         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9006         time, rather allocate increasingly bigger arrays of pointers, if
9007         possible with alloca, if too large with malloc.
9008
9009 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9010
9011         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
9012         Problem reported by H.Merijn Brand in
9013         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
9014         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
9015         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
9016
9017 2007-10-15  Bruno Haible  <bruno@clisp.org>
9018
9019         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
9020         with explicit rpl_ prefix.
9021         * lib/fopen.c (fopen): Likewise.
9022         * lib/freopen.c (freopen): Likewise.
9023         * lib/iconv.c (iconv): Likewise.
9024         * lib/iconv_close.c (iconv_close): Likewise.
9025
9026 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9027
9028         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
9029
9030 2007-10-15  Bruno Haible  <bruno@clisp.org>
9031
9032         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
9033         <stddef.h> instead of <stdlib.h> since we only need NULL.
9034         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9035
9036 2007-10-15  Bruno Haible  <bruno@clisp.org>
9037
9038         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
9039         Replace paragraph talking about LIBOBJS.
9040         Reported by Colin Watson <cjwatson@debian.org>.
9041
9042 2007-10-15  Bruno Haible  <bruno@clisp.org>
9043
9044         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
9045         <stdlib.h> before using NULL.
9046
9047 2007-10-15  Simon Josefsson  <simon@josefsson.org>
9048
9049         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
9050         Reported by Albert Chin <china@thewrittenword.com>.
9051
9052 2007-10-14  Bruno Haible  <bruno@clisp.org>
9053
9054         * modules/iconv_open-utf-tests: New file.
9055         * tests/test-iconv-utf.c: New file.
9056
9057         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
9058         * modules/iconv_open-utf: New file.
9059         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
9060         (iconv, iconv_close): New declarations.
9061         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
9062         be defined.
9063         (iconv_open): Add special handling of conversion between UTF-8 and
9064         UTF-{16,32}{BE,LE}.
9065         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
9066         * lib/iconv_close.c: New file.
9067         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
9068         gl_FUNC_ICONV_OPEN.
9069         (gl_FUNC_ICONV_OPEN): Use it.
9070         (gl_FUNC_ICONV_OPEN_UTF): New macro.
9071         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
9072         and REPLACE_ICONV_UTF.
9073         * modules/iconv_open (Depends-on): Add c-strcase.
9074         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
9075         ICONV_CONST.
9076         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
9077
9078 2007-10-13  Albert Chin  <china@thewrittenword.com>
9079             Bruno Haible  <bruno@clisp.org>
9080
9081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
9082         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
9083
9084 2007-10-13  Bruno Haible  <bruno@clisp.org>
9085
9086         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
9087         defined, use the ISO C99 inline semantics.
9088         * lib/argp.h (ARGP_EI): Likewise.
9089
9090 2007-10-13  Bruno Haible  <bruno@clisp.org>
9091
9092         Handle 'inline' change in gcc 4.3.0.
9093         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
9094         argp_fmtstream_write, argp_fmtstream_set_lmargin,
9095         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
9096         argp_fmtstream_point): Disable 'extern' declaration if the function
9097         definition is going to be provided inline.
9098         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
9099         semantics, not the ISO C99 inline semantics.
9100         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
9101         'extern' declaration if the function definition is going to be provided
9102         inline.
9103         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
9104         the GNU C inline semantics, not the ISO C99 inline semantics. With
9105         GCC 4.2, avoid a warning.
9106
9107 2007-10-13  Bruno Haible  <bruno@clisp.org>
9108
9109         * lib/freading.h (freading): Enable the use of __freading for
9110         glibc >= 2.7.
9111         * lib/freading.c (freading): Likewise.
9112
9113 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
9116         "warning: C99 inline functions are not supported; using GNU89".
9117
9118 2007-10-12  Bruno Haible  <bruno@clisp.org>
9119
9120         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
9121         of 2.
9122         * tests/test-ceilf2.c: New file.
9123         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
9124
9125         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
9126         * modules/ceilf-tests: Update.
9127
9128 2007-10-12  Bruno Haible  <bruno@clisp.org>
9129
9130         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
9131         of 2.
9132         * tests/test-floorf2.c: New file.
9133         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
9134
9135         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
9136         * modules/floorf-tests: Update.
9137
9138 2007-10-12  Bruno Haible  <bruno@clisp.org>
9139
9140         * tests/test-trunc2.c: New file.
9141         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
9142
9143         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
9144         * modules/trunc-tests: Update.
9145
9146 2007-10-12  Bruno Haible  <bruno@clisp.org>
9147
9148         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
9149         of 2.
9150         * tests/test-truncf2.c: New file.
9151         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
9152
9153         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
9154         * modules/truncf-tests: Update.
9155
9156 2007-10-11  Eric Blake  <ebb9@byu.net>
9157
9158         Don't claim strerror is broken on Interix.
9159         * doc/functions/strerror.texi (strerror): Known broken systems are
9160         now Solaris 8, and not Interix.
9161         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
9162         Interix on cross-compile.
9163         Reported by Martin Koeppe in
9164         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
9165
9166 2007-10-11  Bruno Haible  <bruno@clisp.org>
9167
9168         * modules/i-ring-tests: New file.
9169         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
9170         instead of assert.
9171
9172 2007-10-11  Bruno Haible  <bruno@clisp.org>
9173
9174         * modules/filenamecat-tests: New file.
9175         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
9176         * lib/filenamecat.c: Remove test code.
9177
9178 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9179
9180         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
9181
9182         * lib/strerror.c: Include <string.h> always, to test interface,
9183         and to remove the need for the dummy.
9184         Include intprops.h to compute width instead of doing it ourselves
9185         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
9186         (strerror): Define it to return NULL if there's no system strerror.
9187         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
9188         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
9189         ancient pre-strerror Unix systems well any more.  Saying "unknown
9190         system error" is enough.
9191         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
9192         simpler strerror.c implementation.
9193         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
9194         Simplify the tests to reflect the simpler strerror implementation.
9195         * modules/strerror (Depends-on): Add intprops.
9196
9197 2007-10-09  Eric Blake  <ebb9@byu.net>
9198
9199         Silence test-fpending.
9200         * modules/fpending-tests (Files): Add wrapper script.
9201         * tests/test-fpending.sh: New file.
9202
9203 2007-10-09  Bruno Haible  <bruno@clisp.org>
9204
9205         * MODULES.html.sh (func_module): Don't create a hyperlink for
9206         function names like 'printf_frexp'.
9207         (Misc): Add crc, memxor.
9208         (Characteristics of floating types): New section.
9209         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
9210         isnanf-nolibm, signbit, trunc, truncf, truncl.
9211         (Enhancements for ISO C 99 functions): New subsection Input/output.
9212         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
9213         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
9214         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
9215         (Compatibility checks for POSIX:2001 functions): Add clock-time.
9216         (Enhancements for POSIX:2001 functions): Add chdir-long.
9217         (File system functions): Add areadlink, chdir-safer, read-file.
9218         Remove cycle-check.
9219         (File system as inode set): New section.
9220         (Date and time): Add gethrxtime.
9221         (Multithreading): Add openmp.
9222         (Internationalization functions): Add localename.
9223         (Unicode string functions): Add unistr/u*-mbsnlen.
9224         (Support for maintaining and releasing projects): Add git-version-gen.
9225         (Lone files): Remove directories.
9226
9227 2007-10-08  Ben Pfaff  <blp@gnu.org>
9228
9229         * lib/xmalloca.h: Fix typo in comment.
9230
9231 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9232
9233         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
9234         when avoiding problems with integer overflow.  Use a portable test
9235         instead.
9236
9237 2007-10-08  Simon Josefsson  <simon@josefsson.org>
9238
9239         * modules/dummy (License): Change to LGPLv2+.
9240         * modules/float (License): Likewise
9241         * modules/realloc (License): Likewise
9242         * modules/stdlib (License): Likewise
9243
9244 2007-10-07  Bruno Haible  <bruno@clisp.org>
9245
9246         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
9247         * floor.c (TWO_MANT_DIG): Likewise.
9248         * ceil.c (TWO_MANT_DIG): Likewise.
9249         Reported by Ben Pfaff.
9250
9251 2007-10-07  Bruno Haible  <bruno@clisp.org>
9252
9253         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
9254         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
9255         * lib/frexp.c (FUNC): Likewise.
9256         * lib/printf-frexp.h (printf_frexp): Likewise.
9257         * lib/printf-frexpl.h (printf_frexpl): Likewise.
9258         * lib/printf-frexp.c (FUNC): Likewise.
9259         Suggested by Jim Meyering.
9260
9261 2007-10-07  Jim Meyering  <meyering@redhat.com>
9262
9263         Make xnanosleep's integer overflow test more robust.
9264         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
9265         so that gcc-4.3.0 doesn't optimize away this test for overflow.
9266
9267 2007-10-07  Bruno Haible  <bruno@clisp.org>
9268
9269         * NEWS: Mention the license change.
9270
9271         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
9272         abbreviations in the modules files.
9273
9274         Change copyright notice from GPLv2+ to GPLv3+.
9275         * README: Change copyright notice.
9276         * MODULES.html.sh: Likewise.
9277         * build-aux/bootstrap.conf: Likewise.
9278         * build-aux/config.libpath: Likewise.
9279         * build-aux/csharpcomp.sh.in: Likewise.
9280         * build-aux/csharpexec.sh.in: Likewise.
9281         * build-aux/install-reloc: Likewise.
9282         * build-aux/javacomp.sh.in: Likewise.
9283         * build-aux/javaexec.sh.in: Likewise.
9284         * build-aux/ldd.sh.in: Likewise.
9285         * build-aux/reloc-ldflags: Likewise.
9286         * build-aux/relocatable.sh.in: Likewise.
9287         * build-aux/x-to-1.in: Likewise.
9288         * check-module: Likewise.
9289         * config/srclistvars.sh: Likewise.
9290         * gnulib-tool: Likewise.
9291         * lib/acl-internal.h: Likewise.
9292         * lib/acl.c: Likewise.
9293         * lib/acl.h: Likewise.
9294         * lib/acl_entries.c: Likewise.
9295         * lib/areadlink-with-size.c: Likewise.
9296         * lib/areadlink.c: Likewise.
9297         * lib/areadlink.h: Likewise.
9298         * lib/argmatch.c: Likewise.
9299         * lib/argmatch.h: Likewise.
9300         * lib/argp-ba.c: Likewise.
9301         * lib/argp-eexst.c: Likewise.
9302         * lib/argp-fmtstream.c: Likewise.
9303         * lib/argp-fmtstream.h: Likewise.
9304         * lib/argp-fs-xinl.c: Likewise.
9305         * lib/argp-help.c: Likewise.
9306         * lib/argp-namefrob.h: Likewise.
9307         * lib/argp-parse.c: Likewise.
9308         * lib/argp-pin.c: Likewise.
9309         * lib/argp-pv.c: Likewise.
9310         * lib/argp-pvh.c: Likewise.
9311         * lib/argp-xinl.c: Likewise.
9312         * lib/argp.h: Likewise.
9313         * lib/at-func.c: Likewise.
9314         * lib/atanl.c: Likewise.
9315         * lib/backupfile.c: Likewise.
9316         * lib/backupfile.h: Likewise.
9317         * lib/basename.c: Likewise.
9318         * lib/binary-io.h: Likewise.
9319         * lib/byteswap.in.h: Likewise.
9320         * lib/c-stack.c: Likewise.
9321         * lib/c-stack.h: Likewise.
9322         * lib/c-strcasestr.c: Likewise.
9323         * lib/c-strcasestr.h: Likewise.
9324         * lib/c-strstr.c: Likewise.
9325         * lib/c-strstr.h: Likewise.
9326         * lib/c-strtod.c: Likewise.
9327         * lib/calloc.c: Likewise.
9328         * lib/canon-host.c: Likewise.
9329         * lib/canon-host.h: Likewise.
9330         * lib/canonicalize-lgpl.c: Likewise.
9331         * lib/canonicalize.c: Likewise.
9332         * lib/canonicalize.h: Likewise.
9333         * lib/ceil.c: Likewise.
9334         * lib/ceilf.c: Likewise.
9335         * lib/ceill.c: Likewise.
9336         * lib/chdir-long.c: Likewise.
9337         * lib/chdir-long.h: Likewise.
9338         * lib/chdir-safer.c: Likewise.
9339         * lib/chdir-safer.h: Likewise.
9340         * lib/chown.c: Likewise.
9341         * lib/classpath.c: Likewise.
9342         * lib/classpath.h: Likewise.
9343         * lib/clean-temp.c: Likewise.
9344         * lib/clean-temp.h: Likewise.
9345         * lib/cloexec.c: Likewise.
9346         * lib/close-stream.c: Likewise.
9347         * lib/closein.c: Likewise.
9348         * lib/closein.h: Likewise.
9349         * lib/closeout.c: Likewise.
9350         * lib/closeout.h: Likewise.
9351         * lib/concat-filename.c: Likewise.
9352         * lib/copy-file.c: Likewise.
9353         * lib/copy-file.h: Likewise.
9354         * lib/count-one-bits.h: Likewise.
9355         * lib/crc.c: Likewise.
9356         * lib/crc.h: Likewise.
9357         * lib/creat-safer.c: Likewise.
9358         * lib/csharpcomp.c: Likewise.
9359         * lib/csharpcomp.h: Likewise.
9360         * lib/csharpexec.c: Likewise.
9361         * lib/csharpexec.h: Likewise.
9362         * lib/cycle-check.c: Likewise.
9363         * lib/cycle-check.h: Likewise.
9364         * lib/diacrit.c: Likewise.
9365         * lib/diacrit.h: Likewise.
9366         * lib/diffseq.h: Likewise.
9367         * lib/dirchownmod.c: Likewise.
9368         * lib/dirent.in.h: Likewise.
9369         * lib/dirfd.c: Likewise.
9370         * lib/dirfd.h: Likewise.
9371         * lib/dirname.c: Likewise.
9372         * lib/dirname.h: Likewise.
9373         * lib/dummy.c: Likewise.
9374         * lib/dup-safer.c: Likewise.
9375         * lib/dup2.c: Likewise.
9376         * lib/eealloc.h: Likewise.
9377         * lib/error.c: Likewise.
9378         * lib/error.h: Likewise.
9379         * lib/euidaccess.c: Likewise.
9380         * lib/exclude.c: Likewise.
9381         * lib/exclude.h: Likewise.
9382         * lib/execute.c: Likewise.
9383         * lib/execute.h: Likewise.
9384         * lib/exitfail.c: Likewise.
9385         * lib/exitfail.h: Likewise.
9386         * lib/expl.c: Likewise.
9387         * lib/fatal-signal.c: Likewise.
9388         * lib/fatal-signal.h: Likewise.
9389         * lib/fbufmode.c: Likewise.
9390         * lib/fbufmode.h: Likewise.
9391         * lib/fchdir.c: Likewise.
9392         * lib/fchmodat.c: Likewise.
9393         * lib/fchownat.c: Likewise.
9394         * lib/fcntl--.h: Likewise.
9395         * lib/fcntl-safer.h: Likewise.
9396         * lib/fcntl.in.h: Likewise.
9397         * lib/fd-safer.c: Likewise.
9398         * lib/fflush.c: Likewise.
9399         * lib/file-has-acl.c: Likewise.
9400         * lib/file-set.c: Likewise.
9401         * lib/file-type.c: Likewise.
9402         * lib/file-type.h: Likewise.
9403         * lib/fileblocks.c: Likewise.
9404         * lib/filemode.c: Likewise.
9405         * lib/filemode.h: Likewise.
9406         * lib/filename.h: Likewise.
9407         * lib/filenamecat.c: Likewise.
9408         * lib/filenamecat.h: Likewise.
9409         * lib/findprog.c: Likewise.
9410         * lib/findprog.h: Likewise.
9411         * lib/float.in.h: Likewise.
9412         * lib/floor.c: Likewise.
9413         * lib/floorf.c: Likewise.
9414         * lib/floorl.c: Likewise.
9415         * lib/fopen-safer.c: Likewise.
9416         * lib/fopen.c: Likewise.
9417         * lib/fpending.c: Likewise.
9418         * lib/fpending.h: Likewise.
9419         * lib/fprintf.c: Likewise.
9420         * lib/fprintftime.h: Likewise.
9421         * lib/fpucw.h: Likewise.
9422         * lib/fpurge.c: Likewise.
9423         * lib/fpurge.h: Likewise.
9424         * lib/freadable.c: Likewise.
9425         * lib/freadable.h: Likewise.
9426         * lib/freadahead.c: Likewise.
9427         * lib/freadahead.h: Likewise.
9428         * lib/freading.c: Likewise.
9429         * lib/freading.h: Likewise.
9430         * lib/free.c: Likewise.
9431         * lib/freopen.c: Likewise.
9432         * lib/frexp.c: Likewise.
9433         * lib/frexpl.c: Likewise.
9434         * lib/fseek.c: Likewise.
9435         * lib/fseterr.c: Likewise.
9436         * lib/fseterr.h: Likewise.
9437         * lib/fstatat.c: Likewise.
9438         * lib/fstrcmp.c: Likewise.
9439         * lib/fstrcmp.h: Likewise.
9440         * lib/fsusage.c: Likewise.
9441         * lib/fsusage.h: Likewise.
9442         * lib/ftell.c: Likewise.
9443         * lib/ftello.c: Likewise.
9444         * lib/fts-cycle.c: Likewise.
9445         * lib/fts.c: Likewise.
9446         * lib/fts_.h: Likewise.
9447         * lib/full-read.c: Likewise.
9448         * lib/full-read.h: Likewise.
9449         * lib/full-write.c: Likewise.
9450         * lib/full-write.h: Likewise.
9451         * lib/fwritable.c: Likewise.
9452         * lib/fwritable.h: Likewise.
9453         * lib/fwriteerror.c: Likewise.
9454         * lib/fwriteerror.h: Likewise.
9455         * lib/fwriting.c: Likewise.
9456         * lib/fwriting.h: Likewise.
9457         * lib/gcd.c: Likewise.
9458         * lib/gcd.h: Likewise.
9459         * lib/getcwd.c: Likewise.
9460         * lib/getdate.h: Likewise.
9461         * lib/getdate.y: Likewise.
9462         * lib/getdomainname.c: Likewise.
9463         * lib/getdomainname.h: Likewise.
9464         * lib/getgroups.c: Likewise.
9465         * lib/gethostname.c: Likewise.
9466         * lib/gethrxtime.c: Likewise.
9467         * lib/gethrxtime.h: Likewise.
9468         * lib/getloadavg.c: Likewise.
9469         * lib/getndelim2.c: Likewise.
9470         * lib/getndelim2.h: Likewise.
9471         * lib/getnline.c: Likewise.
9472         * lib/getnline.h: Likewise.
9473         * lib/getopt.c: Likewise.
9474         * lib/getopt.in.h: Likewise.
9475         * lib/getopt1.c: Likewise.
9476         * lib/getopt_int.h: Likewise.
9477         * lib/getpagesize.h: Likewise.
9478         * lib/getsubopt.c: Likewise.
9479         * lib/gettime.c: Likewise.
9480         * lib/getugroups.c: Likewise.
9481         * lib/getugroups.h: Likewise.
9482         * lib/getusershell.c: Likewise.
9483         * lib/gl_anyavltree_list1.h: Likewise.
9484         * lib/gl_anyavltree_list2.h: Likewise.
9485         * lib/gl_anyhash_list1.h: Likewise.
9486         * lib/gl_anyhash_list2.h: Likewise.
9487         * lib/gl_anylinked_list1.h: Likewise.
9488         * lib/gl_anylinked_list2.h: Likewise.
9489         * lib/gl_anyrbtree_list1.h: Likewise.
9490         * lib/gl_anyrbtree_list2.h: Likewise.
9491         * lib/gl_anytree_list1.h: Likewise.
9492         * lib/gl_anytree_list2.h: Likewise.
9493         * lib/gl_anytree_oset.h: Likewise.
9494         * lib/gl_anytreehash_list1.h: Likewise.
9495         * lib/gl_anytreehash_list2.h: Likewise.
9496         * lib/gl_array_list.c: Likewise.
9497         * lib/gl_array_list.h: Likewise.
9498         * lib/gl_array_oset.c: Likewise.
9499         * lib/gl_array_oset.h: Likewise.
9500         * lib/gl_avltree_list.c: Likewise.
9501         * lib/gl_avltree_list.h: Likewise.
9502         * lib/gl_avltree_oset.c: Likewise.
9503         * lib/gl_avltree_oset.h: Likewise.
9504         * lib/gl_avltreehash_list.c: Likewise.
9505         * lib/gl_avltreehash_list.h: Likewise.
9506         * lib/gl_carray_list.c: Likewise.
9507         * lib/gl_carray_list.h: Likewise.
9508         * lib/gl_linked_list.c: Likewise.
9509         * lib/gl_linked_list.h: Likewise.
9510         * lib/gl_linkedhash_list.c: Likewise.
9511         * lib/gl_linkedhash_list.h: Likewise.
9512         * lib/gl_list.c: Likewise.
9513         * lib/gl_list.h: Likewise.
9514         * lib/gl_oset.c: Likewise.
9515         * lib/gl_oset.h: Likewise.
9516         * lib/gl_rbtree_list.c: Likewise.
9517         * lib/gl_rbtree_list.h: Likewise.
9518         * lib/gl_rbtree_oset.c: Likewise.
9519         * lib/gl_rbtree_oset.h: Likewise.
9520         * lib/gl_rbtreehash_list.c: Likewise.
9521         * lib/gl_rbtreehash_list.h: Likewise.
9522         * lib/gl_sublist.c: Likewise.
9523         * lib/gl_sublist.h: Likewise.
9524         * lib/group-member.c: Likewise.
9525         * lib/group-member.h: Likewise.
9526         * lib/hard-locale.c: Likewise.
9527         * lib/hard-locale.h: Likewise.
9528         * lib/hash-pjw.c: Likewise.
9529         * lib/hash-pjw.h: Likewise.
9530         * lib/hash-triple.c: Likewise.
9531         * lib/hash.c: Likewise.
9532         * lib/hash.h: Likewise.
9533         * lib/human.c: Likewise.
9534         * lib/human.h: Likewise.
9535         * lib/i-ring.c: Likewise.
9536         * lib/i-ring.h: Likewise.
9537         * lib/idcache.c: Likewise.
9538         * lib/imaxabs.c: Likewise.
9539         * lib/imaxdiv.c: Likewise.
9540         * lib/inet_pton.c: Likewise.
9541         * lib/inet_pton.h: Likewise.
9542         * lib/intprops.h: Likewise.
9543         * lib/inttostr.c: Likewise.
9544         * lib/inttostr.h: Likewise.
9545         * lib/inttypes.in.h: Likewise.
9546         * lib/isapipe.c: Likewise.
9547         * lib/isdir.c: Likewise.
9548         * lib/isnan.c: Likewise.
9549         * lib/isnan.h: Likewise.
9550         * lib/isnanf.c: Likewise.
9551         * lib/isnanf.h: Likewise.
9552         * lib/isnanl-nolibm.h: Likewise.
9553         * lib/isnanl.c: Likewise.
9554         * lib/isnanl.h: Likewise.
9555         * lib/javacomp.c: Likewise.
9556         * lib/javacomp.h: Likewise.
9557         * lib/javaexec.c: Likewise.
9558         * lib/javaexec.h: Likewise.
9559         * lib/javaversion.c: Likewise.
9560         * lib/javaversion.h: Likewise.
9561         * lib/javaversion.java: Likewise.
9562         * lib/lbrkprop.h: Likewise.
9563         * lib/lchmod.h: Likewise.
9564         * lib/lchown.c: Likewise.
9565         * lib/ldexpl.c: Likewise.
9566         * lib/linebreak.c: Likewise.
9567         * lib/linebreak.h: Likewise.
9568         * lib/linebuffer.c: Likewise.
9569         * lib/linebuffer.h: Likewise.
9570         * lib/locale.in.h: Likewise.
9571         * lib/logl.c: Likewise.
9572         * lib/long-options.c: Likewise.
9573         * lib/long-options.h: Likewise.
9574         * lib/lstat.c: Likewise.
9575         * lib/lstat.h: Likewise.
9576         * lib/math.in.h: Likewise.
9577         * lib/mbchar.c: Likewise.
9578         * lib/mbchar.h: Likewise.
9579         * lib/mbfile.h: Likewise.
9580         * lib/mbiter.h: Likewise.
9581         * lib/mbscasecmp.c: Likewise.
9582         * lib/mbscasestr.c: Likewise.
9583         * lib/mbschr.c: Likewise.
9584         * lib/mbscspn.c: Likewise.
9585         * lib/mbslen.c: Likewise.
9586         * lib/mbsncasecmp.c: Likewise.
9587         * lib/mbsnlen.c: Likewise.
9588         * lib/mbspbrk.c: Likewise.
9589         * lib/mbspcasecmp.c: Likewise.
9590         * lib/mbsrchr.c: Likewise.
9591         * lib/mbssep.c: Likewise.
9592         * lib/mbsspn.c: Likewise.
9593         * lib/mbsstr.c: Likewise.
9594         * lib/mbstok_r.c: Likewise.
9595         * lib/mbswidth.c: Likewise.
9596         * lib/mbswidth.h: Likewise.
9597         * lib/mbuiter.h: Likewise.
9598         * lib/memcasecmp.c: Likewise.
9599         * lib/memcasecmp.h: Likewise.
9600         * lib/memchr.c: Likewise.
9601         * lib/memcmp.c: Likewise.
9602         * lib/memcoll.c: Likewise.
9603         * lib/memcoll.h: Likewise.
9604         * lib/memcpy.c: Likewise.
9605         * lib/memrchr.c: Likewise.
9606         * lib/mkancesdirs.c: Likewise.
9607         * lib/mkdir-p.c: Likewise.
9608         * lib/mkdir-p.h: Likewise.
9609         * lib/mkdir.c: Likewise.
9610         * lib/mkdirat.c: Likewise.
9611         * lib/mkdtemp.c: Likewise.
9612         * lib/mkstemp-safer.c: Likewise.
9613         * lib/mkstemp.c: Likewise.
9614         * lib/modechange.c: Likewise.
9615         * lib/modechange.h: Likewise.
9616         * lib/mountlist.c: Likewise.
9617         * lib/mountlist.h: Likewise.
9618         * lib/mpsort.c: Likewise.
9619         * lib/nanosleep.c: Likewise.
9620         * lib/obstack.c: Likewise.
9621         * lib/obstack.h: Likewise.
9622         * lib/open-safer.c: Likewise.
9623         * lib/open.c: Likewise.
9624         * lib/openat-die.c: Likewise.
9625         * lib/openat-priv.h: Likewise.
9626         * lib/openat-proc.c: Likewise.
9627         * lib/openat.c: Likewise.
9628         * lib/openat.h: Likewise.
9629         * lib/pagealign_alloc.c: Likewise.
9630         * lib/pagealign_alloc.h: Likewise.
9631         * lib/physmem.c: Likewise.
9632         * lib/physmem.h: Likewise.
9633         * lib/pipe-safer.c: Likewise.
9634         * lib/pipe.c: Likewise.
9635         * lib/pipe.h: Likewise.
9636         * lib/posixtm.c: Likewise.
9637         * lib/posixtm.h: Likewise.
9638         * lib/posixver.c: Likewise.
9639         * lib/printf-frexp.c: Likewise.
9640         * lib/printf-frexp.h: Likewise.
9641         * lib/printf-frexpl.c: Likewise.
9642         * lib/printf-frexpl.h: Likewise.
9643         * lib/printf.c: Likewise.
9644         * lib/progname.c: Likewise.
9645         * lib/progname.h: Likewise.
9646         * lib/progreloc.c: Likewise.
9647         * lib/putenv.c: Likewise.
9648         * lib/quote.c: Likewise.
9649         * lib/quote.h: Likewise.
9650         * lib/quotearg.c: Likewise.
9651         * lib/quotearg.h: Likewise.
9652         * lib/raise.c: Likewise.
9653         * lib/readline.c: Likewise.
9654         * lib/readline.h: Likewise.
9655         * lib/readlink.c: Likewise.
9656         * lib/readtokens.c: Likewise.
9657         * lib/readtokens.h: Likewise.
9658         * lib/readtokens0.c: Likewise.
9659         * lib/readtokens0.h: Likewise.
9660         * lib/readutmp.c: Likewise.
9661         * lib/readutmp.h: Likewise.
9662         * lib/realloc.c: Likewise.
9663         * lib/relocwrapper.c: Likewise.
9664         * lib/rename-dest-slash.c: Likewise.
9665         * lib/rename.c: Likewise.
9666         * lib/rmdir.c: Likewise.
9667         * lib/rpmatch.c: Likewise.
9668         * lib/safe-read.c: Likewise.
9669         * lib/safe-read.h: Likewise.
9670         * lib/safe-write.c: Likewise.
9671         * lib/safe-write.h: Likewise.
9672         * lib/same-inode.h: Likewise.
9673         * lib/same.c: Likewise.
9674         * lib/same.h: Likewise.
9675         * lib/save-cwd.c: Likewise.
9676         * lib/save-cwd.h: Likewise.
9677         * lib/savedir.c: Likewise.
9678         * lib/savedir.h: Likewise.
9679         * lib/savewd.c: Likewise.
9680         * lib/savewd.h: Likewise.
9681         * lib/search.in.h: Likewise.
9682         * lib/setenv.c: Likewise.
9683         * lib/setenv.h: Likewise.
9684         * lib/settime.c: Likewise.
9685         * lib/sh-quote.c: Likewise.
9686         * lib/sh-quote.h: Likewise.
9687         * lib/sig2str.c: Likewise.
9688         * lib/sig2str.h: Likewise.
9689         * lib/signal.in.h: Likewise.
9690         * lib/signbitd.c: Likewise.
9691         * lib/signbitf.c: Likewise.
9692         * lib/signbitl.c: Likewise.
9693         * lib/sigprocmask.c: Likewise.
9694         * lib/sincosl.c: Likewise.
9695         * lib/sleep.c: Likewise.
9696         * lib/sprintf.c: Likewise.
9697         * lib/sqrtl.c: Likewise.
9698         * lib/stat-time.h: Likewise.
9699         * lib/stdio--.h: Likewise.
9700         * lib/stdio-safer.h: Likewise.
9701         * lib/stdlib--.h: Likewise.
9702         * lib/stdlib-safer.h: Likewise.
9703         * lib/stdlib.in.h: Likewise.
9704         * lib/stpcpy.c: Likewise.
9705         * lib/stpncpy.c: Likewise.
9706         * lib/strchrnul.c: Likewise.
9707         * lib/strcspn.c: Likewise.
9708         * lib/strerror.c: Likewise.
9709         * lib/strftime.c: Likewise.
9710         * lib/strftime.h: Likewise.
9711         * lib/striconveh.c: Likewise.
9712         * lib/striconveh.h: Likewise.
9713         * lib/striconveha.c: Likewise.
9714         * lib/striconveha.h: Likewise.
9715         * lib/stripslash.c: Likewise.
9716         * lib/strnlen1.c: Likewise.
9717         * lib/strnlen1.h: Likewise.
9718         * lib/strtod.c: Likewise.
9719         * lib/strtoimax.c: Likewise.
9720         * lib/strtok_r.c: Likewise.
9721         * lib/strtol.c: Likewise.
9722         * lib/strtoll.c: Likewise.
9723         * lib/strtoul.c: Likewise.
9724         * lib/strtoull.c: Likewise.
9725         * lib/sysexits.in.h: Likewise.
9726         * lib/tempname.c: Likewise.
9727         * lib/tempname.h: Likewise.
9728         * lib/timespec.h: Likewise.
9729         * lib/tls.c: Likewise.
9730         * lib/tls.h: Likewise.
9731         * lib/tmpdir.c: Likewise.
9732         * lib/tmpdir.h: Likewise.
9733         * lib/tmpfile-safer.c: Likewise.
9734         * lib/tmpfile.c: Likewise.
9735         * lib/trigl.c: Likewise.
9736         * lib/trigl.h: Likewise.
9737         * lib/trim.c: Likewise.
9738         * lib/trim.h: Likewise.
9739         * lib/trunc.c: Likewise.
9740         * lib/truncf.c: Likewise.
9741         * lib/truncl.c: Likewise.
9742         * lib/tsearch.c: Likewise.
9743         * lib/unicodeio.c: Likewise.
9744         * lib/unicodeio.h: Likewise.
9745         * lib/unistd--.h: Likewise.
9746         * lib/unistd-safer.h: Likewise.
9747         * lib/unistdio/ulc-fprintf.c: Likewise.
9748         * lib/unistdio/ulc-vfprintf.c: Likewise.
9749         * lib/unlinkdir.c: Likewise.
9750         * lib/unlinkdir.h: Likewise.
9751         * lib/unlocked-io.h: Likewise.
9752         * lib/unsetenv.c: Likewise.
9753         * lib/userspec.c: Likewise.
9754         * lib/utime.c: Likewise.
9755         * lib/utimecmp.c: Likewise.
9756         * lib/utimecmp.h: Likewise.
9757         * lib/utimens.c: Likewise.
9758         * lib/verify.h: Likewise.
9759         * lib/verror.c: Likewise.
9760         * lib/verror.h: Likewise.
9761         * lib/version-etc-fsf.c: Likewise.
9762         * lib/version-etc.c: Likewise.
9763         * lib/version-etc.h: Likewise.
9764         * lib/vfprintf.c: Likewise.
9765         * lib/vprintf.c: Likewise.
9766         * lib/vsprintf.c: Likewise.
9767         * lib/w32spawn.h: Likewise.
9768         * lib/wait-process.c: Likewise.
9769         * lib/wait-process.h: Likewise.
9770         * lib/wcwidth.c: Likewise.
9771         * lib/write-any-file.c: Likewise.
9772         * lib/xalloc-die.c: Likewise.
9773         * lib/xalloc.h: Likewise.
9774         * lib/xasprintf.c: Likewise.
9775         * lib/xgetcwd.c: Likewise.
9776         * lib/xgetcwd.h: Likewise.
9777         * lib/xgetdomainname.c: Likewise.
9778         * lib/xgetdomainname.h: Likewise.
9779         * lib/xgethostname.c: Likewise.
9780         * lib/xmalloc.c: Likewise.
9781         * lib/xmalloca.c: Likewise.
9782         * lib/xmalloca.h: Likewise.
9783         * lib/xmemcoll.c: Likewise.
9784         * lib/xnanosleep.c: Likewise.
9785         * lib/xreadlink.c: Likewise.
9786         * lib/xreadlink.h: Likewise.
9787         * lib/xsetenv.c: Likewise.
9788         * lib/xsetenv.h: Likewise.
9789         * lib/xstriconv.c: Likewise.
9790         * lib/xstriconv.h: Likewise.
9791         * lib/xstrndup.c: Likewise.
9792         * lib/xstrndup.h: Likewise.
9793         * lib/xstrtod.c: Likewise.
9794         * lib/xstrtod.h: Likewise.
9795         * lib/xstrtol-error.c: Likewise.
9796         * lib/xstrtol.c: Likewise.
9797         * lib/xstrtol.h: Likewise.
9798         * lib/xtime.h: Likewise.
9799         * lib/xvasprintf.c: Likewise.
9800         * lib/xvasprintf.h: Likewise.
9801         * lib/yesno.c: Likewise.
9802         * lib/yesno.h: Likewise.
9803         * posix-modules: Likewise.
9804         * tests/test-alloca-opt.c: Likewise.
9805         * tests/test-arcfour.c: Likewise.
9806         * tests/test-arctwo.c: Likewise.
9807         * tests/test-argmatch.c: Likewise.
9808         * tests/test-argp-2.sh: Likewise.
9809         * tests/test-argp.c: Likewise.
9810         * tests/test-arpa_inet.c: Likewise.
9811         * tests/test-array_list.c: Likewise.
9812         * tests/test-array_oset.c: Likewise.
9813         * tests/test-atexit.c: Likewise.
9814         * tests/test-avltree_list.c: Likewise.
9815         * tests/test-avltree_oset.c: Likewise.
9816         * tests/test-avltreehash_list.c: Likewise.
9817         * tests/test-base64.c: Likewise.
9818         * tests/test-binary-io.c: Likewise.
9819         * tests/test-byteswap.c: Likewise.
9820         * tests/test-c-ctype.c: Likewise.
9821         * tests/test-c-strcasecmp.c: Likewise.
9822         * tests/test-c-strcasestr.c: Likewise.
9823         * tests/test-c-strncasecmp.c: Likewise.
9824         * tests/test-c-strstr.c: Likewise.
9825         * tests/test-canonicalize-lgpl.c: Likewise.
9826         * tests/test-canonicalize.c: Likewise.
9827         * tests/test-carray_list.c: Likewise.
9828         * tests/test-ceilf.c: Likewise.
9829         * tests/test-ceill.c: Likewise.
9830         * tests/test-count-one-bits.c: Likewise.
9831         * tests/test-crc.c: Likewise.
9832         * tests/test-dirname.c: Likewise.
9833         * tests/test-fbufmode.c: Likewise.
9834         * tests/test-fcntl.c: Likewise.
9835         * tests/test-fflush.c: Likewise.
9836         * tests/test-floorf.c: Likewise.
9837         * tests/test-floorl.c: Likewise.
9838         * tests/test-fopen.c: Likewise.
9839         * tests/test-fprintf-posix.c: Likewise.
9840         * tests/test-fprintf-posix.h: Likewise.
9841         * tests/test-fpurge.c: Likewise.
9842         * tests/test-freadable.c: Likewise.
9843         * tests/test-freadahead.c: Likewise.
9844         * tests/test-freading.c: Likewise.
9845         * tests/test-freopen.c: Likewise.
9846         * tests/test-frexp.c: Likewise.
9847         * tests/test-frexpl.c: Likewise.
9848         * tests/test-fseek.c: Likewise.
9849         * tests/test-fseeko.c: Likewise.
9850         * tests/test-fseterr.c: Likewise.
9851         * tests/test-fstrcmp.c: Likewise.
9852         * tests/test-ftell.c: Likewise.
9853         * tests/test-ftello.c: Likewise.
9854         * tests/test-fwritable.c: Likewise.
9855         * tests/test-fwriting.c: Likewise.
9856         * tests/test-getaddrinfo.c: Likewise.
9857         * tests/test-getpass.c: Likewise.
9858         * tests/test-gettimeofday.c: Likewise.
9859         * tests/test-hmac-md5.c: Likewise.
9860         * tests/test-hmac-sha1.c: Likewise.
9861         * tests/test-iconv.c: Likewise.
9862         * tests/test-iconvme.c: Likewise.
9863         * tests/test-inttypes.c: Likewise.
9864         * tests/test-isnan.c: Likewise.
9865         * tests/test-isnanf.c: Likewise.
9866         * tests/test-isnanl-nolibm.c: Likewise.
9867         * tests/test-isnanl.c: Likewise.
9868         * tests/test-isnanl.h: Likewise.
9869         * tests/test-ldexpl.c: Likewise.
9870         * tests/test-linked_list.c: Likewise.
9871         * tests/test-linkedhash_list.c: Likewise.
9872         * tests/test-locale.c: Likewise.
9873         * tests/test-localename.c: Likewise.
9874         * tests/test-lock.c: Likewise.
9875         * tests/test-lseek.c: Likewise.
9876         * tests/test-malloca.c: Likewise.
9877         * tests/test-math.c: Likewise.
9878         * tests/test-mbscasecmp.c: Likewise.
9879         * tests/test-mbscasestr1.c: Likewise.
9880         * tests/test-mbscasestr2.c: Likewise.
9881         * tests/test-mbscasestr3.c: Likewise.
9882         * tests/test-mbscasestr4.c: Likewise.
9883         * tests/test-mbschr.c: Likewise.
9884         * tests/test-mbscspn.c: Likewise.
9885         * tests/test-mbsncasecmp.c: Likewise.
9886         * tests/test-mbspbrk.c: Likewise.
9887         * tests/test-mbspcasecmp.c: Likewise.
9888         * tests/test-mbsrchr.c: Likewise.
9889         * tests/test-mbsspn.c: Likewise.
9890         * tests/test-mbsstr1.c: Likewise.
9891         * tests/test-mbsstr2.c: Likewise.
9892         * tests/test-mbsstr3.c: Likewise.
9893         * tests/test-md5.c: Likewise.
9894         * tests/test-memmem.c: Likewise.
9895         * tests/test-netinet_in.c: Likewise.
9896         * tests/test-open.c: Likewise.
9897         * tests/test-printf-frexp.c: Likewise.
9898         * tests/test-printf-frexpl.c: Likewise.
9899         * tests/test-printf-posix.c: Likewise.
9900         * tests/test-printf-posix.h: Likewise.
9901         * tests/test-rbtree_list.c: Likewise.
9902         * tests/test-rbtree_oset.c: Likewise.
9903         * tests/test-rbtreehash_list.c: Likewise.
9904         * tests/test-read-file.c: Likewise.
9905         * tests/test-rijndael.c: Likewise.
9906         * tests/test-search.c: Likewise.
9907         * tests/test-signbit.c: Likewise.
9908         * tests/test-sleep.c: Likewise.
9909         * tests/test-snprintf-posix.c: Likewise.
9910         * tests/test-snprintf-posix.h: Likewise.
9911         * tests/test-snprintf.c: Likewise.
9912         * tests/test-sprintf-posix.c: Likewise.
9913         * tests/test-sprintf-posix.h: Likewise.
9914         * tests/test-stat-time.c: Likewise.
9915         * tests/test-stdbool.c: Likewise.
9916         * tests/test-stdint.c: Likewise.
9917         * tests/test-stdio.c: Likewise.
9918         * tests/test-stdlib.c: Likewise.
9919         * tests/test-stpncpy.c: Likewise.
9920         * tests/test-strcasestr.c: Likewise.
9921         * tests/test-striconv.c: Likewise.
9922         * tests/test-striconveh.c: Likewise.
9923         * tests/test-striconveha.c: Likewise.
9924         * tests/test-string.c: Likewise.
9925         * tests/test-sys_select.c: Likewise.
9926         * tests/test-sys_socket.c: Likewise.
9927         * tests/test-sys_stat.c: Likewise.
9928         * tests/test-sys_time.c: Likewise.
9929         * tests/test-sysexits.c: Likewise.
9930         * tests/test-time.c: Likewise.
9931         * tests/test-tls.c: Likewise.
9932         * tests/test-trunc.c: Likewise.
9933         * tests/test-truncf.c: Likewise.
9934         * tests/test-truncl.c: Likewise.
9935         * tests/test-unistd.c: Likewise.
9936         * tests/test-vasnprintf-posix.c: Likewise.
9937         * tests/test-vasnprintf-posix2.c: Likewise.
9938         * tests/test-vasnprintf.c: Likewise.
9939         * tests/test-vasprintf-posix.c: Likewise.
9940         * tests/test-vasprintf.c: Likewise.
9941         * tests/test-verify.c: Likewise.
9942         * tests/test-vfprintf-posix.c: Likewise.
9943         * tests/test-vprintf-posix.c: Likewise.
9944         * tests/test-vsnprintf-posix.c: Likewise.
9945         * tests/test-vsnprintf.c: Likewise.
9946         * tests/test-vsprintf-posix.c: Likewise.
9947         * tests/test-wchar.c: Likewise.
9948         * tests/test-wctype.c: Likewise.
9949         * tests/test-wcwidth.c: Likewise.
9950         * tests/test-xstrtol.c: Likewise.
9951         * tests/test-xvasprintf.c: Likewise.
9952         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9953         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9954         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9955         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9956         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9957         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9958         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9959         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9960         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9961         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9962         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9963         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9964         * tests/uniname/test-uninames.c: Likewise.
9965         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9966         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9967         * tests/unistdio/test-u16-printf1.h: Likewise.
9968         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9969         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9970         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9971         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9972         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9973         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9974         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9975         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9976         * tests/unistdio/test-u32-printf1.h: Likewise.
9977         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9978         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9979         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9980         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9981         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9982         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9983         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9984         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9985         * tests/unistdio/test-u8-printf1.h: Likewise.
9986         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9987         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9988         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9989         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9990         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9991         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9992         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9993         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9994         * tests/unistdio/test-ulc-printf1.h: Likewise.
9995         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9996         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9997         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9998         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9999         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10000         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10001         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10002         * tests/uniwidth/test-u16-width.c: Likewise.
10003         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10004         * tests/uniwidth/test-u32-width.c: Likewise.
10005         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10006         * tests/uniwidth/test-u8-width.c: Likewise.
10007         * tests/uniwidth/test-uc_width.c: Likewise.
10008         * config/srclist-update: Likewise.
10009         (fixlicense): Update to GPLv3+.
10010
10011         Change copyright notice from LGPLv2.1+ to LGPLv3+.
10012         * tests/test-tsearch.c: Change copyright notice.
10013
10014         Change copyright notice from LGPLv2.0+ to LGPLv3+.
10015         * lib/c-strcaseeq.h: Change copyright notice.
10016         * lib/streq.h: Likewise.
10017         * lib/uniconv.h: Likewise.
10018         * lib/uniconv/u-conv-from-enc.h: Likewise.
10019         * lib/uniconv/u-conv-to-enc.h: Likewise.
10020         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10021         * lib/uniconv/u-strconv-to-enc.h: Likewise.
10022         * lib/uniconv/u16-conv-from-enc.c: Likewise.
10023         * lib/uniconv/u16-conv-to-enc.c: Likewise.
10024         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
10025         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
10026         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
10027         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
10028         * lib/uniconv/u32-conv-from-enc.c: Likewise.
10029         * lib/uniconv/u32-conv-to-enc.c: Likewise.
10030         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
10031         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
10032         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
10033         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
10034         * lib/uniconv/u8-conv-from-enc.c: Likewise.
10035         * lib/uniconv/u8-conv-to-enc.c: Likewise.
10036         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
10037         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
10038         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
10039         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
10040         * lib/uniname.h: Likewise.
10041         * lib/uniname/uniname.c: Likewise.
10042         * lib/unistdio.h: Likewise.
10043         * lib/unistdio/u-asnprintf.h: Likewise.
10044         * lib/unistdio/u-asprintf.h: Likewise.
10045         * lib/unistdio/u-printf-args.c: Likewise.
10046         * lib/unistdio/u-printf-args.h: Likewise.
10047         * lib/unistdio/u-printf-parse.h: Likewise.
10048         * lib/unistdio/u-snprintf.h: Likewise.
10049         * lib/unistdio/u-sprintf.h: Likewise.
10050         * lib/unistdio/u-vasprintf.h: Likewise.
10051         * lib/unistdio/u-vsnprintf.h: Likewise.
10052         * lib/unistdio/u-vsprintf.h: Likewise.
10053         * lib/unistdio/u16-asnprintf.c: Likewise.
10054         * lib/unistdio/u16-asprintf.c: Likewise.
10055         * lib/unistdio/u16-printf-parse.c: Likewise.
10056         * lib/unistdio/u16-snprintf.c: Likewise.
10057         * lib/unistdio/u16-sprintf.c: Likewise.
10058         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
10059         * lib/unistdio/u16-u16-asprintf.c: Likewise.
10060         * lib/unistdio/u16-u16-snprintf.c: Likewise.
10061         * lib/unistdio/u16-u16-sprintf.c: Likewise.
10062         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
10063         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
10064         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
10065         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
10066         * lib/unistdio/u16-vasnprintf.c: Likewise.
10067         * lib/unistdio/u16-vasprintf.c: Likewise.
10068         * lib/unistdio/u16-vsnprintf.c: Likewise.
10069         * lib/unistdio/u16-vsprintf.c: Likewise.
10070         * lib/unistdio/u32-asnprintf.c: Likewise.
10071         * lib/unistdio/u32-asprintf.c: Likewise.
10072         * lib/unistdio/u32-printf-parse.c: Likewise.
10073         * lib/unistdio/u32-snprintf.c: Likewise.
10074         * lib/unistdio/u32-sprintf.c: Likewise.
10075         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
10076         * lib/unistdio/u32-u32-asprintf.c: Likewise.
10077         * lib/unistdio/u32-u32-snprintf.c: Likewise.
10078         * lib/unistdio/u32-u32-sprintf.c: Likewise.
10079         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
10080         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
10081         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
10082         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
10083         * lib/unistdio/u32-vasnprintf.c: Likewise.
10084         * lib/unistdio/u32-vasprintf.c: Likewise.
10085         * lib/unistdio/u32-vsnprintf.c: Likewise.
10086         * lib/unistdio/u32-vsprintf.c: Likewise.
10087         * lib/unistdio/u8-asnprintf.c: Likewise.
10088         * lib/unistdio/u8-asprintf.c: Likewise.
10089         * lib/unistdio/u8-printf-parse.c: Likewise.
10090         * lib/unistdio/u8-snprintf.c: Likewise.
10091         * lib/unistdio/u8-sprintf.c: Likewise.
10092         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
10093         * lib/unistdio/u8-u8-asprintf.c: Likewise.
10094         * lib/unistdio/u8-u8-snprintf.c: Likewise.
10095         * lib/unistdio/u8-u8-sprintf.c: Likewise.
10096         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
10097         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
10098         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
10099         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
10100         * lib/unistdio/u8-vasnprintf.c: Likewise.
10101         * lib/unistdio/u8-vasprintf.c: Likewise.
10102         * lib/unistdio/u8-vsnprintf.c: Likewise.
10103         * lib/unistdio/u8-vsprintf.c: Likewise.
10104         * lib/unistdio/ulc-asnprintf.c: Likewise.
10105         * lib/unistdio/ulc-asprintf.c: Likewise.
10106         * lib/unistdio/ulc-printf-parse.c: Likewise.
10107         * lib/unistdio/ulc-snprintf.c: Likewise.
10108         * lib/unistdio/ulc-sprintf.c: Likewise.
10109         * lib/unistdio/ulc-vasnprintf.c: Likewise.
10110         * lib/unistdio/ulc-vasprintf.c: Likewise.
10111         * lib/unistdio/ulc-vsnprintf.c: Likewise.
10112         * lib/unistdio/ulc-vsprintf.c: Likewise.
10113         * lib/unistr.h: Likewise.
10114         * lib/unistr/u-cpy-alloc.h: Likewise.
10115         * lib/unistr/u-cpy.h: Likewise.
10116         * lib/unistr/u-endswith.h: Likewise.
10117         * lib/unistr/u-move.h: Likewise.
10118         * lib/unistr/u-set.h: Likewise.
10119         * lib/unistr/u-startswith.h: Likewise.
10120         * lib/unistr/u-stpcpy.h: Likewise.
10121         * lib/unistr/u-stpncpy.h: Likewise.
10122         * lib/unistr/u-strcat.h: Likewise.
10123         * lib/unistr/u-strcpy.h: Likewise.
10124         * lib/unistr/u-strcspn.h: Likewise.
10125         * lib/unistr/u-strdup.h: Likewise.
10126         * lib/unistr/u-strlen.h: Likewise.
10127         * lib/unistr/u-strncat.h: Likewise.
10128         * lib/unistr/u-strncpy.h: Likewise.
10129         * lib/unistr/u-strnlen.h: Likewise.
10130         * lib/unistr/u-strpbrk.h: Likewise.
10131         * lib/unistr/u-strspn.h: Likewise.
10132         * lib/unistr/u-strstr.h: Likewise.
10133         * lib/unistr/u-strtok.h: Likewise.
10134         * lib/unistr/u16-check.c: Likewise.
10135         * lib/unistr/u16-chr.c: Likewise.
10136         * lib/unistr/u16-cmp.c: Likewise.
10137         * lib/unistr/u16-cpy-alloc.c: Likewise.
10138         * lib/unistr/u16-cpy.c: Likewise.
10139         * lib/unistr/u16-endswith.c: Likewise.
10140         * lib/unistr/u16-mblen.c: Likewise.
10141         * lib/unistr/u16-mbsnlen.c: Likewise.
10142         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10143         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10144         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10145         * lib/unistr/u16-mbtouc.c: Likewise.
10146         * lib/unistr/u16-mbtoucr.c: Likewise.
10147         * lib/unistr/u16-move.c: Likewise.
10148         * lib/unistr/u16-next.c: Likewise.
10149         * lib/unistr/u16-prev.c: Likewise.
10150         * lib/unistr/u16-set.c: Likewise.
10151         * lib/unistr/u16-startswith.c: Likewise.
10152         * lib/unistr/u16-stpcpy.c: Likewise.
10153         * lib/unistr/u16-stpncpy.c: Likewise.
10154         * lib/unistr/u16-strcat.c: Likewise.
10155         * lib/unistr/u16-strchr.c: Likewise.
10156         * lib/unistr/u16-strcmp.c: Likewise.
10157         * lib/unistr/u16-strcpy.c: Likewise.
10158         * lib/unistr/u16-strcspn.c: Likewise.
10159         * lib/unistr/u16-strdup.c: Likewise.
10160         * lib/unistr/u16-strlen.c: Likewise.
10161         * lib/unistr/u16-strmblen.c: Likewise.
10162         * lib/unistr/u16-strmbtouc.c: Likewise.
10163         * lib/unistr/u16-strncat.c: Likewise.
10164         * lib/unistr/u16-strncmp.c: Likewise.
10165         * lib/unistr/u16-strncpy.c: Likewise.
10166         * lib/unistr/u16-strnlen.c: Likewise.
10167         * lib/unistr/u16-strpbrk.c: Likewise.
10168         * lib/unistr/u16-strrchr.c: Likewise.
10169         * lib/unistr/u16-strspn.c: Likewise.
10170         * lib/unistr/u16-strstr.c: Likewise.
10171         * lib/unistr/u16-strtok.c: Likewise.
10172         * lib/unistr/u16-to-u32.c: Likewise.
10173         * lib/unistr/u16-to-u8.c: Likewise.
10174         * lib/unistr/u16-uctomb-aux.c: Likewise.
10175         * lib/unistr/u16-uctomb.c: Likewise.
10176         * lib/unistr/u32-check.c: Likewise.
10177         * lib/unistr/u32-chr.c: Likewise.
10178         * lib/unistr/u32-cmp.c: Likewise.
10179         * lib/unistr/u32-cpy-alloc.c: Likewise.
10180         * lib/unistr/u32-cpy.c: Likewise.
10181         * lib/unistr/u32-endswith.c: Likewise.
10182         * lib/unistr/u32-mblen.c: Likewise.
10183         * lib/unistr/u32-mbsnlen.c: Likewise.
10184         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10185         * lib/unistr/u32-mbtouc.c: Likewise.
10186         * lib/unistr/u32-mbtoucr.c: Likewise.
10187         * lib/unistr/u32-move.c: Likewise.
10188         * lib/unistr/u32-next.c: Likewise.
10189         * lib/unistr/u32-prev.c: Likewise.
10190         * lib/unistr/u32-set.c: Likewise.
10191         * lib/unistr/u32-startswith.c: Likewise.
10192         * lib/unistr/u32-stpcpy.c: Likewise.
10193         * lib/unistr/u32-stpncpy.c: Likewise.
10194         * lib/unistr/u32-strcat.c: Likewise.
10195         * lib/unistr/u32-strchr.c: Likewise.
10196         * lib/unistr/u32-strcmp.c: Likewise.
10197         * lib/unistr/u32-strcpy.c: Likewise.
10198         * lib/unistr/u32-strcspn.c: Likewise.
10199         * lib/unistr/u32-strdup.c: Likewise.
10200         * lib/unistr/u32-strlen.c: Likewise.
10201         * lib/unistr/u32-strmblen.c: Likewise.
10202         * lib/unistr/u32-strmbtouc.c: Likewise.
10203         * lib/unistr/u32-strncat.c: Likewise.
10204         * lib/unistr/u32-strncmp.c: Likewise.
10205         * lib/unistr/u32-strncpy.c: Likewise.
10206         * lib/unistr/u32-strnlen.c: Likewise.
10207         * lib/unistr/u32-strpbrk.c: Likewise.
10208         * lib/unistr/u32-strrchr.c: Likewise.
10209         * lib/unistr/u32-strspn.c: Likewise.
10210         * lib/unistr/u32-strstr.c: Likewise.
10211         * lib/unistr/u32-strtok.c: Likewise.
10212         * lib/unistr/u32-to-u16.c: Likewise.
10213         * lib/unistr/u32-to-u8.c: Likewise.
10214         * lib/unistr/u32-uctomb.c: Likewise.
10215         * lib/unistr/u8-check.c: Likewise.
10216         * lib/unistr/u8-chr.c: Likewise.
10217         * lib/unistr/u8-cmp.c: Likewise.
10218         * lib/unistr/u8-cpy-alloc.c: Likewise.
10219         * lib/unistr/u8-cpy.c: Likewise.
10220         * lib/unistr/u8-endswith.c: Likewise.
10221         * lib/unistr/u8-mblen.c: Likewise.
10222         * lib/unistr/u8-mbsnlen.c: Likewise.
10223         * lib/unistr/u8-mbtouc-aux.c: Likewise.
10224         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10225         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10226         * lib/unistr/u8-mbtouc.c: Likewise.
10227         * lib/unistr/u8-mbtoucr.c: Likewise.
10228         * lib/unistr/u8-move.c: Likewise.
10229         * lib/unistr/u8-next.c: Likewise.
10230         * lib/unistr/u8-prev.c: Likewise.
10231         * lib/unistr/u8-set.c: Likewise.
10232         * lib/unistr/u8-startswith.c: Likewise.
10233         * lib/unistr/u8-stpcpy.c: Likewise.
10234         * lib/unistr/u8-stpncpy.c: Likewise.
10235         * lib/unistr/u8-strcat.c: Likewise.
10236         * lib/unistr/u8-strchr.c: Likewise.
10237         * lib/unistr/u8-strcmp.c: Likewise.
10238         * lib/unistr/u8-strcpy.c: Likewise.
10239         * lib/unistr/u8-strcspn.c: Likewise.
10240         * lib/unistr/u8-strdup.c: Likewise.
10241         * lib/unistr/u8-strlen.c: Likewise.
10242         * lib/unistr/u8-strmblen.c: Likewise.
10243         * lib/unistr/u8-strmbtouc.c: Likewise.
10244         * lib/unistr/u8-strncat.c: Likewise.
10245         * lib/unistr/u8-strncmp.c: Likewise.
10246         * lib/unistr/u8-strncpy.c: Likewise.
10247         * lib/unistr/u8-strnlen.c: Likewise.
10248         * lib/unistr/u8-strpbrk.c: Likewise.
10249         * lib/unistr/u8-strrchr.c: Likewise.
10250         * lib/unistr/u8-strspn.c: Likewise.
10251         * lib/unistr/u8-strstr.c: Likewise.
10252         * lib/unistr/u8-strtok.c: Likewise.
10253         * lib/unistr/u8-to-u16.c: Likewise.
10254         * lib/unistr/u8-to-u32.c: Likewise.
10255         * lib/unistr/u8-uctomb-aux.c: Likewise.
10256         * lib/unistr/u8-uctomb.c: Likewise.
10257         * lib/unitypes.h: Likewise.
10258         * lib/uniwidth.h: Likewise.
10259         * lib/uniwidth/cjk.h: Likewise.
10260         * lib/uniwidth/u16-strwidth.c: Likewise.
10261         * lib/uniwidth/u16-width.c: Likewise.
10262         * lib/uniwidth/u32-strwidth.c: Likewise.
10263         * lib/uniwidth/u32-width.c: Likewise.
10264         * lib/uniwidth/u8-strwidth.c: Likewise.
10265         * lib/uniwidth/u8-width.c: Likewise.
10266         * lib/uniwidth/width.c: Likewise.
10267
10268 2007-10-07  Bruno Haible  <bruno@clisp.org>
10269
10270         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
10271         The file is still under LGPL (see modules/inttypes).
10272
10273 2007-10-06  Bruno Haible  <bruno@clisp.org>
10274
10275         * modules/trunc (Dependencies): Add 'extensions'.
10276         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
10277         Reported by Ben Pfaff <blp@gnu.org>.
10278
10279 2007-10-06  Bruno Haible  <bruno@clisp.org>
10280
10281         * modules/freopen-tests: New file.
10282         * tests/test-freopen.c: New file.
10283
10284         * modules/fopen-tests: New file.
10285         * tests/test-fopen.c: New file.
10286
10287         * modules/fopen: New file.
10288         * lib/fopen.c: New file.
10289         * m4/fopen.m4: New file.
10290         * modules/freopen: New file.
10291         * lib/freopen.c: New file.
10292         * m4/freopen.m4: New file.
10293         * lib/stdio.in.h (fopen, freopen): New declarations.
10294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
10295         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10296         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
10297         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
10298         * doc/functions/fopen.texi: Mention the 'fopen' module.
10299         * doc/functions/freopen.texi: Mention the 'freopen' module.
10300
10301 2007-10-06  Bruno Haible  <bruno@clisp.org>
10302
10303         * modules/open-tests: New file.
10304         * tests/test-open.c: New file.
10305
10306         * modules/open: New file.
10307         * lib/open.c: New file.
10308         * m4/open.m4: New file.
10309         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
10310         lib/open.c does.
10311         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
10312         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
10313         macros.
10314         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
10315         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
10316         REPLACE_OPEN.
10317         * doc/functions/open.texi: Mention the 'open' module.
10318
10319 2007-10-04  Bruno Haible  <bruno@clisp.org>
10320
10321         * modules/ceill-tests: New file.
10322         * tests/test-ceill.c: New file.
10323
10324         * modules/ceill: New file.
10325         * lib/ceill.c: Replace entire file.
10326         * m4/ceill.m4: New file.
10327         * lib/math.in.h (ceill): Replace declaration.
10328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10329         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10330         * doc/functions/ceill.texi: Mention the 'ceill' module.
10331         * modules/mathl (Files): Remove lib/ceill.c.
10332         (Depends-on): Add ceill.
10333
10334 2007-10-04  Bruno Haible  <bruno@clisp.org>
10335
10336         * modules/ceilf-tests: New file.
10337         * tests/test-ceilf.c: New file.
10338
10339         * modules/ceilf: New file.
10340         * lib/ceil.c: New file.
10341         * lib/ceilf.c: New file.
10342         * m4/ceilf.m4: New file.
10343         * lib/math.in.h (ceilf): New declaration.
10344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10345         HAVE_DECL_CEILF.
10346         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10347         HAVE_DECL_CEILF.
10348         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
10349
10350 2007-10-04  Bruno Haible  <bruno@clisp.org>
10351
10352         * modules/floorl-tests: New file.
10353         * tests/test-floorl.c: New file.
10354
10355         * modules/floorl: New file.
10356         * lib/floorl.c: Replace entire file.
10357         * m4/floorl.m4: New file.
10358         * lib/math.in.h (floorl): Replace declaration.
10359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
10360         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
10361         * doc/functions/floorl.texi: Mention the 'floorl' module.
10362         * modules/mathl (Files): Remove lib/floorl.c.
10363         (Depends-on): Add floorl.
10364
10365 2007-10-04  Bruno Haible  <bruno@clisp.org>
10366
10367         * modules/floorf-tests: New file.
10368         * tests/test-floorf.c: New file.
10369
10370         * modules/floorf: New file.
10371         * lib/floor.c: New file.
10372         * lib/floorf.c: New file.
10373         * m4/floorf.m4: New file.
10374         * lib/math.in.h (floorf): New declaration.
10375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
10376         HAVE_DECL_FLOORF.
10377         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
10378         HAVE_DECL_FLOORF.
10379         * doc/functions/floorf.texi: Mention the 'floorf' module.
10380
10381 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
10382             Bruno Haible  <bruno@clisp.org>
10383
10384         Advertise for the Git server instead of the CVS server.
10385         * doc/gnulib-intro.texi (Steady Development): Mention the Git
10386         repository instead of the CVS one.
10387         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
10388         about all VCS systems generically.
10389         * doc/gnulib.texi (Introduction): Capitalize `Git'.
10390
10391 2007-10-04  Bruno Haible  <bruno@clisp.org>
10392
10393         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
10394         means.
10395         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
10396
10397 2007-10-04  Bruno Haible  <bruno@clisp.org>
10398
10399         * modules/truncl-tests: New file.
10400         * tests/test-truncl.c: New file.
10401
10402         * modules/truncl: New file.
10403         * lib/truncl.c: New file.
10404         * m4/truncl.m4: New file.
10405         * lib/math.in.h (truncl): New declaration.
10406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
10407         HAVE_DECL_TRUNCL.
10408         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
10409         HAVE_DECL_TRUNCL.
10410         * doc/functions/truncl.texi: Mention the 'truncl' module.
10411
10412 2007-10-04  Bruno Haible  <bruno@clisp.org>
10413
10414         * modules/truncf-tests: New file.
10415         * tests/test-truncf.c: New file.
10416
10417         * modules/truncf: New file.
10418         * lib/trunc.c: Make paramerizable through USE_* macros.
10419         * lib/truncf.c: New file.
10420         * m4/truncf.m4: New file.
10421         * lib/math.in.h (truncf): New declaration.
10422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10423         HAVE_DECL_TRUNCF.
10424         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10425         HAVE_DECL_TRUNCF.
10426         * doc/functions/truncf.texi: Mention the 'truncf' module.
10427
10428 2007-10-03  Bruno Haible  <bruno@clisp.org>
10429
10430         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10431         augmentation also for tests modules.
10432         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
10433         * modules/atexit-tests (Makefile.am): Likewise.
10434         * modules/binary-io-tests (Makefile.am): Likewise.
10435         * modules/c-strcase-tests (Makefile.am): Likewise.
10436         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
10437         * modules/canonicalize-tests (Makefile.am): Likewise.
10438         * modules/closein-tests (Makefile.am): Likewise.
10439         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10440         * modules/freadahead-tests (Makefile.am): Likewise.
10441         * modules/fseek-tests (Makefile.am): Likewise.
10442         * modules/fseeko-tests (Makefile.am): Likewise.
10443         * modules/ftell-tests (Makefile.am): Likewise.
10444         * modules/ftello-tests (Makefile.am): Likewise.
10445         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
10446         * modules/isnanl-tests (Makefile.am): Likewise.
10447         * modules/lseek-tests (Makefile.am): Likewise.
10448         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10449         * modules/mbscasestr-tests (Makefile.am): Likewise.
10450         * modules/mbschr-tests (Makefile.am): Likewise.
10451         * modules/mbscspn-tests (Makefile.am): Likewise.
10452         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10453         * modules/mbspbrk-tests (Makefile.am): Likewise.
10454         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10455         * modules/mbsrchr-tests (Makefile.am): Likewise.
10456         * modules/mbsspn-tests (Makefile.am): Likewise.
10457         * modules/mbsstr-tests (Makefile.am): Likewise.
10458         * modules/printf-posix-tests (Makefile.am): Likewise.
10459         * modules/snprintf-posix-tests (Makefile.am): Likewise.
10460         * modules/sprintf-posix-tests (Makefile.am): Likewise.
10461         * modules/tsearch-tests (Makefile.am): Likewise.
10462         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10463         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10464         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10465         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10466         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10467         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10468         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10469         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10470         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
10471         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
10472         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10473         * modules/xstrtol-tests (Makefile.am): Likewise.
10474         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10475         * modules/yesno-tests (Makefile.am): Likewise.
10476
10477 2007-10-03  Bruno Haible  <bruno@clisp.org>
10478
10479         * modules/trunc-tests: New file.
10480         * tests/test-trunc.c: New file.
10481
10482         * modules/trunc: New file.
10483         * lib/trunc.c: New file.
10484         * m4/trunc.m4: New file.
10485         * lib/math.in.h (trunc): New declaration.
10486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
10487         HAVE_DECL_TRUNC.
10488         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
10489         HAVE_DECL_TRUNC.
10490         * doc/functions/trunc.texi: Mention the 'trunc' module.
10491
10492 2007-10-03  Bruno Haible  <bruno@clisp.org>
10493
10494         * tests/test-fpending.c: New file, mostly copied
10495         from coreutils/lib/t-fpending.c.
10496         * modules/fpending-tests: New file.
10497
10498 2007-10-03  Bruno Haible  <bruno@clisp.org>
10499
10500         Port the stdio extensions to QNX (untested).
10501         * lib/fseterr.c (fseterr): Add support for QNX.
10502         * lib/fbufmode.c (fbufmode): Likewise.
10503         * lib/freadable.c (freadable): Likewise.
10504         * lib/fwritable.c (fwritable): Likewise.
10505         * lib/freading.c (freading): Likewise.
10506         * lib/fwriting.c (fwriting): Likewise.
10507         * lib/freadahead.c (freadahed): Likewise.
10508         * lib/fpurge.c (fpurge): Likewise.
10509         * lib/fseeko.c (rpl_fseeko): Likewise.
10510
10511 2007-10-03  Bruno Haible  <bruno@clisp.org>
10512             Jim Meyering  <jim@meyering.net>
10513             Eric Blake  <ebb9@byu.net>
10514
10515         * doc/relocatable.texi: Use @command instead of @program.
10516
10517 2007-10-02  Jim Meyering  <jim@meyering.net>
10518
10519         Perform one more "_.h" -> ".in.h" substitution.
10520         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
10521         instead of unistd_.h here, too.
10522
10523 2007-10-01  Bruno Haible  <bruno@clisp.org>
10524
10525         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
10526         Needed for the alloca-opt module.
10527
10528 2007-09-30  Bruno Haible  <bruno@clisp.org>
10529
10530         * lib/alloca.in.h: Renamed from lib/alloca_.h.
10531         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
10532         alloca_.h.
10533         * lib/argz.in.h: Renamed from lib/argz_.h.
10534         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
10535         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
10536         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
10537         byteswap_.h.
10538         * lib/dirent.in.h: Renamed from lib/dirent_.h.
10539         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
10540         dirent_.h.
10541         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
10542         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
10543         fcntl_.h.
10544         * lib/float.in.h: Renamed from lib/float_.h.
10545         * modules/float (Files, Makefile.am): Use float.in.h instead of
10546         float_.h.
10547         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
10548         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
10549         fnmatch_.h.
10550         * lib/getopt.in.h: Renamed from lib/getopt_.h.
10551         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
10552         getopt_.h.
10553         * lib/glob.in.h: Renamed from lib/glob_.h.
10554         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
10555         * lib/iconv.in.h: Renamed from lib/iconv_.h.
10556         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
10557         iconv_.h.
10558         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
10559         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
10560         inttypes_.h.
10561         * lib/locale.in.h: Renamed from lib/locale_.h.
10562         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
10563         locale_.h.
10564         * lib/math.in.h: Renamed from lib/math_.h.
10565         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
10566         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
10567         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
10568         of netinet_in_.h. Add dependency.
10569         * lib/poll.in.h: Renamed from lib/poll_.h.
10570         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
10571         * lib/search.in.h: Renamed from lib/search_.h.
10572         * modules/search (Files, Makefile.am): Use search.in.h instead of
10573         search_.h.
10574         * lib/signal.in.h: Renamed from lib/signal_.h.
10575         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
10576         _signal.h.
10577         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
10578         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
10579         stdbool_.h.
10580         * lib/stdint.in.h: Renamed from lib/stdint_.h.
10581         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
10582         stdint_.h.
10583         * lib/stdio.in.h: Renamed from lib/stdio_.h.
10584         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
10585         stdio_.h.
10586         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
10587         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
10588         stdlib_.h.
10589         * lib/string.in.h: Renamed from lib/string_.h.
10590         * modules/string (Files, Makefile.am): Use string.in.h instead of
10591         string_.h.
10592         * doc/gnulib-tool.texi (Initial import): Update.
10593         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10594         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10595         of sys_select_.h. Add dependency.
10596         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10597         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10598         of sys_socket_.h.
10599         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10600         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10601         sys_stat_.h.
10602         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10603         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10604         sys_time_.h.
10605         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10606         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10607         sysexits_.h.
10608         * lib/time.in.h: Renamed from lib/time_.h.
10609         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10610         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10611         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10612         unistd_.h.
10613         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10614         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10615         wchar_.h.
10616         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10617         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10618         wctype_.h.
10619         * build-aux/bootstrap (slurp): Update.
10620         * lib/.cppi-disable: Update.
10621
10622 2007-09-30  Bruno Haible  <bruno@clisp.org>
10623
10624         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10625         Needed on BeOS.
10626
10627 2007-09-30  Bruno Haible  <bruno@clisp.org>
10628
10629         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10630
10631 2007-09-29  Bruno Haible  <bruno@clisp.org>
10632
10633         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10634
10635 2007-09-29  Bruno Haible  <bruno@clisp.org>
10636
10637         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10638         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10639         * build-aux/install-reloc: Compile also areadlink.c.
10640         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10641
10642 2007-09-29  Bruno Haible  <bruno@clisp.org>
10643
10644         * gnulib-tool (func_emit_initmacro_done): Indentation.
10645
10646 2007-09-29  Bruno Haible  <bruno@clisp.org>
10647
10648         * README: Add CVS checkout update instructions.
10649         Info from Bob Proulx <bob@proulx.com>.
10650
10651 2007-09-28  Eric Blake  <ebb9@byu.net>
10652
10653         Provide move-if-change.
10654         * build-aux/move-if-change: New file, based on best practice
10655         rather than any canonical upstream location.
10656
10657 2007-09-28  Jim Meyering  <jim@meyering.net>
10658
10659         Fix canonicalize loop-detection corner case.
10660         Do not attempt to stat the symlink values stored via seen_triple.
10661         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10662         on linux-2.6.18, (but not 2.6.22).
10663         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10664         triple_compare.  The former compares dev,ino,filename, while the latter
10665         would actually stat dirname(filename) when dev and ino were equal.
10666         * lib/hash-triple.c: Install <string.h>.
10667         (STREQ): Define.
10668         (triple_compare_ino_str): New function.
10669         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10670
10671 2007-09-28  Eric Blake  <ebb9@byu.net>
10672
10673         Enforce that AC_REPLACE_FUNCS files exist.
10674         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10675         override check for typos.
10676
10677         Fix test-closein on Solaris 10.
10678         * tests/test-closein.c (main): Don't assume stdin can be inherited
10679         closed on all systems.
10680         * tests/test-closein.sh: Likewise.
10681         Reported by Piotr Tarnowski.
10682
10683 2007-09-28  Jim Meyering  <jim@meyering.net>
10684
10685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10686
10687 2007-09-27  Jim Meyering  <jim@meyering.net>
10688
10689         canonicalize: Avoid a false-positive cycle failure.
10690         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10691         Sort.  Remove cycle-check.
10692         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10693         not cycle-check.h.
10694         (seen_triple): New function.
10695         (canonicalize_filename_mode): Use it instead of cycle-check.
10696         * tests/test-canonicalize.c: Add a test for this bug.
10697         * tests/test-canonicalize.sh: Set up and run the test.
10698
10699         New module, file-set, from coreutils.
10700         * modules/file-set: Define it.
10701         * lib/file-set.c, lib/file-set.h: Implement.
10702
10703         New module, hash-triple, from coreutils.
10704         * modules/hash-triple: Define it.
10705         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10706
10707 2007-09-25  Eric Blake  <ebb9@byu.net>
10708
10709         Fix strerror on Interix.
10710         * lib/string_.h (strerror): Declare replacement.
10711         * doc/functions/strerror.texi (strerror): Document the Interix
10712         shortcoming.
10713         * modules/string (Makefile.am): Support new hooks.
10714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10715         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10716         gl_FUNC_STRERROR_SEPARATE.
10717         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10718         * lib/strerror.c (rpl_strerror): Provide replacement.
10719         * modules/strerror (Depends-on): Add string.
10720         (configure.ac): Detect use of module.
10721         * tests/test-strerror.c: New file.
10722         * modules/strerror-tests: New test module.
10723         * modules/argp (Depends-on): Add strerror.
10724         * modules/error (Depends-on): Likewise.
10725         Reported by Martin Koeppe.
10726
10727 2007-09-24  Bruno Haible  <bruno@clisp.org>
10728
10729         * README: Update git instructions.
10730
10731 2007-09-24  Eric Blake  <ebb9@byu.net>
10732
10733         Revert fpending breakage from 2007-09-08.
10734         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10735         __fpending.c.
10736
10737 2007-09-24  Jim Meyering  <jim@meyering.net>
10738
10739         filenamecat.c: Add a test.
10740         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10741         showing how the function works when DIR is the empty string.
10742
10743 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10744
10745         * tests/test-canonicalize.sh: Turn on executable bit.
10746
10747 2007-09-19  Eric Blake  <ebb9@byu.net>
10748
10749         * README: Update CVS instructions.
10750
10751 2007-09-18  Bruno Haible  <bruno@clisp.org>
10752
10753         * modules/areadlink: New file.
10754         * lib/areadlink.h (areadlink): New declaration.
10755         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10756
10757 2007-09-17  Jim Meyering  <jim@meyering.net>
10758
10759         * lib/savewd.c (ESTALE) [!defined]: Define.
10760         Reported to be required on Interix by Martin Koeppe.
10761
10762 2007-09-17  Bruno Haible  <bruno@clisp.org>
10763
10764         * gnulib-tool (func_version): Use $version.
10765
10766 2007-09-16  Bruno Haible  <bruno@clisp.org>
10767
10768         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10769         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10770         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10771         Reported by Greg Schafer <gschafer@zip.com.au>.
10772
10773 2007-09-15  Bruno Haible  <bruno@clisp.org>
10774
10775         * gnulib-tool (sed): Try a little harder to make bash understand the
10776         alias.
10777         Reported by Bruce Korb <bruce.korb@gmail.com>.
10778
10779 2007-09-13  Eric Blake  <ebb9@byu.net>
10780
10781         * ChangeLog: Remove conflict markers.
10782
10783 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10784
10785         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10786         Reported by Bruno Haible <bruno@clisp.org>.
10787
10788 2007-09-12  Bruno Haible  <bruno@clisp.org>
10789
10790         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10791         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10792         is not defined.
10793
10794 2007-09-12  Eric Blake  <ebb9@byu.net>
10795
10796         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10797         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10798         Autoconf definition.
10799         * modules/euidaccess (Depends-on): Add extensions, for
10800         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10801         * modules/fnmatch (Depends-on): Likewise.
10802         * modules/getaddrinfo (Depends-on): Likewise.
10803         * modules/getdelim (Depends-on): Likewise.
10804         * modules/getline (Depends-on): Likewise.
10805         * modules/getsubopt (Depends-on): Likewise.
10806         * modules/gettext (Depends-on): Likewise.
10807         * modules/group-member (Depends-on): Likewise.
10808         * modules/mbchar (Depends-on): Likewise.
10809         * modules/memmem (Depends-on): Likewise.
10810         * modules/mempcpy (Depends-on): Likewise.
10811         * modules/memrchr (Depends-on): Likewise.
10812         * modules/pagealign_alloc (Depends-on): Likewise.
10813         * modules/readutmp (Depends-on): Likewise.
10814         * modules/stpcpy (Depends-on): Likewise.
10815         * modules/stpncpy (Depends-on): Likewise.
10816         * modules/strchrnul (Depends-on): Likewise.
10817         * modules/strndup (Depends-on): Likewise.
10818         * modules/strsep (Depends-on): Likewise.
10819         * modules/strverscmp (Depends-on): Likewise.
10820         * modules/vasprintf (Depends-on): Likewise.
10821         * modules/wcwidth (Depends-on): Likewise.
10822         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10823         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10824         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10825         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10826         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10827         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10828         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10829         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10830         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10831         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10833         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10834         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10836         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10837         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10838         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10839         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10840         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10841         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10842         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10843         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10844         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10845         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10846         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10848         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10849         so that lock.m4 can be used in gettext without extensions module.
10850
10851 2007-09-11  Bruno Haible  <bruno@clisp.org>
10852
10853         * m4/isc-posix.m4: Remove file.
10854         Suggested by Eric Blake.
10855
10856 2007-09-11  Eric Blake  <ebb9@byu.net>
10857
10858         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10859
10860 2007-09-10  Bruno Haible  <bruno@clisp.org>
10861
10862         * posix-modules: Fix typo in error message.
10863         Reported by Matt <mkraai@beckman.com>.
10864
10865 2007-09-09  Bruno Haible  <bruno@clisp.org>
10866
10867         * doc/functions/getdelim.texi: Update list of platforms lacking the
10868         function.
10869         * doc/functions/getline.texi: Likewise.
10870
10871 2007-09-09  Jim Meyering  <jim@meyering.net>
10872
10873         * lib/hash.c (hash_initialize): Detect calloc failure.
10874         Reported by Bruno Haible.
10875
10876 2007-09-09  Bruno Haible  <bruno@clisp.org>
10877
10878         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10879         malloc or realloc fails.
10880
10881 2007-09-09  Bruno Haible  <bruno@clisp.org>
10882
10883         * modules/getcwd (Depends-on): Add malloc-posix.
10884         * modules/glob (Depends-on): Likewise.
10885         * modules/putenv (Depends-on): Likewise.
10886         * modules/strdup (Depends-on): Likewise.
10887         * modules/getdelim (Depends-on): Add realloc-posix.
10888         * modules/read-file (Depends-on): Likewise.
10889
10890 2007-09-09  Bruno Haible  <bruno@clisp.org>
10891
10892         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10893         (gl_FUNC_MALLOC_POSIX): Require it.
10894         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10895         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10896         * modules/realloc (Files): Add m4/malloc.m4.
10897         * modules/calloc (Files): Likewise.
10898
10899 2007-09-09  Bruno Haible  <bruno@clisp.org>
10900
10901         * modules/malloc-posix: New file.
10902         * modules/malloc (Depends-on): Add malloc-posix.
10903         * lib/malloc.c: Include errno.h.
10904         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10905         and a POSIX-compatible malloc into a single function. Set ENOMEM
10906         when returning NULL.
10907         * m4/malloc.m4: New file.
10908         * doc/functions/malloc.texi: Mention the malloc-posix module.
10909         * lib/stdlib_.h (malloc): New declaration.
10910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10911         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10912         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10913         and HAVE_MALLOC_POSIX.
10914
10915 2007-09-09  Bruno Haible  <bruno@clisp.org>
10916
10917         * modules/realloc-posix: New file.
10918         * modules/realloc (Depends-on): Add realloc-posix.
10919         * lib/realloc.c: Include errno.h.
10920         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10921         and a POSIX-compatible realloc into a single function. Set ENOMEM
10922         when returning NULL.
10923         * m4/realloc.m4: New file.
10924         * doc/functions/realloc.texi: Mention the realloc-posix module.
10925         * lib/stdlib_.h (realloc): New declaration.
10926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10927         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10928         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10929         and HAVE_REALLOC_POSIX.
10930
10931 2007-09-09  Bruno Haible  <bruno@clisp.org>
10932
10933         * modules/calloc-posix: New file.
10934         * modules/calloc (Depends-on): Add calloc-posix.
10935         * lib/calloc.c: Include errno.h.
10936         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10937         and a POSIX-compatible calloc into a single function. Set ENOMEM
10938         when returning NULL.
10939         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10940         * doc/functions/calloc.texi: Mention the calloc-posix module.
10941         * lib/stdlib_.h (calloc): New declaration.
10942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10943         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10944         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10945         and HAVE_CALLOC_POSIX.
10946
10947 2007-09-09  Bruno Haible  <bruno@clisp.org>
10948
10949         Allow for modules to show an arbitrary notice.
10950         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10951         * gnulib-tool: New option --extract-notice.
10952         (func_usage): Document it.
10953         (sed_extract_prog): Update.
10954         (func_get_notice): New function.
10955         (func_modules_notice): New function.
10956         (func_import, func_create_testdir): Invoke it.
10957         Suggested by Jim Meyering.
10958
10959 2007-09-09  Bruno Haible  <bruno@clisp.org>
10960
10961         * gnulib-tool: New options --verbose, --quiet.
10962         (func_usage): Document them.
10963         (verbose): New variable.
10964         (func_execute_command): New function.
10965         (func_import): Don't show the module list and the file list if
10966         $verbose < 0.
10967         (func_create_testdir): Likewise. Use func_execute_command.
10968         (func_create_megatestdir): Use func_execute_command.
10969
10970 2007-09-08  Bruno Haible  <bruno@clisp.org>
10971
10972         * gnulib-tool (func_import): Prefer rsync over wget when available,
10973         for fetching the PO files.
10974
10975 2007-09-08  Bruno Haible  <bruno@clisp.org>
10976
10977         * posix-modules: New file. Portions copied from gnulib-tool.
10978         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10979
10980 2007-09-08  Jim Meyering  <jim@meyering.net>
10981
10982         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10983         * lib/fpending.h: Rename from __fpending.h.
10984         * lib/fpending.c: Rename from __fpending.c.
10985         Include "fpending.h", not "__fpending.h".
10986         * lib/__fpending.h, lib/__fpending.c: Remove files.
10987         * modules/fpending (Files): Reflect new file names.
10988         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10989
10990 2007-09-08  Bruno Haible  <bruno@clisp.org>
10991
10992         * m4/inttypes-h.m4: Remove stub file.
10993
10994 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10995
10996         * doc/headers/stdint.texi: Discuss #include_next issue.
10997
10998 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10999
11000         * build-aux/bootstrap: Remove obsolete comment about wget --help.
11001
11002 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11003
11004         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
11005         in variable name.
11006
11007 2007-09-03  Jim Meyering  <jim@meyering.net>
11008
11009         New module: git-version-gen.
11010         * modules/git-version-gen: New file.
11011
11012         Import changes from coreutils for bootstrap script.
11013
11014         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
11015
11016         bootstrap: uses rsync to download the .po files
11017         * build-aux/bootstrap (po_download_command_format): New global.
11018         (download_po_files): Use rsync.
11019         (update_po_files): Don't remove .po files after download,
11020         so future rsync runs can take advantage of the copies.
11021
11022         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
11023
11024         Solve the unnecessary-.po-file-regeneration problem once and for all.
11025         * build-aux/bootstrap (download_po_files): New function, renamed from
11026         get_translations.  Now, downloads, but doesn't update LINGUAS.
11027         (update_po_files): New function.
11028
11029         bootstrap: Ignore more.
11030         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
11031         uniwidth to e.g., lib/.gitignore.
11032         (slurp): Handle the sys_stat_.h -> sys mapping, too.
11033
11034         * build-aux/bootstrap: New setting: vc_ignore.
11035         (insert_sorted_if_absent): Create $file if absent.
11036         Adapt to new, possibly empty, list: $vc_ignore.
11037
11038         bootstrap: generate more ignorable names
11039         * build-aux/bootstrap (slurp): When generating ignorable names,
11040         also map .sin to .sed, .gperf to .c, and .y to .c.
11041
11042 2007-09-03  Jim Meyering  <jim@meyering.net>
11043
11044         * build-aux/git-version-gen: New file, from coreutils.  For details, see
11045         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
11046
11047 2007-09-02  Bruno Haible  <bruno@clisp.org>
11048
11049         Fix mis-recognition of 'mcs' on QNX 6.
11050         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
11051         output contains the string "Mono".
11052         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
11053         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
11054
11055 2007-09-01  Bruno Haible  <bruno@clisp.org>
11056
11057         Fix collision between uniwidth/* and linebreak modules.
11058         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
11059         u32_width): Remove declarations.
11060         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
11061         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
11062         streq3, streq2, streq1, streq0): Remove functions.
11063         (STREQ): Remove macro.
11064         (is_cjk_encoding): Remove function.
11065         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
11066         (uc_width, u8_width, u16_width, u32_width): Remove functions.
11067         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
11068         * NEWS: Document the change.
11069
11070 2007-09-01  Bruno Haible  <bruno@clisp.org>
11071
11072         * lib/streq.h: Add double-inclusion guard.
11073
11074 2007-09-01  Karl Berry  <karl@gnu.org>
11075
11076         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
11077
11078 2007-08-28  Jim Meyering  <jim@meyering.net>
11079
11080         Rename mreadlink_with_size to areadlink_with_size.
11081         * NEWS: Document the change.
11082         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
11083         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
11084         * lib/mreadlink.h: Rename this to...
11085         * lib/areadlink.h: ...this.
11086         * modules/mreadlink-with-size: Rename this to...
11087         * modules/areadlink-with-size: ...this.
11088         * lib/canonicalize.c: Reflect the renaming.
11089         * modules/canonicalize: Likewise.
11090
11091 2007-08-26  Bruno Haible  <bruno@clisp.org>
11092
11093         * gnulib-tool (func_import): When deciding which files to remove,
11094         consider also dangling symbolic links.
11095         Reported by Eric Blake.
11096
11097 2007-08-26  Bruno Haible  <bruno@clisp.org>
11098
11099         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
11100
11101 2007-08-23  Simon Josefsson  <simon@josefsson.org>
11102
11103         * lib/readline.c: Don't include getline.h, the prototype is now
11104         found in stdio.h.
11105
11106 2007-08-23  Jim Meyering  <jim@meyering.net>
11107
11108         Getdelim touchup.
11109         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
11110         around the funlockfile call, since funlockfile never sets errno.
11111         Don't set errno upon failed realloc.
11112
11113 2007-08-22  Eric Blake  <ebb9@byu.net>
11114
11115         Getline touchups.
11116         * lib/getdelim.c (getdelim): Revert regression that required *n to
11117         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
11118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
11119         getdelim, rather than whether implementation is missing.
11120         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
11121         * lib/stdio_.h (getline): Also declare if replacement is
11122         required.
11123         * doc/functions/getdelim.texi: New file.
11124         * doc/functions/getline.texi: Likewise.
11125         * doc/gnulib.texi (Function Substitutes): Add new files.
11126         Reported by Bruno Haible.
11127
11128 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
11129
11130         * users.txt: Add Guile.
11131
11132 2007-08-22  Eric Blake  <ebb9@byu.net>
11133
11134         * tests/test-getdelim.c (main): Use remove, not unlink.
11135         * tests/test-getline.c (main): Likewise.
11136
11137         Move getline and getdelim into stdio.h, per POSIX 200x.
11138         * modules/getline (Files): Remove getline.h.
11139         (Depends-on): Add stdio.
11140         (configure.ac): Add module indicator.
11141         * modules/getdelim (Files): Remove getdelim.h.
11142         (Depends-on): Add stdio.
11143         (configure.ac): Add module indicator.
11144         * modules/stdio (Makefile.am): Work with new indicators.
11145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
11147         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11148         * lib/getdelim.h: Delete.
11149         * lib/getline.h: Delete.
11150         * lib/stdio_.h (getdelim, getline): Declare.
11151         * modules/getdelim-tests: New module.
11152         * modules/getline-tests: Likewise.
11153         * tests/test-getdelim.c: New file.
11154         * tests/test-getline.c: Likewise.
11155         * NEWS: Document the change.
11156         * lib/getline.c: Update choice of header.
11157         * lib/csharpcomp.c: Likewise.
11158         * lib/getpass.c: Likewise.
11159         * lib/javacomp.c: Likewise.
11160         * lib/javaversion.c: Likewise.
11161         * lib/yesno.c: Likewise.
11162         * lib/getdelim.c: Likewise.
11163         (getdelim): Set errno on failure, and avoid memory leak.
11164
11165 2007-08-19  Bruno Haible  <bruno@clisp.org>
11166
11167         * modules/closein (Depends-on): Add freadahead.
11168         * lib/closein.c: Include freadahead.h.
11169         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
11170         is zero.
11171
11172 2007-08-19  Bruno Haible  <bruno@clisp.org>
11173
11174         * modules/freadahead-tests: New file.
11175         * tests/test-freadahead.sh: New file.
11176         * tests/test-freadahead.c: New file.
11177
11178         * modules/freadahead: New file.
11179         * lib/freadahead.h: New file.
11180         * lib/freadahead.c: New file.
11181         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
11182         fbufmode, fpurge, freadable, fwritable.
11183
11184 2007-08-19  Eric Blake  <ebb9@byu.net>
11185
11186         Test yesno in combination with closein.
11187         * lib/yesno.c (yesno): Document use of stdin.
11188         * modules/yesno-tests (Files): New module.
11189         * tests/test-yesno.c (main): New file.
11190         * tests/test-yesno.sh: Likewise.
11191
11192 2007-08-19  Bruno Haible  <bruno@clisp.org>
11193
11194         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
11195         * lib/fseeko.c (rpl_fseeko): Likewise.
11196         * lib/fseterr.c (fseterr): Likewise.
11197
11198 2007-08-19  Bruno Haible  <bruno@clisp.org>
11199
11200         * tests/test-lseek.c (main): Disable a test for BeOS.
11201         * doc/functions/lseek.texi: Document the BeOS bug.
11202
11203 2007-08-19  Bruno Haible  <bruno@clisp.org>
11204             Eric Blake  <ebb9@byu.net>
11205
11206         * lib/lseek.c: Include <sys/stat.h>.
11207         (rpl_lseek): Add workaround code also for Unix platforms.
11208         Needed for BeOS.
11209         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
11210         * doc/functions/lseek.texi: Document BeOS definiency.
11211
11212 2007-08-18  Bruno Haible  <bruno@clisp.org>
11213
11214         * modules/fstrcmp-tests: New file.
11215         * tests/test-fstrcmp.c: New file.
11216
11217 2007-08-18  Bruno Haible  <bruno@clisp.org>
11218
11219         * modules/fstrcmp: New file, from GNU gettext with modifications.
11220         * lib/fstrcmp.h: New file, from GNU gettext.
11221         * lib/fstrcmp.c: New file, from GNU gettext.
11222         * MODULES.html.sh (String handling): Add fstrcmp.
11223
11224 2007-08-18  Bruno Haible  <bruno@clisp.org>
11225
11226         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
11227         'bool'.
11228         (diag, compareseq): Remove const from the ctxt argument.
11229         (USE_HEURISTIC): Undefine at the end.
11230
11231 2007-08-18  Jim Meyering  <jim@meyering.net>
11232
11233         New file: lib/idcache.h
11234         * NEWS: Mention the addition.
11235         * modules/idcache (Files): Add lib/idcache.h
11236         * lib/idcache.c: Include "idcache.h".
11237         Don't include <sys/types.h>.
11238         Add a FIXME comment.
11239         Move file-scoped "static" declarations to the top.
11240         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
11241
11242 2007-08-17  Bruno Haible  <bruno@clisp.org>
11243         and Paul Eggert  <eggert@cs.ucla.edu>
11244
11245         * MODULES.html.sh: Add diffseq.
11246         * modules/diffseq: New file.
11247         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
11248         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
11249
11250 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11251
11252         Import changes from coreutils for bootstrap script.
11253
11254         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
11255
11256         * build-aux/bootstrap (slurp): Work even in environments where
11257         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
11258         current code does not slurp files whose names start with ".", and
11259         this looks like it might be a troublesome area.
11260
11261         2007-07-11  Jim Meyering  <jim@meyering.net>
11262
11263         If there's a GPL vN copyright comment, require that N == 3.
11264
11265         2007-07-08  Jim Meyering  <jim@meyering.net>
11266
11267         Run the coreutils-specific code only if tests/Makefile.am.in exists.
11268         * build-aux/bootstrap (mam_template): Move definition out of loop.
11269
11270         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
11271
11272         * build-aux/bootstrap (symlink_to_dir): Rename function from
11273         symlink_to_gnulib.  Add a directory parameter.  Update all
11274         callers.
11275         (cp_mark_as_generated): Also check for -- and link to -- files in
11276         gl/.
11277
11278         2007-07-08  Jim Meyering  <jim@meyering.net>
11279
11280         Adapt to deeper hierarchy in gnulib.
11281         * build-aux/bootstrap (symlink_to_dir): If the destination
11282         directory doesn't exist, create it. This is required at least for
11283         "lib/uniwidth/cjk.h".
11284
11285         2007-05-15  Jim Meyering  <jim@meyering.net>
11286
11287         * build-aux/bootstrap: Now that generated Makefile.am files
11288         are no longer under version control, they must be created at
11289         bootstrap time.
11290
11291 2007-08-14  Ben Pfaff  <blp@gnu.org>
11292
11293         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
11294
11295 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11296
11297         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
11298         given the changes below.
11299         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
11300         even on hosts that have padding bits beyond the supported 64.
11301
11302 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11303
11304         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
11305         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
11306         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
11307         depends on it.
11308         (xstrtol_error): Remove.
11309         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
11310         but with a different signature.
11311         (ATTRIBUTE_NORETURN, __attribute__): New macros.
11312         * lib/xstrtol-error.c: Include exitfail.h.
11313         (xstrtol_fatal): New function, with a different signature from the
11314         old xstrtol_error, so that the caller need not worry about passing
11315         in an exit status, or about storage management of the option argument.
11316         (xstrtol_error): Now a static function.  Redo signature to
11317         implement xstrtol_fatal.  Output the correct number of hyphens in
11318         front of the option so that the caller need not worry about
11319         storage management.
11320         (N_): New macro.
11321         (_): Remove; not used now.
11322         * modules/xstrtol: Depend on getopt.
11323         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
11324         of old STRTOL_FATAL_ERROR macro.
11325         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11326         of test program.
11327         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11328         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11329
11330 2007-08-08  Eric Blake  <ebb9@byu.net>
11331
11332         * lib/xstrtol-error.c: Add missing include.
11333
11334         Move xstrtol messages into gnulib domain, when --pobase is used.
11335         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11336         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11337         * modules/xstrtol (Files): Distribute new file.
11338         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11339         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11340         * tests/test-xstrtol.c: ...into new file.
11341         * tests/test-xstrtoul.c: Also test xstrtoul.
11342         * tests/test-xstrtoimax.c: Also test xstrtoimax.
11343         * tests/test-xstrtoumax.c: Also test xstrtoumax.
11344         * tests/test-xstrtol.sh: Drive the tests.
11345         * tests/test-xstrtoimax.sh: Likewise.
11346         * tests/test-xstrtoumax.sh: Likewise.
11347         * modules/xstrtol-tests: New module.
11348         * modules/xstrtoimax-tests: Likewise.
11349         * modules/xstrtoumax-tests: Likewise.
11350
11351 2007-08-08  Jim Meyering  <jim@meyering.net>
11352
11353         New function: mfile_name_concat.
11354         * lib/filenamecat.c (mfile_name_concat): New function, just like
11355         file_name_concat, but return NULL upon failure rather than exiting
11356         with a diagnostic.
11357         * lib/filenamecat.h: Declare it.
11358
11359 2007-08-07  Bruno Haible  <bruno@clisp.org>
11360
11361         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
11362         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
11363         warning from gcc.
11364         Reported by Eric Blake.
11365
11366 2007-08-07  Simon Josefsson  <simon@josefsson.org>
11367
11368         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
11369         * modules/crypto/arcfour (License): Likewise.
11370         * modules/crypto/des-tests (License): Likewise.
11371         * modules/crypto/gc-arctwo-tests (License): Likewise.
11372         * modules/crypto/gc-des-tests (License): Likewise.
11373         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
11374         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
11375         * modules/crypto/gc-md2-tests (License): Likewise.
11376         * modules/crypto/gc-md4-tests (License): Likewise.
11377         * modules/crypto/gc-md5-tests (License): Likewise.
11378         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
11379         * modules/crypto/gc-rijndael-tests (License): Likewise.
11380         * modules/crypto/gc-sha1-tests (License): Likewise.
11381         * modules/crypto/gc-tests (License): Likewise.
11382         * modules/crypto/hmac-md5 (License): Likewise.
11383         * modules/crypto/hmac-sha1 (License): Likewise.
11384         * modules/crypto/md2-tests (License): Likewise.
11385         * modules/crypto/md4-tests (License): Likewise.
11386         * modules/crypto/md5 (License): Likewise.
11387         * modules/crypto/rijndael (License): Likewise.
11388         * modules/crypto/sha1 (License): Likewise.
11389         * modules/memxor (License): Likewise.
11390
11391 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11392         and Bruno Haible  <bruno@clisp.org>
11393
11394         * NEWS: Describe interface changes to human, xstrtol.
11395         * lib/human.h: Include <xstrtol.h>.
11396         (human_options): Return enum strtol_error, not int.  Remove
11397         bool arg; take int * instead.
11398         * lib/human.c: Don't include "gettext.h".
11399         (_): Remove; no longer used.
11400         Don't include <xstrtol.h>, since human.h does it.
11401         (human_options): Adjust to abovementioned interface changes.
11402         Do not report error to stderr; that's now the caller's
11403         responsibility.
11404         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
11405         interface change.
11406         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
11407         Str, Argument_type_string.  All uses changed.  Put " argument"
11408         in diagnostics to make them clearer.  Change wording of suffix
11409         message for clarity.
11410         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
11411         Argument_type_string.
11412         (STRTOL_FATAL_WARN): Remove; no longer used.
11413         * modules/human (Depends-on): Remove gettext-h.
11414
11415 2007-08-06  Simon Josefsson  <simon@josefsson.org>
11416
11417         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
11418
11419 2007-07-31  Bruno Haible  <bruno@clisp.org>
11420
11421         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11422         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11423         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11424
11425 2007-07-31  Bruno Haible  <bruno@clisp.org>
11426
11427         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
11428         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
11429
11430 2007-07-30  Bruno Haible  <bruno@clisp.org>
11431
11432         * modules/base64 (License): Use the synonymous term "LGPLv2+".
11433         * modules/c-ctype (License): Likewise.
11434         * modules/c-strcase (License): Likewise.
11435         * modules/check-version (License): Likewise.
11436         * modules/iconv (License): Likewise.
11437         * modules/iconv_open (License): Likewise.
11438         * modules/read-file (License): Likewise.
11439         * modules/striconv (License): Likewise.
11440         * modules/strverscmp (License): Likewise.
11441         * modules/vasprintf (License): Likewise.
11442         * modules/crypto/des (License): Likewise.
11443         * modules/crypto/gc (License): Likewise.
11444         * modules/crypto/gc-arcfour (License): Likewise.
11445         * modules/crypto/gc-arctwo (License): Likewise.
11446         * modules/crypto/gc-des (License): Likewise.
11447         * modules/crypto/gc-hmac-md5 (License): Likewise.
11448         * modules/crypto/gc-hmac-sha1 (License): Likewise.
11449         * modules/crypto/gc-md2 (License): Likewise.
11450         * modules/crypto/gc-md4 (License): Likewise.
11451         * modules/crypto/gc-md5 (License): Likewise.
11452         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
11453         * modules/crypto/gc-random (License): Likewise.
11454         * modules/crypto/gc-rijndael (License): Likewise.
11455         * modules/crypto/gc-sha1 (License): Likewise.
11456         * modules/crypto/md2 (License): Likewise.
11457         * modules/crypto/md4 (License): Likewise.
11458
11459 2007-07-30  Jim Meyering  <jim@meyering.net>
11460
11461         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
11462         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
11463         it has valid stat data.  This bug would cause du not to count the
11464         sizes of inaccessible directories.
11465         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
11466         in <http://bugzilla.redhat.com/250077>.
11467
11468 2007-07-25  Peter O'Gorman  <peter@pogma.com>
11469             Bruno Haible  <bruno@clisp.org>
11470
11471         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
11472         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
11473         #include_next, gives a diagnostic about it, but reports no error in
11474         the exit code.
11475         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
11476
11477 2007-07-24  Ben Pfaff  <blp@gnu.org>
11478
11479         Improve name: "count-one-bits" is better than "popcount".
11480         * MODULES.html.sh: Update name.
11481         * lib/popcount.h: Renamed lib/count-one-bits.h.
11482         (popcount): Renamed count_one_bits.
11483         (popcountl): Renamed count_one_bits_l.
11484         (popcountll): Renamed count_one_bits_ll.
11485         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
11486         * modules/popcount: Renamed module/count-one-bits.
11487         * modules/popcount-tests: Renamed module/count-one-bits-tests.
11488         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
11489
11490 2007-07-23  Ben Pfaff  <blp@gnu.org>
11491
11492         * lib/popcount.h (popcount32): Reduce size of constants, to allow
11493         better code generation, and add U to large constants to avoid
11494         warnings, in non-GCC case.
11495         Suggested by Bruno Haible.
11496
11497 2007-07-23  Ben Pfaff  <blp@gnu.org>
11498
11499         * lib/popcount.h: Use verify_true instead of if...abort.
11500         * modules/popcount: Depend on verify module.
11501         Suggested by Jim Meyering.
11502
11503 2007-07-23  Bruno Haible  <bruno@clisp.org>
11504
11505         * gnulib-tool (func_import): Create a .cvsignore file also when the
11506         directory is not yet in CVS but the toplevel directory is. When
11507         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
11508         Reported by Karl Berry.
11509
11510 2007-07-22  Ben Pfaff  <blp@gnu.org>
11511
11512         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
11513         case.
11514         Suggested by Eric Blake.
11515
11516 2007-07-22  Ben Pfaff  <blp@gnu.org>
11517
11518         New module: popcount.
11519         * MODULES.html.sh: Add popcount.
11520         * modules/popcount: New file.
11521         * modules/popcount-tests: New file.
11522         * tests/test-popcount.c: New file.
11523         * lib/popcount.h: New file.
11524         * m4/popcount.m4: New file.
11525
11526 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11527
11528         * build-aux/announce-gen: Update to GPLv3.
11529
11530         * build-aux/config.guess: Update from config.
11531
11532 2007-07-21  Bruno Haible  <bruno@clisp.org>
11533
11534         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
11535         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
11536
11537 2007-07-20  Jim Meyering  <jim@meyering.net>
11538
11539         * check-module: Diagnose a self-dependency.
11540
11541 2007-07-19  Bruno Haible  <bruno@clisp.org>
11542
11543         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
11544         empty.
11545         Reported by Eric Blake.
11546
11547 2007-07-18  Bruno Haible  <bruno@clisp.org>
11548
11549         * gnulib-tool: New options --po-base, --po-domain.
11550         (func_usage): Document them.
11551         (pobase, po_domain): New variables.
11552         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
11553         DEFAULT_TEXT_DOMAIN.
11554         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
11555         (func_import): Consider pobase and po_domain. Create a po/ directory.
11556         (func_create_testdir): Set pobase and po_domain to empty.
11557         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
11558         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
11559
11560 2007-07-18  Bruno Haible  <bruno@clisp.org>
11561
11562         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11563         EXTRA_DIST augmentation for files in build-aux/.
11564
11565 2007-07-16  Bruno Haible  <bruno@clisp.org>
11566
11567         * modules/lseek (License): Use the synonymous term "LGPLv2+".
11568         * modules/getdelim (License): Likewise.
11569
11570 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11571
11572         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
11573         * modules/d-type (License): Likewise.
11574         * modules/extensions (License): Likewise.
11575         * modules/fnmatch (License): Likewise.
11576         * modules/fseeko (License): Likewise.
11577         * modules/getaddrinfo (License): Likewise.
11578         * modules/getline (License): Likewise.
11579         * modules/getlogin_r (License): Likewise.
11580         * modules/getpass (License): Likewise.
11581         * modules/gettimeofday (License): Likewise.
11582         * modules/glob (License): Likewise.
11583         * modules/inet_ntop (License): Likewise.
11584         * modules/malloc (License): Likewise.
11585         * modules/malloca (License): Likewise.
11586         * modules/memmem (License): Likewise.
11587         * modules/mempcpy (License): Likewise.
11588         * modules/memset (License): Likewise.
11589         * modules/minmax (License): Likewise.
11590         * modules/mktime (License): Likewise.
11591         * modules/netinet_in (License): Likewise.
11592         * modules/pathmax (License): Likewise.
11593         * modules/poll (License): Likewise.
11594         * modules/regex (License): Likewise.
11595         * modules/snprintf (License): Likewise.
11596         * modules/stdbool (License): Likewise.
11597         * modules/stdint (License): Likewise.
11598         * modules/stdio (License): Likewise.
11599         * modules/strcase (License): Likewise.
11600         * modules/strcasestr (License): Likewise.
11601         * modules/strdup (License): Likewise.
11602         * modules/string (License): Likewise.
11603         * modules/strndup (License): Likewise.
11604         * modules/strnlen (License): Likewise.
11605         * modules/strpbrk (License): Likewise.
11606         * modules/strptime (License): Likewise.
11607         * modules/strsep (License): Likewise.
11608         * modules/sys_select (License): Likewise.
11609         * modules/sys_socket (License): Likewise.
11610         * modules/sys_stat (License): Likewise.
11611         * modules/sys_time (License): Likewise.
11612         * modules/time (License): Likewise.
11613         * modules/time_r (License): Likewise.
11614         * modules/timegm (License): Likewise.
11615         * modules/unistd (License): Likewise.
11616         * modules/vsnprintf (License): Likewise.
11617         * modules/wctype (License): Likewise.
11618
11619 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11620
11621         * modules/argz (License): LGPLv2+.
11622
11623 2007-07-15  Karl Berry  <karl@gnu.org>
11624
11625         * doc/gnulib.texi: revise node structure per new fdl.texi.
11626
11627 2007-07-14  Bruno Haible  <bruno@clisp.org>
11628
11629         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11630         the output file.
11631         * lib/uniname/uninames.h: Regenerated.
11632
11633 2007-07-14  Karl Berry  <karl@gnu.org>
11634
11635         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11636         omitting sectioning and index commands.
11637
11638 2007-07-13  Bruno Haible  <bruno@clisp.org>
11639
11640         New gnulib-tool option --more-symlinks.
11641         * gnulib-tool (func_usage): Document --more-symlinks.
11642         (do_copyrights): New variable.
11643         Recognize option --more-symlinks.
11644         (func_import): Don't add a copyright notice transform to
11645         sed_transform_lib_file if do_copyrights is empty.
11646
11647 2007-07-13  Bruno Haible  <bruno@clisp.org>
11648
11649         * lib/vasnprintf.c (decimal_point_char): Define also if
11650         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11651         && !NEED_PRINTF_DIRECTIVE_A.
11652         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11653         Gary V. Vaughan <gary@gnu.org>.
11654
11655 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11656
11657         * lib/inttypes_.h: Undo previous change, since it was fixed
11658         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11659
11660 2007-07-13  Bruno Haible  <bruno@clisp.org>
11661
11662         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11663         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11664
11665 2007-07-13  Jim Meyering  <jim@meyering.net>
11666
11667         df: Don't fail for Tru64's "file-on-file mount".
11668         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11669         so we fall through and use statfs instead.  Details here:
11670         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11671         Reported by Albert Chin.
11672
11673 2007-07-13  Bruno Haible  <bruno@clisp.org>
11674
11675         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11676         * modules/configmake (License): Likewise.
11677         * modules/gettext (License): Likewise.
11678         * modules/gettext-h (License): Likewise.
11679         * modules/include_next (License): Likewise.
11680         * modules/link-warning (License): Likewise.
11681         * modules/localcharset (License): Likewise.
11682         * modules/localename (License): Likewise.
11683         * modules/lock (License): Likewise.
11684         * modules/relocatable-lib-lgpl (License): Likewise.
11685         * modules/size_max (License): Likewise.
11686         * modules/vasnprintf (License): Likewise.
11687         * modules/wchar (License): Likewise.
11688         * modules/xsize (License): Likewise.
11689
11690 2007-07-13  Bruno Haible  <bruno@clisp.org>
11691
11692         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11693         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11694
11695 2007-07-12  Bruno Haible  <bruno@clisp.org>
11696
11697         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11698         in the modules files.
11699
11700 2007-07-11  Karl Berry  <karl@gnu.org>
11701
11702         * MODULES.html.sh (func_module): use
11703          sed -e '\|^'"${includefile}"'$|d'
11704          instead of /.../d, to avoid errors on $includefile's containing /.
11705
11706 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11707
11708         * gnulib-tool (func_import): Avoid duplication of --avoid
11709         statements
11710         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11711         names to `_' in variable names.
11712
11713 2007-07-10  Eric Blake  <ebb9@byu.net>
11714
11715         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11716         * NEWS: Document this change.
11717
11718 2007-07-08  Bruno Haible  <bruno@clisp.org>
11719
11720         Update to Unicode 5.0.
11721         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11722         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11723         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11724         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11725         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11726         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11727         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11728         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11729         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11730         U+10A3F, U+1D242..U+1D244.
11731         (nonspacing_table_ind): Update.
11732         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11733         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11734
11735 2007-07-08  Bruno Haible  <bruno@clisp.org>
11736
11737         Update to Unicode 5.0.
11738         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11739         code transform. Extend the name index field of unicode_name_to_code and
11740         unicode_code_to_name from 16 to 24 bits.
11741         * lib/uniname/uniname.c (unicode_character_name,
11742         unicode_name_character): Add the range 0x12xxx to the code transform.
11743         * lib/uniname/uninames.h: Regenerated.
11744         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11745
11746 2007-07-07  Bruno Haible  <bruno@clisp.org>
11747
11748         * modules/wcwidth-tests: New file.
11749         * tests/test-wcwidth.c: New file.
11750
11751         Work around MacOS X wcwidth() bug.
11752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11753         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11754         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11755         original wcwidth in non-UTF-8 locales.
11756         * modules/wcwidth (Depends-on): Add localcharset, streq,
11757         uniwidth/width.
11758         * doc/functions/wcwidth.texi: Update.
11759
11760 2007-07-07  Bruno Haible  <bruno@clisp.org>
11761
11762         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11763         (wcwidth): New declaration.
11764         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11765         macros.
11766         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11767         here. Prepare for creating <wchar.h> unconditionally.
11768         * modules/wchar (Depends-on): Add link-warning.
11769         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11770         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11771         * lib/wcwidth.h: Remove file.
11772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11773         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11774         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11775         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11776         (Include): Replace wcwidth.h with <wchar.h>.
11777         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11778         * lib/mbchar.h: Don't include wcwidth.h.
11779         * lib/mbswidth.c: Likewise.
11780         * NEWS: Mention the change.
11781
11782 2007-07-07  Bruno Haible  <bruno@clisp.org>
11783
11784         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11785         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11786         definition with an external declaration.
11787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11788         defined as a function. Remove AC_C_INLINE requirement.
11789         * modules/wcwidth (Files): Add lib/wcwidth.c.
11790         (Makefile.am): Remove redundant statement.
11791
11792 2007-07-07  Bruno Haible  <bruno@clisp.org>
11793
11794         * MODULES.html.sh (Unicode string functions): Add the new modules.
11795
11796         * tests/uniwidth/test-u32-strwidth.c: New file.
11797         * modules/uniwidth/u32-strwidth-tests: New file.
11798
11799         * lib/uniwidth/u32-strwidth.c: New file.
11800         * modules/uniwidth/u32-strwidth: New file.
11801
11802         * tests/uniwidth/test-u16-strwidth.c: New file.
11803         * modules/uniwidth/u16-strwidth-tests: New file.
11804
11805         * lib/uniwidth/u16-strwidth.c: New file.
11806         * modules/uniwidth/u16-strwidth: New file.
11807
11808         * tests/uniwidth/test-u8-strwidth.c: New file.
11809         * modules/uniwidth/u8-strwidth-tests: New file.
11810
11811         * lib/uniwidth/u8-strwidth.c: New file.
11812         * modules/uniwidth/u8-strwidth: New file.
11813
11814         * tests/uniwidth/test-u32-width.c: New file.
11815         * modules/uniwidth/u32-width-tests: New file.
11816
11817         * lib/uniwidth/u32-width.c: New file.
11818         * modules/uniwidth/u32-width: New file.
11819
11820         * tests/uniwidth/test-u16-width.c: New file.
11821         * modules/uniwidth/u16-width-tests: New file.
11822
11823         * lib/uniwidth/u16-width.c: New file.
11824         * modules/uniwidth/u16-width: New file.
11825
11826         * tests/uniwidth/test-u8-width.c: New file.
11827         * modules/uniwidth/u8-width-tests: New file.
11828
11829         * lib/uniwidth/u8-width.c: New file.
11830         * modules/uniwidth/u8-width: New file.
11831
11832         * tests/uniwidth/test-uc_width.c: New file.
11833         * modules/uniwidth/width-tests: New file.
11834
11835         * lib/uniwidth/width.c: New file, from GNU libiconv.
11836         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11837         * modules/uniwidth/width: New file.
11838
11839         * lib/uniwidth.h: New file, from GNU libiconv.
11840         * modules/uniwidth/base: New file.
11841
11842 2007-07-07  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/uniname.h: New file, from GNU gettext.
11845         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11846         * lib/uniname/uninames.h: New file, from GNU gettext.
11847         * lib/uniname/uniname.c: New file, from GNU gettext.
11848         * tests/uniname/test-uninames.sh: New file.
11849         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11850         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11851         * modules/uniname/base: New file.
11852         * modules/uniname/uniname: New file.
11853         * modules/uniname/uniname-tests: New file.
11854         * MODULES.html.sh (Unicode string functions): Add the new modules.
11855
11856 2007-07-06  Bruno Haible  <bruno@clisp.org>
11857
11858         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11859
11860 2007-07-06  Bruno Haible  <bruno@clisp.org>
11861
11862         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11863         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11864         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11865         include <sys/time.h>.
11866         Reported by Eric Blake.
11867
11868 2007-07-06  Eric Blake  <ebb9@byu.net>
11869
11870         Fix testing canonicalize on cygwin.
11871         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11872         Revert patch from 2007-06-19.
11873         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11874         canonicalize module is also in use.
11875         * tests/test-canonicalize.c: New file.
11876         * tests/test-canonicalize.sh: Likewise.
11877         * modules/canonicalize-tests: Likewise.
11878
11879 2007-07-06  Jim Meyering  <jim@meyering.net>
11880
11881         * lib/getugroups.c (getugroups): Detect getgrent failure.
11882         Adjust comment to reflect reality: this function may return -1.
11883
11884 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11885
11886         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11887         the new TP address.
11888         (usage): Fix typo
11889         (gnulib_mk): New variable.
11890
11891 2007-07-05  Jim Meyering  <jim@meyering.net>
11892
11893         Don't let endgrent clobber errno, no matter how improbable.
11894         * lib/getugroups.c (getugroups): Save and restore errno around
11895         endgrent call.
11896
11897         Close the group DB even when failing with 2^31 or more members.
11898         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11899
11900 2007-07-04  Jim Meyering  <jim@meyering.net>
11901
11902         * lib/getugroups.h: New file.
11903         * lib/getugroups.c: Include "getugroups.h".
11904         Remove uses of "register" keyword.
11905         Move local variable, "cp", down into scope where used.
11906         Give "username" parameter the "const" attribute.
11907         * modules/getugroups (Files): Add lib/getugroups.h
11908
11909 2007-07-04  Karl Berry  <karl@gnu.org>
11910
11911         * MODULES.html.sh (func_all_modules): Complete rename of
11912         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11913
11914 2007-07-02  Bruno Haible  <bruno@clisp.org>
11915
11916         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11917         mode, when inttypes.h comes from gnulib.
11918         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11919
11920 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11921
11922         * NEWS: Mention lgpl module name change.
11923
11924         * modules/lgpl-2.1: Renamed from lgpl.
11925
11926         * NEWS: Mention gpl module name change.
11927
11928         * modules/gpl-3.0: New file, based on gpl-2.0.
11929
11930         * modules/gpl-2.0: Renamed from gpl.
11931
11932         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11933         doc/gpl-2.0.texi.
11934
11935 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11936
11937         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11938         #define __STDC_LIMIT_MACROS temporarily while including
11939         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11940         Problem reported by Joel E. Denny in
11941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11942
11943 2007-07-01  Bruno Haible  <bruno@clisp.org>
11944
11945         * lib/unistdio.h: New file.
11946         * lib/unistdio/u-asnprintf.h: New file.
11947         * lib/unistdio/u-asprintf.h: New file.
11948         * lib/unistdio/u-printf-args.c: New file.
11949         * lib/unistdio/u-printf-args.h: New file.
11950         * lib/unistdio/u-printf-parse.h: New file.
11951         * lib/unistdio/u-snprintf.h: New file.
11952         * lib/unistdio/u-sprintf.h: New file.
11953         * lib/unistdio/u-vasprintf.h: New file.
11954         * lib/unistdio/u-vsnprintf.h: New file.
11955         * lib/unistdio/u-vsprintf.h: New file.
11956         * lib/unistdio/ulc-asnprintf.c: New file.
11957         * lib/unistdio/ulc-asprintf.c: New file.
11958         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11959         * lib/unistdio/ulc-printf-parse.c: New file.
11960         * lib/unistdio/ulc-snprintf.c: New file.
11961         * lib/unistdio/ulc-sprintf.c: New file.
11962         * lib/unistdio/ulc-vasnprintf.c: New file.
11963         * lib/unistdio/ulc-vasprintf.c: New file.
11964         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11965         * lib/unistdio/ulc-vsnprintf.c: New file.
11966         * lib/unistdio/ulc-vsprintf.c: New file.
11967         * lib/unistdio/u8-asnprintf.c: New file.
11968         * lib/unistdio/u8-asprintf.c: New file.
11969         * lib/unistdio/u8-printf-parse.c: New file.
11970         * lib/unistdio/u8-snprintf.c: New file.
11971         * lib/unistdio/u8-sprintf.c: New file.
11972         * lib/unistdio/u8-vasnprintf.c: New file.
11973         * lib/unistdio/u8-vasprintf.c: New file.
11974         * lib/unistdio/u8-vsnprintf.c: New file.
11975         * lib/unistdio/u8-vsprintf.c: New file.
11976         * lib/unistdio/u8-u8-asnprintf.c: New file.
11977         * lib/unistdio/u8-u8-asprintf.c: New file.
11978         * lib/unistdio/u8-u8-snprintf.c: New file.
11979         * lib/unistdio/u8-u8-sprintf.c: New file.
11980         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11981         * lib/unistdio/u8-u8-vasprintf.c: New file.
11982         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11983         * lib/unistdio/u8-u8-vsprintf.c: New file.
11984         * lib/unistdio/u16-asnprintf.c: New file.
11985         * lib/unistdio/u16-asprintf.c: New file.
11986         * lib/unistdio/u16-printf-parse.c: New file.
11987         * lib/unistdio/u16-snprintf.c: New file.
11988         * lib/unistdio/u16-sprintf.c: New file.
11989         * lib/unistdio/u16-vasnprintf.c: New file.
11990         * lib/unistdio/u16-vasprintf.c: New file.
11991         * lib/unistdio/u16-vsnprintf.c: New file.
11992         * lib/unistdio/u16-vsprintf.c: New file.
11993         * lib/unistdio/u16-u16-asnprintf.c: New file.
11994         * lib/unistdio/u16-u16-asprintf.c: New file.
11995         * lib/unistdio/u16-u16-snprintf.c: New file.
11996         * lib/unistdio/u16-u16-sprintf.c: New file.
11997         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11998         * lib/unistdio/u16-u16-vasprintf.c: New file.
11999         * lib/unistdio/u16-u16-vsnprintf.c: New file.
12000         * lib/unistdio/u16-u16-vsprintf.c: New file.
12001         * lib/unistdio/u32-asnprintf.c: New file.
12002         * lib/unistdio/u32-asprintf.c: New file.
12003         * lib/unistdio/u32-printf-parse.c: New file.
12004         * lib/unistdio/u32-snprintf.c: New file.
12005         * lib/unistdio/u32-sprintf.c: New file.
12006         * lib/unistdio/u32-vasnprintf.c: New file.
12007         * lib/unistdio/u32-vasprintf.c: New file.
12008         * lib/unistdio/u32-vsnprintf.c: New file.
12009         * lib/unistdio/u32-vsprintf.c: New file.
12010         * lib/unistdio/u32-u32-asnprintf.c: New file.
12011         * lib/unistdio/u32-u32-asprintf.c: New file.
12012         * lib/unistdio/u32-u32-snprintf.c: New file.
12013         * lib/unistdio/u32-u32-sprintf.c: New file.
12014         * lib/unistdio/u32-u32-vasnprintf.c: New file.
12015         * lib/unistdio/u32-u32-vasprintf.c: New file.
12016         * lib/unistdio/u32-u32-vsnprintf.c: New file.
12017         * lib/unistdio/u32-u32-vsprintf.c: New file.
12018         * tests/unistdio/test-ulc-asnprintf1.c: New file.
12019         * tests/unistdio/test-ulc-asnprintf1.h: New file.
12020         * tests/unistdio/test-ulc-printf1.h: New file.
12021         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
12022         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
12023         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
12024         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
12025         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
12026         * tests/unistdio/test-ulc-vasprintf1.c: New file.
12027         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
12028         * tests/unistdio/test-ulc-vsprintf1.c: New file.
12029         * tests/unistdio/test-u8-asnprintf1.c: New file.
12030         * tests/unistdio/test-u8-asnprintf1.h: New file.
12031         * tests/unistdio/test-u8-printf1.h: New file.
12032         * tests/unistdio/test-u8-vasnprintf1.c: New file.
12033         * tests/unistdio/test-u8-vasnprintf2.c: New file.
12034         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
12035         * tests/unistdio/test-u8-vasnprintf3.c: New file.
12036         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
12037         * tests/unistdio/test-u8-vasprintf1.c: New file.
12038         * tests/unistdio/test-u8-vsnprintf1.c: New file.
12039         * tests/unistdio/test-u8-vsprintf1.c: New file.
12040         * tests/unistdio/test-u16-asnprintf1.c: New file.
12041         * tests/unistdio/test-u16-asnprintf1.h: New file.
12042         * tests/unistdio/test-u16-printf1.h: New file.
12043         * tests/unistdio/test-u16-vasnprintf1.c: New file.
12044         * tests/unistdio/test-u16-vasnprintf2.c: New file.
12045         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
12046         * tests/unistdio/test-u16-vasnprintf3.c: New file.
12047         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
12048         * tests/unistdio/test-u16-vasprintf1.c: New file.
12049         * tests/unistdio/test-u16-vsnprintf1.c: New file.
12050         * tests/unistdio/test-u16-vsprintf1.c: New file.
12051         * tests/unistdio/test-u32-asnprintf1.c: New file.
12052         * tests/unistdio/test-u32-asnprintf1.h: New file.
12053         * tests/unistdio/test-u32-printf1.h: New file.
12054         * tests/unistdio/test-u32-vasnprintf1.c: New file.
12055         * tests/unistdio/test-u32-vasnprintf2.c: New file.
12056         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
12057         * tests/unistdio/test-u32-vasnprintf3.c: New file.
12058         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
12059         * tests/unistdio/test-u32-vasprintf1.c: New file.
12060         * tests/unistdio/test-u32-vsnprintf1.c: New file.
12061         * tests/unistdio/test-u32-vsprintf1.c: New file.
12062         * modules/unistdio/base: New file.
12063         * modules/unistdio/u-printf-args: New file.
12064         * modules/unistdio/ulc-asnprintf: New file.
12065         * modules/unistdio/ulc-asprintf: New file.
12066         * modules/unistdio/ulc-fprintf: New file.
12067         * modules/unistdio/ulc-printf-parse: New file.
12068         * modules/unistdio/ulc-snprintf: New file.
12069         * modules/unistdio/ulc-sprintf: New file.
12070         * modules/unistdio/ulc-vasnprintf: New file.
12071         * modules/unistdio/ulc-vasprintf: New file.
12072         * modules/unistdio/ulc-vfprintf: New file.
12073         * modules/unistdio/ulc-vsnprintf: New file.
12074         * modules/unistdio/ulc-vsprintf: New file.
12075         * modules/unistdio/u8-asnprintf: New file.
12076         * modules/unistdio/u8-asprintf: New file.
12077         * modules/unistdio/u8-printf-parse: New file.
12078         * modules/unistdio/u8-snprintf: New file.
12079         * modules/unistdio/u8-sprintf: New file.
12080         * modules/unistdio/u8-vasnprintf: New file.
12081         * modules/unistdio/u8-vasprintf: New file.
12082         * modules/unistdio/u8-vsnprintf: New file.
12083         * modules/unistdio/u8-vsprintf: New file.
12084         * modules/unistdio/u8-u8-asnprintf: New file.
12085         * modules/unistdio/u8-u8-asprintf: New file.
12086         * modules/unistdio/u8-u8-snprintf: New file.
12087         * modules/unistdio/u8-u8-sprintf: New file.
12088         * modules/unistdio/u8-u8-vasnprintf: New file.
12089         * modules/unistdio/u8-u8-vasprintf: New file.
12090         * modules/unistdio/u8-u8-vsnprintf: New file.
12091         * modules/unistdio/u8-u8-vsprintf: New file.
12092         * modules/unistdio/u16-asnprintf: New file.
12093         * modules/unistdio/u16-asprintf: New file.
12094         * modules/unistdio/u16-printf-parse: New file.
12095         * modules/unistdio/u16-snprintf: New file.
12096         * modules/unistdio/u16-sprintf: New file.
12097         * modules/unistdio/u16-vasnprintf: New file.
12098         * modules/unistdio/u16-vasprintf: New file.
12099         * modules/unistdio/u16-vsnprintf: New file.
12100         * modules/unistdio/u16-vsprintf: New file.
12101         * modules/unistdio/u16-u16-asnprintf: New file.
12102         * modules/unistdio/u16-u16-asprintf: New file.
12103         * modules/unistdio/u16-u16-snprintf: New file.
12104         * modules/unistdio/u16-u16-sprintf: New file.
12105         * modules/unistdio/u16-u16-vasnprintf: New file.
12106         * modules/unistdio/u16-u16-vasprintf: New file.
12107         * modules/unistdio/u16-u16-vsnprintf: New file.
12108         * modules/unistdio/u16-u16-vsprintf: New file.
12109         * modules/unistdio/u32-asnprintf: New file.
12110         * modules/unistdio/u32-asprintf: New file.
12111         * modules/unistdio/u32-printf-parse: New file.
12112         * modules/unistdio/u32-snprintf: New file.
12113         * modules/unistdio/u32-sprintf: New file.
12114         * modules/unistdio/u32-vasnprintf: New file.
12115         * modules/unistdio/u32-vasprintf: New file.
12116         * modules/unistdio/u32-vsnprintf: New file.
12117         * modules/unistdio/u32-vsprintf: New file.
12118         * modules/unistdio/u32-u32-asnprintf: New file.
12119         * modules/unistdio/u32-u32-asprintf: New file.
12120         * modules/unistdio/u32-u32-snprintf: New file.
12121         * modules/unistdio/u32-u32-sprintf: New file.
12122         * modules/unistdio/u32-u32-vasnprintf: New file.
12123         * modules/unistdio/u32-u32-vasprintf: New file.
12124         * modules/unistdio/u32-u32-vsnprintf: New file.
12125         * modules/unistdio/u32-u32-vsprintf: New file.
12126         * modules/unistdio/ulc-asnprintf-tests: New file.
12127         * modules/unistdio/ulc-vasnprintf-tests: New file.
12128         * modules/unistdio/ulc-vasprintf-tests: New file.
12129         * modules/unistdio/ulc-vsnprintf-tests: New file.
12130         * modules/unistdio/ulc-vsprintf-tests: New file.
12131         * modules/unistdio/u8-asnprintf-tests: New file.
12132         * modules/unistdio/u8-vasnprintf-tests: New file.
12133         * modules/unistdio/u8-vasprintf-tests: New file.
12134         * modules/unistdio/u8-vsnprintf-tests: New file.
12135         * modules/unistdio/u8-vsprintf-tests: New file.
12136         * modules/unistdio/u16-asnprintf-tests: New file.
12137         * modules/unistdio/u16-vasnprintf-tests: New file.
12138         * modules/unistdio/u16-vasprintf-tests: New file.
12139         * modules/unistdio/u16-vsnprintf-tests: New file.
12140         * modules/unistdio/u16-vsprintf-tests: New file.
12141         * modules/unistdio/u32-asnprintf-tests: New file.
12142         * modules/unistdio/u32-vasnprintf-tests: New file.
12143         * modules/unistdio/u32-vasprintf-tests: New file.
12144         * modules/unistdio/u32-vsnprintf-tests: New file.
12145         * modules/unistdio/u32-vsprintf-tests: New file.
12146         * MODULES.html.sh (Unicode string functions): Add the new modules.
12147
12148 2007-07-01  Bruno Haible  <bruno@clisp.org>
12149
12150         * lib/sprintf.c (sprintf): Limit the available length estimation,
12151         to avoid address wraparound.
12152         * lib/vsprintf.c (vsprintf): Likewise.
12153         * modules/sprintf-posix (Dependencies): Add stdint.
12154         * modules/vsprintf-posix (Dependencies): Likewise.
12155
12156 2007-07-01  Bruno Haible  <bruno@clisp.org>
12157
12158         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
12159         Windows PATH as well. Conservative double-quoting. Comments.
12160
12161 2007-07-01  Bruno Haible  <bruno@clisp.org>
12162             Eric Blake  <ebb9@byu.net>
12163             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12164
12165         * gnulib-tool (self_abspathname): Fix algorithm to cope with
12166         empty components in $PATH, denoting '.'.
12167
12168 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12169
12170         * gnulib-tool: Fix indentation.
12171         (func_create_megatestdir): Likewise.
12172         Report by Bruno Haible.
12173
12174 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12175
12176         Sync from Automake.
12177         * build-aux/gnupload: Fix shell portability issues with for loops.
12178         Report by Karl Berry.
12179
12180 2007-06-29  Simon Josefsson  <simon@josefsson.org>
12181
12182         * build-aux/maint.mk (POURL): Use translationproject.org.
12183
12184 2007-06-27  Simon Josefsson  <simon@josefsson.org>
12185             Bruno Haible  <bruno@clisp.org>
12186
12187         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
12188         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
12189         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
12190         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
12191         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
12192
12193 2007-06-27  Bruno Haible  <bruno@clisp.org>
12194
12195         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
12196         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
12197
12198 2007-06-26  Karl Berry  <karl@gnu.org>
12199
12200         * MODULES.html.sh: remove xreadlink-with-size.
12201
12202 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12203
12204         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
12205         method that I hope also handles the double-include problem noted
12206         by Bruno Haible in
12207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
12208
12209 2007-06-23  Bruno Haible  <bruno@clisp.org>
12210
12211         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12212         Don't let the 'mostlyclean' target fail if the last subdirectory could
12213         not be removed.
12214         Reported by Karl Berry.
12215
12216 2007-06-23  Bruno Haible  <bruno@clisp.org>
12217
12218         * gnulib-tool (echo): Add a speedier workaround for ksh.
12219         * tests/test-echo.sh: Likewise.
12220
12221 2007-06-23  Bruno Haible  <bruno@clisp.org>
12222
12223         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
12224         * tests/test-echo.sh: Likewise.
12225
12226 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12227
12228         * gnulib-tool (IFS): Initialize early, so we don't set it to
12229         empty later.
12230         (self_abspathname): Rewrite algorithm to set it, reindent.
12231         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
12232         (func_create_megatestdir): Merge some sed scripts.
12233
12234 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12235
12236         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
12237         exposed by Sun Studio 11 cc on Solaris 8.
12238
12239 2007-06-22  Bruno Haible  <bruno@clisp.org>
12240
12241         * gnulib-tool (echo): Ensure the echo primitive does not interpret
12242         backslashes.
12243         * tests/test-echo.sh: New file.
12244
12245 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12246
12247         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
12248         simplify `sed_replace_build_aux' scripts, they are portable but
12249         echoing them with `echo' is not.
12250         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
12251
12252 2007-06-21  Karl Berry  <karl@gnu.org>
12253
12254         * config/srclist.txt: guess we can't handle the licenses via
12255         srclist at the moment.
12256
12257 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12258
12259         * MODULES.html.sh: Add include_next.
12260         * modules/include_next: New file.
12261
12262 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
12265         INCLUDE_NEXT.
12266         (gl_CHECK_NEXT_HEADERS): New macro.
12267         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
12268         the obsolescent gl_ABSOLUTE_HEADER.
12269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12270         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12271         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12272         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12273         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12274         * m4/math_h.m4 (gl_MATH_H): Likewise.
12275         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
12276         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12277         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12278         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12279         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12280         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12281         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12282         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12283         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12284         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12286         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
12287         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12288         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12289         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12290         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12291         * m4/inttypes.m4 (gl_INTTYPES_H): Define
12292         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
12293         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
12294         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
12295         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
12296         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
12297         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
12298         * lib/float_.h: Likewise.
12299         * lib/inttypes_.h: Likewise.
12300         * lib/math_.h: Likewise.
12301         * lib/search_.h: Likewise.
12302         * lib/signal_.h: Likewise.
12303         * lib/stdint_.h: Likewise.
12304         * lib/stdio_.h: Likewise.
12305         * lib/stdlib_.h: Likewise.
12306         * lib/string_.h: Likewise.
12307         * lib/sys_stat_.h: Likewise.
12308         * lib/sys_time_.h: Likewise.
12309         * lib/time_.h: Likewise.
12310         * lib/unistd_.h: Likewise.
12311         * lib/wchar_.h: Likewise.
12312         * lib/wctype_.h: Likewise.
12313         * lib/dirent_.h: Likewise.
12314         * lib/iconv_.h: Likewise.
12315         * lib/locale_.h: Likewise.
12316         * lib/netinet_in_.h: Likewise.
12317         * lib/sys_select_.h: Likewise.
12318         * lib/sys_socket_.h: Likewise.
12319         * lib/sysexits_.h: Likewise.
12320         * modules/fcntl (Depends-on): Depend on include_next, not
12321         absolute_header.
12322         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
12323         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
12324         * modules/fchdir: Likewise.
12325         * modules/float: Likewise.
12326         * modules/iconv_open: Likewise.
12327         * modules/inttypes: Likewise.
12328         * modules/locale: Likewise.
12329         * modules/math: Likewise.
12330         * modules/netinet_in: Likewise.
12331         * modules/search: Likewise.
12332         * modules/signal: Likewise.
12333         * modules/stdint: Likewise.
12334         * modules/stdio: Likewise.
12335         * modules/stdlib: Likewise.
12336         * modules/string: Likewise.
12337         * modules/sys_select: Likewise.
12338         * modules/sys_socket: Likewise.
12339         * modules/sys_stat: Likewise.
12340         * modules/sys_time: Likewise.
12341         * modules/sysexits: Likewise.
12342         * modules/time: Likewise.
12343         * modules/unistd: Likewise.
12344         * modules/wchar: Likewise.
12345         * modules/wctype: Likewise.
12346         * modules/sys_stat: Change maintainer to "all".
12347         * modules/unistd: Likewise.
12348
12349 2007-06-20  Karl Berry  <karl@gnu.org>
12350
12351         * config/srclist.txt: track www changes in license files.
12352
12353 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
12354
12355         * build-aux/bootstrap: Remove stray dot.
12356         Make sure build_aux settings are honored when linking
12357         gnulib_extra_files.
12358
12359 2007-06-19  Eric Blake  <ebb9@byu.net>
12360
12361         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12362         Allow compilation on cygwin.
12363
12364 2007-06-19  Jim Meyering  <jim@meyering.net>
12365
12366         xreadlink-with-size: Remove module.  No longer used.
12367         Ex-callers now use xreadlink or mreadlink-with-size.
12368         * modules/xreadlink-with-size: Remove module.
12369         * lib/xreadlink-with-size.c: Remove file.
12370         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
12371         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
12372         just before the function definition *is* accurate.
12373
12374         Eliminate one way canonicalize_filename_mode could exit.
12375         * lib/canonicalize.c (canonicalize_filename_mode):
12376         Use mreadlink_with_size, not xreadlink_with_size.
12377
12378 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12379
12380         Detect porting problems to FreeBSD/arm, which has time_t wider than
12381         long int.  Original problem reported for GNU diff by Xin Li in
12382         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
12383         * modules/getdate (Depends-on): Add intprops, verify.
12384         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
12385         is an integer type no wider than long int.
12386
12387 2007-06-18  Jim Meyering  <jim@meyering.net>
12388
12389         New module: mreadlink-with-size.
12390         * MODULES.html.sh: Add mreadlink-with-size.
12391         * modules/mreadlink-with-size: New module
12392         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
12393         not xreadlink-with-size.
12394         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
12395
12396 2007-06-16  Bruno Haible  <bruno@clisp.org>
12397
12398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
12399         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
12400         Reported by Gary V. Vaughan <gary@gnu.org>.
12401
12402 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12403
12404         Revamp lchown so that it lives in unistd.h where it belongs.
12405         * lib/lchown.h: Remove.
12406         * lib/dirchownmod.c: Don't include lib/lchown.h.
12407         * lib/fchownat.c: Likewise.
12408         * lib/openat.c: Likewise.
12409         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
12410         does not follow symlinks.
12411         (EOPNOTSUPP): Define if not defined.
12412         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
12413         is defined to 0.
12414         (lchown): New decl.
12415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
12416         Do not check for lchown decl.
12417         Set REPLACE_LCHOWN.
12418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
12419         REPLACE_LCHOWN.
12420         * modules/chown: Make it clear it follows symlinks.
12421         * modules/lchown: Make it clear it doesn't follow symlinks.
12422         (Files): Remove lib/lchown.h
12423         (Depends-on): Add unistd.
12424         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12425         (Include): Include <unistd.h>, not "lchown.h".
12426         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
12427         REPLACE_LCHOWN.
12428
12429 2007-06-15  Jim Meyering  <jim@meyering.net>
12430
12431         Change license (GPL to LGPL) of fsusage and dependents.
12432         * modules/fsusage (License): Change to LGPL.
12433         * modules/full-read (License): Likewise.
12434         * modules/full-write (License): Likewise.
12435         * modules/safe-read (License): Likewise.
12436         * modules/safe-write (License): Likewise.
12437
12438 2007-06-14  Ben Pfaff  <blp@gnu.org>
12439
12440         Missing part of allocsa -> malloca transition.
12441         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
12442         gl_MALLOCA.
12443
12444 2007-06-12  Bruno Haible  <bruno@clisp.org>
12445
12446         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
12447         to ia64, x86_64, i386.
12448         Reported by Eric Blake.
12449
12450 2007-06-12  Bruno Haible  <bruno@clisp.org>
12451
12452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
12453         cross-compiling to x86_64.
12454
12455 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
12456
12457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
12458         glitch reported by Ralf Wildenhues in
12459         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
12460
12461         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
12462         Vin Shelton.
12463
12464 2007-06-11  Bruno Haible  <bruno@clisp.org>
12465
12466         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
12467         replacement string.
12468         Reported by Eric Blake.
12469
12470 2007-06-10  Bruno Haible  <bruno@clisp.org>
12471
12472         Prepare vasnprintf code for use with Unicode strings.
12473         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
12474         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
12475         TYPE_U32_STRING.
12476         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
12477         a_u32_string variants.
12478         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12479         * lib/printf-args.c: Don't include config.h and the specification
12480         header if PRINTF_FETCHARGS is already defined.
12481         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12482         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
12483         TYPE_U16_STRING, TYPE_U32_STRING.
12484         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
12485         u16_directive, u16_directives, u32_directive, u32_directives): New
12486         types.
12487         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
12488         New declarations.
12489         * lib/printf-parse.c: Don't include config.h and the specification
12490         header if PRINTF_PARSE is already defined. Eliminate the set of
12491         parameters for WIDE_CHAR_VERSION; the user of this file must provide
12492         them now. Include c-ctype.h.
12493         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
12494         directive and CHAR_T_ONLY_ASCII.
12495         * lib/vasnprintf.c: Don't include config.h and the specification header
12496         if VASNPRINTF is already defined.
12497         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
12498         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
12499         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
12500         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
12501         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
12502         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
12503         code accordingly.
12504         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
12505         pad_ourselves also in this case, with the 'c' and 's' directives, and
12506         with a different notion of "width".
12507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
12508
12509 2007-06-10  Bruno Haible  <bruno@clisp.org>
12510
12511         * modules/unistr/u32-mbsnlen: New file.
12512         * lib/unistr/u32-mbsnlen.c: New file.
12513
12514         * modules/unistr/u16-mbsnlen: New file.
12515         * lib/unistr/u16-mbsnlen.c: New file.
12516
12517         * modules/unistr/u8-mbsnlen: New file.
12518         * lib/unistr/u8-mbsnlen.c: New file.
12519
12520         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
12521         declarations.
12522
12523 2007-06-10  Bruno Haible  <bruno@clisp.org>
12524
12525         * lib/string_.h (mbsnlen): New declaration.
12526         * lib/mbsnlen.c: New file.
12527         * m4/mbsnlen.m4: New file.
12528         * modules/mbsnlen: New file.
12529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
12530         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
12531         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
12532
12533 2007-06-10  Bruno Haible  <bruno@clisp.org>
12534
12535         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
12536
12537 2007-06-10  Bruno Haible  <bruno@clisp.org>
12538
12539         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
12540         * lib/mbuiter.h: Likewise.
12541
12542 2007-06-10  Bruno Haible  <bruno@clisp.org>
12543
12544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
12545         declaration.
12546
12547 2007-06-10  Karl Berry  <karl@gnu.org>
12548
12549         * config/srclist.txt: remove gettext entries, Bruno prefers
12550         to update individually.
12551
12552 2007-06-10  Bruno Haible  <bruno@clisp.org>
12553
12554         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
12555         'maxlen'. Ensure only length + width bytes are allocated, not
12556         length + 1 + width.
12557
12558 2007-06-09  Bruno Haible  <bruno@clisp.org>
12559
12560         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
12561         (CHAR_T): Remove macro.
12562         (VASNPRINTF): Update.
12563
12564 2007-06-09  Bruno Haible  <bruno@clisp.org>
12565
12566         * MODULES.html.sh (Unicode string functions): Add the new modules.
12567
12568         * modules/uniconv/u32-conv-to-enc: New file.
12569         * lib/uniconv/u32-conv-to-enc.c: New file.
12570         * modules/uniconv/u32-conv-to-enc-tests: New file.
12571         * tests/uniconv/test-u32-conv-to-enc.c: New file.
12572
12573         * modules/uniconv/u16-conv-to-enc: New file.
12574         * lib/uniconv/u16-conv-to-enc.c: New file.
12575         * lib/uniconv/u-conv-to-enc.h: New file.
12576         * modules/uniconv/u16-conv-to-enc-tests: New file.
12577         * tests/uniconv/test-u16-conv-to-enc.c: New file.
12578
12579         * modules/uniconv/u8-conv-to-enc: New file.
12580         * lib/uniconv/u8-conv-to-enc.c: New file.
12581         * modules/uniconv/u8-conv-to-enc-tests: New file.
12582         * tests/uniconv/test-u8-conv-to-enc.c: New file.
12583
12584         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12585         u32_conv_to_encoding): New declarations.
12586
12587 2007-06-09  Bruno Haible  <bruno@clisp.org>
12588
12589         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
12590
12591 2007-06-09  Bruno Haible  <bruno@clisp.org>
12592
12593         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12594         * modules/malloca: Renamed from modules/allocsa, updated.
12595         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12596         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12597         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12598         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12599         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12600         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12601         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12602         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12603         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12604         * modules/c-strcasestr (Depends-on): Update.
12605         * lib/c-strcasestr.c: Update.
12606         * modules/c-strstr (Depends-on): Update.
12607         * lib/c-strstr.c: Update.
12608         * modules/canonicalize-lgpl (Depends-on): Update.
12609         * lib/canonicalize-lgpl.c: Update.
12610         * modules/clean-temp (Depends-on): Update.
12611         * lib/clean-temp.c: Update.
12612         * modules/csharpcomp (Depends-on): Update.
12613         * lib/csharpcomp.c: Update.
12614         * modules/csharpexec (Depends-on): Update.
12615         * lib/csharpexec.c: Update.
12616         * modules/javacomp (Depends-on): Update.
12617         * lib/javacomp.c: Update.
12618         * modules/javaexec (Depends-on): Update.
12619         * lib/javaexec.c: Update.
12620         * modules/mbscasestr (Depends-on): Update.
12621         * lib/mbscasestr.c: Update.
12622         * modules/mbsstr (Depends-on): Update.
12623         * lib/mbsstr.c: Update.
12624         * modules/setenv (Depends-on): Update.
12625         * lib/setenv.c: Update.
12626         * modules/strcasestr (Depends-on): Update.
12627         * lib/strcasestr.c: Update.
12628         * modules/striconveha (Depends-on): Update.
12629         * lib/striconveha.c: Update.
12630         * modules/relocatable-prog-wrapper (Files): Update.
12631         * lib/relocwrapper.c: Update.
12632         * build-aux/install-reloc: Update.
12633         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12634
12635 2007-06-08  Bruno Haible  <bruno@clisp.org>
12636
12637         Port to uClibc.
12638         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12639         * lib/fpurge.c (fpurge): Likewise.
12640         * lib/freading.c (freading): Likewise.
12641         * lib/fseeko.c (rpl_fseeko): Likewise.
12642         * lib/fseterr.c (fseterr): Likewise.
12643         * lib/fwriting.c (fwriting): Likewise.
12644         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12645
12646 2007-06-08  Bruno Haible  <bruno@clisp.org>
12647
12648         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12649         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12650         * modules/gettext (Files): Add m4/intlmacosx.m4.
12651
12652 2007-06-07  Bruno Haible  <bruno@clisp.org>
12653
12654         * modules/localename-tests: New file.
12655         * tests/test-localename.c: New file.
12656
12657         New module 'localename'.
12658         * lib/localename.h: New file.
12659         * lib/localename.c: New file, from GNU gettext.
12660         * m4/localename.m4: New file.
12661         * modules/localename: New file.
12662
12663 2007-06-07  Bruno Haible  <bruno@clisp.org>
12664
12665         Work around the lack of <wchar.h> on some builds of uClibc.
12666         * doc/headers/wchar.texi: Update.
12667         * lib/wchar_.h: Include <wchar.h> only if it exists.
12668         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12669         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12670         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12671         doesn't exist.
12672         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12673         * modules/mbfile (Depends-on): Add wchar.
12674         * modules/mbiter (Depends-on): Likewise.
12675         * modules/mbuiter (Depends-on): Likewise.
12676         Reported by Simon Josefsson.
12677
12678 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12679
12680         Work around problem reported by Steven M. Schweda in
12681         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12682         Tru64 5.1B with the Compaq compiler environment installed declares
12683         an 'isblank' function but does not define it in the C library.
12684         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12685         * lib/regex_internal.h (isblank): Likewise.
12686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12687         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12688
12689 2007-06-05  Bruno Haible  <bruno@clisp.org>
12690
12691         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12692         ia64.
12693         * modules/printf-safe: New file.
12694         * modules/fprintf-posix (Depends-on): Add printf-safe.
12695         * modules/printf-posix (Depends-on): Likewise.
12696         * modules/snprintf-posix (Depends-on): Likewise.
12697         * modules/sprintf-posix (Depends-on): Likewise.
12698         * modules/vasnprintf-posix (Depends-on): Likewise.
12699         * modules/vasprintf-posix (Depends-on): Likewise.
12700         * modules/vfprintf-posix (Depends-on): Likewise.
12701         * modules/vprintf-posix (Depends-on): Likewise.
12702         * modules/vsnprintf-posix (Depends-on): Likewise.
12703         * modules/vsprintf-posix (Depends-on): Likewise.
12704         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12705         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12706         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12707         "no" on i386, x86_64, ia64.
12708         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12709         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12710         on i386, x86_64, ia64.
12711         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12712         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12713         on i386, x86_64, ia64.
12714         * tests/test-vasnprintf-posix.c: Include float.h.
12715         (LDBL80_WORDS): New macro.
12716         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12717         on i386, x86_64, ia64.
12718         * tests/test-vasprintf-posix.c: Include float.h.
12719         (LDBL80_WORDS): New macro.
12720         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12721         on i386, x86_64, ia64.
12722         * tests/test-snprintf-posix.c: Include float.h.
12723         * tests/test-sprintf-posix.c: Likewise.
12724         * tests/test-vsnprintf-posix.c: Likewise.
12725         * tests/test-vsprintf-posix.c: Likewise.
12726
12727 2007-06-05  Bruno Haible  <bruno@clisp.org>
12728
12729         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12730         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12731         non-IEEE numbers on i386, x86_64, ia64.
12732         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12733         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12734         * tests/test-isnanl.h: Include float.h.
12735         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12736
12737 2007-06-05  Bruno Haible  <bruno@clisp.org>
12738
12739         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12740         also the %a / %A. Handle the %a / %A code before this extra handling.
12741
12742 2007-06-05  Bruno Haible  <bruno@clisp.org>
12743
12744         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12745         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12746
12747 2007-06-05  Bruno Haible  <bruno@clisp.org>
12748
12749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12750         typo in variable name.
12751
12752 2007-06-05  Eric Blake  <ebb9@byu.net>
12753
12754         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12755         Reported by Simon Josefsson.
12756
12757 2007-06-04  Bruno Haible  <bruno@clisp.org>
12758
12759         Avoid test failures on some PowerPC platforms.
12760         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12761         Define differently for PowerPC.
12762         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12763         Reported by Gary V. Vaughan <gary@gnu.org>.
12764
12765 2007-06-02  Bruno Haible  <bruno@clisp.org>
12766
12767         Fix test-stdint failure on FreeBSD/ia64.
12768         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12769         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12770         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12771         * doc/headers/stdint.texi: Update.
12772
12773 2007-06-01  Bruno Haible  <bruno@clisp.org>
12774
12775         * tests/test-binary-io.c (main): Pass a third argument to open().
12776         Reported by Gary V. Vaughan <gary@gnu.org>.
12777
12778 2007-06-01  Bruno Haible  <bruno@clisp.org>
12779
12780         * doc/functions/frexpl.texi: Update for mingw.
12781
12782 2007-06-01  Bruno Haible  <bruno@clisp.org>
12783
12784         * tests/test-lseek.c (main): Disable test of errno for invalid third
12785         argument.
12786         * doc/functions/lseek.texi: Update.
12787         Reported by Gary V. Vaughan <gary@gnu.org>.
12788
12789 2007-05-28  Bruno Haible  <bruno@clisp.org>
12790
12791         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12792
12793 2007-05-31  Eric Blake  <ebb9@byu.net>
12794
12795         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12796         cross compiling.
12797
12798 2007-05-30  Eric Blake  <ebb9@byu.net>
12799         and Bruno Haible  <bruno@clisp.org>
12800
12801         Work around mingw test failures exposed by m4-1.4.9b.
12802         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12803         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12804         moment.
12805
12806 2007-05-30  Bruno Haible  <bruno@clisp.org>
12807
12808         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12809         assuming that they are closed. Needed on HP-UX 11.
12810
12811 2007-05-29  Bruno Haible  <bruno@clisp.org>
12812
12813         Fix a problem with #include_next.
12814         * lib/dirent_.h: Split the double-inclusion guard.
12815         * lib/fcntl_.h: Likewise.
12816         * lib/float_.h: Likewise.
12817         * lib/iconv_.h: Likewise.
12818         * lib/inttypes_.h: Likewise.
12819         * lib/locale_.h: Likewise.
12820         * lib/math_.h: Likewise.
12821         * lib/netinet_in_.h: Likewise.
12822         * lib/search_.h: Likewise.
12823         * lib/signal_.h: Likewise.
12824         * lib/stdint_.h: Likewise.
12825         * lib/stdio_.h: Likewise.
12826         * lib/stdlib_.h: Likewise.
12827         * lib/string_.h: Likewise.
12828         * lib/sys_select_.h: Likewise.
12829         * lib/sys_socket_.h: Likewise.
12830         * lib/sys_stat_.h: Likewise.
12831         * lib/sys_time_.h: Likewise.
12832         * lib/sysexits_.h: Likewise.
12833         * lib/time_.h: Likewise.
12834         * lib/unistd_.h: Likewise.
12835         * lib/wchar_.h: Likewise.
12836         * lib/wctype_.h: Likewise.
12837
12838 2007-05-29  Bruno Haible  <bruno@clisp.org>
12839
12840         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12841         for the moment.
12842
12843 2007-05-29  Bruno Haible  <bruno@clisp.org>
12844
12845         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12846         invocation.
12847         Reported by Eric Blake.
12848
12849 2007-05-29  Bruno Haible  <bruno@clisp.org>
12850
12851         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12852         compiling case.
12853
12854 2007-05-29  Eric Blake  <ebb9@byu.net>
12855             Bruno Haible  <bruno@clisp.org>
12856
12857         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12858         cross compiles.
12859
12860 2007-05-28  Eric Blake  <ebb9@byu.net>
12861
12862         * modules/closein-tests (test_closein_LDADD): Support test on
12863         cygwin with libtool.
12864
12865 2007-05-28  Bruno Haible  <bruno@clisp.org>
12866
12867         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12868         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12869         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12870         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12871         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12872         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12873         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12874         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12875         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12876
12877 2007-05-28  Eric Blake  <ebb9@byu.net>
12878
12879         Unconditionally include <config.h> in unit tests.
12880         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12881         * tests/test-allocsa.c, tests/test-arcfour.c,
12882         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12883         tests/test-array_list.c, tests/test-array_oset.c,
12884         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12885         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12886         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12887         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12888         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12889         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12890         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12891         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12892         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12893         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12894         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12895         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12896         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12897         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12898         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12899         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12900         test-md5.c, test-memmem.c, test-printf-posix.c,
12901         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12902         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12903         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12904         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12905         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12906         test-vasnprintf-posix2.c, test-vasnprintf.c,
12907         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12908         test-vfprintf-posix.c, test-vprintf-posix.c,
12909         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12910         test-xvasprintf.c: Likewise.
12911
12912 2007-05-28  Bruno Haible  <bruno@clisp.org>
12913
12914         * gnulib-tool (func_import): Remember the --with-tests command-line
12915         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12916         Reported by Eric Blake.
12917
12918 2007-05-28  Bruno Haible  <bruno@clisp.org>
12919
12920         * modules/ftell-tests: New file.
12921         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12922         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12923
12924         * lib/ftell.c: New file.
12925         * modules/ftell: New file.
12926         * m4/ftell.m4: New file.
12927         * doc/functions/ftell.texi: Update.
12928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12929         REPLACE_FTELL.
12930         * lib/stdio_.h (rpl_ftell): New declaration.
12931         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12932         REPLACE_FTELL.
12933
12934 2007-05-28  Eric Blake  <ebb9@byu.net>
12935
12936         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12937
12938 2007-05-28  Bruno Haible  <bruno@clisp.org>
12939
12940         * modules/fseek-tests: New file.
12941         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12942         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12943
12944         * lib/fseek.c: New file.
12945         * modules/fseek: New file.
12946         * m4/fseek.m4: New file.
12947         * doc/functions/fseek.texi: Update.
12948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12949         REPLACE_FSEEK.
12950         * lib/stdio_.h (rpl_fseek): New declaration.
12951         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12952         REPLACE_FSEEK.
12953
12954 2007-05-28  Bruno Haible  <bruno@clisp.org>
12955
12956         * lib/stdio_.h (fflush): More comments.
12957
12958 2007-05-28  Bruno Haible  <bruno@clisp.org>
12959
12960         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12961         runtime test.
12962
12963 2007-05-28  Eric Blake  <ebb9@byu.net>
12964
12965         Improve lseek module.
12966         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12967         * lib/unistd_.h (lseek): Scale back link warning message.
12968         * tests/test-lseek.c: Beef up test.
12969         * tests/test-lseek.sh: Exercise more facets of lseek.
12970         Reported by Bruno Haible.
12971
12972 2007-05-28  Bruno Haible  <bruno@clisp.org>
12973
12974         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12975         to define.
12976
12977 2007-05-27  Bruno Haible  <bruno@clisp.org>
12978
12979         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12980
12981 2007-05-27  Bruno Haible  <bruno@clisp.org>
12982
12983         * modules/openmp: New file.
12984         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12985         Noah Misch.
12986
12987 2007-05-26  Bruno Haible  <bruno@clisp.org>
12988
12989         * modules/chdir-long (Depends-on): Add fchdir.
12990         * modules/chdir-safer (Depends-on): Likewise.
12991         * modules/fts (Depends-on): Likewise.
12992         * modules/fts-lgpl (Depends-on): Likewise.
12993         * modules/openat (Depends-on): Likewise.
12994         * modules/savewd (Depends-on): Likewise.
12995
12996 2007-05-24  Eric Blake  <ebb9@byu.net>
12997
12998         Fix lseek on mingw.
12999         * modules/lseek: New module.
13000         * m4/lseek.m4: New file.
13001         * lib/lseek.c: New file.
13002         * modules/lseek-tests: New file.
13003         * tests/test-lseek.c: New file.
13004         * tests/test-lseek.sh: New file.
13005         * MODULES.html.sh: Document lseek module.
13006         * modules/fflush (Depends-on): Add lseek, fseeko.
13007         * modules/fseeko (Depends-on): Likewise.
13008         * modules/ftello (Depends-on): Likewise.
13009         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
13010         broken.
13011         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
13012         broken.
13013         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
13014         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
13015         * lib/ftello.c (rpl_ftello): Likewise.
13016         * tests/test-fseeko.c (main): Test this.
13017         * tests/test-fseeko.sh: Likewise.
13018         * tests/test-ftello.c (main): Likewise.
13019         * tests/test-ftello.sh: Likewise.
13020         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
13021         implies replacing fseek.
13022         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
13023         HAVE_FTELLO.
13024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
13025         * modules/unistd (Makefile.am): Likewise.
13026         * lib/unistd_.h (lseek): Declare a replacement.
13027         * doc/functions/lseek.texi (lseek): Document this fix.
13028         * doc/functions/fseek.texi (fseek): Likewise.
13029         * doc/functions/ftell.texi (ftell): Likewise.
13030
13031 2007-05-24  Bruno Haible  <bruno@clisp.org>
13032
13033         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
13034         in the printed representation of a NaN.
13035         * tests/test-vasprintf-posix.c (test_function): Likewise.
13036         * tests/test-snprintf-posix.h (test_function): Likewise.
13037         * tests/test-sprintf-posix.h (test_function): Likewise.
13038         Reported by Eric Blake.
13039
13040 2007-05-23  Eric Blake  <ebb9@byu.net>
13041
13042         Fix fseeko/ftello on cygwin 1.5.24.
13043         * doc/functions/fseeko.texi (fseeko): Document the fix.
13044         * doc/functions/ftello.texi (ftello): Document the fix.
13045         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
13046         * doc/functions/stdout.text (stdout): New file.
13047         * doc/functions/stderr.text (stderr): New file.
13048         * doc/gnulib.texi (Function Substitutes): Use new files.
13049         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
13050         prior to 1.7.0.
13051         * tests/test-ftello.c (main): Likewise for ftello.
13052         * tests/test-fseeko.sh: New file.
13053         * tests/test-ftello.sh: New file.
13054         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
13055         with seekable stdin.
13056         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
13057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
13058         (gl_REPLACE_FSEEKO): New macro.
13059         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
13060         * modules/fseeko (Files): Distribute fseeko.c.
13061         * modules/ftello (Files): Distribute ftello.c.
13062         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
13063         mode.
13064         * lib/ftello.c (rpl_ftello): New file.
13065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
13066         fseeko, ftello.
13067         (gl_STDIN_LARGE_OFFSET): New macro.
13068         * modules/stdio (Makefile.am): Perform the replacement.
13069         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
13070
13071 2007-05-23  Bruno Haible  <bruno@clisp.org>
13072
13073         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
13074         GNULIB_POSIXCHECK is defined.
13075
13076 2007-05-21  Bruno Haible  <bruno@clisp.org>
13077
13078         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
13079         Check also the output for NaN arguments. When cross-compiling, guess
13080         no on IRIX.
13081         * lib/vasnprintf.c: Update comments.
13082         * tests/test-vasnprintf-posix.c (strisnan): New function.
13083         (test_function): Use it.
13084         * tests/test-vasprintf-posix.c (strisnan): New function.
13085         (test_function): Use it.
13086         * tests/test-snprintf-posix.h (strisnan): New function.
13087         (test_function): Use it.
13088         * tests/test-sprintf-posix.h (strisnan): New function.
13089         (test_function): Use it.
13090         Reported by Eric Blake.
13091
13092 2007-05-20  Bruno Haible  <bruno@clisp.org>
13093
13094         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
13095         numbers that fails on BeOS.
13096         * doc/functions/frexpl.texi: Update.
13097
13098 2007-05-20  Jim Meyering  <jim@meyering.net>
13099
13100         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
13101         forced upon us by glibc-2.6.
13102
13103 2007-05-20  Bruno Haible  <bruno@clisp.org>
13104
13105         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
13106         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
13107         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
13108         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
13109         NEED_PRINTF_INFINITE.
13110         (is_infinitel): New function.
13111         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
13112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
13113         gl_PREREQ_VASNPRINTF_INFINITE.
13114         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
13115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13116         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
13117         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
13118         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
13119         gl_PREREQ_VASNPRINTF_INFINITE.
13120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13127         * doc/functions/fprintf.texi: Update.
13128         * doc/functions/printf.texi: Update.
13129         * doc/functions/snprintf.texi: Update.
13130         * doc/functions/sprintf.texi: Update.
13131         * doc/functions/vfprintf.texi: Update.
13132         * doc/functions/vprintf.texi: Update.
13133         * doc/functions/vsnprintf.texi: Update.
13134         * doc/functions/vsprintf.texi: Update.
13135
13136 2007-05-20  Bruno Haible  <bruno@clisp.org>
13137
13138         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
13139         was not found in libc.
13140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13141
13142 2007-05-20  Bruno Haible  <bruno@clisp.org>
13143
13144         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13145         printed as "-nan" instead of "nan".
13146         * tests/test-vasprintf-posix.c (test_function): Likewise.
13147         * tests/test-snprintf-posix.h (test_function): Likewise.
13148         * tests/test-sprintf-posix.h (test_function): Likewise.
13149         Needed for HP-UX 11.
13150
13151 2007-05-20  Jim Meyering  <jim@meyering.net>
13152
13153         Fix buggy test for the fchownat-deref bug.
13154         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
13155         symlink required for the run-test.  Without it, this test would
13156         always declare that fchownat doesn't work, and client code would
13157         unnecessarily use the replacement function with fixed libc.
13158         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
13159         Reported by Greg Schafer.
13160
13161 2007-05-19  Bruno Haible  <bruno@clisp.org>
13162
13163         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
13164         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
13165         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
13166         Needed for IRIX 6.5 and Solaris 2.5.1.
13167
13168 2007-05-19  Bruno Haible  <bruno@clisp.org>
13169
13170         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
13171         (test_function): Skip tests involving -0.0 on platforms where
13172         -0.0 = 0.0.
13173         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
13174         (test_function): Skip tests involving -0.0 on platforms where
13175         -0.0 = 0.0.
13176         * tests/test-snprintf-posix.h (have_minus_zero): New function.
13177         (test_function): Skip tests involving -0.0 on platforms where
13178         -0.0 = 0.0.
13179         * tests/test-sprintf-posix.h (have_minus_zero): New function.
13180         (test_function): Skip tests involving -0.0 on platforms where
13181         -0.0 = 0.0.
13182         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
13183         tests.
13184         * tests/test-printf-posix.h (test_function): Likewise.
13185         * tests/test-printf-posix.output: Remove all -0.0 related results.
13186         Needed for IRIX 6.5.
13187
13188 2007-05-19  Bruno Haible  <bruno@clisp.org>
13189
13190         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
13191         printed as "nan0x7fffffff" instead of "nan".
13192         * tests/test-vasprintf-posix.c (test_function): Likewise.
13193         * tests/test-snprintf-posix.h (test_function): Likewise.
13194         * tests/test-sprintf-posix.h (test_function): Likewise.
13195         * tests/test-fprintf-posix.h (NaN): Remove macro.
13196         (test_function): Remove all NaN related tests.
13197         * tests/test-printf-posix.h (NaN): Remove macro.
13198         (test_function): Remove all NaN related tests.
13199         * tests/test-printf-posix.output: Remove all NaN related results.
13200         Needed for IRIX 6.5.
13201
13202 2007-05-19  Bruno Haible  <bruno@clisp.org>
13203
13204         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
13205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13206
13207 2007-05-19  Bruno Haible  <bruno@clisp.org>
13208
13209         * lib/float_.h: New file.
13210         * m4/float_h.m4: New file.
13211         * modules/float: New file.
13212         * modules/isnanl (Dependencies): Add float.
13213         * modules/isnanl-nolibm (Dependencies): Likewise.
13214         * modules/mathl (Dependencies): Likewise.
13215         * modules/printf-frexpl (Dependencies): Likewise.
13216         * modules/signbit (Dependencies): Likewise.
13217         * modules/vasnprintf (Dependencies): Likewise.
13218         * doc/headers/float.texi: Update.
13219
13220 2007-05-19  Jim Meyering  <jim@meyering.net>
13221
13222         * lib/utimens.c (gl_futimens): Rename from futimens,
13223         now that glibc-2.6 declares futimens.
13224         * lib/utimens.h: Likewise.
13225
13226 2007-05-19  Bruno Haible  <bruno@clisp.org>
13227
13228         Avoid test failures on mingw.
13229         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
13230         * tests/test-printf-posix.sh: Likewise.
13231         * tests/test-vfprintf-posix.sh: Likewise.
13232         * tests/test-vprintf-posix.sh: Likewise.
13233
13234 2007-05-19  Bruno Haible  <bruno@clisp.org>
13235
13236         Fix *printf result for NaN, Inf, -0.0 on mingw.
13237         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
13238         * lib/vasnprintf.c: Include math.h and isnan.h.
13239         (is_infinite_or_zero): New function.
13240         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
13241         values in the %f, %F, %e, %E, %g, %G directives.
13242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
13243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13244         gl_PRINTF_INFINITE and test its result. Invoke
13245         gl_PREREQ_VASNPRINTF_INFINITE.
13246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13250         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13253         * doc/functions/fprintf.texi: Update.
13254         * doc/functions/printf.texi: Update.
13255         * doc/functions/snprintf.texi: Update.
13256         * doc/functions/sprintf.texi: Update.
13257         * doc/functions/vfprintf.texi: Update.
13258         * doc/functions/vprintf.texi: Update.
13259         * doc/functions/vsnprintf.texi: Update.
13260         * doc/functions/vsprintf.texi: Update.
13261
13262 2007-05-19  Bruno Haible  <bruno@clisp.org>
13263
13264         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
13265         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
13266         Instead of multiplying with 10^k, set extra_zeroes to k.
13267         (scale10_round_long_double): Remove function.
13268
13269 2007-05-18  Bruno Haible  <bruno@clisp.org>
13270
13271         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
13272         introduced on 2007-05-06.
13273
13274 2007-05-18  Bruno Haible  <bruno@clisp.org>
13275
13276         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
13277         %g directives.
13278         * tests/test-vasprintf-posix.c (test_function): Likewise.
13279         * tests/test-snprintf-posix.h (test_function): Likewise.
13280         * tests/test-sprintf-posix.h (test_function): Likewise.
13281
13282 2007-05-18  Bruno Haible  <bruno@clisp.org>
13283
13284         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
13285         (strmatch): New function.
13286         (test_function): Test the %f directive on numbers of various exponents.
13287         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
13288         (strmatch): New function.
13289         (test_function): Test the %f directive on numbers of various exponents.
13290         * tests/test-snprintf-posix.h (strmatch): New function.
13291         (test_function): Test the %f directive on numbers of various exponents.
13292         * tests/test-sprintf-posix.h (strmatch): New function.
13293         (test_function): Test the %f directive on numbers of various exponents.
13294         * tests/test-snprintf-posix.c (SIZEOF): New macro.
13295         * tests/test-sprintf-posix.c (SIZEOF): New macro.
13296         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
13297         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
13298
13299 2007-05-18  Bruno Haible  <bruno@clisp.org>
13300
13301         Add support for 'long double' number output.
13302         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
13303         * lib/vasnprintf.c: Include math.h and float+.h.
13304         (mp_limb_t): New type.
13305         (GMP_LIMB_BITS): New macro.
13306         (mp_twolimb_t): New type.
13307         (GMP_TWOLIMB_BITS): New macro.
13308         (mpn_t): New type.
13309         (multiply, divide, convert_to_decimal, decode_long_double,
13310         scale10_round_long_double, scale10_round_decimal_long_double,
13311         floorlog10l): New functions.
13312         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
13313         for the %f, %F, %e, %E, %g, %G directives.
13314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
13315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13316         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
13317         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
13318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13325         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13326         * modules/snprintf-posix (Depends-on): Likewise.
13327         * modules/sprintf-posix (Depends-on): Likewise.
13328         * modules/vasnprintf-posix (Depends-on): Likewise.
13329         * modules/vasprintf-posix (Depends-on): Likewise.
13330         * modules/vfprintf-posix (Depends-on): Likewise.
13331         * modules/vsnprintf-posix (Depends-on): Likewise.
13332         * modules/vsprintf-posix (Depends-on): Likewise.
13333         * modules/vasnprintf (Files): Add lib/float+.h.
13334         * doc/functions/fprintf.texi: Update.
13335         * doc/functions/printf.texi: Update.
13336         * doc/functions/snprintf.texi: Update.
13337         * doc/functions/sprintf.texi: Update.
13338         * doc/functions/vfprintf.texi: Update.
13339         * doc/functions/vprintf.texi: Update.
13340         * doc/functions/vsnprintf.texi: Update.
13341         * doc/functions/vsprintf.texi: Update.
13342
13343 2007-05-18  Bruno Haible  <bruno@clisp.org>
13344
13345         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13346
13347 2007-05-18  Bruno Haible  <bruno@clisp.org>
13348
13349         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
13350         for printing 64-bit integers. Needed for mingw.
13351
13352 2007-05-18  Bruno Haible  <bruno@clisp.org>
13353
13354         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13355         gl_FUNC_FREXPL_WORKS.
13356         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
13357
13358 2007-05-18  Bruno Haible  <bruno@clisp.org>
13359
13360         * modules/frexpl-nolibm-tests: New file.
13361
13362         * modules/frexpl-nolibm: New file.
13363         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
13364
13365 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13366
13367         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
13368         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13369         GCC 4.2, which otherwise issues a lot of warnings.
13370         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
13371         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
13372         Likewise.
13373         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
13374         * modules/iconv_open (iconv.h): Likewise.
13375         * modules/locale (locale.h): Likewise.
13376         * modules/netinet_in (netinet/in.h): Likewise.
13377         * modules/sys_select (sys_select.h): Likewise.
13378         * modules/sys_socket (sys/socket.h): Likewise.
13379         * modules/sys_stat (sys/stat.h): Likewise.
13380         * modules/sysexits (sysexits.h): Likewise.
13381         * modules/unistd (unistd.h): Likewise.
13382
13383 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13384
13385         * modules/closein-tests (Makefile.am): Distribute
13386         `test-closein.sh'.
13387
13388 2007-05-17  Bruno Haible  <bruno@clisp.org>
13389
13390         * tests/test-printf-posix.output: Renamed from
13391         tests/test-fprintf-posix.out.
13392         * modules/fprintf-posix-tests: Update.
13393         * modules/printf-posix-tests: Update.
13394         * modules/vfprintf-posix-tests: Update.
13395         * modules/vprintf-posix-tests: Update.
13396         * tests/test-fprintf-posix.sh: Update.
13397         * tests/test-printf-posix.sh: Update.
13398         * tests/test-vfprintf-posix.sh: Update.
13399         * tests/test-vprintf-posix.sh: Update.
13400         Reported by Ralf Wildenhues.
13401
13402 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13403
13404         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
13405         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13406         GCC 4.2, which otherwise issues a lot of warnings.
13407         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
13408         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
13409         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
13410         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
13411         it should no longer be needed.
13412         * lib/string_.h: Likewise.
13413         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
13414         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
13415         * modules/inttypes (inttypes.h): Likewise.
13416         * modules/math (math.h): Likewise.
13417         * modules/search (search.h): Likewise.
13418         * modules/signal (signal.h): Likewise.
13419         * modules/stdint (stdint.h): Likewise.
13420         * modules/stdio (stdio.h): Likewise.
13421         * modules/stdlib (stdlib.h): Likewise.
13422         * modules/string (string.h): Likewise.
13423         * modules/sys_time (sys/time.h): Likewise.
13424         * modules/time (time.h): Likewise.
13425         * modules/wchar (wchar.h): Likewise.
13426         * modules/wctype (wtype.h): Likewise.
13427
13428 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13429
13430         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
13431
13432 2007-05-13  Bruno Haible  <bruno@clisp.org>
13433
13434         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
13435         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13436         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
13437         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13438         (gl_PREREQ_STRTOK_R): Don't require it here.
13439
13440 2007-05-13  Bruno Haible  <bruno@clisp.org>
13441
13442         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
13443         when used in C++ mode.
13444
13445 2007-05-12  Bruno Haible  <bruno@clisp.org>
13446
13447         * lib/linebuffer.h: Tweak doc.
13448         * lib/linebuffer.c: Likewise.
13449
13450 2007-05-12  James Youngman  <jay@gnu.org>
13451
13452         * lib/linebuffer.c (readlinebuffer_delim): New function,
13453         like readlinebuffer, but use a caller-specified delimiter.
13454         (readlinebuffer): Just call readlinebuffer_delim with '\n'
13455         as the delimiter.
13456         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
13457
13458 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13459
13460         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
13461         * modules/openat (Files): Remove openat-die.c.
13462         (Depends-on): Add openat-die.
13463         * modules/openat-die: New module.
13464
13465 2007-05-06  Bruno Haible  <bruno@clisp.org>
13466
13467         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
13468         Update with info about Cygwin.
13469         * doc/functions/fprintf.texi: Update.
13470         * doc/functions/printf.texi: Update.
13471         * doc/functions/snprintf.texi: Update.
13472         * doc/functions/sprintf.texi: Update.
13473         * doc/functions/vfprintf.texi: Update.
13474         * doc/functions/vprintf.texi: Update.
13475         * doc/functions/vsnprintf.texi: Update.
13476         * doc/functions/vsprintf.texi: Update.
13477         Reported by Eric Blake.
13478
13479 2007-05-06  Bruno Haible  <bruno@clisp.org>
13480
13481         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
13482         padding ourselves for the floating-point directives.
13483         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
13484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
13485         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13486         gl_PRINTF_FLAG_ZERO and test its result. Invoke
13487         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
13488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13495         * tests/test-snprintf-posix.h (test_function): Also check the width
13496         and some flags in the %f directive.
13497         * tests/test-sprintf-posix.h (test_function): Likewise.
13498         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13499         * tests/test-vasprintf-posix.c (test_function): Likewise.
13500         * doc/functions/fprintf.texi: Update.
13501         * doc/functions/printf.texi: Update.
13502         * doc/functions/snprintf.texi: Update.
13503         * doc/functions/sprintf.texi: Update.
13504         * doc/functions/vfprintf.texi: Update.
13505         * doc/functions/vprintf.texi: Update.
13506         * doc/functions/vsnprintf.texi: Update.
13507         * doc/functions/vsprintf.texi: Update.
13508
13509 2007-05-06  Bruno Haible  <bruno@clisp.org>
13510
13511         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
13512         pass the ' flag character to sprintf or snprintf.
13513         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
13514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
13515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13516         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
13517         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
13518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13525         * tests/test-snprintf-posix.h (test_function): Also check the grouping
13526         flag.
13527         * tests/test-sprintf-posix.h (test_function): Likewise.
13528         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13529         * tests/test-vasprintf-posix.c (test_function): Likewise.
13530         * doc/functions/fprintf.texi: Update.
13531         * doc/functions/printf.texi: Update.
13532         * doc/functions/snprintf.texi: Update.
13533         * doc/functions/sprintf.texi: Update.
13534         * doc/functions/vfprintf.texi: Update.
13535         * doc/functions/vprintf.texi: Update.
13536         * doc/functions/vsnprintf.texi: Update.
13537         * doc/functions/vsprintf.texi: Update.
13538
13539 2007-05-01  Bruno Haible  <bruno@clisp.org>
13540
13541         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
13542
13543 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13544
13545         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
13546         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
13547
13548 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13549
13550         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
13551         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
13552         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
13553
13554 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
13555
13556         * lib/argp-help.c (struct hol_entry): New member `ord'.
13557         (HOL_ENTRY_PTRCMP): Use ord for comparison
13558         (hol_sort): Initialize ord.
13559
13560 2007-05-01  Bruno Haible  <bruno@clisp.org>
13561
13562         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
13563         Reported by Eric Blake.
13564         * doc/gnulib.texi (Function Substitutes): Update.
13565
13566 2007-05-01  Bruno Haible  <bruno@clisp.org>
13567
13568         * doc/functions.texi: Remove file, now redundant through
13569         doc/functions/*.texi.
13570
13571 2007-05-01  Bruno Haible  <bruno@clisp.org>
13572
13573         * modules/argp (Depends-on): Add sleep.
13574
13575 2007-05-01  Bruno Haible  <bruno@clisp.org>
13576
13577         * modules/sleep-tests: New file.
13578         * tests/test-sleep.c: New file.
13579
13580         * modules/sleep: New file.
13581         * lib/sleep.c: New file.
13582         * m4/sleep.m4: New file.
13583         * lib/unistd_.h (sleep): New declaration.
13584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
13585         HAVE_SLEEP.
13586         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
13587         * doc/functions/sleep.texi: Document the sleep module.
13588
13589 2007-05-01  Bruno Haible  <bruno@clisp.org>
13590
13591         * lib/sigprocmask.h: Remove file.
13592         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13593         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13594         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13595         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13596         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13597         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13598         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13599         HAVE_SIGSET_T as a shell variable.
13600         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13601         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13602         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13603         (Depends-on): Add signal. Remove verify.
13604         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13605         (Include): Mention <signal.h> instead of sigprocmask.h.
13606         * NEWS: Mention the change.
13607         * lib/fatal-signal.c: Don't include sigprocmask.h.
13608
13609 2007-05-01  Bruno Haible  <bruno@clisp.org>
13610
13611         * modules/signal: New file.
13612         * lib/signal_.h: New file.
13613         * m4/signal_h.m4: New file.
13614
13615 2007-05-01  Bruno Haible  <bruno@clisp.org>
13616
13617         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13618         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13619         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13620         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13621
13622 2007-05-01  Bruno Haible  <bruno@clisp.org>
13623
13624         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13625         configure time.
13626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13627         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13628         * modules/sys_stat (Makefile.am): Substitute their values into
13629         sys/stat.h.
13630
13631 2007-05-01  Bruno Haible  <bruno@clisp.org>
13632
13633         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13634         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13635         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13636
13637 2007-05-01  Bruno Haible  <bruno@clisp.org>
13638
13639         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13640         'assert' module here.
13641
13642 2007-05-01  Bruno Haible  <bruno@clisp.org>
13643
13644         * doc/functions/*.texi: New files.
13645         * doc/functions/google-ranking.txt: New file.
13646         * doc/gnulib.texi (Function Substitutes): New chapter.
13647         (ctime, inet_ntoa): Remove sections.
13648         * doc/ctime.texi: Remove file.
13649         * doc/inet_ntoa.texi: Remove file.
13650         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13651         dependencies.
13652         (%.info): New rule, specifying a --reference-limit.
13653
13654 2007-05-01  Bruno Haible  <bruno@clisp.org>
13655
13656         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13657
13658 2007-05-01  Bruno Haible  <bruno@clisp.org>
13659
13660         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13661         the portability of 'mkdir' to mingw systems.
13662
13663 2007-05-01  Bruno Haible  <bruno@clisp.org>
13664
13665         * doc/headers/google-ranking.txt: New file.
13666
13667 2007-04-30  Eric Blake  <ebb9@byu.net>
13668
13669         Prefer fseeko to fseek.
13670         * modules/getpass (Depends-on): Add fseeko.
13671         * lib/getpass.c (getpass): Use fseeko, not fseek.
13672
13673 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13674
13675         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13676         assumes the sorting is stable, while most qsort implementations
13677         are not.  Use argument addresses to ensure they never compare as
13678         equal.
13679
13680         * tests/test-argp-2.sh (usage-indent test): Fix output
13681         (func_compare): Restore diff options
13682         * tests/test-argp.c: Restore #include "progname.h"
13683
13684 2007-04-29  Bruno Haible  <bruno@clisp.org>
13685
13686         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13687         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13688         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13690         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13691         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13692         (TESTS, check_PROGRAMS): Add test-snprintf.
13693         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13694         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13695         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13696         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13697         assertions that fail on HP-UX, OSF/1, or IRIX.
13698         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13699
13700 2007-04-29  Bruno Haible  <bruno@clisp.org>
13701
13702         * MODULES.html.sh (posix_functions): Remove 'contents'.
13703
13704 2007-04-29  Karl Berry  <karl@gnu.org>
13705
13706         * config/srclist.txt (gendocs_template_min): new entry.
13707
13708 2007-04-29  Bruno Haible  <bruno@clisp.org>
13709
13710         Work around fpurge bug on BSD systems.
13711         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13712         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13713         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13714         fpurge to rpl_fpurge if the system already has this function.
13715         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13716         the case where the system already has this function. Correct invariants
13717         on BSD systems.
13718         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13719         BSD systems.
13720
13721 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13722
13723         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13724         proposed by Sven Verdoolaege.
13725
13726         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13727         options.
13728         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13729         (usage and help tests): Update
13730
13731 2007-04-29  Bruno Haible  <bruno@clisp.org>
13732
13733         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13734         Print more information in case of failure. Disable a test on BeOS.
13735
13736 2007-04-29  Bruno Haible  <bruno@clisp.org>
13737
13738         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13739         This helps debugging on systems on which no gdb is available.
13740
13741 2007-04-29  Bruno Haible  <bruno@clisp.org>
13742
13743         * lib/freading.h: Improve comments.
13744         * lib/fwriting.h: Likewise.
13745         * tests/test-freading.c (main): Don't check freading immediately after
13746         repositioning. Needed for glibc.
13747
13748 2007-04-29  Bruno Haible  <bruno@clisp.org>
13749
13750         * lib/freading.c (freading): Trivial simplification.
13751
13752 2007-04-28  Bruno Haible  <bruno@clisp.org>
13753
13754         * tests/test-fwriting.c (main): Also test the interaction between
13755         fflush and fwriting.
13756         * modules/fwriting-tests (Depends-on): Add fflush.
13757
13758         * tests/test-freading.c (main): Also test the interaction between
13759         fflush and freading.
13760         * modules/freading-tests (Depends-on): Add fflush.
13761
13762 2007-04-28  Bruno Haible  <bruno@clisp.org>
13763
13764         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13765         fseeko and ftello.
13766         Suggested by Eric Blake.
13767
13768 2007-04-28  Jim Meyering  <jim@meyering.net>
13769
13770         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13771         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13772         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13773
13774 2007-04-27  Eric Blake  <ebb9@byu.net>
13775
13776         * doc/headers/assert.texi (assert.h): Document assert module use.
13777
13778 2007-04-27  Bruno Haible  <bruno@clisp.org>
13779
13780         * doc/headers/*.texi: New files.
13781         * doc/gnulib.texi (Header File Substitutes): New chapter.
13782         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13783         dependencies.
13784         (standards.info ,standards.html, standards.dvi): Update dependencies.
13785         (mostlyclean, clean): New targets.
13786
13787 2007-04-27  Bruno Haible  <bruno@clisp.org>
13788
13789         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13790         * modules/sysexits (Files, Makefile.am): Update.
13791
13792         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13793         * modules/sys_socket (Files, Makefile.am): Update.
13794
13795         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13796         * modules/sys_stat (Files, Makefile.am): Update.
13797
13798 2007-04-27  Eric Blake  <ebb9@byu.net>
13799
13800         * lib/freading.h: Improve comments.
13801         * lib/fwriting.h: Likewise.
13802         * lib/fflush.c: Likewise.
13803
13804         Fix closein for mingw.
13805         * modules/closein-tests: Add tests for closein.
13806         * tests/test-closein.c: New file.
13807         * tests/test-closein.sh: Likewise.
13808         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13809         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13810
13811 2007-04-27  Bruno Haible  <bruno@clisp.org>
13812
13813         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13814         version is < 6.
13815         * lib/math_.h [__DECC]: Likewise.
13816         * lib/stdio_.h [__DECC]: Likewise.
13817         * lib/stdlib_.h [__DECC]: Likewise.
13818         * lib/string_.h [__DECC]: Likewise.
13819         * lib/time_.h [__DECC]: Likewise.
13820         * lib/wchar_.h [__DECC]: Likewise.
13821         * lib/wctype_.h [__DECC]: Likewise.
13822
13823 2007-04-27  Bruno Haible  <bruno@clisp.org>
13824
13825         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13826
13827 2007-04-27  Bruno Haible  <bruno@clisp.org>
13828
13829         * lib/fflush.c: Add comments.
13830         * modules/fpurge-tests (Depends-on): Add fflush.
13831         * modules/freadable-tests (Depends-on): Likewise.
13832         * modules/fwritable-tests (Depends-on): Likewise.
13833
13834 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13835
13836         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13837         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13838         Report by Bruno Haible <bruno@clisp.org>.
13839
13840 2007-04-26  Eric Blake  <ebb9@byu.net>
13841
13842         Fix fflush on mingw.
13843         * modules/fflush (Depends-on): Add freading.
13844         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13845         but unread data.
13846
13847 2007-04-26  Eric Blake  <ebb9@byu.net>
13848         and Bruno Haible  <bruno@clisp.org>
13849
13850         Implement freading and fwriting.
13851         * lib/freading.c: New file.
13852         * lib/freading.h: Likewise.
13853         * m4/freading.m4: Likewise.
13854         * modules/freading: Likewise.
13855         * modules/freading-tests: Likewise.
13856         * tests/test-freading.c: Likewise.
13857         * lib/fwriting.c: New file.
13858         * lib/fwriting.h: Likewise.
13859         * m4/fwriting.m4: Likewise.
13860         * modules/fwriting: Likewise.
13861         * modules/fwriting-tests: Likewise.
13862         * tests/test-fwriting.c: Likewise.
13863         * MODULES.html.sh (File stream based Input/Output): Mention them.
13864
13865 2007-04-26  Bruno Haible  <bruno@clisp.org>
13866
13867         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13868         'long' when we assume it.
13869         Suggested by Eric Blake.
13870
13871 2007-04-26  Bruno Haible  <bruno@clisp.org>
13872
13873         Ensure fseeko, ftello are declared on glibc systems.
13874         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13875         * modules/fseeko (configure.ac-early): Likewise.
13876         * modules/ftello (configure.ac-early): Likewise.
13877         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13878         AC_FUNC_FSEEKO for this.
13879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13880         (gl_CHECK_FSEEKO): Remove macro.
13881
13882 2007-04-26  Bruno Haible  <bruno@clisp.org>
13883
13884         * tests/test-fflush.c (main): Also check the ftell result after
13885         fflush and fseek/fseeko.
13886         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13887         file descriptor position cache in the stream.
13888         * lib/fseeko.c (rpl_fseeko): Likewise.
13889
13890 2007-04-26  Bruno Haible  <bruno@clisp.org>
13891
13892         * modules/fflush-tests (Depends-on): Add fseeko.
13893
13894 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13895             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13896
13897         * lib/argz_.h: ensure error_t definition is obtained in same
13898         mechanism system argz.h would have.
13899         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13900         argz facilities are known bad.  Err on the side of caution if
13901         cross-compiling.
13902
13903 2007-04-25  Eric Blake  <ebb9@byu.net>
13904
13905         * lib/fpurge.c (includes): Use stdlib.h for free.
13906         * tests/test-fflush.c (main): Also test fflush-fseeko.
13907
13908 2007-04-25  Bruno Haible  <bruno@clisp.org>
13909
13910         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13911         * lib/fseeko.c: New file.
13912         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13913         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13914         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13915         gl_FUNC_FSEEKO.
13916         (gl_FUNC_FSEEKO): Invoke it.
13917         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13918         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13919         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13920
13921 2007-04-25  Bruno Haible  <bruno@clisp.org>
13922
13923         * modules/fflush (Depends-on): Add ftello.
13924
13925 2007-04-25  Bruno Haible  <bruno@clisp.org>
13926
13927         * modules/ftello-tests: New file.
13928         * tests/test-ftello.c: New file.
13929
13930         * modules/ftello: New file.
13931         * m4/ftello.m4: New file.
13932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13933         HAVE_FTELLO.
13934         * lib/stdio_.h (ftello): New declaration.
13935         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13936         HAVE_FTELLO.
13937
13938 2007-04-25  Bruno Haible  <bruno@clisp.org>
13939
13940         * modules/fseeko-tests: New file.
13941         * tests/test-fseeko.c: New file.
13942
13943         * modules/fseeko: New file.
13944         * m4/fseeko.m4: New file.
13945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13946         HAVE_FSEEKO.
13947         * lib/stdio_.h (fseeko): New declaration.
13948         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13949         HAVE_FSEEKO.
13950
13951 2007-04-25  Bruno Haible  <bruno@clisp.org>
13952
13953         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13954
13955 2007-04-25  Bruno Haible  <bruno@clisp.org>
13956
13957         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13958         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13959         * tests/test-unistd.c: Likewise.
13960         * tests/test-fcntl.c: Likewise.
13961
13962 2007-04-23  Eric Blake  <ebb9@byu.net>
13963
13964         * lib/fflush.c: Fix missing include.
13965         Reported by Bruno Haible.
13966
13967 2007-04-23  Bruno Haible  <bruno@clisp.org>
13968
13969         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13970         Reported by Eric Blake.
13971
13972 2007-04-23  Bruno Haible  <bruno@clisp.org>
13973
13974         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13975
13976 2007-04-23  Bruno Haible  <bruno@clisp.org>
13977
13978         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13979
13980 2007-04-23  Bruno Haible  <bruno@clisp.org>
13981
13982         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13983         Needed on HP-UX 11.
13984
13985 2007-04-16  Eric Blake  <ebb9@byu.net>
13986
13987         Make fflush rely on fpurge.
13988         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13989         open coding all variants.
13990         * modules/fflush (Depends-on): Add fpurge and unistd.
13991         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13993
13994         Fix --with-tests compilation on cygwin.
13995         * modules/argmatch-tests (Makefile.am): List gnulib library first
13996         in LDADD.
13997         * modules/argp-tests (Makefile.am): Likewise.
13998         * modules/array-list-tests (Makefile.am): Likewise.
13999         * modules/array-oset-tests (Makefile.am): Likewise.
14000         * modules/avltree-list-tests (Makefile.am): Likewise.
14001         * modules/avltree-oset-tests (Makefile.am): Likewise.
14002         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14003         * modules/carray-list-tests (Makefile.am): Likewise.
14004         * modules/dirname-tests (Makefile.am): Likewise.
14005         * modules/frexp-tests (Makefile.am): Likewise.
14006         * modules/isnanl-tests (Makefile.am): Likewise.
14007         * modules/linked-list-tests (Makefile.am): Likewise.
14008         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14009         * modules/lock-tests (Makefile.am): Likewise.
14010         * modules/rbtree-list-tests (Makefile.am): Likewise.
14011         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14012         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14013         * modules/tls-tests (Makefile.am): Likewise.
14014         * modules/tsearch-tests (Makefile.am): Likewise.
14015         * modules/xvasprintf-tests (Makefile.am): Likewise.
14016
14017         Fix fpurge for cygwin.
14018         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
14019         value.
14020         * modules/fpurge-tests (Depends-on): Clean up trash.
14021
14022 2007-04-16  Simon Josefsson  <simon@josefsson.org>
14023
14024         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
14025
14026         * m4/autobuild.m4: Re-indent.
14027
14028 2007-04-13  Bruno Haible  <bruno@clisp.org>
14029
14030         * modules/fpurge-tests: New file.
14031         * tests/test-fpurge.c: New file.
14032
14033         * modules/fpurge: New file.
14034         * lib/fpurge.h: New file.
14035         * lib/fpurge.c: New file.
14036         * m4/fpurge.m4: New file.
14037
14038 2007-04-13  Bruno Haible  <bruno@clisp.org>
14039
14040         * modules/fbufmode-tests: New file.
14041         * tests/test-fbufmode.c: New file.
14042
14043         * modules/fbufmode: New file.
14044         * lib/fbufmode.h: New file.
14045         * lib/fbufmode.c: New file.
14046         * m4/fbufmode.m4: New file.
14047
14048 2007-04-13  Bruno Haible  <bruno@clisp.org>
14049
14050         * modules/fwritable-tests: New file.
14051         * tests/test-fwritable.c: New file.
14052
14053         * modules/fwritable: New file.
14054         * lib/fwritable.h: New file.
14055         * lib/fwritable.c: New file.
14056         * m4/fwritable.m4: New file.
14057
14058 2007-04-13  Bruno Haible  <bruno@clisp.org>
14059
14060         * modules/freadable-tests: New file.
14061         * tests/test-freadable.c: New file.
14062
14063         * modules/freadable: New file.
14064         * lib/freadable.h: New file.
14065         * lib/freadable.c: New file.
14066         * m4/freadable.m4: New file.
14067
14068 2007-04-13  Bruno Haible  <bruno@clisp.org>
14069
14070         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
14071         MOSTLYCLEANFILES.
14072
14073 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14074
14075         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
14076         gzip bootstrap.conf to avoid dragging in i18n machinery.
14077         (gnulib_tool_option): Use it.
14078
14079 2007-04-13  Bruno Haible  <bruno@clisp.org>
14080
14081         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
14082         %F directives.
14083         * tests/test-vasprintf-posix.c (test_function): Likewise.
14084         * tests/test-snprintf-posix.h (test_function): Likewise.
14085         * tests/test-sprintf-posix.h (test_function): Likewise.
14086         * tests/test-fprintf-posix.h (test_function): Likewise.
14087         * tests/test-printf-posix.h (test_function): Likewise.
14088         * tests/test-fprintf-posix.out: Likewise.
14089
14090 2007-04-13  Bruno Haible  <bruno@clisp.org>
14091
14092         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
14093         * modules/tls-tests (configure.ac): Likewise.
14094         Reported by Arto C. Nirkko <anirkko@insel.ch>.
14095
14096 2007-04-13  Bruno Haible  <bruno@clisp.org>
14097
14098         * lib/tls.c (glthread_tls_get): Fix return type.
14099         Patch by Arto C. Nirkko <anirkko@insel.ch>.
14100
14101 2007-04-12  Eric Blake  <ebb9@byu.net>
14102
14103         * modules/gettime (Depends-on): Remove gettime.
14104         Reported by Dmitry V. Levin.
14105
14106 2007-04-12  Bruno Haible  <bruno@clisp.org>
14107
14108         * modules/fflush (Include): Mention <stdio.h>.
14109         * modules/strtoimax (Include): Mention <inttypes.h>.
14110         * modules/strtoumax (Include): Likewise.
14111
14112 2007-04-12  Eric Blake  <ebb9@byu.net>
14113
14114         * .cvsignore: New file.
14115         * .gitignore: Likewise.
14116
14117 2007-04-12  Bruno Haible  <bruno@clisp.org>
14118
14119         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
14120         not before, since $(LDADD) often contains libgnu.a.
14121         * modules/striconv-tests (test_striconv_LDADD): Likewise.
14122         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
14123         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
14124         Needed on Cygwin.
14125
14126 2007-04-12  Eric Blake  <ebb9@byu.net>
14127
14128         Work around glibc's failure to flush stdin on fclose.
14129         * lib/closein.c (close_stdin): Flush stdin before closing.
14130
14131         Work around glibc's failure to reset seekable stdin on exit.
14132         * modules/closein: New module.
14133         * lib/closein.c: New file.
14134         * lib/closein.h: Likewise.
14135         * m4/closein.m4: Likewise.
14136         * MODULES.html.sh (File stream based Input/Output): Document it.
14137
14138 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14139
14140         * gnulib-tool: Rename generated 'autobuild' script to
14141         'do-autobuild' in --create-megatestdir output.
14142
14143         * doc/gnulib.texi (Build robot for gnulib): Fix.
14144
14145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14146
14147         * modules/sysexits (Depends-on): Add absolute-header.
14148
14149 2007-04-12  Eric Blake  <ebb9@byu.net>
14150
14151         No need to preserve errno on success.
14152         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
14153         Reported by Bruno Haible.
14154
14155 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14156
14157         * MODULES.html.sh (Support for maintaining and releasing
14158         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
14159
14160 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14161
14162         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
14163
14164 2007-04-12  Simon Josefsson  <simon@josefsson.org>
14165
14166         * modules/autobuild: New module.
14167
14168         * m4/autobuild.m4: New file.
14169
14170 2007-04-11  Bruno Haible  <bruno@clisp.org>
14171
14172         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
14173         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
14174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
14175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
14176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14180         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14181         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
14183         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14184         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14185         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
14186         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14187         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
14189         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14190         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
14192         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14193         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
14195         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14196         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
14198         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
14199         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
14200         Reported by Eric Blake.
14201
14202 2007-04-11  Bruno Haible  <bruno@clisp.org>
14203
14204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
14205
14206 2007-04-10  Bruno Haible  <bruno@clisp.org>
14207
14208         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
14209         for NaN and Infinity. Needed on FreeBSD 6.1.
14210         * tests/test-vasnprintf-posix.c (test_function): Undo last change
14211         regarding results for "%010a" of Infinity and NaN.
14212         * tests/test-vasprintf-posix.c (test_function): Likewise.
14213         * tests/test-snprintf-posix.h (test_function): Likewise.
14214         * tests/test-sprintf-posix.h (test_function): Likewise.
14215         * tests/test-fprintf-posix.h (test_function): Likewise.
14216         * tests/test-printf-posix.h (test_function): Likewise.
14217         * tests/test-fprintf-posix.out: Likewise.
14218
14219 2007-04-10  Bruno Haible  <bruno@clisp.org>
14220
14221         * modules/locale-tests: New file.
14222         * tests/test-locale.c: New file.
14223
14224         * modules/locale: New file.
14225         * lib/locale_.h: New file.
14226         * m4/locale_h.m4: New file.
14227
14228 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
14229             Bruno Haible  <bruno@clisp.org>
14230
14231         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
14232         be determined, test for availability of the copysignf, copysign,
14233         copysignl functions.
14234         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
14235         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
14236         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
14237
14238 2007-04-09  Eric Blake  <ebb9@byu.net>
14239
14240         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
14241         * modules/stdio (Makefile.am): Support fflush.
14242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14243         * modules/fflush: New file.
14244         * lib/fflush.c: Likewise.
14245         * m4/fflush.m4: Likewise.
14246         * modules/fflush-tests: New test.
14247         * tests/test-fflush.c: Likewise.
14248         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
14249
14250 2007-04-06  Bruno Haible  <bruno@clisp.org>
14251
14252         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
14253         (VASNPRINTF): Use signbit for faster determination whether to print a
14254         minus sign.
14255         * modules/vasnprintf (Files): Remove lib/float+.h.
14256         * modules/fprintf-posix (Depends-on): Add signbit.
14257         * modules/snprintf-posix (Depends-on): Likewise.
14258         * modules/sprintf-posix (Depends-on): Likewise.
14259         * modules/vasnprintf-posix (Depends-on): Likewise.
14260         * modules/vasprintf-posix (Depends-on): Likewise.
14261         * modules/vfprintf-posix (Depends-on): Likewise.
14262         * modules/vsnprintf-posix (Depends-on): Likewise.
14263         * modules/vsprintf-posix (Depends-on): Likewise.
14264
14265 2007-04-06  Bruno Haible  <bruno@clisp.org>
14266
14267         * tests/test-frexp.c (main): Test also the sign bit of zero results.
14268         * tests/test-frexpl.c (main): Likewise.
14269         * tests/test-ldexpl.c (main): Likewise.
14270         * modules/frexp-tests (Depends-on): Add signbit.
14271         * modules/frexpl-tests (Depdends-on): Likewise.
14272         * modules/ldexpl-tests (Depdends-on): Likewise.
14273
14274 2007-04-06  Bruno Haible  <bruno@clisp.org>
14275
14276         * modules/signbit-tests: New file.
14277         * tests/test-signbit.c: New file.
14278
14279         * modules/signbit: New file.
14280         * lib/signbitf.c: New file.
14281         * lib/signbitd.c: New file.
14282         * lib/signbitl.c: New file.
14283         * m4/signbit.m4: New file.
14284         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
14285         (signbit): New macro.
14286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
14287         REPLACE_SIGNBIT.
14288         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
14289         REPLACE_FREXPL into math.h.
14290
14291 2007-04-06  Bruno Haible  <bruno@clisp.org>
14292
14293         * modules/isnanf-nolibm-tests: New file.
14294         * tests/test-isnanf.c: New file.
14295
14296         * modules/isnanf-nolibm: New file.
14297         * lib/isnanf.h: New file.
14298         * lib/isnanf.c: New file.
14299         * lib/isnan.c: Consider the USE_FLOAT macro.
14300         * m4/isnanf.m4: New file.
14301
14302 2007-04-06  Bruno Haible  <bruno@clisp.org>
14303
14304         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
14305         (Link): New section.
14306
14307         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
14308
14309 2007-04-06  Bruno Haible  <bruno@clisp.org>
14310
14311         Assume the 'long double' type.
14312         * m4/longdouble.m4: Remove file.
14313         * config/srclist.txt: Don't mention longdouble.m4.
14314         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
14315         * lib/float+.h: Likewise.
14316         * lib/frexp.c: Likewise.
14317         * lib/printf-args.h: Likewise.
14318         * lib/printf-args.c: Likewise.
14319         * lib/printf-frexp.c: Likewise.
14320         * lib/printf-parse.c: Likewise.
14321         * lib/vasnprintf.c: Likewise.
14322         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
14323         * m4/intl.m4: Likewise.
14324         * m4/isnanl.m4: Likewise.
14325         * m4/printf.m4: Likewise.
14326         * m4/printf-frexpl.m4: Likewise.
14327         * m4/vasnprintf.m4: Likewise.
14328         * modules/allocsa (Files): Remove m4/longdouble.m4.
14329         * modules/gettext (Files): Likewise.
14330         * modules/relocatable-prog-wrapper (Files): Likewise.
14331         * modules/vasnprintf (Files): Likewise.
14332         * modules/isnanl (Files): Likewise.
14333         (Include): Simplify.
14334         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14335         (Include): Simplify.
14336         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14337         (Include): Simplify.
14338         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14339         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14340         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14341         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14342         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14343         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14344         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14345         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14346         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14347         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14348         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
14349         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14350         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
14351         * tests/test-isnanl.c: Likewise.
14352         * tests/test-snprintf-posix.h: Likewise.
14353         * tests/test-sprintf-posix.h: Likewise.
14354         * tests/test-vasnprintf-posix.c: Likewise.
14355         * tests/test-vasnprintf-posix2.c: Likewise.
14356         * tests/test-vasprintf-posix.c: Likewise.
14357
14358 2007-04-06  Bruno Haible  <bruno@clisp.org>
14359
14360         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
14361         * lib/math_.h [__DECC]: Include the overridden include file through
14362         #include_next, outside the double-inclusion guard.
14363         * lib/stdio_.h [__DECC]: Likewise.
14364         * lib/stdlib_.h [__DECC]: Likewise.
14365         * lib/string_.h [__DECC]: Likewise.
14366         * lib/time_.h [__DECC]: Likewise.
14367         * lib/wchar_.h [__DECC]: Likewise.
14368         * lib/wctype_.h [__DECC]: Likewise.
14369         * lib/inttypes_.h [__DECC]: Likewise.
14370         Reported by Albert Chin <china@thewrittenword.com> in
14371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
14372
14373 2007-04-04  Eric Blake  <ebb9@byu.net>
14374
14375         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
14376         1.5.x.
14377
14378 2007-04-04  Bruno Haible  <bruno@clisp.org>
14379
14380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
14381         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
14382
14383 2007-04-04  Bruno Haible  <bruno@clisp.org>
14384
14385         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
14386         results for "%010a" of Infinity and NaN.
14387         * tests/test-vasprintf-posix.c (test_function): Likewise.
14388         * tests/test-snprintf-posix.h (test_function): Likewise.
14389         * tests/test-sprintf-posix.h (test_function): Likewise.
14390         * tests/test-fprintf-posix.h (test_function): Remove these tests.
14391         * tests/test-printf-posix.h (test_function): Likewise.
14392         * tests/test-fprintf-posix.out: Update.
14393         Needed for FreeBSD 6.1.
14394
14395 2007-04-04  Bruno Haible  <bruno@clisp.org>
14396
14397         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
14398         directly used by the gnulib modules nor by gnulib-tool.
14399
14400 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14401
14402         * DEPENDENCIES: Give overall description of version dependency
14403         desirability.  Use more-typical names for apps.
14404         Add shell, coreutils, diffutils, grep, tar, gzip.
14405
14406 2007-04-04  Simon Josefsson  <simon@josefsson.org>
14407
14408         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
14409
14410 2007-04-04  Karl Berry  <karl@gnu.org>
14411
14412         * MODULES.html.sh (func_module): missing '.
14413
14414 2007-04-03  Bruno Haible  <bruno@clisp.org>
14415
14416         * modules/argmatch-tests (Makefile.am): New variable
14417         test_argmatch_LDADD.
14418         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
14419         * modules/array-list-tests (Makefile.am): New variable
14420         test_array_list_LDADD.
14421         * modules/array-oset-tests (Makefile.am): New variable
14422         test_array_oset_LDADD.
14423         * modules/avltree-list-tests (Makefile.am): New variable
14424         test_avltree_list_LDADD.
14425         * modules/avltree-oset-tests (Makefile.am): New variable
14426         test_avltree_oset_LDADD.
14427         * modules/avltreehash-list-tests (Makefile.am): New variable
14428         test_avltreehash_list_LDADD.
14429         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
14430         test_canonicalize_lgpl_LDADD.
14431         * modules/carray-list-tests (Makefile.am): New variable
14432         test_carray_list_LDADD.
14433         * modules/dirname-tests (Makefile.am): New variable
14434         test_dirname_LDADD.
14435         * modules/linked-list-tests (Makefile.am): New variable
14436         test_linked_list_LDADD.
14437         * modules/linkedhash-list-tests (Makefile.am): New variable
14438         test_linkedhash_list_LDADD.
14439         * modules/rbtree-list-tests (Makefile.am): New variable
14440         test_rbtree_list_LDADD.
14441         * modules/rbtree-oset-tests (Makefile.am): New variable
14442         test_rbtree_oset_LDADD.
14443         * modules/rbtreehash-list-tests (Makefile.am): New variable
14444         test_rbtreehash_list_LDADD.
14445         * modules/xvasprintf-tests (Makefile.am): New variable
14446         test_xvasprintf_LDADD.
14447         Reported by Eric Blake.
14448
14449 2007-04-03  Eric Blake  <ebb9@byu.net>
14450
14451         * DEPENDENCIES: Weaken m4 requirements.
14452
14453 2007-04-03  Bruno Haible  <bruno@clisp.org>
14454
14455         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
14456         * modules/isnanl-tests (configure.ac): Likewise.
14457
14458 2007-04-03  Ben Pfaff  <blp@gnu.org>
14459
14460         * modules/iconv_open: Add $(srcdir)/ to source directory
14461         references in Makefile fragments that call gperf, to fix VPATH
14462         builds.
14463
14464 2007-04-03  Bruno Haible  <bruno@clisp.org>
14465
14466         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
14467         * lib/ldexpl.c: Undo last change.
14468
14469 2007-04-03  Bruno Haible  <bruno@clisp.org>
14470
14471         * modules/printf-frexpl (Depends-on): Undo last change.
14472         (Files): Add m4/ldexpl.m4.
14473
14474 2007-04-03  Bruno Haible  <bruno@clisp.org>
14475
14476         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
14477         * modules/isnanl (Link): New section.
14478
14479         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
14480         * modules/frexp (Link): New section.
14481
14482         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
14483         * modules/frexpl (Link): New section.
14484
14485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
14486         * modules/ldexpl (Link): New section.
14487
14488 2007-04-03  Bruno Haible  <bruno@clisp.org>
14489
14490         * modules/TEMPLATE-EXTENDED: New file.
14491         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
14492
14493 2007-04-03  Bruno Haible  <bruno@clisp.org>
14494
14495         * DEPENDENCIES: New file.
14496         Suggested by Simon Josefsson.
14497
14498 2007-04-03  Bruno Haible  <bruno@clisp.org>
14499
14500         * doc/gnulib.texi: Escape @.
14501
14502 2007-04-03  James Youngman  <jay@gnu.org>
14503         and Paul Eggert  <eggert@cs.ucla.edu>
14504
14505         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
14506         birthtime on all systems that have birthtime, not just those which
14507         use st_birthtimensec rather than st_birthtim.  Putting zero in
14508         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
14509         that the birth time is not available for files on an NFS mount.
14510
14511 2007-04-03  Simon Josefsson  <simon@josefsson.org>
14512
14513         * modules/memxor: Move back from crypto/, suggested by Bruno.
14514         * modules/crypto/hmac-sha1: Fix memxor dependency.
14515
14516         * modules/crypto/gc: Moved from ../.
14517
14518 2007-04-02  Eric Blake  <ebb9@byu.net>
14519
14520         * lib/ldexpl.c (includes): Avoid libm.
14521
14522         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
14523
14524 2007-04-02  Bruno Haible  <bruno@clisp.org>
14525
14526         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
14527         on IRIX.
14528
14529 2007-04-02  Bruno Haible  <bruno@clisp.org>
14530
14531         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
14532         x86 or x86_64 platforms running MacOS X.
14533         Reported by Ryan Schmidt <@ryandesign.com>.
14534
14535 2007-04-02  Bruno Haible  <bruno@clisp.org>
14536
14537         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
14538         i386.
14539
14540 2007-04-01  Simon Josefsson  <simon@josefsson.org>
14541
14542         * modules/crypto/arcfour: Moved from ../.
14543         * modules/crypto/arcfour-tests: Moved from ../.
14544         * modules/crypto/arctwo: Moved from ../.
14545         * modules/crypto/arctwo-tests: Moved from ../.
14546         * modules/crypto/des: Moved from ../.
14547         * modules/crypto/des-tests: Moved from ../.
14548         * modules/crypto/gc-arcfour: Moved from ../.
14549         * modules/crypto/gc-arcfour-tests: Moved from ../.
14550         * modules/crypto/gc-arctwo: Moved from ../.
14551         * modules/crypto/gc-arctwo-tests: Moved from ../.
14552         * modules/crypto/gc-des: Moved from ../.
14553         * modules/crypto/gc-des-tests: Moved from ../.
14554         * modules/crypto/gc-hmac-md5: Moved from ../.
14555         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
14556         * modules/crypto/gc-hmac-sha1: Moved from ../.
14557         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
14558         * modules/crypto/gc-md2: Moved from ../.
14559         * modules/crypto/gc-md2-tests: Moved from ../.
14560         * modules/crypto/gc-md4: Moved from ../.
14561         * modules/crypto/gc-md4-tests: Moved from ../.
14562         * modules/crypto/gc-md5: Moved from ../.
14563         * modules/crypto/gc-md5-tests: Moved from ../.
14564         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
14565         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
14566         * modules/crypto/gc-random: Moved from ../.
14567         * modules/crypto/gc-rijndael: Moved from ../.
14568         * modules/crypto/gc-rijndael-tests: Moved from ../.
14569         * modules/crypto/gc-sha1: Moved from ../.
14570         * modules/crypto/gc-sha1-tests: Moved from ../.
14571         * modules/crypto/gc-tests: Moved from ../.
14572         * modules/crypto/hmac-md5: Moved from ../.
14573         * modules/crypto/hmac-md5-tests: Moved from ../.
14574         * modules/crypto/hmac-sha1: Moved from ../.
14575         * modules/crypto/hmac-sha1-tests: Moved from ../.
14576         * modules/crypto/md2: Moved from ../.
14577         * modules/crypto/md2-tests: Moved from ../.
14578         * modules/crypto/md4: Moved from ../.
14579         * modules/crypto/md4-tests: Moved from ../.
14580         * modules/crypto/md5: Moved from ../.
14581         * modules/crypto/md5-tests: Moved from ../.
14582         * modules/crypto/memxor: Moved from ../.
14583         * modules/crypto/rijndael: Moved from ../.
14584         * modules/crypto/rijndael-tests: Moved from ../.
14585         * modules/crypto/sha1: Moved from ../.
14586
14587 2007-03-30  James Youngman  <jay@gnu.org>
14588
14589         * tests/test-stat-time.c (prepare_test): use chmod() rather than
14590         rename() to change the ctime of a file (because ctime is unaffected
14591         by rename on jfs2 on AIX 5.1).
14592         (main): Start by doing cleanup, in case a previous run failed leaving
14593         test files behind.
14594
14595 2007-03-31  Bruno Haible  <bruno@clisp.org>
14596
14597         Support old proprietary implementations of iconv.
14598         * modules/iconv_open: New file.
14599         * lib/iconv_.h: New file.
14600         * m4/iconv_h.m4: New file.
14601         * lib/iconv_open.c: New file.
14602         * lib/iconv_open-aix.gperf: New file.
14603         * lib/iconv_open-hpux.gperf: New file.
14604         * lib/iconv_open-irix.gperf: New file.
14605         * lib/iconv_open-osf.gperf: New file.
14606         * m4/iconv_open.m4: New file.
14607         * modules/linebreak (Depends-on): Add iconv_open.
14608         * modules/striconv (Depends-on): Likewise.
14609         * modules/striconveh (Depends-on): Likewise.
14610         * modules/unicodeio (Depends-on): Likewise.
14611         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14612         (iconv_t)(-1).
14613         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14614         conversion if cd is (iconv_t)(-1).
14615         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14616         is not possible.
14617
14618 2007-03-31  Bruno Haible  <bruno@clisp.org>
14619
14620         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14621         work on Solaris either. Protect also second use of "autodetect_jp".
14622
14623 2007-03-31  Bruno Haible  <bruno@clisp.org>
14624
14625         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14626         the function is not present.
14627
14628 2007-03-31  Bruno Haible  <bruno@clisp.org>
14629
14630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14631         the function is not present.
14632
14633 2007-03-31  Bruno Haible  <bruno@clisp.org>
14634
14635         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14636         a bug in HP-UX iconv_open().
14637
14638 2007-03-31  Bruno Haible  <bruno@clisp.org>
14639
14640         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14641         (Mathematics <math.h>): New section, add fpieee.
14642         (Input/output <stdio.h>): Add fseterr.
14643         (Mathematics <math.h>): New section, add printf-frexp.
14644         (Container data structures): Add sublist.
14645         (Core language properties): Add fpucw, inline.
14646         (Functions for greatest-width integer types <inttypes.h>): Add
14647         imaxabs, imaxdiv, inttypes.
14648         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14649         isnanl-nolibm, ldexp.
14650         (Mathematics <math.h>): New section, add printf-frexpl.
14651         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14652         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14653         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14654         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14655         (Unicode string functions): Add unistr/u*-mbtoucr.
14656         (Java): Add javacomp-script, javaexec-script.
14657         (C#): Add csharpcomp-script, csharpexec-script.
14658         (Support for building libraries and executables): Add havelib,
14659         relocatable-*.
14660         (Support for maintaining and releasing projects): Renamed from
14661         'Support for maintaining and release projects'. Add announce-gen.
14662
14663 2007-03-31  Bruno Haible  <bruno@clisp.org>
14664
14665         * README: Talk primarily about git.
14666         (git and CVS): Renamed from CVS.
14667         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14668         gnulib is available through git.
14669         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14670
14671 2007-03-30  Bruno Haible  <bruno@clisp.org>
14672
14673         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14674         * lib/poll_.h: Likewise.
14675         * lib/stat_.h: Likewise.
14676         * lib/sys_time_.h: Likewise.
14677         * lib/sysexit_.h: Likewise.
14678         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14679         * lib/stdbool_.h: Likewise.
14680         * lib/byteswap_.h: Add double-inclusion guard.
14681
14682 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14683
14684         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14685
14686 2007-03-30  Karl Berry  <karl@gnu.org>
14687
14688         * config/srclist-update: double space after USA in the license
14689         substitution, since that's how it's usually (?) written.
14690
14691 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14692
14693         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14694         reported by Bruno Haible.
14695
14696 2007-03-29  Bruno Haible  <bruno@clisp.org>
14697
14698         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14699         a bug in AIX iconv().
14700
14701 2007-03-29  Bruno Haible  <bruno@clisp.org>
14702
14703         * modules/ldexpl-tests: New file.
14704         * tests/test-ldexpl.c: New file.
14705
14706 2007-03-29  Bruno Haible  <bruno@clisp.org>
14707
14708         * lib/ldexpl.c: Include fpucw.h.
14709         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14710         multiplication.
14711         * modules/ldexpl (Depends-on): Add fpucw.
14712
14713 2007-03-29  Bruno Haible  <bruno@clisp.org>
14714
14715         * modules/ldexpl: New file.
14716         * m4/ldexpl.m4: New file.
14717         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14718         set.
14719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14720         REPLACE_LDEXPL.
14721         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14722         REPLACE_LDEXPL.
14723         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14724         gl_FUNC_LDEXPL_WORKS.
14725         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14726         * modules/mathl (Files): Remove lib/ldexpl.c.
14727         (Depends-on): Add ldexpl.
14728
14729 2007-03-29  Bruno Haible  <bruno@clisp.org>
14730
14731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14732
14733 2007-03-29  Bruno Haible  <bruno@clisp.org>
14734
14735         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14736         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14737         and possibly also HP-UX.
14738         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14739         work on AIX, IRIX, HP-UX, OSF/1.
14740         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14741         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14742         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14743         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14744         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14745         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14746
14747 2007-03-29  Bruno Haible  <bruno@clisp.org>
14748
14749         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14750
14751 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14752
14753         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14754         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14755
14756 2007-03-29  Eric Blake  <ebb9@byu.net>
14757
14758         * lib/acl-internal.h: Remove redundant include.
14759         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14760         Cygwin when a file is locked.
14761
14762 2007-03-29  Bruno Haible  <bruno@clisp.org>
14763
14764         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14765         file.
14766         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14767
14768 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14769
14770         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14771         try to remove a parent directory if the child couldn't be removed
14772         (except for the first rmdir, which could fail because the child
14773         doesn't exist).  Problem reported by Jeff Blaine in
14774         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14775
14776 2007-03-28  Bruno Haible  <bruno@clisp.org>
14777
14778         * lib/striconveh.c (utf8conv_carefully): New function.
14779         (mem_cd_iconveh_internal): Invoke it.
14780
14781 2007-03-28  Bruno Haible  <bruno@clisp.org>
14782
14783         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14784         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14785         input.
14786         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14787         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14788         unistr/u8-uctomb.
14789
14790 2007-03-28  Bruno Haible  <bruno@clisp.org>
14791
14792         * modules/unistr/u8-mbtoucr: New file.
14793         * lib/unistr/u8-mbtoucr.c: New file.
14794         * modules/unistr/u16-mbtoucr: New file.
14795         * lib/unistr/u16-mbtoucr.c: New file.
14796         * modules/unistr/u16-mbtoucr: New file.
14797         * lib/unistr/u16-mbtoucr.c: New file.
14798         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14799
14800 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14801             Bruno Haible  <bruno@clisp.org>
14802
14803         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14804         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14805         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14806
14807         * m4/stdio_h.m4: Add stubs for vasprintf too.
14808
14809         * modules/stdio: Support vasprintf in sed command.
14810
14811         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14812         vasprintf.h.  Add stdio module indicator.
14813
14814         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14815         vasprintf.h.
14816
14817         * lib/vasprintf.h: File removed.
14818
14819         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14820         * lib/vasprintf.c: Ditto.
14821         * lib/xvasprintf.c: Ditto.
14822         * tests/test-vasprintf-posix.c: Ditto.
14823         * tests/test-vasprintf.c: Ditto.
14824
14825 2007-03-27  Bruno Haible  <bruno@clisp.org>
14826
14827         Make vasnprintf multithread-safe.
14828         * lib/vasnprintf.c (decimal_point_char): New function.
14829         (VASNPRINTF): Use it.
14830         Suggested by Simon Josefsson.
14831
14832 2007-03-27  Eric Blake  <ebb9@byu.net>
14833
14834         Support sub-second birthtime on cygwin.
14835         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14836         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14837         (get_stat_birthtime): Also work with st_birthtim.
14838
14839 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14840
14841         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14842         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14843         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14844         (get_stat_birthtime_ns): Simplify compile-time tests.
14845         (get_stat_birthtime): Change the API to look like
14846         get_stat_mtime etc., except return a negative tv_nsec on error.
14847         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14848         Don't check for "spare" fields.
14849         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14850         or for struct stat.st_birthtime, as these tests aren't used.
14851         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14852
14853 2007-03-27  Bruno Haible  <bruno@clisp.org>
14854
14855         * lib/stat-time.h: Include <sys/stat.h>.
14856
14857 2007-03-27  James Youngman  <jay@gnu.org>
14858
14859         * lib/stat-time.h (get_stat_birthtime): New function for
14860           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14861         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14862           and its variants.
14863         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14864         * modules/stat-time-test: New file.
14865         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14866
14867 2007-03-26  Bruno Haible  <bruno@clisp.org>
14868
14869         Better support of signalling NaNs.
14870         * lib/atanl.c: Include isnanl.h.
14871         (atanl): Perform test for NaN at the beginning of the function and
14872         through a call to isnanl.
14873         * lib/cosl.c: Include isnanl.h.
14874         (cosl): Perform test for NaN at the beginning of the function and
14875         through a call to isnanl.
14876         * lib/ldexpl.c: Include isnanl.h.
14877         (ldexpl): Perform test for NaN through a call to isnanl.
14878         * lib/logl.c: Include isnanl.h.
14879         (logl): Perform test for NaN at the beginning of the function and
14880         through a call to isnanl.
14881         * lib/sinl.c: Include isnanl.h.
14882         (sinl): Perform test for NaN at the beginning of the function and
14883         through a call to isnanl.
14884         * lib/sqrtl.c: Include isnanl.h.
14885         (sqrtl): Perform test for NaN at the beginning of the function and
14886         through a call to isnanl.
14887         * lib/tanl.c: Include isnanl.h.
14888         (tanl): Perform test for NaN at the beginning of the function and
14889         through a call to isnanl.
14890         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14891         * modules/mathl (Depends-on): Add isnanl.
14892
14893 2007-03-26  Eric Blake  <ebb9@byu.net>
14894
14895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14896         regression in logic sense of previous patch.
14897
14898 2007-03-26  Bruno Haible  <bruno@clisp.org>
14899
14900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14901         unportable shell command "if ! ...".
14902         Reported by Ralf Wildenhues.
14903
14904 2007-03-25  Bruno Haible  <bruno@clisp.org>
14905
14906         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14907         <sysexits.h> file, and only add EX_CONFIG.
14908         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14909         absolute file name and whether it is sufficient. Substitute also
14910         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14911         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14912         ABSOLUTE_SYSEXITS_H into sysexits.h.
14913
14914 2007-03-25  Bruno Haible  <bruno@clisp.org>
14915
14916         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14917         hints is NULL.
14918
14919 2007-03-25  Bruno Haible  <bruno@clisp.org>
14920
14921         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14922         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14923
14924 2007-03-25  Bruno Haible  <bruno@clisp.org>
14925
14926         * lib/vasnprintf.c: Include langinfo.h.
14927         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14928         multithread-safe.
14929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14930         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14935         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14936         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14937         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14938         Reported by Simon Josefsson.
14939
14940 2007-03-25  Bruno Haible  <bruno@clisp.org>
14941
14942         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14943         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14944         * modules/vasnprintf (Depends-on): Add stdint.
14945
14946 2007-03-25  Bruno Haible  <bruno@clisp.org>
14947
14948         * modules/fpieee: New file.
14949         * m4/fpieee.m4: New file.
14950         * modules/isnan-nolibm (Depends-on): Add fpieee.
14951         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14952         * modules/isnanl (Depends-on): Add fpieee.
14953
14954 2007-03-25  Bruno Haible  <bruno@clisp.org>
14955
14956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14957
14958 2007-03-25  Bruno Haible  <bruno@clisp.org>
14959
14960         Avoid test failures on IRIX 6.5.
14961         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14962         (main): Use it.
14963         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14964         macros.
14965         (main): Use them.
14966
14967 2007-03-25  Bruno Haible  <bruno@clisp.org>
14968
14969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14970         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14971         exists but doesn't work.
14972         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14973         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14975         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14976
14977 2007-03-25  Bruno Haible  <bruno@clisp.org>
14978
14979         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14980         returns inf. Needed on IRIX 6.5.
14981
14982 2007-03-25  Bruno Haible  <bruno@clisp.org>
14983
14984         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14985         (main): Use isnanl instead of x != x idiom.
14986         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14987
14988         * tests/test-frexp.c: Include isnan.h.
14989         (main): Use isnan instead of x != x idiom.
14990         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14991
14992 2007-03-25  Bruno Haible  <bruno@clisp.org>
14993
14994         * tests/test-frexp.c (NaN): New function/macro.
14995         (main): Use it instead of 0.0 / 0.0.
14996         * tests/test-isnan.c (NaN): New function/macro.
14997         (main): Use it instead of 0.0 / 0.0.
14998         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14999         (test_function): Use it instead of 0.0 / 0.0.
15000         * tests/test-vasprintf-posix.c (NaN): New function/macro.
15001         (test_function): Use it instead of 0.0 / 0.0.
15002         * tests/test-snprintf-posix.h (NaN): New function/macro.
15003         (test_function): Use it instead of 0.0 / 0.0.
15004         * tests/test-sprintf-posix.h (NaN): New function/macro.
15005         (test_function): Use it instead of 0.0 / 0.0.
15006         * tests/test-fprintf-posix.h (NaN): New function/macro.
15007         (test_function): Use it instead of 0.0 / 0.0.
15008         * tests/test-printf-posix.h (NaN): New function/macro.
15009         (test_function): Use it instead of 0.0 / 0.0.
15010
15011         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
15012
15013 2007-03-25  Bruno Haible  <bruno@clisp.org>
15014
15015         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
15016
15017 2007-03-25  Bruno Haible  <bruno@clisp.org>
15018
15019         * lib/regexec.c (merge_state_with_log): Make static.
15020
15021 2007-03-25  Bruno Haible  <bruno@clisp.org>
15022
15023         * lib/trigl.c (kernel_rem_pio2): Make static.
15024
15025 2007-03-25  Bruno Haible  <bruno@clisp.org>
15026
15027         * lib/sincosl.c (sincosl_table): Make static.
15028
15029 2007-03-25  Bruno Haible  <bruno@clisp.org>
15030
15031         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
15032         if the compiler does not support C99.
15033
15034 2007-03-25  Bruno Haible  <bruno@clisp.org>
15035
15036         * modules/time (Makefile.am): Ensure all rule action lines start with a
15037         tab.
15038
15039 2007-03-24  Bruno Haible  <bruno@clisp.org>
15040
15041         * modules/tsearch-tests: New file.
15042         * tests/test-tsearch.sh: New file.
15043         * tests/test-tsearch.c: New file, mostly copied from glibc.
15044
15045         * modules/search-tests: New file.
15046         * tests/test-search.c: New file.
15047
15048         * modules/search: New file.
15049         * lib/search_.h: New file, incorporating lib/tsearch.h.
15050         * m4/search_h.m4: New file.
15051         * lib/tsearch.h: Remove file.
15052         * lib/tsearch.c: Include search.h instead of tsearch.h.
15053         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
15054         HAVE_TSEARCH.
15055         * modules/tsearch (Files): Remove lib/tsearch.h.
15056         (Depends-on): Add search.
15057         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
15058         (Include): Change tsearch.h into search.h.
15059
15060 2007-03-24  Bruno Haible  <bruno@clisp.org>
15061
15062         * modules/fpucw: New file.
15063         * lib/fpucw.h: New file.
15064         * lib/frexp.c: Include fpucw.h.
15065         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15066         (FUNC): Use them.
15067         * lib/printf-frexp.c: Include fpucw.h.
15068         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
15069         (FUNC): Use them.
15070         * lib/vasnprintf.c: Include fpucw.h.
15071         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
15072         'long double' calculations.
15073         * tests/test-frexpl.c: Include fpucw.h.
15074         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15075         * tests/test-printf-frexpl.c: Include fpucw.h.
15076         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
15077         * modules/frexpl (Depends-on): Add fpucw.
15078         * modules/printf-frexpl (Depends-on): Likewise.
15079         * modules/fprintf-posix (Depends-on): Likewise.
15080         * modules/snprintf-posix (Depends-on): Likewise.
15081         * modules/sprintf-posix (Depends-on): Likewise.
15082         * modules/vasnprintf-posix (Depends-on): Likewise.
15083         * modules/vasprintf-posix (Depends-on): Likewise.
15084         * modules/vfprintf-posix (Depends-on): Likewise.
15085         * modules/vsnprintf-posix (Depends-on): Likewise.
15086         * modules/vsprintf-posix (Depends-on): Likewise.
15087         * modules/frexpl-tests (Depends-on): Likewise.
15088         * modules/printf-frexpl-tests (Depends-on): Likewise.
15089
15090 2007-03-24  Bruno Haible  <bruno@clisp.org>
15091
15092         * lib/float+.h: New file.
15093         * lib/isnan.c: Include float+.h.
15094         (SIZE): New macro.
15095         (FUNC): Compare only SIZE bytes of the value.
15096         * lib/vasnprintf.c: Include float+.h.
15097         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
15098         SIZEOF_LDBL or SIZEOF_DBL bytes.
15099         * modules/isnan-nolibm (Files): Add lib/float+.h.
15100         * modules/isnanl-nolibm (Files): Add lib/float+.h.
15101         * modules/isnanl (Files): Add lib/float+.h.
15102         * modules/vasnprintf (Files): Add lib/float+.h.
15103
15104 2007-03-24  Bruno Haible  <bruno@clisp.org>
15105
15106         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
15107         include isnanl-nolibm.h.
15108
15109 2007-03-24  Bruno Haible  <bruno@clisp.org>
15110
15111         * tests/test-read-file.c (main): Don't produce spurious output for
15112         expected situations. Make the test fail if it encountered unexpected
15113         results.
15114
15115 2007-03-24  Bruno Haible  <bruno@clisp.org>
15116
15117         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
15118         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
15119
15120 2007-03-24  Bruno Haible  <bruno@clisp.org>
15121
15122         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
15123
15124 2007-03-24  Bruno Haible  <bruno@clisp.org>
15125
15126         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
15127         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
15128
15129         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
15130         * modules/utf8-ucs4: Turn into a symbolic link to module
15131         unistr/u8-mbtouc.
15132
15133         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
15134         utf8-ucs4-unsafe.
15135         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
15136         unistr/u8-mbtouc-unsafe.
15137
15138         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
15139         * modules/utf16-ucs4: Turn into a symbolic link to module
15140         unistr/u16-mbtouc.
15141
15142         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
15143         utf16-ucs4-unsafe.
15144         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
15145         unistr/u16-mbtouc-unsafe.
15146
15147         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
15148         * modules/ucs4-utf8: Turn into a symbolic link to module
15149         unistr/u8-ubtomb.
15150
15151         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
15152         * modules/ucs4-utf16: Turn into a symbolic link to module
15153         unistr/u16-ubtomb.
15154
15155 2007-03-24  Bruno Haible  <bruno@clisp.org>
15156
15157         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
15158         Enable the function only if HAVE_INLINE.
15159         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
15160         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15161         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
15162         Enable the function only if HAVE_INLINE.
15163         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
15164         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
15165         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
15166         Enable the function only if HAVE_INLINE.
15167         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
15168         Enable the function only if HAVE_INLINE.
15169         * modules/utf8-ucs4: Update.
15170         * modules/utf8-ucs4-unsafe: Update.
15171         * modules/utf16-ucs4: Update.
15172         * modules/utf16-ucs4-unsafe: Update.
15173         * modules/ucs4-utf8: Update.
15174         * modules/ucs4-utf16: Update.
15175
15176 2007-03-24  Bruno Haible  <bruno@clisp.org>
15177
15178         * lib/utf8-ucs4.h: Remove file.
15179         * lib/utf8-ucs4-unsafe.h: Remove file.
15180         * lib/utf16-ucs4.h: Remove file.
15181         * lib/utf16-ucs4-unsafe.h: Remove file.
15182         * lib/ucs4-utf8.h: Remove file.
15183         * lib/ucs4-utf16.h: Remove file.
15184         * lib/unistr.h: Include their previous contents.
15185         * m4/utf-ucs4.m4: Remove file.
15186         * m4/ucs4-utf.m4: Remove file.
15187         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
15188         (Depends-on): Add unistr/base.
15189         (configure.ac): Remove gl_UTF_UCS4.
15190         (Makefile.am): Update.
15191         (Include): Change to unistr.h.
15192         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
15193         (Depends-on): Add unistr/base.
15194         (configure.ac): Remove gl_UTF_UCS4.
15195         (Makefile.am): Update.
15196         (Include): Change to unistr.h.
15197         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
15198         (Depends-on): Add unistr/base.
15199         (configure.ac): Remove gl_UTF_UCS4.
15200         (Makefile.am): Update.
15201         (Include): Change to unistr.h.
15202         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
15203         (Depends-on): Add unistr/base.
15204         (configure.ac): Remove gl_UTF_UCS4.
15205         (Makefile.am): Update.
15206         (Include): Change to unistr.h.
15207         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
15208         (Depends-on): Add unistr/base.
15209         (configure.ac): Remove gl_UCS4_UTF.
15210         (Makefile.am): Update.
15211         (Include): Change to unistr.h.
15212         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
15213         (Depends-on): Add unistr/base.
15214         (configure.ac): Remove gl_UCS4_UTF.
15215         (Makefile.am): Update.
15216         (Include): Change to unistr.h.
15217         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
15218         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
15219         utf8-ucs4-unsafe.h.
15220         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
15221         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
15222         utf16-ucs4-unsafe.h.
15223         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
15224         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
15225         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
15226         * lib/unistr/u8-strchr.c: Likewise.
15227         * lib/unistr/u8-strrchr.c: Likewise.
15228         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
15229         * lib/unistr/u16-strchr.c: Likewise.
15230         * lib/unistr/u16-strrchr.c: Likewise.
15231         * lib/striconveh.c: Update.
15232         * lib/linebreak.c: Update.
15233
15234 2007-03-24  Bruno Haible  <bruno@clisp.org>
15235
15236         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
15237         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
15238
15239 2007-03-22  Bruno Haible  <bruno@clisp.org>
15240
15241         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
15242
15243 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15244
15245         * MODULES.html.sh (File system functions): New module write-any-file.
15246         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
15247         * m4/write-any-file.m4: New files.
15248
15249 2007-03-23  Eric Blake  <ebb9@byu.net>
15250
15251         * gnulib-tool: Rearrange space-tab sequences, since some editors
15252         like to eat them.
15253
15254 2007-03-23  Eric Blake  <ebb9@byu.net>
15255
15256         * lib/version-etc.c (version_etc_va): Update license wording to
15257         be more concise.  Recommended by Richard Stallman.
15258
15259 2007-03-22  Bruno Haible  <bruno@clisp.org>
15260
15261         * lib/poll.c (MSG_PEEK): New fallback definition.
15262
15263 2007-03-22  Bruno Haible  <bruno@clisp.org>
15264
15265         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
15266         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
15267         (main): Update.
15268         Fixes a compilation error on BeOS.
15269
15270 2007-03-22  Bruno Haible  <bruno@clisp.org>
15271
15272         * modules/frexpl-tests: New file.
15273         * tests/test-frexpl.c: New file.
15274
15275         * modules/frexpl: New file.
15276         * m4/frexpl.m4: New file.
15277         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
15278         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
15279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
15280         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
15281         (Depends-on): Add frexpl. Remove isnanl-nolibm.
15282         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
15283
15284 2007-03-22  Bruno Haible  <bruno@clisp.org>
15285
15286         * lib/frexpl.c: Share code with lib/frexp.c.
15287         * modules/mathl (Files): Add lib/frexp.c.
15288         (Depends-on): Add isnanl-nolibm.
15289
15290 2007-03-22  Bruno Haible  <bruno@clisp.org>
15291
15292         * modules/printf-frexp (Files): Add m4/frexp.m4.
15293         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
15294         only if the found frexp function actually works.
15295
15296 2007-03-22  Bruno Haible  <bruno@clisp.org>
15297
15298         * lib/frexp.c: Remove older implementation that uses divisions.
15299
15300 2007-03-21  Bruno Haible  <bruno@clisp.org>
15301
15302         * modules/frexp-tests: New file.
15303         * tests/test-frexp.c: New file.
15304
15305         * modules/frexp: New file.
15306         * lib/frexp.c: New file.
15307         * m4/frexp.m4: New file.
15308         * lib/math_.h (frexp): New declaration.
15309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
15310         REPLACE_FREXP.
15311         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
15312
15313 2007-03-21  Bruno Haible  <bruno@clisp.org>
15314
15315         * modules/isnanl-tests: New file.
15316         * tests/test-isnanl.c: New file.
15317
15318         * modules/isnanl: New file.
15319         * lib/isnanl.h: New file.
15320         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
15321         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
15322         gl_FUNC_ISNANL_WORKS.
15323         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
15324         New macros.
15325
15326 2007-03-21  Bruno Haible  <bruno@clisp.org>
15327
15328         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15329         lib/isnanl.h.
15330         (Include): Update.
15331         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15332         * lib/vasnprintf.c: Update.
15333         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15334         tests/test-isnanl.h, remove tests/test-isnanl.c.
15335         (Makefile.am): Update.
15336         * tests/test-isnanl-nolibm.c: New file.
15337         * tests/test-isnanl.h: New file.
15338         * tests/test-isnanl.c: Remove file.
15339
15340 2007-03-21  Jim Meyering  <jim@meyering.net>
15341
15342         When trying to open ".", treat ESTALE like EACCES.
15343         * lib/savewd.c (savewd_save): Resort to forking not just upon
15344         failure with EACCES, but also when errno is ESTALE.
15345
15346 2007-03-20  Bruno Haible  <bruno@clisp.org>
15347
15348         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
15349         Needed on AIX 5.1. Reported by Matthew Woehlke.
15350
15351 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15352
15353         Suggestions by Bruno Haible:
15354         * lib/acl-internal.h: Include "gettext.h" rather than rolling
15355         our own.
15356         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
15357         * modules/acl (Depends-on): Add gettext.
15358
15359 2007-03-19  Bruno Haible  <bruno@clisp.org>
15360
15361         * modules/iconvme: Remove file.
15362         * lib/iconvme.h: Remove file.
15363         * lib/iconvme.c: Remove file.
15364         * m4/iconvme.m4: Remove file.
15365
15366 2007-03-19  Bruno Haible  <bruno@clisp.org>
15367
15368         * doc/relocatable-maint.texi: Break long shell script line.
15369         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15370
15371 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15372
15373         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
15374         handle file_has_acl.
15375         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
15376         * lib/acl.c: Move header inclusions and related macro defns into
15377         lib/acl-internal.h.
15378         (S_ISLNK): Remove defn, since that's now done for us.
15379         (file_has_acl): Move to lib/file-has-acl.c.
15380         Call acl_trivial if available.  This is the crucial part of the fix.
15381         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
15382         shared within the library.  Rewrite a bit, partly to make it compatible
15383         with the GNU coding style.
15384         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
15385         Remove unnecessary double-quotes.
15386         Don't test for acl_to_text; the build will catch that.
15387         Replace acl_entries if it doesn't exist and it is needed.
15388         Check for -lsec and acl_trivial (as used on Solaris 10).
15389         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
15390         lib/file-has-acl.c.
15391         (Depends-on): Add sys_stat, for S_ISLNK.
15392
15393 2007-03-19  Ben Pfaff  <blp@gnu.org>
15394
15395         * doc/gnulib.texi: Fix typos.
15396         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15397
15398 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15399
15400         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
15401         If size is zero here, buf must be zero.
15402
15403 2007-03-19  Simon Josefsson  <simon@josefsson.org>
15404
15405         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
15406         <bruno@clisp.org>.
15407
15408 2007-03-18  Bruno Haible  <bruno@clisp.org>
15409
15410         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
15411         Suggested by Eric Blake.
15412
15413 2007-03-18  Ben Pfaff  <blp@gnu.org>
15414
15415         * doc/relocatable.texi: Recommend using as prefix a directory
15416         that does not exist and will never be created.  Based on
15417         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
15418         and others.
15419
15420 2007-03-17  Bruno Haible  <bruno@clisp.org>
15421
15422         * lib/fchownat.c: Include lchown.h.
15423
15424 2007-03-17  Bruno Haible  <bruno@clisp.org>
15425
15426         Fix endless loop when the given allocated size was > INT_MAX.
15427         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
15428         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
15429         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
15430         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
15431         * lib/sprintf.c (sprintf): Likewise.
15432
15433 2007-03-17  Bruno Haible  <bruno@clisp.org>
15434
15435         * tests/test-argp-2.sh (func_compare): Output a context diff.
15436
15437 2007-03-17  Bruno Haible  <bruno@clisp.org>
15438
15439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
15440         locale's decimal-point character.
15441
15442 2007-03-17  Bruno Haible  <bruno@clisp.org>
15443
15444         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
15445         before comparing it. Needed because on some platforms (e.g. x86) a
15446         'long double' occupies less bytes than sizeof (long double).
15447
15448 2007-03-17  Bruno Haible  <bruno@clisp.org>
15449
15450         * tests/test-crc.c (main): Make printf statements 64-bit clean.
15451         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
15452         * tests/test-getaddrinfo.c (simple): Likewise.
15453         * tests/test-read-file.c (main): Likewise.
15454
15455 2007-03-17  Bruno Haible  <bruno@clisp.org>
15456
15457         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
15458
15459 2007-03-17  Bruno Haible  <bruno@clisp.org>
15460
15461         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
15462         unused variable.
15463
15464 2007-03-17  Bruno Haible  <bruno@clisp.org>
15465
15466         * tests/test-c-strcasecmp.c: Include c-strcase.h.
15467         * tests/test-c-strncasecmp.c: Likewise.
15468
15469 2007-03-17  Bruno Haible  <bruno@clisp.org>
15470
15471         * modules/stdlib (Depends-on): Add unistd.
15472         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
15473         Needed for MacOS X 10.3.
15474
15475 2007-03-17  Bruno Haible  <bruno@clisp.org>
15476
15477         * lib/unistr/u-strdup.h: Include <stdlib.h>.
15478
15479 2007-03-17  Bruno Haible  <bruno@clisp.org>
15480
15481         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
15482
15483 2007-03-17  Bruno Haible  <bruno@clisp.org>
15484
15485         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
15486         to reflect files copied from gnulib (with or without modifications).
15487         Suggested by Jim Meyering.
15488
15489 2007-03-17  Eric Blake  <ebb9@byu.net>
15490
15491         * NEWS: Document stdlib change from 2007-02-18.
15492
15493 2007-03-17  Jim Meyering  <jim@meyering.net>
15494
15495         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
15496         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
15497         someone uses a name containing shell meta-characters.
15498         Reported by Alfred M. Szmidt.
15499
15500         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
15501
15502 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15503
15504         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
15505         and copy gettext configuration files only if configure.ac contains
15506         a use of AM_GNU_GETTEXT_VERSION.
15507
15508 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15509
15510         * build-aux/bootstrap (gnulib_name): New variable.
15511         (gnulib_tool_options): Use it.
15512
15513 2007-03-13  Simon Josefsson  <simon@josefsson.org>
15514
15515         * tests/test-des.c: Use new namespace.
15516
15517 2007-03-15  Bruno Haible  <bruno@clisp.org>
15518
15519         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
15520         Reported by James Youngman <jay@gnu.org>.
15521
15522 2007-03-15  Bruno Haible  <bruno@clisp.org>
15523
15524         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
15525         declared prototype. Needed with cc on OSF/1 5.1.
15526
15527 2007-03-15  Bruno Haible  <bruno@clisp.org>
15528
15529         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
15530         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
15531         (struct gl_list_implementation): Add dispose_fn argument to the
15532         'create_empty', 'create' methods.
15533         (struct gl_list_impl_base): Add field 'dispose_fn'.
15534         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
15535         argument.
15536         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
15537         dispose_fn argument.
15538         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
15539         dispose_fn on the dropped values.
15540         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
15541         dispose_fn argument.
15542         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
15543         dropped values.
15544         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
15545         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15546         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
15547         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15548         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
15549         argument.
15550         (gl_tree_list_free): Call dispose_fn on the dropped values.
15551         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
15552         the dropped values.
15553         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15554         Add dispose_fn argument.
15555         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
15556         Call dispose_fn on the dropped values.
15557         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
15558         Add dispose_fn argument.
15559         (gl_sublist_create): Initialize the 'dispose_fn' field.
15560         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
15561         * tests/test-array_list.c (main): Update.
15562         * tests/test-carray_list.c (main): Update.
15563         * tests/test-avltree_list.c (main): Update.
15564         * tests/test-rbtree_list.c (main): Update.
15565         * tests/test-avltreehash_list.c (main): Update.
15566         * tests/test-rbtreehash_list.c (main): Update.
15567         * tests/test-linked_list.c (main): Update.
15568         * tests/test-linkedhash_list.c (main): Update.
15569         * tests/test-array_oset.c (main): Update.
15570
15571 2007-03-15  Bruno Haible  <bruno@clisp.org>
15572
15573         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
15574         (gl_oset_create_empty): Add dispose_fn argument.
15575         (struct gl_oset_implementation): Add dispose_fn argument to
15576         'create_empty' method.
15577         (struct gl_oset_impl_base): Add dispose_fn field.
15578         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
15579         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
15580         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
15581         values.
15582         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
15583         (gl_tree_oset_free): Call dispose_fn on the dropped values.
15584         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15585         dropped value.
15586         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15587         dropped value.
15588         * tests/test-array_oset.c (main): Update.
15589         * tests/test-avltree_oset.c (main): Update.
15590         * tests/test-rbtree_oset.c (main): Update.
15591         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15592
15593 2007-03-13  Bruno Haible  <bruno@clisp.org>
15594
15595         * tests/test-stdbool.c (i): Update after last patch.
15596
15597 2007-03-12  Bruno Haible  <bruno@clisp.org>
15598
15599         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15600         the iswprint macro. Needed on Solaris 2.5.1.
15601
15602 2007-03-12  Bruno Haible  <bruno@clisp.org>
15603
15604         * tests/test-printf-frexp.c (main): Declare x as volatile.
15605
15606 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15607
15608         * doc/gnulib.texi (Build robot for gnulib): New section.
15609
15610 2007-03-12  Jim Meyering  <jim@meyering.net>
15611
15612         * build-aux/bootstrap: New file.
15613         * build-aux/bootstrap.conf: New file, from coreutils.
15614
15615 2007-03-11  Bruno Haible  <bruno@clisp.org>
15616
15617         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15618
15619 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15620
15621         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15622         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15623         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15624
15625 2007-03-11  Bruno Haible  <bruno@clisp.org>
15626
15627         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15628         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15629
15630 2007-03-11  Bruno Haible  <bruno@clisp.org>
15631
15632         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15633         formula. Needed for SunPRO C 5.0.
15634
15635 2007-03-11  Bruno Haible  <bruno@clisp.org>
15636
15637         * modules/long-options (Depends-on): Add getopt.
15638
15639 2007-03-11  Bruno Haible  <bruno@clisp.org>
15640
15641         * modules/modechange (Depends-on): Add stdbool.
15642
15643 2007-03-11  Bruno Haible  <bruno@clisp.org>
15644
15645         * modules/i-ring (Depends-on): Add stdbool.
15646
15647 2007-03-11  Bruno Haible  <bruno@clisp.org>
15648
15649         * modules/gc-des (Depends-on): Add stdbool.
15650
15651 2007-03-11  Bruno Haible  <bruno@clisp.org>
15652
15653         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15654
15655 2007-03-11  Bruno Haible  <bruno@clisp.org>
15656
15657         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15658
15659 2007-03-11  Bruno Haible  <bruno@clisp.org>
15660
15661         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15662
15663 2007-03-11  Bruno Haible  <bruno@clisp.org>
15664
15665         * lib/vasnprintf.c (sprintf): Undefine.
15666
15667 2007-03-11  Bruno Haible  <bruno@clisp.org>
15668
15669         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15670         initializers in SunPRO C and Compaq C compilers.
15671
15672 2007-03-11  Bruno Haible  <bruno@clisp.org>
15673
15674         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15675         decrementing code ANSI C compliant.
15676
15677 2007-03-11  Bruno Haible  <bruno@clisp.org>
15678
15679         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15680         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15681
15682 2007-03-11  Bruno Haible  <bruno@clisp.org>
15683
15684         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15685         <stdbool.h> substitute doesn't pass.
15686
15687 2007-03-11  Bruno Haible  <bruno@clisp.org>
15688
15689         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15690
15691 2007-03-11  Bruno Haible  <bruno@clisp.org>
15692
15693         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15694         script, for submission to autobuild.josefsson.org.
15695
15696 2007-03-10  Bruno Haible  <bruno@clisp.org>
15697
15698         * modules/canonicalize-lgpl-tests: New file.
15699         * tests/test-canonicalize-lgpl.sh: New file.
15700         * tests/test-canonicalize-lgpl.c: New file.
15701
15702         * modules/c-strcase-tests: New file.
15703         * tests/test-c-strcase.sh: New file.
15704         * tests/test-c-strcasecmp.c: New file.
15705         * tests/test-c-strncasecmp.c: New file.
15706
15707         * modules/atexit-tests: New file.
15708         * tests/test-atexit.sh: New file.
15709         * tests/test-atexit.c: New file.
15710
15711 2007-03-10  Bruno Haible  <bruno@clisp.org>
15712
15713         * tests/test-binary-io.sh: Use temporary filenames that are not so
15714         likely to clash with those of other tests (in a parallel make).
15715         * tests/test-binary-io.c: Likewise.
15716
15717 2007-03-10  Bruno Haible  <bruno@clisp.org>
15718
15719         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15720         fallback; use #error instead.
15721         Suggested by Simon Josefsson.
15722
15723 2007-03-10  Bruno Haible  <bruno@clisp.org>
15724
15725         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15726         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15727         first and the last.
15728
15729 2007-03-10  Bruno Haible  <bruno@clisp.org>
15730
15731         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15732
15733 2007-03-10  Bruno Haible  <bruno@clisp.org>
15734
15735         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15736         "make distcheck".
15737         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15738         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15739         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15740
15741 2007-03-10  Bruno Haible  <bruno@clisp.org>
15742
15743         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15744         variable.
15745         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15746         variable.
15747
15748 2007-03-09  Eric Blake  <ebb9@byu.net>
15749         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15750
15751         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15752         types are not being provided by gnulib.
15753         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15754         types are supported.
15755
15756 2007-03-10  Bruno Haible  <bruno@clisp.org>
15757
15758         * lib/stdio_.h (__attribute__): New macro.
15759         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15760         vsprintf): Specify __attribute__ __format__ for GCC.
15761         Suggested by Eric Blake.
15762
15763 2007-03-09  Bruno Haible  <bruno@clisp.org>
15764
15765         * modules/printf-posix-tests: New file.
15766         * tests/test-printf-posix.sh: New file.
15767         * tests/test-printf-posix.c: New file.
15768
15769         * modules/printf-posix: New file.
15770         * lib/printf.c: New file.
15771         * m4/printf-posix-rpl.m4: New file.
15772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15773         REPLACE_PRINTF.
15774         * lib/stdio_.h (printf): New declaration.
15775         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15776         ____strfmon____): New macros.
15777         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15778         REPLACE_PRINTF.
15779
15780 2007-03-09  Bruno Haible  <bruno@clisp.org>
15781
15782         * tests/test-vasnprintf-posix2.sh: New file.
15783         * tests/test-vasnprintf-posix2.c: New file.
15784         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15785         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15786         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15787
15788         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15789         a locale dependent decimal point, rather than always '.'.
15790
15791 2007-03-09  Eric Blake  <ebb9@byu.net>
15792
15793         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15794         spite of platforms like Tandem/NSK that define it to -1.
15795
15796 2007-03-08  Bruno Haible  <bruno@clisp.org>
15797
15798         * modules/vprintf-posix-tests: New file.
15799         * tests/test-vprintf-posix.sh: New file.
15800         * tests/test-vprintf-posix.c: New file.
15801         * tests/test-printf-posix.h: New file.
15802
15803         * modules/vprintf-posix: New file.
15804         * lib/vprintf.c: New file.
15805         * m4/vprintf-posix.m4: New file.
15806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15807         REPLACE_VPRINTF.
15808         * lib/stdio_.h (vprintf): New declaration.
15809         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15810         REPLACE_VPRINTF.
15811
15812 2007-03-08  Bruno Haible  <bruno@clisp.org>
15813
15814         * modules/fprintf-posix-tests: New file.
15815         * tests/test-fprintf-posix.sh: New file.
15816         * tests/test-fprintf-posix.c: New file.
15817
15818         * modules/fprintf-posix: New file.
15819         * lib/fprintf.c: New file.
15820         * m4/fprintf-posix.m4: New file.
15821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15822         REPLACE_FPRINTF.
15823         * lib/stdio_.h (fprintf): New declaration.
15824         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15825         REPLACE_FPRINTF.
15826
15827 2007-03-08  Bruno Haible  <bruno@clisp.org>
15828
15829         * modules/vfprintf-posix-tests: New file.
15830         * tests/test-vfprintf-posix.sh: New file.
15831         * tests/test-vfprintf-posix.c: New file.
15832         * tests/test-fprintf-posix.h: New file.
15833         * tests/test-fprintf-posix.out: New file.
15834
15835         * modules/vfprintf-posix: New file.
15836         * lib/vfprintf.c: New file.
15837         * m4/vfprintf-posix.m4: New file.
15838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15839         REPLACE_VFPRINTF.
15840         * lib/stdio_.h (vfprintf): New declaration.
15841         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15842         REPLACE_VFPRINTF.
15843
15844 2007-03-08  Bruno Haible  <bruno@clisp.org>
15845
15846         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15847
15848 2007-03-08  Bruno Haible  <bruno@clisp.org>
15849
15850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15851         instead of 'expr' invocations.
15852         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15853         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15854         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15857         Suggested by Paul Eggert.
15858
15859 2007-03-08  Bruno Haible  <bruno@clisp.org>
15860
15861         * modules/fseterr-tests: New file.
15862         * tests/test-fseterr.c: New file.
15863
15864         * modules/fseterr: New file.
15865         * lib/fseterr.h: New file.
15866         * lib/fseterr.c: New file.
15867
15868 2007-03-08  Bruno Haible  <bruno@clisp.org>
15869
15870         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15871         * lib/getopt_.h: Likewise.
15872         * lib/mbswidth.h: Likewise.
15873         * lib/setenv.h: Likewise.
15874         * lib/vasnprintf.h: Likewise.
15875         * lib/vasprintf.h: Likewise.
15876         * lib/verror.h: Likewise.
15877         * lib/xsetenv.h: Likewise.
15878         * lib/xvasprintf.h: Likewise.
15879
15880 2007-03-08  Jim Meyering  <jim@meyering.net>
15881
15882         * users.txt: Add parted.
15883
15884         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15885
15886 2007-03-07  Bruno Haible  <bruno@clisp.org>
15887
15888         * m4/printf.m4: Make the shell script snippets copy&pastable.
15889
15890 2007-03-02  Bruno Haible  <bruno@clisp.org>
15891
15892         * lib/netinet_in_.h: New file.
15893         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15894         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15895         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15896         (Depends-on): Add absolute-header.
15897         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15898         into netinet/in.h.
15899
15900 2007-03-03  Bruno Haible  <bruno@clisp.org>
15901
15902         * lib/sys_select_.h: New file.
15903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15904         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15905         * modules/sys_select (Files): Add lib/sys_select_.h.
15906         (Depends-on): Add absolute-header.
15907         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15908         into sys/select.h.
15909
15910 2007-03-02  Bruno Haible  <bruno@clisp.org>
15911
15912         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15913         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15914         values.
15915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15916         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15917         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15918         * modules/sys_socket (Depends-on): Add absolute-header.
15919         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15920         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15921         (Include): Remove requirement of inclusion of <sys/types.h>.
15922
15923 2007-03-02  Bruno Haible  <bruno@clisp.org>
15924
15925         * lib/byteswap_.h (bswap_32): Fix formula.
15926
15927 2007-03-06  Bruno Haible  <bruno@clisp.org>
15928
15929         * modules/sprintf-posix-tests: New file.
15930         * tests/test-sprintf-posix.c: New file.
15931
15932         * modules/sprintf-posix: New file.
15933         * lib/sprintf.c: New file.
15934         * m4/sprintf-posix.m4: New file.
15935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15936         REPLACE_SPRINTF.
15937         * lib/stdio_.h (sprintf): New declaration.
15938         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15939         REPLACE_SPRINTF.
15940
15941 2007-03-06  Bruno Haible  <bruno@clisp.org>
15942
15943         * modules/vsprintf-posix-tests: New file.
15944         * tests/test-vsprintf-posix.c: New file.
15945         * tests/test-sprintf-posix.h: New file.
15946
15947         * modules/vsprintf-posix: New file.
15948         * lib/vsprintf.c: New file.
15949         * m4/vsprintf-posix.m4: New file.
15950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15951         REPLACE_VSPRINTF.
15952         * lib/stdio_.h (vsprintf): New declaration.
15953         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15954         REPLACE_VSPRINTF.
15955
15956 2007-03-06  Bruno Haible  <bruno@clisp.org>
15957
15958         * modules/vsnprintf (Depend-on): Remove minmax.
15959
15960 2007-03-06  Bruno Haible  <bruno@clisp.org>
15961
15962         * modules/snprintf-posix-tests: New file.
15963         * tests/test-snprintf-posix.c: New file.
15964
15965         * modules/snprintf-posix: New file.
15966         * m4/snprintf-posix.m4: New file.
15967         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15968         gl_FUNC_SNPRINTF.
15969         (gl_FUNC_SNPRINTF): Invoke it.
15970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15971         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15972         is set.
15973         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15974
15975 2007-03-06  Bruno Haible  <bruno@clisp.org>
15976
15977         * modules/vsnprintf-posix-tests: New file.
15978         * tests/test-vsnprintf-posix.c: New file.
15979         * tests/test-snprintf-posix.h: New file.
15980
15981         * modules/vsnprintf-posix: New file.
15982         * m4/vsnprintf-posix.m4: New file.
15983         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15984         gl_FUNC_VSNPRINTF.
15985         (gl_FUNC_VSNPRINTF): Invoke it.
15986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15987         * lib/stdio_.h (vsnprintf): Define as a replacement if
15988         REPLACE_VSNPRINTF is set.
15989         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15990
15991 2007-03-06  Bruno Haible  <bruno@clisp.org>
15992
15993         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15995
15996 2007-03-06  Bruno Haible  <bruno@clisp.org>
15997
15998         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15999         (asinl): Declare also if HAVE_DECL_ASINL is set.
16000         (atanl): Declare also if HAVE_DECL_ATANL is set.
16001         (ceill): Declare also if HAVE_DECL_CEILL is set.
16002         (cosl): Declare also if HAVE_DECL_COSL is set.
16003         (expl): Declare also if HAVE_DECL_EXPL is set.
16004         (floorl): Declare also if HAVE_DECL_FLOORL is set.
16005         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
16006         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
16007         (logl): Declare also if HAVE_DECL_LOGL is set.
16008         (sinl): Declare also if HAVE_DECL_SINL is set.
16009         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
16010         (tanl): Declare also if HAVE_DECL_TANL is set.
16011         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
16012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
16013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
16014         declaration of frexpl, ldexpl.
16015         * modules/printf-frexpl (Depends-on): Add math.
16016         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
16017
16018 2007-03-05  Bruno Haible  <bruno@clisp.org>
16019
16020         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
16021         frexpl and ldexpl are declared.
16022         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
16023
16024 2007-03-05  Bruno Haible  <bruno@clisp.org>
16025
16026         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
16027         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
16028
16029 2007-03-05  Bruno Haible  <bruno@clisp.org>
16030
16031         * lib/stdio_.h: Include <stddef.h>.
16032
16033 2007-03-05  Bruno Haible  <bruno@clisp.org>
16034
16035         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
16036
16037 2007-03-05  Bruno Haible  <bruno@clisp.org>
16038
16039         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
16040         NetBSD 4, from Ralf Wildenhues.
16041
16042 2007-03-04  Bruno Haible  <bruno@clisp.org>
16043
16044         * lib/vasprintf.h: Update #if logic for the case when the functions
16045         exist but are overridden.
16046
16047 2007-03-04  Bruno Haible  <bruno@clisp.org>
16048
16049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
16050         implementations: glibc-2.4 and MacOS X 10.3.
16051         * tests/test-vasnprintf-posix.c (test_function): Test also the case
16052         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
16053         * tests/test-vasprintf-posix.c (test_function): Likewise.
16054
16055 2007-03-04  Bruno Haible  <bruno@clisp.org>
16056
16057         * modules/vasprintf-posix-tests: New file.
16058         * tests/test-vasprintf-posix.c: New file.
16059
16060         * modules/vasprintf-posix: New file.
16061         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
16062         defined.
16063         * m4/vasprintf-posix.m4: New file.
16064         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
16065         gl_FUNC_VASPRINTF.
16066         (gl_FUNC_VASPRINTF): Invoke it.
16067         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
16068         here.
16069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
16070
16071 2007-03-04  Bruno Haible  <bruno@clisp.org>
16072
16073         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
16074         REPLACE_GETTIMEOFDAY.
16075         * modules/sys_time (Makefile.am): Likewise.
16076         * m4/sys_time_h.m4: Likewise.
16077         * m4/gettimeofday.m4: Likewise.
16078
16079 2007-03-04  Bruno Haible  <bruno@clisp.org>
16080
16081         * modules/vasnprintf-posix-tests: New file.
16082         * tests/test-vasnprintf-posix.c: New file.
16083
16084         * modules/vasnprintf-posix: New file.
16085         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
16086         printf-frexpl.h.
16087         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
16088         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
16089         REPLACE_VASNPRINTF is defined.
16090         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
16091         gl_FUNC_VASNPRINTF.
16092         (gl_FUNC_VASNPRINTF): Invoke it.
16093         * m4/vasnprintf-posix.m4: New file.
16094         * m4/printf.m4: New file.
16095
16096 2007-03-04  Bruno Haible  <bruno@clisp.org>
16097
16098         Compile progreloc.c only if --enable-relocatable is specified.
16099         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
16100         if --enable-relocatable was specified.
16101         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
16102         lib_SOURCES.
16103
16104 2007-03-04  Jim Meyering  <jim@meyering.net>
16105
16106         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
16107         Use it consistently, rather than enumerating errno constants.
16108
16109 2007-03-04  Bruno Haible  <bruno@clisp.org>
16110
16111         * modules/xvasprintf-tests: New file.
16112         * tests/test-xvasprintf.c: New file.
16113
16114         * modules/vasprintf-tests: New file.
16115         * tests/test-vasprintf.c: New file.
16116
16117         * modules/vasnprintf-tests: New file.
16118         * tests/test-vasnprintf.c: New file.
16119
16120         * modules/vsnprintf-tests: New file.
16121         * tests/test-vsnprintf.c: New file.
16122
16123         * modules/snprintf-tests: New file.
16124         * tests/test-snprintf.c: New file.
16125
16126 2007-03-04  Bruno Haible  <bruno@clisp.org>
16127
16128         Compile relocatable.c only if --enable-relocatable is specified.
16129         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
16130         gl_RELOCATABLE_LIBRARY.
16131         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
16132         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
16133         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
16134         gl_RELOCATABLE_LIBRARY.
16135         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
16136         (Makefile.am): Remove lib_SOURCES.
16137         * modules/relocatable-lib-lgpl (configure.ac): Invoke
16138         gl_RELOCATABLE_LIBRARY.
16139         (Makefile.am): Remove lib_SOURCES.
16140         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
16141         always.
16142         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16143         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
16144
16145 2007-03-04  Bruno Haible  <bruno@clisp.org>
16146
16147         * modules/argmatch-tests: New file.
16148         * tests/test-argmatch.c: New file.
16149
16150         * tests/test-allocsa.c (main): Halve the number of loop runs.
16151
16152         * modules/alloca-opt-tests: New file.
16153         * tests/test-alloca-opt.c: New file.
16154
16155 2007-03-04  Jim Meyering  <jim@meyering.net>
16156
16157         Work around difference between Linux ACLs and Solaris 10 ZFS.
16158         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
16159         for EINVAL.
16160
16161 2007-03-03  Bruno Haible  <bruno@clisp.org>
16162
16163         * modules/relocatable-prog (Depends-on): Add back progreloc's
16164         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
16165
16166 2007-03-03  Bruno Haible  <bruno@clisp.org>
16167
16168         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
16169         * modules/relocatable-lib: New file.
16170
16171 2007-03-03  Bruno Haible  <bruno@clisp.org>
16172
16173         * modules/relocatable-prog: Renamed from modules/relocatable.
16174         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
16175
16176 2007-03-03  Bruno Haible  <bruno@clisp.org>
16177
16178         * modules/relocatable-script (Files): Add doc/relocatable.texi,
16179         m4/relocatable-lib.m4.
16180         (Depends-on): Remove 'relocatable'.
16181         (configure.ac): Add gl_RELOCATABLE_NOP.
16182
16183 2007-03-03  Bruno Haible  <bruno@clisp.org>
16184
16185         * modules/relocatable-prog-wrapper: New file.
16186         * modules/relocatable (Depends-on): Add it. Remove all other
16187         dependencies except progname.
16188         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
16189
16190         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
16191         (gl_FUNC_STRERROR): Nop.
16192         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
16193
16194         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
16195         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
16196
16197         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
16198         (gl_FUNC_READLINK): Update.
16199
16200         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
16201
16202 2007-03-03  Bruno Haible  <bruno@clisp.org>
16203
16204         * lib/xreadlink.c: Include <unistd.h> unconditionally.
16205         * modules/xreadlink (Depends-on): Add unistd.
16206         * modules/xreadlink-with-size (Depends-on): Likewise.
16207
16208 2007-03-03  Bruno Haible  <bruno@clisp.org>
16209
16210         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
16211         extracted from gt_FUNC_SETENV.
16212         (gt_FUNC_SETENV): Remove macro.
16213         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
16214         remove gt_FUNC_SETENV.
16215
16216 2007-03-03  Bruno Haible  <bruno@clisp.org>
16217
16218         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
16219         ENABLE_RELOCATABLE here.
16220         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
16221
16222 2007-03-03  Bruno Haible  <bruno@clisp.org>
16223
16224         * modules/rbtreehash-list-tests (Depends-on): Add progname.
16225         * tests/test-rbtreehash_list.c: Include progname.h.
16226         (main): Call set_program_name.
16227
16228         * modules/rbtree-oset-tests (Depends-on): Add progname.
16229         * tests/test-rbtree_oset.c: Include progname.h.
16230         (main): Call set_program_name.
16231
16232         * modules/rbtree-list-tests (Depends-on): Add progname.
16233         * tests/test-rbtree_list.c: Include progname.h.
16234         (main): Call set_program_name.
16235
16236         * modules/linked-list-tests (Depends-on): Add progname.
16237         * tests/test-linked_list.c: Include progname.h.
16238         (main): Call set_program_name.
16239
16240 2007-03-03  Bruno Haible  <bruno@clisp.org>
16241
16242         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
16243         All uses of __restrict changed to _Restrict_.
16244         * lib/glob_.h (__restrict): Remove macro.
16245
16246 2007-03-02  Bruno Haible  <bruno@clisp.org>
16247
16248         * modules/gettext (configure.ac): Require gettext infrastructure
16249         from version 0.16.1.
16250
16251 2007-03-02  Bruno Haible  <bruno@clisp.org>
16252
16253         * modules/linkedhash-list-tests (Depends-on): Add progname.
16254         * tests/test-linkedhash_list.c: Include progname.h.
16255         (main): Call set_program_name.
16256
16257         * modules/carray-list-tests (Depends-on): Add progname.
16258         * tests/test-carray_list.c: Include progname.h.
16259         (main): Call set_program_name.
16260
16261         * modules/avltreehash-list-tests (Depends-on): Add progname.
16262         * tests/test-avltreehash_list.c: Include progname.h.
16263         (main): Call set_program_name.
16264
16265         * modules/avltree-oset-tests (Depends-on): Add progname.
16266         * tests/test-avltree_oset.c: Include progname.h.
16267         (main): Call set_program_name.
16268
16269         * modules/avltree-list-tests (Depends-on): Add progname.
16270         * tests/test-avltree_list.c: Include progname.h.
16271         (main): Call set_program_name.
16272
16273         * modules/array-oset-tests (Depends-on): Add progname.
16274         * tests/test-array_oset.c: Include progname.h.
16275         (main): Call set_program_name.
16276
16277         * modules/array-list-tests (Depends-on): Add progname.
16278         * tests/test-array_list.c: Include progname.h.
16279         (main): Call set_program_name.
16280
16281         * modules/argp-tests (Depends-on): Add progname.
16282         * tests/test-argp.c: Include argp.h first. Include progname.h.
16283         (main): Call set_program_name.
16284
16285 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         * doc/gnulib-tool.texi (Initial import): Reword description of
16288         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
16289         limited effect even if defined after the first system include.
16290
16291 2007-03-01  Bruno Haible  <bruno@clisp.org>
16292
16293         * build-aux/config.libpath: Update to libtool-1.5.22.
16294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16295
16296 2007-03-01  Bruno Haible  <bruno@clisp.org>
16297
16298         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
16299         foo_CFLAGS.
16300         Reported by Ralf Wildenhues.
16301
16302 2007-03-01  Bruno Haible  <bruno@clisp.org>
16303
16304         * build-aux/install-reloc: Remove object files left over by some
16305         compilers.
16306         Reported by Ralf Wildenhues.
16307
16308 2007-03-01  Bruno Haible  <bruno@clisp.org>
16309
16310         * build-aux/install-reloc: Break long lines.
16311
16312 2007-03-01  Bruno Haible  <bruno@clisp.org>
16313
16314         * doc/relocatable.texi: Document that it may not work on OpenBSD.
16315         Reported by Ralf Wildenhues.
16316
16317 2007-03-01  Bruno Haible  <bruno@clisp.org>
16318
16319         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
16320         include ordering constraints.
16321
16322 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16323
16324         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16326         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16327         as another example.
16328         * lib/time_.h: Fix misspelling.
16329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16330         Require gl_HEADER_TIME_H_DEFAULTS.
16331         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16332         * m4/time_r.m4 (gl_TIME_R): Likewise.
16333         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16334
16335 2007-03-01  Bruno Haible  <bruno@clisp.org>
16336
16337         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16338         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16339
16340 2007-03-01  Jim Meyering  <jim@meyering.net>
16341
16342         * modules/xreadlink (Maintainer): Add my name.
16343         * modules/xreadlink-with-size (Depends-on): Alphabetize.
16344
16345 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
16346             Bruno Haible  <bruno@clisp.org>
16347
16348         * build-aux/install-reloc: Compile also c-ctype.c.
16349         * build-aux/relocatable.sh.in: New file.
16350         * doc/relocatable.texi: New file.
16351         * doc/relocatable-maint.texi: New file.
16352         * doc/gnulib.texi: Include relocatable-maint.texi.
16353         * lib/progreloc.c: Include unistd.h unconditionally.
16354         * lib/relocwrapper.c: Include unistd.h unconditionally.
16355         Include c-ctype.h.
16356         (add_dotbin): Use c_tolower.
16357         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
16358         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
16359         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
16360         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
16361         to m4/relocatable-lib.m4.
16362         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
16363         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
16364         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
16365         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
16366         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
16367         * modules/relocatable: New file.
16368         * modules/relocatable-lib: New file.
16369         * modules/relocatable-script: New file.
16370
16371 2007-02-28  Bruno Haible  <bruno@clisp.org>
16372
16373         Import --enable-relocatable infrastructure.
16374         * build-aux/config.libpath: New file, from GNU gettext.
16375         * build-aux/install-reloc: New file, from GNU gettext.
16376         * build-aux/reloc-ldflags: New file, from GNU gettext.
16377         * lib/relocatable.h: New file, from GNU gettext.
16378         * lib/relocatable.c: New file, from GNU gettext.
16379         * lib/relocwrapper.c: New file, from GNU gettext.
16380         * m4/relocatable.m4: New file, from GNU gettext.
16381
16382 2007-02-28  Bruno Haible  <bruno@clisp.org>
16383
16384         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
16385
16386         * modules/xreadlink: New file, from GNU gettext with modifications.
16387         * lib/xreadlink.c: New file, from GNU gettext.
16388         * lib/xreadlink.h: Add comments.
16389         (xreadlink): New declaration.
16390
16391         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
16392         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
16393         lib/xreadlink-with-size.c.
16394         (configure.ac): Remove gl_XREADLINK invocation.
16395         (Makefile.am): Augment lib_SOURCES.
16396         * m4/xreadlink.m4: Remove file.
16397         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
16398         (xreadlink_with_size): Renamed from xreadink.
16399         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
16400         * modules/canonicalize (Depends-on): Replace xreadlink with
16401         xreadlink-with-size.
16402         * lib/canonicalize.c (canonicalize_filename_mode): Update.
16403
16404 2007-02-25  Jim Meyering  <jim@meyering.net>
16405
16406         * build-aux/announce-gen: When complaining about excess arguments,
16407         list them.
16408
16409 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16410
16411         * README: Document signed integer overflow situation more
16412         accurately.
16413
16414 2007-02-25  Bruno Haible  <bruno@clisp.org>
16415
16416         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
16417         'a' or 'A' conversion.
16418
16419 2007-02-25  Bruno Haible  <bruno@clisp.org>
16420
16421         * modules/filename: Renamed from modules/pathname.
16422         (Files): Replace lib/pathname.h with lib/filename.h. Replace
16423         lib/concatpath.c with lib/concat-filename.c.
16424         (Makefile.am): Update.
16425         (Include): Replace pathname.h with filename.h.
16426         * lib/filename.h: Renamed from lib/pathname.h.
16427         (concatenated_filename): Renamed from concatenated_pathname.
16428         * lib/concat-filename.c: Renamed from lib/concatpath.c.
16429         (concatenated_filename): Renamed from concatenated_pathname.
16430         * lib/findprog.c: Include filename.h instead of pathname.h.
16431         (find_in_path): Update.
16432         * lib/javacomp.c: Include filename.h instead of pathname.h.
16433         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16434         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16435         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16436         is_oldgcj_14_13_usable, is_javac_usable): Update.
16437         * lib/javaexec.c: Include filename.h instead of pathname.h.
16438         (execute_java_class): Update.
16439         * modules/findprog: Update.
16440         * modules/javacomp: Update.
16441         * modules/javaexec: Update.
16442         * MODULES.html.sh (File system functions): Add 'filename', remove
16443         'pathname'.
16444
16445 2007-02-25  Bruno Haible  <bruno@clisp.org>
16446
16447         * modules/printf-frexpl-tests: New file.
16448         * tests/test-printf-frexpl.c: New file.
16449
16450         * modules/printf-frexpl: New file.
16451         * lib/printf-frexpl.h: New file.
16452         * lib/printf-frexpl.c: New file.
16453         * m4/printf-frexpl.m4: New file.
16454
16455 2007-02-25  Bruno Haible  <bruno@clisp.org>
16456
16457         * modules/printf-frexp-tests: New file.
16458         * tests/test-printf-frexp.c: New file.
16459
16460         * modules/printf-frexp: New file.
16461         * lib/printf-frexp.h: New file.
16462         * lib/printf-frexp.c: New file.
16463         * m4/printf-frexp.m4: New file.
16464
16465 2007-02-25  Bruno Haible  <bruno@clisp.org>
16466
16467         Assume automake >= 1.10 for the tests.
16468         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
16469         * modules/arctwo-tests: Likewise.
16470         * modules/argp-tests: Likewise.
16471         * modules/avltree-list-tests: Likewise.
16472         * modules/avltree-oset-tests: Likewise.
16473         * modules/avltreehash-list-tests: Likewise.
16474         * modules/carray-list-tests: Likewise.
16475         * modules/crc-tests: Likewise.
16476         * modules/des-tests: Likewise.
16477         * modules/gc-arcfour-tests: Likewise.
16478         * modules/gc-arctwo-tests: Likewise.
16479         * modules/gc-des-tests: Likewise.
16480         * modules/gc-hmac-md5-tests: Likewise.
16481         * modules/gc-hmac-sha1-tests: Likewise.
16482         * modules/gc-md2-tests: Likewise.
16483         * modules/gc-md4-tests: Likewise.
16484         * modules/gc-md5-tests: Likewise.
16485         * modules/gc-pbkdf2-sha1-tests: Likewise.
16486         * modules/gc-rijndael-tests: Likewise.
16487         * modules/gc-sha1-tests: Likewise.
16488         * modules/gc-tests: Likewise.
16489         * modules/getaddrinfo-tests: Likewise.
16490         * modules/hmac-md5-tests: Likewise.
16491         * modules/hmac-sha1-tests: Likewise.
16492         * modules/linked-list-tests: Likewise.
16493         * modules/linkedhash-list-tests: Likewise.
16494         * modules/lock-tests: Likewise.
16495         * modules/md2-tests: Likewise.
16496         * modules/md4-tests: Likewise.
16497         * modules/md5-tests: Likewise.
16498         * modules/rbtree-list-tests: Likewise.
16499         * modules/rbtree-oset-tests: Likewise.
16500         * modules/rbtreehash-list-tests: Likewise.
16501         * modules/read-file-tests: Likewise.
16502         * modules/rijndael-tests: Likewise.
16503         * modules/stdint-tests: Likewise.
16504         * modules/tls-tests: Likewise.
16505
16506 2007-02-24  Bruno Haible  <bruno@clisp.org>
16507
16508         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
16509         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
16510         function; instead check whether isnan with a double argument links.
16511         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
16512         function; instead check whether isnan with a 'long double' argument
16513         links.
16514         Reported by Eric Blake <ebb9@byu.net>.
16515
16516 2007-02-24  Bruno Haible  <bruno@clisp.org>
16517
16518         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
16519         defined.
16520         * lib/isnanl.c: Remove all code. Just include isnan.c.
16521         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
16522
16523 2007-02-25  Jim Meyering  <jim@meyering.net>
16524
16525         Avoid conflicting types for 'unsetenv' on FreeBSD.
16526         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
16527         conflicting with FreeBSD's (5.0 and 6.1) function declaration
16528         in stdlib.h.
16529
16530 2007-02-24  Bruno Haible  <bruno@clisp.org>
16531
16532         * modules/isnanl-nolibm-tests: New file.
16533         * tests/test-isnanl.c: New file.
16534
16535         * modules/isnanl-nolibm: New file.
16536         * lib/isnanl.h: New file.
16537         * lib/isnanl.c: New file.
16538         * m4/isnanl.m4: New file.
16539
16540 2007-02-24  Bruno Haible  <bruno@clisp.org>
16541
16542         * modules/isnan-nolibm-tests: New file.
16543         * tests/test-isnan.c: New file.
16544
16545         * modules/isnan-nolibm: New file.
16546         * lib/isnan.h: New file.
16547         * lib/isnan.c: New file.
16548         * m4/isnan.m4: New file.
16549
16550 2007-02-24  Bruno Haible  <bruno@clisp.org>
16551
16552         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
16553         assume that an exponent fits in 20 bits.
16554
16555 2007-02-24  Jim Meyering  <jim@meyering.net>
16556
16557         * m4/regex.m4: Update the description of the configure-time option,
16558         --without-included-regex, to state accurately what the defaults are,
16559         and perhaps to give people an idea why using this option is risky.
16560
16561 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16562
16563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
16564         loops on small arguments.  This attempts to avoid the problem
16565         Bruno Haible reported for AIX 4.3.2 in
16566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
16567
16568 2007-02-23  Bruno Haible  <bruno@clisp.org>
16569
16570         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
16571         Needed for help2man.
16572
16573 2007-02-23  Karl Berry  <karl@gnu.org>
16574
16575         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
16576         exists, foo.h should be cvs-ignored, not committed.
16577
16578 2007-02-23  Eric Blake  <ebb9@byu.net>
16579
16580         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
16581         * lib/stat-time.h (includes): Likewise.
16582         * lib/utimecmp.c (includes): Likewise.
16583         * lib/utimens.h (includes): Likewise.
16584         * lib/getdate.y (includes): Also include "timespec.h" for use
16585         internal to the module.
16586         * modules/utimens (Depends-on): Revert yesterday's patch.
16587         * modules/nanosleep (Depends-on): Add missing dependency.
16588
16589 2007-02-22  Bruno Haible  <bruno@clisp.org>
16590
16591         * lib/glob.c: Don't include getlogin_r.h.
16592
16593 2007-02-22  Jim Meyering  <jim@meyering.net>
16594
16595         * modules/utimens (Depends-on): Add timespec, required for
16596         utimens.h's inclusion of timespec.h.
16597
16598 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16601         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16602         Schwab in
16603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16604         I'll try to think of a better way to fix the Solaris problem.
16605
16606         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16607         like glibc; on Solaris 10, it fails with errno == EINVAL.
16608         POSIX says the behavior is unspecified if the first argument is NULL,
16609         so play it safe and never pass NULL to the system getcwd.
16610
16611 2007-02-21  Jim Meyering  <jim@meyering.net>
16612
16613         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16614         of gettimeofday.  It would conflict with the one now always
16615         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16616         an IRIX 6.5 build failure.
16617
16618 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16619
16620         Minor fixups to port to Solaris 10 with Sun C 5.8.
16621         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16622         * modules/getcwd (Depends-on): Add dirfd.
16623         * lib/putenv.c (putenv): #undef it.
16624         (rpl_putenv): New decl.
16625         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16626
16627 2007-02-20  Bruno Haible  <bruno@clisp.org>
16628
16629         * modules/stdio-tests: New file.
16630         * tests/test-stdio.c: New file.
16631
16632         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16633         (Depends-on): Add stdio.
16634         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16635         (Include): Use <stdio.h> instead of vsnprintf.h.
16636         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16637         HAVE_DECL_VSNPRINTF.
16638         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16639
16640         * modules/snprintf (Files): Remove lib/snprintf.h.
16641         (Depends-on): Add stdio.
16642         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16643         (Include): Use <stdio.h> instead of snprintf.h.
16644         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16645         HAVE_DECL_SNPRINTF.
16646         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16647         * lib/getaddrinfo.c: Likewise.
16648
16649         * modules/stdio: New file.
16650         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16651         * lib/snprintf.h: Remove file.
16652         * lib/vsnprintf.h: Remove file.
16653         * lib/.cppi-disable: Remove snprintf.h.
16654         * m4/stdio_h.m4: New file.
16655         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16656
16657 2007-02-20  Jim Meyering  <jim@meyering.net>
16658
16659         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16660         used by e.g., mingw.  From Bruno Haible.
16661
16662 2007-02-19  Bruno Haible  <bruno@clisp.org>
16663
16664         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16665         warnings.
16666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16667
16668 2007-02-19  Bruno Haible  <bruno@clisp.org>
16669
16670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16671         from mingw users.
16672
16673 2007-02-19  Bruno Haible  <bruno@clisp.org>
16674
16675         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16676         warnings.
16677         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16678
16679 2007-02-19  Jim Meyering  <jim@meyering.net>
16680
16681         Don't use FD after a successful "fdopendir (fd)".
16682         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16683         Reset it by calling dirfd on the just-obtained DIR*.
16684
16685         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16686         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16687
16688 2007-02-18  Bruno Haible  <bruno@clisp.org>
16689
16690         * lib/readlink.c: Include <unistd.h>.
16691         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16692         HAVE_READLINK.
16693         * modules/readlink (Depends-on): Add unistd.
16694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16695         (Include): Add <unistd.h>.
16696
16697         * lib/getlogin_r.h: Remove file.
16698         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16699         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16700         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16701         HAVE_DECL_GETLOGIN_R.
16702         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16704         (Include): Use <unistd.h> instead of getlogin_r.h.
16705
16706         * lib/getcwd.h: Remove file.
16707         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16708         * lib/xgetcwd.c: Likewise.
16709         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16710         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16711         * modules/getcwd (Files): Remove lib/getcwd.h.
16712         (Depends-on): Add unistd.
16713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16714         (Include): Use <unistd.h> instad of getcwd.h.
16715
16716         * lib/ftruncate.c: Include <unistd.h> first.
16717         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16718         Set HAVE_FTRUNCATE.
16719         * modules/ftruncate (Depends-on): Add unistd.
16720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16721
16722         * lib/fchdir.c: Include <unistd.h> first.
16723         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16725         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16726         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16727         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16728
16729         * lib/dup2.c: Include <unistd.h> first.
16730         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16731         HAVE_DUP2.
16732         * modules/dup2 (Depends-on): Add unistd.
16733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16734
16735         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16736         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16737         REPLACE_CHOWN. Don't define chown as a macro here.
16738         * modules/chown (Depends-on): Add unistd.
16739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16740
16741         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16742         Add definition for GL_LINK_WARNING.
16743         (chown, dup2): New declarations.
16744         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16745         link warning.
16746         (ftruncate): New declaration.
16747         (getcwd): New declaration, taken from old getcwd.h.
16748         (getlogin_r): New declaration, taken from old getlogin_r.h.
16749         (readlink): New declaration.
16750         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16751         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16752         (gl_PREREQ_UNISTD): Remove macro.
16753         (gl_UNISTD_MODULE_INDICATOR): New macro.
16754         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16755         many new variables. Don't set UNISTD_H.
16756         * modules/unistd (Description): Change.
16757         (Depends-on): Add link-warning.
16758         (configure.ac): Update.
16759         (Makefile.am): Create unistd.h always. Substitute many new variables
16760         into it.
16761
16762 2007-02-18  Bruno Haible  <bruno@clisp.org>
16763
16764         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16765         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16766         HAVE_GETSUBOPT.
16767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16768         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16769         * lib/getsubopt.h: Remove file.
16770         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16771         (Depends-on): Add stdlib.
16772         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16773         (Includes): Use <stdlib.h> instead of getsubopt.h.
16774         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16775         Set HAVE_GETSUBOPT.
16776         * lib/getsubopt.c: Don't include getsubopt.h.
16777
16778 2007-02-18  Bruno Haible  <bruno@clisp.org>
16779
16780         * modules/fchdir (Depends-on): Add dup2.
16781
16782 2007-02-18  Bruno Haible  <bruno@clisp.org>
16783
16784         * lib/stdlib_.h: Handle glibc's special invocation convention
16785         specially.
16786
16787 2007-02-18  Bruno Haible  <bruno@clisp.org>
16788
16789         * modules/stdlib-tests: New file.
16790         * tests/test-stdlib.c: New file.
16791
16792         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16793         (Depends-on): Add stdlib.
16794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16795         (Includes): Use <stdlib.h> instead of mkstemp.h.
16796         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16797         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16798         * lib/mkstemp.c: Don't include mkstemp.h.
16799         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16800         * lib/stdlib--.h: Don't include mkstemp.h.
16801
16802         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16803         (Depends-on): Add stdlib.
16804         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16805         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16806         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16807         HAVE_MKDTEMP.
16808         * lib/mkdtemp.c: Don't include mkdtemp.h.
16809         * lib/clean-temp.c: Don't include mkdtemp.h.
16810
16811         * modules/exit (Files): Remove lib/exit.h.
16812         (Depends-on): Add stdlib.
16813         (Makefile.am): Remove lib_SOURCES.
16814         (Include): Use <stdlib.h> instead of exit.h.
16815         * lib/argmatch.c: Don't include exit.h.
16816         * lib/execute.c: Likewise.
16817         * lib/pagealign_alloc.c: Likewise.
16818         * lib/pipe.c: Likewise.
16819         * lib/wait-process.c: Likewise.
16820         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16821         * lib/exitfail.c: Likewise.
16822         * lib/savewd.c: Likewise.
16823         * lib/xsetenv.c: Likewise.
16824
16825         * modules/stdlib: New file.
16826         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16827         and extra comments about mkstemp().
16828         * lib/exit.h: Remove file.
16829         * lib/mkdtemp.h: Remove file.
16830         * lib/mkstemp.h: Remove file.
16831         * m4/stdlib_h.m4: New file.
16832         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16833
16834 2007-02-18  Bruno Haible  <bruno@clisp.org>
16835
16836         * modules/math-tests: New file.
16837         * tests/test-math.c: New file.
16838
16839         * modules/math: New file.
16840         * modules/mathl (Files): Remove lib/mathl.h.
16841         (Depends-on): Add math.
16842         (Makefile.am): Don't mention mathl.h.
16843         (Include): Use <math.h> instead of mathl.h.
16844         * lib/math_.h: New file.
16845         * lib/mathl.h: Remove file.
16846         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16847         mathl.h.
16848         * lib/asinl.c: Likewise.
16849         * lib/atanl.c: Likewise.
16850         * lib/ceill.c: Likewise.
16851         * lib/cosl.c: Likewise.
16852         * lib/expl.c: Likewise.
16853         * lib/floorl.c: Likewise.
16854         * lib/frexpl.c: Likewise.
16855         * lib/ldexpl.c: Likewise.
16856         * lib/logl.c: Likewise.
16857         * lib/sincosl.c: Likewise.
16858         * lib/sinl.c: Likewise.
16859         * lib/sqrtl.c: Likewise.
16860         * lib/tanl.c: Likewise.
16861         * lib/trigl.c: Likewise.
16862         * m4/math_h.m4: New file.
16863         * MODULES.html.sh (Mathematics): Add math.
16864
16865 2007-02-17  Bruno Haible  <bruno@clisp.org>
16866
16867         * modules/wctype-tests: New file.
16868         * tests/test-wctype.c: New file.
16869
16870         * modules/wchar-tests: New file.
16871         * tests/test-wchar.c: New file.
16872
16873         * modules/unistd-tests: New file.
16874         * tests/test-unistd.c: New file.
16875
16876         * modules/time-tests: New file.
16877         * tests/test-time.c: New file.
16878
16879         * modules/sysexits-tests: New file.
16880         * tests/test-sysexits.c: New file.
16881
16882         * modules/sys_time-tests: New file.
16883         * tests/test-sys_time.c: New file.
16884
16885         * modules/sys_stat-tests: New file.
16886         * tests/test-sys_stat.c: New file.
16887
16888         * modules/sys_socket-tests: New file.
16889         * tests/test-sys_socket.c: New file.
16890
16891         * modules/sys_select-tests: New file.
16892         * tests/test-sys_select.c: New file.
16893
16894         * modules/string-tests: New file.
16895         * tests/test-string.c: New file.
16896
16897         * modules/stdbool-tests: New file.
16898         * tests/test-stdbool.c: New file.
16899
16900         * modules/netinet_in-tests: New file.
16901         * tests/test-netinet_in.c: New file.
16902
16903         * modules/inttypes-tests: New file.
16904         * tests/test-inttypes.c: New file.
16905
16906         * modules/fcntl-tests: New file.
16907         * tests/test-fcntl.c: New file.
16908
16909         * modules/byteswap-tests: New file.
16910         * tests/test-byteswap.c: New file.
16911
16912         * modules/arpa_inet-tests: New file.
16913         * tests/test-arpa_inet.c: New file.
16914
16915 2007-02-17  Bruno Haible  <bruno@clisp.org>
16916
16917         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16918         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16919         if the corresponding module is not enabled. Emit link warnings if
16920         the function is used nevertheless.
16921         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16922         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16923         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16924         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16925         * modules/inttypes (Depends-on): Add link-warning.
16926         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16927         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16928         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16929         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16930         * modules/imaxdiv (configure.ac): Likewise.
16931         * modules/strtoimax (configure.ac): Likewise.
16932         * modules/strtoumax (configure.ac): Likewise.
16933
16934 2007-02-17  Bruno Haible  <bruno@clisp.org>
16935
16936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16937         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16938         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16939         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16940
16941 2007-02-17  Bruno Haible  <bruno@clisp.org>
16942
16943         * modules/link-warning: New file.
16944         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16945         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16946         * modules/string (Depends-on): Add link-warning.
16947         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16948         string.h.
16949         * MODULES.html.sh (Support for building libraries and executables): Add
16950         link-warning.
16951
16952 2007-02-17  Bruno Haible  <bruno@clisp.org>
16953
16954         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16955         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16956         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16957         long lines.
16958
16959 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16960             Bruno Haible  <bruno@clisp.org>
16961
16962         * modules/tmpfile: New file.
16963         * lib/tmpfile.c: New file.
16964         * m4/tmpfile.m4: New file.
16965         * MODULES.html.sh (func_all_modules): New section "Input/output".
16966
16967 2007-02-15  Bruno Haible  <bruno@clisp.org>
16968
16969         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16970         (supports_delete_on_close): New function.
16971         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16972
16973 2007-02-14  Bruno Haible  <bruno@clisp.org>
16974
16975         * modules/mbspcasecmp-tests: New file.
16976         * tests/test-mbspcasecmp.sh: New file.
16977         * tests/test-mbspcasecmp.c: New file.
16978
16979         New module mbspcasecmp.
16980         * modules/mbspcasecmp: New file.
16981         * lib/mbspcasecmp.c: New file.
16982         * lib/string_.h (strncasecmp): Change warning message.
16983         (mbspcasecmp): New declaration.
16984         * m4/mbspcasecmp.m4: New file.
16985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16986         GNULIB_MBSPCASECMP.
16987         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16988         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16989
16990 2007-02-14  Bruno Haible  <bruno@clisp.org>
16991
16992         * modules/mbsncasecmp-tests: New file.
16993         * tests/test-mbsncasecmp.sh: New file.
16994         * tests/test-mbsncasecmp.c: New file.
16995
16996         New module mbsncasecmp.
16997         * modules/mbsncasecmp: New file.
16998         * lib/mbsncasecmp.c: New file.
16999         * lib/string_.h (mbsncasecmp): New declaration.
17000         * m4/mbsncasecmp.m4: New file.
17001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17002         GNULIB_MBSNCASECMP.
17003         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
17004         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
17005
17006 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17007
17008         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
17009         Verify that it doesn't overlap with our flags.
17010         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
17011         do not have the desired effect in multibyte locales; instead, use
17012         mbscasecmp.
17013         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
17014         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
17015         we don't require GNU fnmatch ourselves (if our users require it, they
17016         should do so explicitly).
17017
17018         Fix regex code so it doesn't rely on strcasecmp.
17019         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
17020         Otherwise, include gnulib's langinfo.h.
17021         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
17022         undesirable behavior in non-C locales.  Instead, rely on localecharset.
17023         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
17024         * modules/regex (FILES): Remove m4/codeset.m4.
17025         (Depends-on): Add localcharset.  Remove strcase.
17026
17027 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17028
17029         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
17030         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17031
17032 2007-02-13  Bruno Haible  <bruno@clisp.org>
17033
17034         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
17035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17036
17037 2007-02-12  Bruno Haible  <bruno@clisp.org>
17038
17039         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17040         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
17041         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
17042         time warning rather than a link error.
17043
17044 2007-02-12  Bruno Haible  <bruno@clisp.org>
17045
17046         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
17047         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17049
17050 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17051
17052         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
17053         args, not 2.
17054
17055 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17056
17057         New module 'time', so that apps can include <time.h> as per
17058         POSIX and GNU instead of separate include files like time_r.h
17059         and timegm.h.  This implementation tries out a simpler approach
17060         for replacing decls in standard include files (as compared to
17061         the string module), somewhat as an experiment.
17062
17063         * config/srclist.txt: Comment out mktime.c for now.
17064         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
17065         since it doesn't apply any more.  Use generic wording instead.
17066         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
17067         'time'.
17068         * lib/time_.h, m4/time_h.m4, modules/time: New files.
17069         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
17070         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
17071         Don't include <sys/types.h>; no longer needed since we assume C89.
17072         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
17073         * lib/strftime.c: Likewise.
17074         * lib/time_r.c: Likewise.
17075         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
17076         * lib/nanosleep.c: Include <time.h> first, to check interface.
17077         * lib/strptime.c: Likewise.
17078         * lib/time_r.c: Likewise.
17079         * lib/timegm.c: Likewise.
17080         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
17081         needed.
17082         * lib/timegm.c: Don't include timegm.h; no longer needed.
17083         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
17084         time.h now handles any problems in that area.
17085         (struct timespec, nanosleep): Remove; time.h now arranges for these.
17086         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
17087         that time.h defines struct timespec.
17088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
17089         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
17090         handles that.
17091         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
17092         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
17093         needed.  Set REPLACE_LOCALTIME.
17094         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
17095         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
17096         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
17097         nanosleep; time_h.m4 now does that.  Don't require
17098         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
17099         module handles this now.
17100         * modules/getdate (Depends-on): Remove timespec.  Add time.
17101         * modules/nanosleep (Depends-on): Likewise.
17102         * modules/stat-time (Depends-on): Likewise.
17103         * modules/nanosleep (Include): Include time.h, not timespec.h.
17104         * modules/strptime (Files): Remove lib/strptime.h.
17105         (Depends-on): Add extensions, time.
17106         (Include): Include time.h, not strptime.h.
17107         * modules/time_r (Files): Remove lib/time_r.h.
17108         (Depends-on): Add time.
17109         (Include): Include time.h, not time_r.h.
17110         * modules/timegm: Likewise.
17111         * modules/timespec (Description): Now does timespec-related decls
17112         of our own, instead of struct timespec itself.
17113         (Depends-on): Add time; remove extensions.
17114         (Maintainer): Add self.
17115         * modules/utimecmp (Depends-on): Add time; remove timespec.
17116         * modules/utimens (Depends-on): Likewise.
17117         * modules/xnanosleep (Depends-on): Likewise.
17118
17119 2007-02-11  Bruno Haible  <bruno@clisp.org>
17120
17121         * lib/c-strstr.c: Include allocsa.h.
17122         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17123         * lib/c-strcasestr.c: Include allocsa.h.
17124         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17125         * lib/strcasestr.c: Include allocsa.h.
17126         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
17127         * lib/mbsstr.c: Include allocsa.h.
17128         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17129         allocsa/freesa instead of malloc/free.
17130         * lib/mbscasestr.c: Include allocsa.h.
17131         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
17132         allocsa/freesa instead of malloc/free.
17133         * modules/c-strstr (Depends-on): Add allocsa.
17134         * modules/c-strcasestr (Depends-on): Likewise.
17135         * modules/strcasestr (Depends-on): Likewise.
17136         * modules/mbsstr (Depends-on): Likewise.
17137         * modules/mbscasestr (Depends-on): Likewise.
17138
17139 2007-02-11  Bruno Haible  <bruno@clisp.org>
17140
17141         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
17142
17143         * modules/mbsspn-tests: New file.
17144         * tests/test-mbsspn.sh: New file.
17145         * tests/test-mbsspn.c: New file.
17146
17147 2007-02-11  Bruno Haible  <bruno@clisp.org>
17148
17149         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
17150
17151         * modules/mbspbrk-tests: New file.
17152         * tests/test-mbspbrk.sh: New file.
17153         * tests/test-mbspbrk.c: New file.
17154
17155 2007-02-11  Bruno Haible  <bruno@clisp.org>
17156
17157         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
17158         unneeded cast.
17159
17160         * modules/mbscspn-tests: New file.
17161         * tests/test-mbscspn.sh: New file.
17162         * tests/test-mbscspn.c: New file.
17163
17164 2007-02-11  Bruno Haible  <bruno@clisp.org>
17165
17166         * modules/mbscasecmp-tests: New file.
17167         * tests/test-mbscasecmp.sh: New file.
17168         * tests/test-mbscasecmp.c: New file.
17169
17170 2007-02-11  Bruno Haible  <bruno@clisp.org>
17171
17172         Ensure O(n) worst-case complexity of mbscasestr.
17173         * lib/mbscasestr.c: Include stdbool.h.
17174         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17175         functions.
17176         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
17177         the bookkeeping indicates that it's worth it.
17178         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
17179
17180         * modules/mbscasestr-tests: New file.
17181         * tests/test-mbscasestr1.c: New file.
17182         * tests/test-mbscasestr2.sh: New file.
17183         * tests/test-mbscasestr2.c: New file.
17184         * tests/test-mbscasestr3.sh: New file.
17185         * tests/test-mbscasestr3.c: New file.
17186         * tests/test-mbscasestr4.sh: New file.
17187         * tests/test-mbscasestr4.c: New file.
17188         * m4/locale-tr.m4: New file.
17189
17190 2007-02-11  Bruno Haible  <bruno@clisp.org>
17191
17192         Ensure O(n) worst-case complexity of mbsstr.
17193         * lib/mbsstr.c: Include stdbool.h.
17194         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
17195         functions.
17196         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
17197         bookkeeping indicates that it's worth it.
17198         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
17199
17200         * modules/mbsstr-tests: New file.
17201         * tests/test-mbsstr1.c: New file.
17202         * tests/test-mbsstr2.sh: New file.
17203         * tests/test-mbsstr2.c: New file.
17204         * tests/test-mbsstr3.sh: New file.
17205         * tests/test-mbsstr3.c: New file.
17206         * m4/locale-fr.m4: New file.
17207
17208 2007-02-11  Bruno Haible  <bruno@clisp.org>
17209
17210         * lib/mbsrchr.c (mbsrchr): Fix bug.
17211
17212         * modules/mbsrchr-tests: New file.
17213         * tests/test-mbsrchr.sh: New file.
17214         * tests/test-mbsrchr.c: New file.
17215
17216 2007-02-11  Bruno Haible  <bruno@clisp.org>
17217
17218         * lib/mbschr.c (mbschr): Fix bug.
17219
17220         * modules/mbschr-tests: New file.
17221         * tests/test-mbschr.sh: New file.
17222         * tests/test-mbschr.c: New file.
17223         * m4/locale-zh.m4: New file.
17224
17225 2007-02-11  Bruno Haible  <bruno@clisp.org>
17226
17227         Support for copying multibyte string iterators.
17228         * lib/mbiter.h: Include <string.h>.
17229         (mbiter_multi_copy): New function.
17230         (mbi_copy): New macro.
17231         * lib/mbuiter.h: Include <string.h>.
17232         (mbuiter_multi_copy): New function.
17233         (mbui_copy): New macro.
17234
17235 2007-02-11  Bruno Haible  <bruno@clisp.org>
17236
17237         New module mbslen.
17238         * modules/mbslen: New file.
17239         * lib/mbslen.c: New file.
17240         * lib/string_.h (mbslen): New declaration.
17241         * m4/mbslen.m4: New file.
17242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17243         GNULIB_MBSLEN.
17244         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
17245         * MODULES.html.sh (Internationalization functions): Add mbslen.
17246
17247 2007-02-11  Bruno Haible  <bruno@clisp.org>
17248
17249         Ensure O(n) worst-case complexity of strcasestr substitute.
17250         * lib/strcasestr.c: Include stdbool.h.
17251         (knuth_morris_pratt): New function.
17252         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17253         bookkeeping indicates that it's worth it.
17254         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
17255
17256         * modules/strcasestr-tests: New file.
17257         * tests/test-strcasestr.c: New file.
17258
17259 2007-02-11  Bruno Haible  <bruno@clisp.org>
17260
17261         Ensure O(n) worst-case complexity of c_strcasestr.
17262         * lib/c-strcasestr.c: Include stdbool.h, string.h.
17263         (knuth_morris_pratt): New function.
17264         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
17265         the bookkeeping indicates that it's worth it.
17266         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
17267
17268         * modules/c-strcasestr-tests: New file.
17269         * tests/test-c-strcasestr.c: New file.
17270
17271 2007-02-11  Bruno Haible  <bruno@clisp.org>
17272
17273         Ensure O(n) worst-case complexity of c_strstr.
17274         * lib/c-strstr.c: Include stdbool.h, string.h.
17275         (knuth_morris_pratt): New function.
17276         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
17277         bookkeeping indicates that it's worth it.
17278         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
17279
17280         * lib/c-strstr.c: Complete rewrite for maintainability.
17281
17282         * modules/c-strstr-tests: New file.
17283         * tests/test-c-strstr.c: New file.
17284
17285 2007-02-11  Bruno Haible  <bruno@clisp.org>
17286
17287         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
17288         5.2.1 and earlier, whereby \055 was treated just like the range
17289         delimiter '-'.
17290         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17291
17292 2007-02-08  Bruno Haible  <bruno@clisp.org>
17293
17294         * modules/regex (Depends-on): Add stdbool.
17295         Reported by Dalibor Topic <robilad@kaffe.org>.
17296
17297 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17298
17299         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
17300         Prefer returning from main to exiting from it.
17301         Remove unnecessary parens after sizeof.
17302
17303 2007-02-05  Bruno Haible  <bruno@clisp.org>
17304
17305         New module mbssep.
17306         * modules/mbssep: New file.
17307         * lib/mbssep.c: New file.
17308         * lib/string_.h (strsep): Add a conditional link warning.
17309         (mbssep): New declaration.
17310         * m4/mbssep.m4: New file.
17311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17312         GNULIB_MBSSEP.
17313         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
17314         * MODULES.html.sh (Internationalization functions): Add mbssep.
17315
17316 2007-02-05  Bruno Haible  <bruno@clisp.org>
17317
17318         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
17319         Optimize search in case of 1 delimiter.
17320
17321 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17322
17323         * lib/acl.h: Include sys/types.h before sys/acl.h.
17324
17325 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17326
17327         Merge upstream fix for glibc bugzilla #3957:
17328
17329         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
17330
17331         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17332         bit for RE_HAT_LISTS_NOT_NEWLINE.
17333         (build_charclass_op): Remove bogus comment.
17334
17335 2007-02-05  Simon Josefsson  <simon@josefsson.org>
17336
17337         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17338
17339 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17340
17341         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17342         * lib/memmem.c [!defined _LIBC]: Include config.h.
17343
17344 2007-02-04  Bruno Haible  <bruno@clisp.org>
17345
17346         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17347         warning message.
17348
17349 2007-02-04  Bruno Haible  <bruno@clisp.org>
17350
17351         New module mbstok_r.
17352         * modules/mbstok_r: New file.
17353         * lib/mbstok_r.c: New file.
17354         * lib/string_.h (strtok_r): Change argument names to match the
17355         comments. Add a conditional link warning.
17356         (mbstok_r): New declaration.
17357         * m4/mbstok_r.m4: New file.
17358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17359         GNULIB_MBSTOK_R.
17360         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
17361         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
17362
17363 2007-02-04  Bruno Haible  <bruno@clisp.org>
17364
17365         New module mbsspn.
17366         * modules/mbsspn: New file.
17367         * lib/mbsspn.c: New file.
17368         * lib/string_.h (strspn): Add a conditional link warning.
17369         (mbsspn): New declaration.
17370         * m4/mbsspn.m4: New file.
17371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17372         GNULIB_MBSSPN.
17373         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
17374         * MODULES.html.sh (Internationalization functions): Add mbsspn.
17375
17376 2007-02-04  Bruno Haible  <bruno@clisp.org>
17377
17378         New module mbspbrk.
17379         * modules/mbspbrk: New file.
17380         * lib/mbspbrk.c: New file.
17381         * lib/string_.h (strpbrk): Add a conditional link warning.
17382         (mbspbrk): New declaration.
17383         * m4/mbspbrk.m4: New file.
17384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17385         GNULIB_MBSPBRK.
17386         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
17387         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
17388
17389 2007-02-04  Bruno Haible  <bruno@clisp.org>
17390
17391         New module mbscspn.
17392         * modules/mbscspn: New file.
17393         * lib/mbscspn.c: New file.
17394         * lib/string_.h (strcspn): Add a conditional link warning.
17395         (mbscspn): New declaration.
17396         * m4/mbscspn.m4: New file.
17397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17398         GNULIB_MBSCSPN.
17399         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
17400         * MODULES.html.sh (Internationalization functions): Add mbscspn.
17401
17402 2007-02-04  Bruno Haible  <bruno@clisp.org>
17403
17404         New module mbscasestr, reduced goal of strcasestr.
17405         * modules/mbscasestr: New file.
17406         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
17407         (mbscasestr): Renamed from strcasestr.
17408         * lib/strcasestr.c: Don't include mbuiter.h.
17409         (strcasestr): Remove support for multibyte locales.
17410         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
17411         Change the conditional link warning.
17412         (mbscasestr): New declaration.
17413         * m4/mbscasestr.m4: New file.
17414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
17415         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
17416         REPLACE_STRCASESTR.
17417         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
17418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17419         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17420         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
17421         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17422         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17423         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17424         (Depends-on): Remove mbuiter.
17425         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17426
17427 2007-02-04  Bruno Haible  <bruno@clisp.org>
17428
17429         Simplify handling of strncasecmp.
17430         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
17431         the conditional link warning.
17432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17433         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
17434         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
17435         * modules/strcase (configure.ac): Don't invoke
17436         gl_STRING_MODULE_INDICATOR.
17437         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
17438
17439 2007-02-04  Bruno Haible  <bruno@clisp.org>
17440
17441         New module mbscasecmp, reduced goal of strcasecmp.
17442         * modules/mbscasecmp: New file.
17443         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
17444         (mbscasecmp): Renamed from strcasecmp.
17445         * lib/strcasecmp.c: Don't include mbuiter.h.
17446         (strcasecmp): Remove support for multibyte locales.
17447         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
17448         Change the conditional link warning.
17449         (mbscasecmp): New declaration.
17450         * m4/mbscasecmp.m4: New file.
17451         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
17452         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
17453         REPLACE_STRCASECMP.
17454         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
17455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17456         GNULIB_MBSCASECMP.
17457         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
17458         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
17459         * modules/strcase (Files): Remove m4/mbrtowc.m4.
17460         (Depends-on): Remove mbuiter.
17461         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
17462
17463 2007-02-04  Bruno Haible  <bruno@clisp.org>
17464
17465         New module mbsstr. Remove module strstr.
17466         * modules/mbsstr: New file.
17467         * modules/strstr: Remove file.
17468         * lib/mbsstr.c: Renamed from lib/strstr.c.
17469         (mbsstr): Renamed from strstr.
17470         * lib/string_.h (strstr): Remove declaration. Change the conditional
17471         link warning.
17472         (mbsstr): New declaration.
17473         * m4/mbsstr.m4: New file.
17474         * m4/strstr.m4: Remove file.
17475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17476         REPLACE_STRSTR.
17477         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
17478         Don't initialize GNULIB_STRSTR.
17479         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
17480         substitute GNULIB_STRSTR and REPLACE_STRSTR.
17481         * MODULES.html.sh (Internationalization functions): Add mbsstr.
17482         (Support for systems lacking ANSI C 89): Remove strstr.
17483
17484 2007-02-04  Bruno Haible  <bruno@clisp.org>
17485
17486         New module mbsrchr.
17487         * modules/mbsrchr: New file.
17488         * lib/mbsrchr.c: New file.
17489         * lib/string_.h (strrchr): Add a conditional link warning.
17490         (mbsrchr): New declaration.
17491         * m4/mbsrchr.m4: New file.
17492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17493         GNULIB_MBSRCHR.
17494         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
17495         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
17496
17497 2007-02-04  Bruno Haible  <bruno@clisp.org>
17498
17499         New module mbschr.
17500         * modules/mbschr: New file.
17501         * lib/mbschr.c: New file.
17502         * lib/string_.h (strchr): Add a conditional link warning.
17503         (mbschr): New declaration.
17504         * m4/mbschr.m4: New file.
17505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17506         GNULIB_MBSCHR.
17507         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
17508         * MODULES.html.sh (Internationalization functions): Add mbschr.
17509
17510 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17511
17512         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
17513
17514         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
17515
17516 2007-02-04  Bruno Haible  <bruno@clisp.org>
17517
17518         New module description section 'configure.ac-early'.
17519         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
17520         (func_get_autoconf_early_snippet): New function.
17521         (func_import, func_create_testdir): Use it. Remove special cases for
17522         modules 'extensions' and 'lock'.
17523         * modules/extensions (configure.ac-early): Require
17524         gl_USE_SYSTEM_EXTENSIONS.
17525         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
17526
17527 2007-02-04  Bruno Haible  <bruno@clisp.org>
17528
17529         Make use of gcj-4.3's -fsource and -ftarget option.
17530         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
17531         and if so try the options -fsource and -ftarget.
17532         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
17533         source_version, ftarget_option, target_version arguments.
17534         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
17535         (is_envjavac_oldgcj_14_14_usable): Renamed from
17536         is_envjavac_gcj_14_14_usable.
17537         (is_envjavac_oldgcj_14_13_usable): Renamed from
17538         is_envjavac_gcj_14_13_usable.
17539         (is_gcj_present): Update.
17540         (is_gcj_43, is_gcj43_usable): New functions.
17541         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
17542         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
17543         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
17544         try the options -fsource and -ftarget.
17545
17546 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
17549         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
17550         larger value.
17551
17552 2007-02-03  Jim Meyering  <jim@meyering.net>
17553
17554         Give tools a better chance to allocate space for very large buffers.
17555         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
17556
17557         Make pwd and readlink work also when run with an unreadable parent dir
17558         on systems with openat support.
17559         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
17560         provided getcwd function, even when we have openat support.
17561         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
17562
17563 2007-02-02  Bruno Haible  <bruno@clisp.org>
17564
17565         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17566         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
17567         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
17568         portability problems if one of these functions is only used on specific
17569         platforms.
17570         Reported by Paul Eggert.
17571
17572 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17573
17574         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
17575         is causing more trouble than it's curing.
17576         * lib/regex_internal.h (__mempcpy): Remove.
17577         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
17578         (and make the code a tad smaller to boot).
17579         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
17580
17581 2007-02-02  Jim Meyering  <jim@meyering.net>
17582
17583         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
17584         section, not in the Makefile.am: one.
17585
17586 2007-02-02  Eric Blake  <ebb9@byu.net>
17587
17588         * lib/strchrnul.c: Always include config.h first.
17589
17590         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
17591         gnulib strstr is not necessary here.
17592
17593 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17594
17595         * m4/socklen.m4: Fix typo.
17596
17597 2007-02-02  Eric Blake  <ebb9@byu.net>
17598
17599         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17600         * modules/netinet_in (Makefile.am): Likewise.
17601
17602 2007-02-01  Bruno Haible  <bruno@clisp.org>
17603
17604         * lib/string_.h (GL_LINK_WARNING): New macro.
17605         (strcasecmp, strstr, strcasestr): If provided by the system,
17606         conditionally define as a macro that leads to a warning instead of to
17607         an error.
17608         (strncasecmp): Conditionally define as a macro that leads to a warning.
17609
17610 2007-02-01  Karl Berry  <karl@gnu.org>
17611
17612         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17613
17614 2007-02-01  Bruno Haible  <bruno@clisp.org>
17615
17616         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17617         renamings.
17618
17619 2007-02-01  Eric Blake  <ebb9@byu.net>
17620
17621         * modules/regex (Depends-on): Revert dependence on mempcpy.
17622         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17623         module's definition of mempcpy.
17624         Reported by Paul Eggert.
17625
17626 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17627
17628         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17629         the symbol XYZ before redefining it.  This fixes a problem with
17630         programs that don't use XYZ, when compiled on systems that define
17631         XYZ to something else.
17632
17633 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17634
17635         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17636         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17637         writeable to group or other and (2) is intended to have a special
17638         mode bit that is set or cleared.  In such a case, the directory
17639         should be neither group- nor other-writeable until the special
17640         mode bits are right.
17641
17642 2007-01-31  Eric Blake  <ebb9@byu.net>
17643
17644         * modules/mountlist (Depends-on): Add strstr.
17645
17646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17647         bug.
17648         * modules/string (Makefile.am): Remove redundant replacement.
17649         * modules/regex (Depends-on): Add mempcpy.
17650
17651 2007-01-31  Bruno Haible  <bruno@clisp.org>
17652
17653         New module description field 'Link'.
17654         * gnulib-tool (func_usage): Document --extract-link-directive.
17655         (sed_extract_prog): Recognize 'Link' directive.
17656         (func_get_link_directive): New function.
17657         (func_import): Show summary of link directives.
17658         Handle --extract-link-directive option.
17659         * modules/acl (Link): New section.
17660         * modules/clock-time (Link): New section.
17661         * modules/euidaccess (Link): New section.
17662         * modules/gettext (Link): New section.
17663         * modules/iconv (Link): New section.
17664         * modules/lock (Link): New section.
17665         * modules/nanosleep (Link): New section.
17666         * modules/readline (Link): New section.
17667
17668 2007-01-27  Bruno Haible  <bruno@clisp.org>
17669
17670         Enforce the use of gnulib modules for unportable <string.h> functions.
17671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17672         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17673         (gl_HEADER_STRING_H_BODY): Require it.
17674         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17675         the symbol XYZ to one that gives a link error.
17676         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17677         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17678         * modules/mempcpy (configure.ac): Likewise.
17679         * modules/memrchr (configure.ac): Likewise.
17680         * modules/stpcpy (configure.ac): Likewise.
17681         * modules/stpncpy (configure.ac): Likewise.
17682         * modules/strcase (configure.ac): Likewise.
17683         * modules/strcasestr (configure.ac): Likewise.
17684         * modules/strchrnul (configure.ac): Likewise.
17685         * modules/strdup (configure.ac): Likewise.
17686         * modules/strndup (configure.ac): Likewise.
17687         * modules/strnlen (configure.ac): Likewise.
17688         * modules/strpbrk (configure.ac): Likewise.
17689         * modules/strsep (configure.ac): Likewise.
17690         * modules/strstr (configure.ac): Likewise.
17691         * modules/strtok_r (configure.ac): Likewise.
17692
17693 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17694
17695         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17696
17697 2007-01-30  Jim Meyering  <jim@meyering.net>
17698
17699         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17700
17701 2007-01-29  Bruno Haible  <bruno@clisp.org>
17702
17703         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17704         * lib/execute.c: Likewise.
17705         * lib/pipe.c: Likewise.
17706         * lib/printf-args.h: Likewise.
17707         * lib/printf-args.c: Likewise.
17708         * lib/printf-parse.c: Likewise.
17709         * lib/vasnprintf.c: Likewise.
17710
17711 2007-01-29  Eric Blake  <ebb9@byu.net>
17712
17713         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17714         declaration.
17715
17716 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17717
17718         * lib/strptime.h (strptime): Use 'restrict' for args where
17719         POSIX requires this.
17720         * lib/strptime.c (strptime): Likewise.
17721         Change license notice from LGPL to GPL, since gnulib-tool will
17722         change this as needed.
17723         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17724         defined.
17725         Include "strptime.h" first, to check interface.
17726         Do not #undef _LIBC and _NL_CURRENT.
17727         Do not include <stdlib.h>; no longer needed.
17728         Include "time_r.h" and declare ptime_locale_status
17729         only if _LIBC is not defined.
17730         (__P): Remove unused macro.
17731         (match_string): Bring back glibc version, but use it only if _LIBC
17732         is defined.
17733         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17734         Remove unnecessary assertion and abort() call.
17735         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17736         * m4/strptime.m4: Fix serial number comment.
17737         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17738         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17739         (Depends-on): Add time_r.
17740
17741 2007-01-29  Bruno Haible  <bruno@clisp.org>
17742
17743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17744         strptime.
17745         * modules/strptime (Depends-on): Add stdbool.
17746         * lib/strptime.h: Include <time.h> always. Add comments.
17747
17748 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17749
17750         * modules/strptime: New file.
17751         * lib/strptime.h: New file.
17752         * lib/strptime.c: New file.
17753         * m4/strptime.m4: New file.
17754
17755 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17756
17757         * MODULES.html.sh: New module mpsort.
17758         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17759
17760         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17761         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17763         All uses changed.
17764         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17765         All uses changed.
17766         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17767         to _Restrict_.
17768         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17769         the parameter matches the prototype.
17770
17771 2007-01-28  Jim Meyering  <jim@meyering.net>
17772
17773         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17774         sys/time.h here, reverting that part of the previous patch:
17775         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17776
17777 2007-01-28  Bruno Haible  <bruno@clisp.org>
17778
17779         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17780         value of $(SYS_TIME_H).
17781         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17782         remove it conditionally, too. [added by Jim Meyering]
17783         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17785         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17786         GETTIMEOFDAY_REPLACEMENT to 1.
17787
17788 2007-01-28  Bruno Haible  <bruno@clisp.org>
17789
17790         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17791         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17793         Set UNISTD_H instead of UNISTD_H2.
17794         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17795
17796 2007-01-28  Bruno Haible  <bruno@clisp.org>
17797
17798         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17799         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17800
17801 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17802
17803         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17804         (func_create_testdir): Ensure C locale for `grep' and `tr'
17805         character ranges.
17806         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17807         ACLOCAL_AMFLAGS parsing state machine.
17808
17809 2007-01-27  Bruno Haible  <bruno@clisp.org>
17810
17811         * modules/unistr/base: Update.
17812
17813 2007-01-27  Bruno Haible  <bruno@clisp.org>
17814
17815         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17816         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17817         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17818         modules/unistr/u32-mbtouc.
17819         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17820         * lib/unistr.h: Update.
17821         * lib/linebreak.c: Update.
17822         * modules/unistr/u32-mbtouc: Renamed from
17823         modules/unistr/u32-mbtouc-safe.
17824         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17825         * lib/unistr.h: Update.
17826         * lib/unistr/u32-to-u8.c: Update.
17827         * lib/unistr/u32-to-u16.c: Update.
17828
17829 2007-01-27  Bruno Haible  <bruno@clisp.org>
17830
17831         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17832         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17833         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17834         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17835         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17836         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17837         modules/unistr/u16-mbtouc.
17838         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17839         * lib/unistr.h: Update.
17840         * lib/linebreak.c: Update.
17841         * modules/linebreak: Update.
17842         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17843         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17844         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17845         * modules/unistr/u16-mbtouc: Renamed from
17846         modules/unistr/u16-mbtouc-safe.
17847         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17848         * lib/unistr.h: Update.
17849         * lib/unistr/u16-to-u8.c: Update.
17850         * modules/unistr/u16-to-u8: Update.
17851         * lib/unistr/u16-to-u32.c: Update.
17852         * modules/unistr/u16-to-u32: Update.
17853
17854 2007-01-27  Bruno Haible  <bruno@clisp.org>
17855
17856         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17857         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17858         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17859         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17860         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17861         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17862         modules/unistr/u8-mbtouc.
17863         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17864         * lib/unistr.h: Update.
17865         * lib/striconveh.c: Update.
17866         * modules/striconveh: Update.
17867         * lib/linebreak.c: Update.
17868         * modules/linebreak: Update.
17869         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17870         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17871         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17872         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17873         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17874         * lib/unistr.h: Update.
17875         * lib/striconveh.c: Update.
17876         * modules/striconveh: Update.
17877         * lib/unistr/u8-to-u16.c: Update.
17878         * modules/unistr/u8-to-u16: Update.
17879         * lib/unistr/u8-to-u32.c: Update.
17880         * modules/unistr/u8-to-u32: Update.
17881
17882 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17883
17884         Sync from Libtool.
17885         * lib/argz.c: Do not include strings.h nor memory.h, include
17886         string.h unconditionally.  Patch by Simon Josefsson.
17887
17888 2007-01-27  Bruno Haible  <bruno@clisp.org>
17889
17890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17891         from gl_HEADER_STRING_H_BODY.
17892         (gl_HEADER_STRING_H_BODY): Require it.
17893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17894         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17898         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17900         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17901         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17902         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17903         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17904         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17905         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17907         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17908
17909 2007-01-27  Bruno Haible  <bruno@clisp.org>
17910
17911         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17912         check_PROGRAMS into noinst_PROGRAMS.
17913         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17914         check_PROGRAMS in this case.
17915         (func_import): Set for_test to false.
17916         (func_create_testdir): Set for_test to true.
17917
17918 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17919             Bruno Haible  <bruno@clisp.org>
17920
17921         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17922         (Depends-on): Add string.
17923         (Includes): Use <string.h> instead of strcasestr.h.
17924         * modules/string (Makefile.am): Also substitute the value of
17925         REPLACE_STRCASESTR.
17926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17927         assume strcasestr is declared in <string.h> not <strings.h>. Also
17928         set REPLACE_STRCASESTR.
17929         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17930         REPLACE_STRCASESTR.
17931         * lib/strcasestr.h: Remove file.
17932         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17933         * lib/string_.h (strcasestr): New declaration.
17934
17935 2007-01-27  Bruno Haible  <bruno@clisp.org>
17936
17937         * lib/string_.h: Use 'extern'.
17938
17939 2007-01-27  Jim Meyering  <jim@meyering.net>
17940
17941         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17942         of set-but-not-used local, "q".
17943
17944         * lib/mempcpy.c: Include <config.h> before <string.h>.
17945         This fixes a compilation error on HP-UX, due to the system's
17946         "restrict"-using mempcpy prototype.
17947
17948 2007-01-26  Bruno Haible  <bruno@clisp.org>
17949
17950         Small optimization.
17951         * lib/javacomp.c: Include c-strstr.h.
17952          (is_envjavac_gcj): Use c_strstr instead of strstr.
17953         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17954
17955 2007-01-26  Bruno Haible  <bruno@clisp.org>
17956
17957         * MODULES.html.sh (Unicode string functions): Add the new modules.
17958
17959         * modules/uniconv/u32-strconv-to-locale: New file.
17960         * lib/uniconv/u32-strconv-to-locale.c: New file.
17961
17962         * modules/uniconv/u16-strconv-to-locale: New file.
17963         * lib/uniconv/u16-strconv-to-locale.c: New file.
17964
17965         * modules/uniconv/u8-strconv-to-locale: New file.
17966         * lib/uniconv/u8-strconv-to-locale.c: New file.
17967
17968         * modules/uniconv/u32-strconv-from-locale: New file.
17969         * lib/uniconv/u32-strconv-from-locale.c: New file.
17970
17971         * modules/uniconv/u16-strconv-from-locale: New file.
17972         * lib/uniconv/u16-strconv-from-locale.c: New file.
17973
17974         * modules/uniconv/u8-strconv-from-locale: New file.
17975         * lib/uniconv/u8-strconv-from-locale.c: New file.
17976
17977         * modules/uniconv/u32-strconv-to-enc: New file.
17978         * lib/uniconv/u32-strconv-to-enc.c: New file.
17979         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17980         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17981
17982         * modules/uniconv/u16-strconv-to-enc: New file.
17983         * lib/uniconv/u16-strconv-to-enc.c: New file.
17984         * lib/uniconv/u-strconv-to-enc.h: New file.
17985         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17986         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17987
17988         * modules/uniconv/u8-strconv-to-enc: New file.
17989         * lib/uniconv/u8-strconv-to-enc.c: New file.
17990         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17991         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17992
17993         * modules/uniconv/u32-strconv-from-enc: New file.
17994         * lib/uniconv/u32-strconv-from-enc.c: New file.
17995         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17996         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17997
17998         * modules/uniconv/u16-strconv-from-enc: New file.
17999         * lib/uniconv/u16-strconv-from-enc.c: New file.
18000         * modules/uniconv/u16-strconv-from-enc-tests: New file.
18001         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
18002
18003         * modules/uniconv/u8-strconv-from-enc: New file.
18004         * lib/uniconv/u8-strconv-from-enc.c: New file.
18005         * lib/uniconv/u-strconv-from-enc.h: New file.
18006         * modules/uniconv/u8-strconv-from-enc-tests: New file.
18007         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
18008
18009         * modules/uniconv/u32-conv-from-enc: New file.
18010         * lib/uniconv/u32-conv-from-enc.c: New file.
18011         * modules/uniconv/u32-conv-from-enc-tests: New file.
18012         * tests/uniconv/test-u32-conv-from-enc.c: New file.
18013
18014         * modules/uniconv/u16-conv-from-enc: New file.
18015         * lib/uniconv/u16-conv-from-enc.c: New file.
18016         * lib/uniconv/u-conv-from-enc.h: New file.
18017         * modules/uniconv/u16-conv-from-enc-tests: New file.
18018         * tests/uniconv/test-u16-conv-from-enc.c: New file.
18019
18020         * modules/uniconv/u8-conv-from-enc: New file.
18021         * lib/uniconv/u8-conv-from-enc.c: New file.
18022         * modules/uniconv/u8-conv-from-enc-tests: New file.
18023         * tests/uniconv/test-u8-conv-from-enc.c: New file.
18024
18025         * modules/uniconv/base: New file.
18026         * lib/uniconv.h: New file.
18027
18028 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18029
18030         * doc/gnulib-tool.texi (Initial import): Update to match current
18031         behavior with strdup module.
18032         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
18033         * lib/memmem.h: Remove; all uses removed.  This is now done
18034         by <string.h>.
18035         * lib/mempcpy.h: Likewise.
18036         * lib/memrchr.h: Likewise.
18037         * lib/stpcpy.h: Likewise.
18038         * lib/stpncpy.h: Likewise.
18039         * lib/strcase.h: Likewise.
18040         * lib/strchrnul.h: Likewise.
18041         * lib/strdup.h: Likewise.
18042         * lib/strndup.h: Likewise.
18043         * lib/strnlen.h: Likewise.
18044         * lib/strpbrk.h: Likewise.
18045         * lib/strsep.h: Likewise.
18046         * lib/strstr.h: Likewise.
18047         * lib/strtok_r.h: Likewise.
18048         * lib/string_.h: New file.
18049         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
18050         Rely on <string.h> instead.
18051         * lib/canon-host.c: Likewise.
18052         * lib/chdir-long.c: Likewise.
18053         * lib/concatpath.c: Likewise.
18054         * lib/exclude.c: Likewise.
18055         * lib/fchdir.c: Likewise.
18056         * lib/getaddrinfo.c: Likewise.
18057         * lib/getcwd.c: Likewise.
18058         * lib/getsubopt.c: Likewise.
18059         * lib/glob.c: Likewise.
18060         * lib/hard-locale.c: Likewise.
18061         * lib/iconvme.c: Likewise.
18062         * lib/javacomp.c: Likewise.
18063         * lib/mempcpy.c: Likewise.
18064         * lib/memrchr.c: Likewise.
18065         * lib/regex_internal.h: Likewise.
18066         * lib/stpncpy.c: Likewise.
18067         * lib/strcasecmp.c: Likewise.
18068         * lib/strchrnul.c: Likewise.
18069         * lib/strdup.c: Likewise.
18070         * lib/striconv.c: Likewise.
18071         * lib/striconveh.c: Likewise.
18072         * lib/striconveha.c: Likewise.
18073         * lib/strncasecmp.c: Likewise.
18074         * lib/strndup.c: Likewise.
18075         * lib/strnlen.c: Likewise.
18076         * lib/strsep.c: Likewise.
18077         * lib/strstr.c: Likewise.
18078         * lib/strtok_r.c: Likewise.
18079         * lib/userspec.c: Likewise.
18080         * lib/w32spawn.h: Likewise.
18081         * lib/xstrndup.c: Likewise.
18082         * lib/mountlist.c (strstr): Remove decl.
18083         * m4/string_h.m4: New file.
18084         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
18085         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
18086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
18087         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
18088         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
18089         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
18090         Set REPLACE_STRCASECMP if necessary.
18091         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
18092         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
18093         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
18094         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
18095         HAVE_DECL_STRDUP if necessary.
18096         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
18097         since gl_FUNC_STRNDUP does that now.
18098         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
18099         Check for decl here...
18100         (gl_PREREQ_STRNLEN): ... not here.
18101         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
18102         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
18103         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
18104         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
18105         necessary.
18106         * modules/string: New file.
18107         * modules/memmem (Files): Remove special-purpose include file.
18108         (Depends-on): Add string.
18109         (Include): Include <string.h>, not the removed file.
18110         * modules/mempcpy: Likewise.
18111         * modules/memrchr: Likewise.
18112         * modules/stpcpy: Likewise.
18113         * modules/stpncpy: Likewise.
18114         * modules/strcase: Likewise.
18115         * modules/strchrnul: Likewise.
18116         * modules/strdup: Likewise.
18117         * modules/strndup: Likewise.
18118         * modules/strnlen: Likewise.
18119         * modules/strpbrk: Likewise.
18120         * modules/strsep: Likewise.
18121         * modules/strstr: Likewise.
18122         * modules/strtok_r: Likewise.
18123         * tests/test-dirname.c: Don't include "strdup.h", since
18124         <string.h> now suffices.
18125         * tests/test-memmem.c: Don't include "memmem.h", since
18126         <string.h> now suffices.
18127
18128 2007-01-25  Bruno Haible  <bruno@clisp.org>
18129
18130         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
18131         *resultp is 0.
18132
18133         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
18134         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
18135         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
18136         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
18137
18138         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
18139         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
18140         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
18141         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
18142         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
18143         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
18144
18145 2007-01-24  Bruno Haible  <bruno@clisp.org>
18146
18147         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
18148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
18149         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
18150         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
18151         gl_FUNC_FTS_CORE.
18152         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
18153         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
18154         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18155         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
18156         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
18157         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
18158         gl_FUNC_FCHOWNAT.
18159         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
18160         gl_FUNC_STRFTIME.
18161         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
18162         Reported by Ralf Wildenhues.
18163
18164 2007-01-24  Bruno Haible  <bruno@clisp.org>
18165
18166         Drop AC_REQUIRE calls that are redundant with the module dependencies.
18167         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
18168         gl_GETADDRINFO.
18169         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
18170         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
18171         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
18172
18173 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18174
18175         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
18176         Don't use 'exit'; just return from 'main'.
18177         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
18178
18179         * lib/fnmatch_.h: Readjust white space and comments to match
18180         glibc, to avoid spurious diffs.
18181
18182 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18183
18184         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
18185         2004-12-01 change by Jakub Jelinek, since this code won't compile
18186         if !LIBC.  Problem reported by Bob Proulx.
18187
18188 2007-01-23  Bruno Haible  <bruno@clisp.org>
18189
18190         * lib/striconveh.c: Include c-strcaseeq.h.
18191         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
18192         * modules/striconveh (Depends-on): Add c-strcaseeq.
18193
18194 2007-01-23  Bruno Haible  <bruno@clisp.org>
18195
18196         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
18197
18198         * modules/c-strcaseeq: New file.
18199         * lib/c-strcaseeq.h: New file.
18200
18201         * modules/streq: New file.
18202         * lib/streq.h: New file.
18203
18204 2007-01-23  Bruno Haible  <bruno@clisp.org>
18205
18206         * modules/striconveha-tests: New file.
18207         * tests/test-striconveha.c: New file.
18208
18209         * lib/striconveha.h: Include <stdbool.h>.
18210         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
18211         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
18212         (mem_iconveha_notranslit): Renamed from mem_iconveha.
18213         (mem_iconveha): New function.
18214         (str_iconveha_notranslit): Renamed from str_iconveha.
18215         (str_iconveha): New function.
18216         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
18217         c-strcase.
18218
18219 2007-01-23  Bruno Haible  <bruno@clisp.org>
18220
18221         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
18222         encodings without forgiving before trying any encoding with handler.
18223         (str_iconveha): Try all encodings without forgiving before trying any
18224         encoding with handler.
18225
18226 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         Import the following changes from libc.
18229
18230         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
18231
18232         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
18233
18234         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
18235
18236         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
18237         normal_bracket label.
18238
18239         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
18240
18241         [BZ #361]
18242         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
18243         to normal_bracket after fetching the next character.
18244
18245 2007-01-22  Bruno Haible  <bruno@clisp.org>
18246
18247         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
18248         argument.
18249         * lib/striconveh.c (iconv_carefully_1): New function.
18250         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
18251         argument.
18252         (str_cd_iconveh): Update.
18253         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
18254         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
18255         * tests/test-striconveh.c (MAGIC): New macro.
18256         (new_offsets): New function.
18257         (main): Test call with and without offsets.
18258
18259 2007-01-22  Bruno Haible  <bruno@clisp.org>
18260
18261         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
18262         * modules/sys_select (Makefile.am): Likewise.
18263         * modules/sys_socket (Makefile.am): Likewise.
18264         * modules/sys_time (Makefile.am): Likewise.
18265
18266 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18267
18268         * modules/gettimeofday (License): Change from GPL to LGPL, since
18269         gettimeofday is a library function.
18270
18271 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18272
18273         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
18274
18275 2007-01-21  Bruno Haible  <bruno@clisp.org>
18276
18277         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
18278
18279 2007-01-21  Bruno Haible  <bruno@clisp.org>
18280
18281         * modules/striconveha: New file.
18282         * lib/striconveha.h: New file.
18283         * lib/striconveha.c: New file.
18284         * MODULES.html.sh (Internationalization functions): Add striconveha.
18285         * lib/striconv.c (str_iconv): Optimize the case of an empty input
18286         string.
18287         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
18288
18289 2007-01-21  Bruno Haible  <bruno@clisp.org>
18290
18291         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
18292         * lib/striconveh.c (str_iconveh): Likewise.
18293
18294 2007-01-21  Bruno Haible  <bruno@clisp.org>
18295
18296         * lib/striconveh.h (mem_iconveh): New declaration.
18297         * lib/striconveh.c (mem_iconveh): New function.
18298         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
18299
18300 2007-01-21  Bruno Haible  <bruno@clisp.org>
18301
18302         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
18303
18304         * lib/striconveh.h (mem_cd_iconveh): Change specification.
18305         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
18306         original result buffer.
18307         (str_cd_iconveh): Update.
18308         * tests/test-striconveh.c (main): Update.
18309
18310         * lib/striconv.h (mem_cd_iconv): Change specification.
18311         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
18312         result buffer.
18313         (str_cd_iconv): Update.
18314         * tests/test-striconv.c (main): Update.
18315
18316 2007-01-21  Bruno Haible  <bruno@clisp.org>
18317
18318         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
18319
18320 2007-01-20  Jim Meyering  <jim@meyering.net>
18321
18322         * lib/userspec.c (parse_with_separator): If a user or group string
18323         starts with "+", skip the corresponding name-to-ID look-up, since
18324         such a look-up must fail: user and group names may not include "+".
18325
18326 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18327
18328         * lib/poll.c: Include sys/time.h and time.h unconditionally,
18329         since we now assume the sys_time module.
18330         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18331         check for sys/time.h; no longer needed.
18332         * modules/poll (Depends-on): Depend on sys_time.
18333
18334 2007-01-18  Bruno Haible  <bruno@clisp.org>
18335
18336         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18337         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18338
18339         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18340         gettimeofday.
18341
18342         * tests/test-gettimeofday.c: Include <time.h>.
18343         (dummy): Remove variable.
18344
18345         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18346         gl_HEADER_SYS_TIME_H.
18347         (gl_HEADER_SYS_TIME_H): New macro.
18348
18349         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
18350         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18351         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18352         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
18353         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18354         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
18355         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
18356         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18357         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
18358         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
18359         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18360
18361         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
18362         last change; it caused a compilation error when cross-compiling to
18363         Cygwin.
18364
18365 2007-01-18  Jim Meyering  <jim@meyering.net>
18366
18367         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
18368         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
18369         than the race-prone "test -d sys || mkdir sys".
18370         (configure.ac): Use AC_PROG_MKDIR_P.
18371         * modules/sys_select: Likewise.
18372         * modules/sys_socket: Likewise.
18373         * modules/sys_time: Likewise.
18374
18375 2007-01-18  Eric Blake  <ebb9@byu.net>
18376
18377         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
18378         replace gettimeofday.
18379         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
18380         name, to avoid infinite recursion.
18381
18382 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
18385         module sys_time.
18386         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
18387         assume timespec.h defines struct timeval.
18388         * lib/settime.c: Likewise.
18389         * lib/utimens.c: Likewise.
18390         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
18391         since we now assume the gettimeofday module.
18392         * lib/tempname.c (__gen_tempname): Likewise.
18393         * lib/gettimeofday.h: Remove.
18394         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
18395         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
18396         Include <time.h>, for 'time()'.
18397         (localtime_buffer_addr): Also use this workaround if
18398         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
18399         to simplify the uses.  All uses changed.
18400         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
18401         that #undef is inside {}, and 'const' follows type name consistently.
18402         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
18403         (gettimeofday): Do not use the maximum possible value for
18404         tv->tv_usec, since that might break usages other than ls.c.
18405         Instead, we'll leave ls.c alone.  This undoes today's patch
18406         by Bruno.  Add a compile-time warning for 1s-clock resolution;
18407         we've never observed the problem but might as well keep the
18408         canary.
18409         * lib/nanosleep.c: Include timespec.h first, for interface check.
18410         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
18411         now assume the sys_time module.
18412         * lib/tempname.c: Likewise.
18413         * lib/timespec.h: Likewise.
18414         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
18415         needed.
18416         * lib/strftime.c: Likewise.
18417         * lib/timespec.h: Likewise.
18418         * lib/posixtm.c: Include posixtm.h first, for interface check.
18419         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
18420         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
18421         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18422         * lib/sys_time_.h: New file.
18423         * lib/timespec.h (struct timespec): Use long int, not long.
18424         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18425         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18426         Remove obsolescent call to AC_HEADER_TIME.
18427         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18430         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
18431         Likewise.
18432         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18433         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
18434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
18435         into the sys_time module.  Check for gettimeofday just once.
18436         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
18437         for gettimeofday signature to just check the signature.  Merely
18438         compile it, since linking doesn't test signature.  Improve test for
18439         whether gettimeofday.o is actually needed.
18440         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
18441         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
18442         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
18443         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18444         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
18445         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
18446         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
18447         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
18448         than worrying about sys/time.h.
18449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18450         Don't bother worrying about TIME_WITH_SYS_TIME.
18451         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18452         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
18453         * m4/sys_time_h.m4: New file.
18454         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
18455         Don't include sys/time.h.  Return from main rather than exiting.
18456         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
18457         all uses changed.
18458         * modules/gethrxtime (Depends-on): Add sys_time.
18459         * modules/gettime (Depends-on): Likewise.
18460         * modules/gettimeofday (Depends-on): Likewise.
18461         * modules/nanosleep (Depends-on): Likewise.
18462         * modules/settime (Depends-on): Likewise.
18463         * modules/tempname (Depends-on): Likewise.
18464         * modules/utimens (Depends-on): Likewise.
18465         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
18466         (Include:) Change back to <sys/time.h>.
18467         (Maintainer:) Add self.
18468         * modules/sys_time: New file.
18469         * modules/tempname (Depends-on): Add gettimeofday.
18470         * tests/test-gettimeofday.c: Include <sys/time.h>
18471         rather than gettimeofday.h.
18472
18473 2007-01-17  Bruno Haible  <bruno@clisp.org>
18474
18475         * gnulib-tool (func_get_license): Revert last patch. Instead, let
18476         the license default to GPL.
18477         (func_create_testdir): Don't complain if a module is LGPL and its
18478         tests module depends on GPLed modules.
18479
18480 2007-01-17  Bruno Haible  <bruno@clisp.org>
18481
18482         * lib/gettimeofday.c (gettimeofday): Add code for the case
18483         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
18484         maximum possible value for tv->tv_usec, rather than the minimum one.
18485
18486 2005-10-08  Martin Lambers  <marlam@marlam.de>
18487 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18488 2007-01-16  Bruno Haible  <bruno@clisp.org>
18489
18490         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
18491         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
18492         gl_FUNC_GETTIMEOFDAY.
18493         (Include): Add gettimeofday.h.
18494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
18495         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
18496         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
18497         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
18498         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
18499         * lib/gettimeofday.h: New file.
18500         * lib/gettimeofday.c: Include <sys/timeb.h>.
18501         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
18502         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18503         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
18504         fall back on time().
18505
18506         * tests/test-gettimeofday.c: New file.
18507         * modules/gettimeofday-tests: New file.
18508
18509 2007-01-16  Eric Blake  <ebb9@byu.net>
18510
18511         * modules/fnmatch (Depends-on): Depend on wchar.
18512         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
18513         * m4/fnmatch.m4: Likewise.
18514         * modules/mbchar (Makefile.am): Assume <wchar.h>.
18515         * m4/mbchar.m4: Likewise.
18516         * modules/mbswidth (Depends-on): Depend on wchar.
18517         * lib/mbswidth.c: Assume <wchar.h>.
18518         * m4/mbswidth.m4: Likewise.
18519         * modules/quotearg (Depends-on): Depend on wchar.
18520         * lib/quotearg.c: Assume <wchar.h>.
18521         * m4/quotearg.m4: Likewise.
18522         * modules/regex (Depends-on): Depend on wchar.
18523         * lib/regex_internal.h: Assume <wchar.h>.
18524         * m4/regex.m4: Likewise.
18525         * modules/stdint (Depends-on): Depend on wchar.
18526         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
18527         * m4/stdint.m4: Likewise.
18528         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
18529         * modules/strftime (Depends-on): Depend on wchar.
18530         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
18531         * modules/strtol (Depends-on): Depend on wchar.
18532         * lib/strtol.c: Assume <wchar.h>.
18533         * modules/wcwidth (Depends-on): Depend on wchar.
18534         * lib/wcwidth.h: Assume <wchar.h>.
18535         * m4/wcwidth.m4: Likewise.
18536
18537 2007-01-16  Bruno Haible  <bruno@clisp.org>
18538
18539         * modules/csharpexec-script: New, created from...
18540         * modules/csharpexec: ... this.
18541
18542 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18543
18544         * modules/javaexec-script: New, created from...
18545         * modules/javaexec: ... this.
18546
18547 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18548
18549         * modules/poll (Dependencies): Add sys_select.
18550
18551 2007-01-15  Jim Meyering  <jim@meyering.net>
18552
18553         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18554         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
18555         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
18556         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
18557
18558 2007-01-15  Bruno Haible  <bruno@clisp.org>
18559
18560         * modules/striconveh: New file.
18561         * lib/striconveh.h: New file.
18562         * lib/striconveh.c: New file.
18563         * MODULES.html.sh (Internationalization functions): Add striconveh.
18564
18565         * modules/striconveh-tests: New file.
18566         * tests/test-striconveh.c: New file.
18567
18568 2007-01-15  Bruno Haible  <bruno@clisp.org>
18569
18570         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
18571         not from GNU libiconv or GNU libc.
18572
18573 2007-01-15  Bruno Haible  <bruno@clisp.org>
18574
18575         * doc/gnulib-intro.texi (Copyright): Explain the different license
18576         terms for module descriptions, autoconf macros, tests, documentation.
18577
18578 2007-01-14  Bruno Haible  <bruno@clisp.org>
18579
18580         * modules/striconv-tests: New file.
18581         * tests/test-striconv.c: New file.
18582
18583 2007-01-14  Bruno Haible  <bruno@clisp.org>
18584
18585         * modules/iconv-tests: New file.
18586         * tests/test-iconv.c: New file.
18587
18588 2007-01-14  Bruno Haible  <bruno@clisp.org>
18589
18590         * gnulib-tool (func_get_license): For test modules, use the license of
18591         the main module.
18592
18593 2007-01-14  Bruno Haible  <bruno@clisp.org>
18594
18595         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18596         if iconv is found to exist.
18597
18598 2007-01-14  Bruno Haible  <bruno@clisp.org>
18599
18600         * modules/c-ctype-tests: New file.
18601         * tests/test-c-ctype.c: New file.
18602
18603 2007-01-14  Bruno Haible  <bruno@clisp.org>
18604
18605         * modules/binary-io-tests: New file.
18606         * tests/test-binary-io.sh: New file.
18607         * tests/test-binary-io.c: New file.
18608
18609 2007-01-14  Bruno Haible  <bruno@clisp.org>
18610
18611         * modules/array-oset-tests: New file.
18612         * tests/test-array_oset.c: New file.
18613
18614 2007-01-14  Bruno Haible  <bruno@clisp.org>
18615
18616         * modules/array-list-tests: New file.
18617         * tests/test-array_list.c: New file.
18618
18619 2007-01-14  Bruno Haible  <bruno@clisp.org>
18620
18621         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18622         and make.
18623         Reported by Simon Josefsson in
18624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18625
18626 2007-01-14  Bruno Haible  <bruno@clisp.org>
18627
18628         * modules/allocsa-tests: New file.
18629         * tests/test-allocsa.c: New file.
18630
18631 2007-01-14  Bruno Haible  <bruno@clisp.org>
18632
18633         * modules/fchdir (Depends-on): Add absolute-header.
18634         * modules/unistd (Depends-on): Likewise.
18635
18636 2006-12-30  Bruno Haible  <bruno@clisp.org>
18637
18638         * modules/fchdir: New file.
18639         * modules/unistd (Files): Add lib/unistd_.h.
18640         (Makefile.am): Generate unistd.h from unistd_.h.
18641         * lib/fchdir.c: New file.
18642         * lib/dirent_.h: New file.
18643         * lib/unistd_.h: New file.
18644         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18645         * m4/fchdir.m4: New file.
18646         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18647         (gl_HEADER_UNISTD): Invoke it.
18648         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18649         function.
18650         * lib/backupfile.c (opendir, closedir): Undefine.
18651         * lib/chown.c (open, close): Undefine.
18652         * lib/clean-temp.c (open, close): Undefine.
18653         * lib/copy-file.c (open, close): Undefine.
18654         * lib/execute.c (open, close): Undefine.
18655         * lib/fsusage.c (open, close): Undefine.
18656         * lib/gc-gnulib.c (open, close): Undefine.
18657         * lib/getcwd.c (opendir, closedir): Undefine.
18658         * lib/glob.c (opendir, closedir): Undefine.
18659         * lib/javacomp.c (open, close): Undefine.
18660         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18661         * lib/openat-proc.c (open, close): Undefine.
18662         * lib/pagealign_alloc.c (open, close): Undefine.
18663         * lib/pipe.c (open, close): Undefine.
18664         * lib/progreloc.c (open, close): Undefine.
18665         * lib/savedir.c (opendir, closedir): Undefine.
18666         * lib/utime.c (open, close): Undefine.
18667         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18668
18669 2007-01-10  Bruno Haible  <bruno@clisp.org>
18670
18671         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18672
18673 2007-01-12  Eric Blake  <ebb9@byu.net>
18674
18675         Provide a robust <wchar.h>.  Further simplifications are now
18676         possible in other modules, but not included here.
18677         * modules/wchar: New module.
18678         * m4/wchar.m4: New file.
18679         * lib/wchar_.h: Likewise.
18680         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18681         of the new module.
18682         * MODULES.html.sh (Extended multibyte and wide character utilities):
18683         New section.
18684
18685 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18686
18687         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18688         to a reasonable default for memory allocation.
18689         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18690         file system that reports garbage st_size values for symlinks.
18691         Problem reported by Liyang Hu.
18692
18693 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18694
18695         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18696         Emacs .#* auto-save files).
18697
18698 2007-01-11  Bruno Haible  <bruno@clisp.org>
18699
18700         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18701         directory.
18702
18703 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18704
18705         Use @...@ consistently in lib/wctype_.h.
18706         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18707         on it being set to 1 or 0.
18708         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18709         go back to AC_SUBSTing it.
18710         * modules/wctype (Makefile.am): Undo previous change.
18711
18712 2007-01-10  Eric Blake  <ebb9@byu.net>
18713
18714         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18715         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18716         * modules/wctype (Makefile.am): Likewise.
18717         Reported by Chris McGuire.
18718
18719 2007-01-10  Jim Meyering  <jim@meyering.net>
18720
18721         fts.c: a small readability/maintainability improvement
18722         * lib/fts.c (fts_read): Make this code slightly more readable and
18723         maintainable by hoisting the "sp->fts_cur = p" assignments to
18724         immediately follow the statements that set P.  Derived from
18725         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18726
18727 2007-01-10  Eric Blake  <ebb9@byu.net>
18728
18729         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18730         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18732         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18733         Reported by Chris McGuire.
18734
18735 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18736
18737         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18738         in sed script.
18739
18740 2007-01-09  Bruno Haible  <bruno@clisp.org>
18741
18742         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18743         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18744         variables.
18745         (func_module): Use them.
18746
18747 2007-01-09  Bruno Haible  <bruno@clisp.org>
18748
18749         * modules/unistr/base: New file.
18750         * lib/unistr.h: New file.
18751
18752         * modules/unistr/u8-to-u16: New file.
18753         * lib/unistr/u8-to-u16.c: New file.
18754
18755         * modules/unistr/u8-to-u32: New file.
18756         * lib/unistr/u8-to-u32.c: New file.
18757
18758         * modules/unistr/u16-to-u8: New file.
18759         * lib/unistr/u16-to-u8.c: New file.
18760
18761         * modules/unistr/u16-to-u32: New file.
18762         * lib/unistr/u16-to-u32.c: New file.
18763
18764         * modules/unistr/u32-to-u8: New file.
18765         * lib/unistr/u32-to-u8.c: New file.
18766
18767         * modules/unistr/u32-to-u16: New file.
18768         * lib/unistr/u32-to-u16.c: New file.
18769
18770         * modules/unistr/u8-check: New file.
18771         * modules/unistr/u16-check: New file.
18772         * modules/unistr/u32-check: New file.
18773         * lib/unistr/u8-check.c: New file.
18774         * lib/unistr/u16-check.c: New file.
18775         * lib/unistr/u32-check.c: New file.
18776
18777         * modules/unistr/u8-chr: New file.
18778         * modules/unistr/u16-chr: New file.
18779         * modules/unistr/u32-chr: New file.
18780         * lib/unistr/u8-chr.c: New file.
18781         * lib/unistr/u16-chr.c: New file.
18782         * lib/unistr/u32-chr.c: New file.
18783
18784         * modules/unistr/u8-cmp: New file.
18785         * modules/unistr/u16-cmp: New file.
18786         * modules/unistr/u32-cmp: New file.
18787         * lib/unistr/u8-cmp.c: New file.
18788         * lib/unistr/u16-cmp.c: New file.
18789         * lib/unistr/u32-cmp.c: New file.
18790
18791         * modules/unistr/u8-cpy: New file.
18792         * modules/unistr/u16-cpy: New file.
18793         * modules/unistr/u32-cpy: New file.
18794         * lib/unistr/u8-cpy.c: New file.
18795         * lib/unistr/u16-cpy.c: New file.
18796         * lib/unistr/u32-cpy.c: New file.
18797         * lib/unistr/u-cpy.h: New file.
18798
18799         * modules/unistr/u8-cpy-alloc: New file.
18800         * modules/unistr/u16-cpy-alloc: New file.
18801         * modules/unistr/u32-cpy-alloc: New file.
18802         * lib/unistr/u8-cpy-alloc.c: New file.
18803         * lib/unistr/u16-cpy-alloc.c: New file.
18804         * lib/unistr/u32-cpy-alloc.c: New file.
18805         * lib/unistr/u-cpy-alloc.h: New file.
18806
18807         * modules/unistr/u8-endswith: New file.
18808         * modules/unistr/u16-endswith: New file.
18809         * modules/unistr/u32-endswith: New file.
18810         * lib/unistr/u8-endswith.c: New file.
18811         * lib/unistr/u16-endswith.c: New file.
18812         * lib/unistr/u32-endswith.c: New file.
18813         * lib/unistr/u-endswith.h: New file.
18814
18815         * modules/unistr/u8-mblen: New file.
18816         * modules/unistr/u16-mblen: New file.
18817         * modules/unistr/u32-mblen: New file.
18818         * lib/unistr/u8-mblen.c: New file.
18819         * lib/unistr/u16-mblen.c: New file.
18820         * lib/unistr/u32-mblen.c: New file.
18821
18822         * modules/unistr/u8-mbtouc: New file.
18823         * modules/unistr/u16-mbtouc: New file.
18824         * modules/unistr/u32-mbtouc: New file.
18825         * lib/unistr/u8-mbtouc.c: New file.
18826         * lib/unistr/u16-mbtouc.c: New file.
18827         * lib/unistr/u32-mbtouc.c: New file.
18828
18829         * modules/unistr/u8-mbtouc-safe: New file.
18830         * modules/unistr/u16-mbtouc-safe: New file.
18831         * modules/unistr/u32-mbtouc-safe: New file.
18832         * lib/unistr/u8-mbtouc-safe.c: New file.
18833         * lib/unistr/u16-mbtouc-safe.c: New file.
18834         * lib/unistr/u32-mbtouc-safe.c: New file.
18835
18836         * modules/unistr/u8-move: New file.
18837         * modules/unistr/u16-move: New file.
18838         * modules/unistr/u32-move: New file.
18839         * lib/unistr/u8-move.c: New file.
18840         * lib/unistr/u16-move.c: New file.
18841         * lib/unistr/u32-move.c: New file.
18842         * lib/unistr/u-move.h: New file.
18843
18844         * modules/unistr/u8-next: New file.
18845         * modules/unistr/u16-next: New file.
18846         * modules/unistr/u32-next: New file.
18847         * lib/unistr/u8-next.c: New file.
18848         * lib/unistr/u16-next.c: New file.
18849         * lib/unistr/u32-next.c: New file.
18850
18851         * modules/unistr/u8-prev: New file.
18852         * modules/unistr/u16-prev: New file.
18853         * modules/unistr/u32-prev: New file.
18854         * lib/unistr/u8-prev.c: New file.
18855         * lib/unistr/u16-prev.c: New file.
18856         * lib/unistr/u32-prev.c: New file.
18857
18858         * modules/unistr/u8-set: New file.
18859         * modules/unistr/u16-set: New file.
18860         * modules/unistr/u32-set: New file.
18861         * lib/unistr/u8-set.c: New file.
18862         * lib/unistr/u16-set.c: New file.
18863         * lib/unistr/u32-set.c: New file.
18864         * lib/unistr/u-set.h: New file.
18865
18866         * modules/unistr/u8-startswith: New file.
18867         * modules/unistr/u16-startswith: New file.
18868         * modules/unistr/u32-startswith: New file.
18869         * lib/unistr/u8-startswith.c: New file.
18870         * lib/unistr/u16-startswith.c: New file.
18871         * lib/unistr/u32-startswith.c: New file.
18872         * lib/unistr/u-startswith.h: New file.
18873
18874         * modules/unistr/u8-stpcpy: New file.
18875         * modules/unistr/u16-stpcpy: New file.
18876         * modules/unistr/u32-stpcpy: New file.
18877         * lib/unistr/u8-stpcpy.c: New file.
18878         * lib/unistr/u16-stpcpy.c: New file.
18879         * lib/unistr/u32-stpcpy.c: New file.
18880         * lib/unistr/u-stpcpy.h: New file.
18881
18882         * modules/unistr/u8-stpncpy: New file.
18883         * modules/unistr/u16-stpncpy: New file.
18884         * modules/unistr/u32-stpncpy: New file.
18885         * lib/unistr/u8-stpncpy.c: New file.
18886         * lib/unistr/u16-stpncpy.c: New file.
18887         * lib/unistr/u32-stpncpy.c: New file.
18888         * lib/unistr/u-stpncpy.h: New file.
18889
18890         * modules/unistr/u8-strcat: New file.
18891         * modules/unistr/u16-strcat: New file.
18892         * modules/unistr/u32-strcat: New file.
18893         * lib/unistr/u8-strcat.c: New file.
18894         * lib/unistr/u16-strcat.c: New file.
18895         * lib/unistr/u32-strcat.c: New file.
18896         * lib/unistr/u-strcat.h: New file.
18897
18898         * modules/unistr/u8-strchr: New file.
18899         * modules/unistr/u16-strchr: New file.
18900         * modules/unistr/u32-strchr: New file.
18901         * lib/unistr/u8-strchr.c: New file.
18902         * lib/unistr/u16-strchr.c: New file.
18903         * lib/unistr/u32-strchr.c: New file.
18904
18905         * modules/unistr/u8-strcmp: New file.
18906         * modules/unistr/u16-strcmp: New file.
18907         * modules/unistr/u32-strcmp: New file.
18908         * lib/unistr/u8-strcmp.c: New file.
18909         * lib/unistr/u16-strcmp.c: New file.
18910         * lib/unistr/u32-strcmp.c: New file.
18911
18912         * modules/unistr/u8-strcpy: New file.
18913         * modules/unistr/u16-strcpy: New file.
18914         * modules/unistr/u32-strcpy: New file.
18915         * lib/unistr/u8-strcpy.c: New file.
18916         * lib/unistr/u16-strcpy.c: New file.
18917         * lib/unistr/u32-strcpy.c: New file.
18918         * lib/unistr/u-strcpy.h: New file.
18919
18920         * modules/unistr/u8-strcspn: New file.
18921         * modules/unistr/u16-strcspn: New file.
18922         * modules/unistr/u32-strcspn: New file.
18923         * lib/unistr/u8-strcspn.c: New file.
18924         * lib/unistr/u16-strcspn.c: New file.
18925         * lib/unistr/u32-strcspn.c: New file.
18926         * lib/unistr/u-strcspn.h: New file.
18927
18928         * modules/unistr/u8-strdup: New file.
18929         * modules/unistr/u16-strdup: New file.
18930         * modules/unistr/u32-strdup: New file.
18931         * lib/unistr/u8-strdup.c: New file.
18932         * lib/unistr/u16-strdup.c: New file.
18933         * lib/unistr/u32-strdup.c: New file.
18934         * lib/unistr/u-strdup.h: New file.
18935
18936         * modules/unistr/u8-strlen: New file.
18937         * modules/unistr/u16-strlen: New file.
18938         * modules/unistr/u32-strlen: New file.
18939         * lib/unistr/u8-strlen.c: New file.
18940         * lib/unistr/u16-strlen.c: New file.
18941         * lib/unistr/u32-strlen.c: New file.
18942         * lib/unistr/u-strlen.h: New file.
18943
18944         * modules/unistr/u8-strmblen: New file.
18945         * modules/unistr/u16-strmblen: New file.
18946         * modules/unistr/u32-strmblen: New file.
18947         * lib/unistr/u8-strmblen.c: New file.
18948         * lib/unistr/u16-strmblen.c: New file.
18949         * lib/unistr/u32-strmblen.c: New file.
18950
18951         * modules/unistr/u8-strmbtouc: New file.
18952         * modules/unistr/u16-strmbtouc: New file.
18953         * modules/unistr/u32-strmbtouc: New file.
18954         * lib/unistr/u8-strmbtouc.c: New file.
18955         * lib/unistr/u16-strmbtouc.c: New file.
18956         * lib/unistr/u32-strmbtouc.c: New file.
18957
18958         * modules/unistr/u8-strncat: New file.
18959         * modules/unistr/u16-strncat: New file.
18960         * modules/unistr/u32-strncat: New file.
18961         * lib/unistr/u8-strncat.c: New file.
18962         * lib/unistr/u16-strncat.c: New file.
18963         * lib/unistr/u32-strncat.c: New file.
18964         * lib/unistr/u-strncat.h: New file.
18965
18966         * modules/unistr/u8-strncmp: New file.
18967         * modules/unistr/u16-strncmp: New file.
18968         * modules/unistr/u32-strncmp: New file.
18969         * lib/unistr/u8-strncmp.c: New file.
18970         * lib/unistr/u16-strncmp.c: New file.
18971         * lib/unistr/u32-strncmp.c: New file.
18972
18973         * modules/unistr/u8-strncpy: New file.
18974         * modules/unistr/u16-strncpy: New file.
18975         * modules/unistr/u32-strncpy: New file.
18976         * lib/unistr/u8-strncpy.c: New file.
18977         * lib/unistr/u16-strncpy.c: New file.
18978         * lib/unistr/u32-strncpy.c: New file.
18979         * lib/unistr/u-strncpy.h: New file.
18980
18981         * modules/unistr/u8-strnlen: New file.
18982         * modules/unistr/u16-strnlen: New file.
18983         * modules/unistr/u32-strnlen: New file.
18984         * lib/unistr/u8-strnlen.c: New file.
18985         * lib/unistr/u16-strnlen.c: New file.
18986         * lib/unistr/u32-strnlen.c: New file.
18987         * lib/unistr/u-strnlen.h: New file.
18988
18989         * modules/unistr/u8-strpbrk: New file.
18990         * modules/unistr/u16-strpbrk: New file.
18991         * modules/unistr/u32-strpbrk: New file.
18992         * lib/unistr/u8-strpbrk.c: New file.
18993         * lib/unistr/u16-strpbrk.c: New file.
18994         * lib/unistr/u32-strpbrk.c: New file.
18995         * lib/unistr/u-strpbrk.h: New file.
18996
18997         * modules/unistr/u8-strrchr: New file.
18998         * modules/unistr/u16-strrchr: New file.
18999         * modules/unistr/u32-strrchr: New file.
19000         * lib/unistr/u8-strrchr.c: New file.
19001         * lib/unistr/u16-strrchr.c: New file.
19002         * lib/unistr/u32-strrchr.c: New file.
19003
19004         * modules/unistr/u8-strspn: New file.
19005         * modules/unistr/u16-strspn: New file.
19006         * modules/unistr/u32-strspn: New file.
19007         * lib/unistr/u8-strspn.c: New file.
19008         * lib/unistr/u16-strspn.c: New file.
19009         * lib/unistr/u32-strspn.c: New file.
19010         * lib/unistr/u-strspn.h: New file.
19011
19012         * modules/unistr/u8-strstr: New file.
19013         * modules/unistr/u16-strstr: New file.
19014         * modules/unistr/u32-strstr: New file.
19015         * lib/unistr/u8-strstr.c: New file.
19016         * lib/unistr/u16-strstr.c: New file.
19017         * lib/unistr/u32-strstr.c: New file.
19018         * lib/unistr/u-strstr.h: New file.
19019
19020         * modules/unistr/u8-strtok: New file.
19021         * modules/unistr/u16-strtok: New file.
19022         * modules/unistr/u32-strtok: New file.
19023         * lib/unistr/u8-strtok.c: New file.
19024         * lib/unistr/u16-strtok.c: New file.
19025         * lib/unistr/u32-strtok.c: New file.
19026         * lib/unistr/u-strtok.h: New file.
19027
19028         * modules/unistr/u8-uctomb: New file.
19029         * modules/unistr/u16-uctomb: New file.
19030         * modules/unistr/u32-uctomb: New file.
19031         * lib/unistr/u8-uctomb.c: New file.
19032         * lib/unistr/u16-uctomb.c: New file.
19033         * lib/unistr/u32-uctomb.c: New file.
19034
19035         * MODULES.html.sh (Unicode string functions): Add the new modules.
19036
19037 2007-01-08  Bruno Haible  <bruno@clisp.org>
19038
19039         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
19040         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
19041         subdirectories.
19042
19043 2007-01-08  Karl Berry  <karl@gnu.org>
19044
19045         * doc/error.texi: mention that main() fns must set program_name
19046         when progname is used.
19047
19048 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19049
19050         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
19051         WCTYPE_H is empty, for the benefit of builds from non-distclean
19052         directories.  Problem reported by Eric Blake in
19053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
19054
19055 2007-01-08  Bruno Haible  <bruno@clisp.org>
19056
19057         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
19058         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
19059         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
19060         PROVIDE_CANONICALIZE_FILENAME_MODE.
19061         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
19062
19063 2007-01-08  Bruno Haible  <bruno@clisp.org>
19064
19065         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
19066         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
19067         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
19068         * lib/fts.c: Likewise.
19069         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
19070
19071 2006-12-25  Bruno Haible  <bruno@clisp.org>
19072
19073         * modules/utf8-ucs4-safe: New file.
19074         * lib/utf8-ucs4-safe.h: New file.
19075         * lib/unistr/utf8-ucs4-safe.c: New file.
19076
19077         * modules/utf16-ucs4-safe: New file.
19078         * lib/utf16-ucs4-safe.h: New file.
19079         * lib/unistr/utf16-ucs4-safe.c: New file.
19080
19081         * MODULES.html.sh (Unicode string functions): Add the new modules.
19082
19083 2007-01-08  Bruno Haible  <bruno@clisp.org>
19084
19085         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
19086         (Depends-on): Add unitypes.
19087         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19088         (u8_mbtouc_aux): Move out to separate file.
19089         (u8_mbtouc): Use ucs4_t, uint8_t types.
19090         * lib/unistr/utf8-ucs4.c: New file.
19091
19092         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
19093         (Depends-on): Add unitypes.
19094         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
19095         (u16_mbtouc_aux): Move out to separate file.
19096         (u16_mbtouc): Use ucs4_t, uint16_t types.
19097         * lib/unistr/utf16-ucs4.c: New file.
19098
19099         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
19100         (Depends-on): Add unitypes.
19101         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
19102         (u8_uctomb_aux): Move out to separate file.
19103         (u8_uctomb): Use ucs4_t, uint8_t types.
19104         * lib/unistr/ucs4-utf8.c: New file.
19105
19106         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
19107         (Depends-on): Add unitypes.
19108         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
19109         (u16_uctomb_aux): Move out to separate file.
19110         (u16_uctomb): Use ucs4_t, uint16_t types.
19111         * lib/unistr/ucs4-utf16.c: New file.
19112
19113 2006-12-25  Bruno Haible  <bruno@clisp.org>
19114
19115         * modules/unitypes: New file.
19116         * lib/unitypes.h: New file.
19117         * MODULES.html.sh (func_all_modules): New section "Unicode string
19118         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
19119         this section. Add unitypes.
19120
19121 2007-01-08  Bruno Haible  <bruno@clisp.org>
19122
19123         Avoid variable names that conflict with those from libtool.
19124         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
19125         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
19126         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
19127         library_names_spec to acl_library_names_spec, hardcode_* to
19128         acl_hardcode_*.
19129         Reported by Ralf Wildenhues.
19130
19131 2007-01-08  Bruno Haible  <bruno@clisp.org>
19132
19133         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
19134         definition.
19135         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
19136         definition.
19137         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
19138         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
19139         definition.
19140         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
19141         definition.
19142         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
19143         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
19144         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
19145         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
19146         definition.
19147         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
19148         definition.
19149         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
19150         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
19151         GC_USE_<algorithm>.
19152         * lib/gc-libgcrypt.c: Likewise.
19153         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
19154         * modules/gc-arctwo (configure.ac): Likewise.
19155         * modules/gc-des (configure.ac): Likewise.
19156         * modules/gc-hmac-md5 (configure.ac): Likewise.
19157         * modules/gc-hmac-sha1 (configure.ac): Likewise.
19158         * modules/gc-md2 (configure.ac): Likewise.
19159         * modules/gc-md4 (configure.ac): Likewise.
19160         * modules/gc-md5 (configure.ac): Likewise.
19161         * modules/gc-random (configure.ac): Likewise.
19162         * modules/gc-rijndael (configure.ac): Likewise.
19163         * modules/gc-sha1 (configure.ac): Likewise.
19164
19165 2007-01-08  Bruno Haible  <bruno@clisp.org>
19166
19167         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
19168         macro definition.
19169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
19170         definition.
19171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
19172         definition.
19173         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
19174         * modules/fcntl-safer (configure.ac): Likewise.
19175         * modules/fopen-safer (configure.ac): Likewise.
19176         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
19177         GNULIB_FWRITEERROR macro definition.
19178
19179 2007-01-08  Bruno Haible  <bruno@clisp.org>
19180
19181         * m4/gnulib-common.m4: New file.
19182         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
19183         (func_get_filelist): Add m4/gnulib-common.m4.
19184
19185 2007-01-08  Bruno Haible  <bruno@clisp.org>
19186
19187         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
19188         command.
19189
19190 2007-01-08  Jim Meyering  <jim@meyering.net>
19191
19192         Use a more robust test for a "can't happen" condition.
19193         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
19194         narrowed the st_size value.  Presuming the "can't happen" condition
19195         is true, that narrowing could conceivably convert an invalid st_size
19196         value into a valid one.  Instead, use a change based on Matthew
19197         Woehlke's original patch.
19198
19199         Slight readability improvement: use an assert-like macro
19200         in place of literal "abort ()" uses.
19201         * lib/fts.c (fts_assert): Define.
19202         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
19203         Use this macro instead of a bare 'abort'.
19204
19205 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19206
19207         Don't worry about using IRIX 5.3's wctype.h broken definitions;
19208         simply work around them.
19209         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
19210         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
19211         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
19212         declaring.
19213         Don't bother to define as macros, since the standard doesn't require it.
19214         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
19215         longer worry about IRIX 5.3.
19216         (HAVE_WCTYPE_CTMP_BUG): Remove.
19217
19218 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19219
19220         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
19221         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
19222         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19223         Problems reported by Georg Schwarz for IRIX 5.3.
19224
19225         * gnulib-tool (autoconf_minversion): Take the maximum version number
19226         found, not the minimum.  Problem reported by James Youngman.
19227
19228 2007-01-03  Karl Berry  <karl@gnu.org>
19229
19230         * doc/error.texi: new file, explaining interaction with progname.
19231         * doc/gnulib.texi: include it.  Update copyright.
19232
19233 2007-01-03  Simon Josefsson  <simon@josefsson.org>
19234
19235         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
19236         AC_CANONICAL_HOST, to improve autobuild outputs.
19237
19238 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
19239             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19240
19241         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
19242         sockets, server sockets, and other file descriptors.  Count errors
19243         to compute the return value.  Reorder the code a bit to be easier
19244         to follow.  Don't set event bits that were not requested (except
19245         POLLERR and POLLHUP).
19246
19247 2007-01-01  Bruno Haible  <bruno@clisp.org>
19248
19249         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
19250
19251 2007-01-03  Jim Meyering  <jim@meyering.net>
19252
19253         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
19254
19255 2007-01-02  Bruno Haible  <bruno@clisp.org>
19256
19257         * modules/settime (Include): Require timespec.h.
19258         * modules/nanosleep (Include): Likewise.
19259
19260 2007-01-01  Bruno Haible  <bruno@clisp.org>
19261
19262         * gnulib-tool (func_emit_copyright_notice): Bump year.
19263         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
19264
19265 2007-01-01  Bruno Haible  <bruno@clisp.org>
19266
19267         Improve support for OpenBSD.
19268         * build-aux/config.rpath (libname_spec): Export.
19269         (library_names_spec): New variable. Export.
19270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
19271         library_names_spec from the config.rpath output. Locate shared library
19272         through the name pattern in library_names_spec.
19273
19274 2007-01-01  Eric Blake  <ebb9@byu.net>
19275
19276         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
19277
19278 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19279
19280         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
19281         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
19282         assume the C locale, and avoid an "eval" that could cause trouble.
19283         Problem with SORT reported by Bob Proulx.
19284
19285         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
19286         Define.  Trivial patch from Henning Nielsen Lund, originally
19287         sent to bug-grep@gnu.org today.
19288
19289 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19290
19291         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
19292         struct stat.  Problem reported by Henning Nielsen Lund.
19293         * lib/acl.c: Include acl.h first, to check interface.  Don't
19294         bother to include sys/types.h and sys/stat.h again.
19295
19296 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19297
19298         Import the following change from libc; problem reported by
19299         Sven Verdoolaege.
19300
19301         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
19302
19303         [BZ #1373]
19304         * lib/argp.h: Remove __NTH for __argp_usage inline function.
19305
19306 2006-12-28  Jim Meyering  <jim@meyering.net>
19307
19308         * build-aux/announce-gen: Do not assume that the package
19309         builds any of tar.gz, tar.bz2, and .xdelta files.
19310         Suggestion from Simon Josefsson.
19311
19312 2006-12-28  Simon Josefsson  <simon@josefsson.org>
19313
19314         * modules/announce-gen: New file.
19315
19316 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19317
19318         * lib/mbchar.h: Just include <wctype.h>; the wctype module
19319         handles its gotchas now.
19320         * lib/mbswidth.c: Likewise.
19321         * lib/wcwidth.h: Likewise.
19322         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
19323         and iswcntrl; the wctype module does this stuff now.
19324         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19326         * modules/mbchar (Depends-on): Add wctype.
19327         * modules/mbswidth (Depends-on): Likewise.
19328         * modules/wcwidth (Depends-on): Likewise.
19329
19330 2006-12-27  Eric Blake  <ebb9@byu.net>
19331
19332         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19333         module uses more than what <wctype.h> is required to provide.
19334
19335 2006-12-26  Eric Blake  <ebb9@byu.net>
19336
19337         * gnulib-tool (sed_extract_prog): Avoid space-tab.
19338
19339 2006-12-26  Eric Blake  <ebb9@byu.net>
19340
19341         * modules/absolute-header: New module.
19342         * modules/fcntl (Depends-on): Depend on it.
19343         * modules/inttypes (Depends-on): Likewise.
19344         * modules/stdint (Depends-on): Likewise.
19345         * modules/sys_stat (Depends-on): Likewise.
19346         * modules/wctype (Depends-on): Likewise.
19347         * MODULES.html.sh (Support for building libraries and
19348         executables): Document it.
19349
19350 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19351
19352         * gnulib-tool (SED): Remove, undoing previous change.
19353         The problem was that it broke coreutils on Solaris, because
19354         "sed --posix" leaked into a makefile.
19355         (sed): New alias, if 'alias' and GNU sed.
19356
19357 2006-12-24  Jim Meyering  <jim@meyering.net>
19358
19359         Work around an fchownat bug in glibc-2.4:
19360         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
19361         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
19362         in spite of the -P option.
19363         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
19364         New macros.
19365         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
19366         * modules/openat (Files): Add lib/fchownat.c.
19367         * lib/openat.c (fchownat): Don't define here.  Move to...
19368         * lib/fchownat.c: ...this new file.
19369
19370 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19371
19372         Fix bug reported by Bruno Haible in
19373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
19374         where quotearg.c didn't compile on Mac OS X 10.2 because it
19375         lacks <wchar.h> and wint_t.
19376         * lib/wctype_.h (__wctype_wint_t): New type.
19377         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
19378         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
19379         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
19380         Arg is now of type __wctype_wint_t, not wint_t.
19381         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
19382         substitute HAVE_WINT_T.
19383         * modules/wctype (Files): Add m4/wint_t.m4.
19384         (wctype.h): Substitute HAVE_WINT_T.
19385
19386 2006-12-23  Bruno Haible  <bruno@clisp.org>
19387
19388         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
19389
19390 2006-12-23  Bruno Haible  <bruno@clisp.org>
19391
19392         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
19393         S_ISLNK.
19394         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
19395         mingw.
19396
19397 2006-12-22  Bruno Haible  <bruno@clisp.org>
19398
19399         * lib/copy-file.c: Include acl.h.
19400         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
19401         Close the file descriptors only after being done with copy_acl.
19402         * modules/copy-file (Depends-on): Add acl.
19403
19404 2006-12-22  Bruno Haible  <bruno@clisp.org>
19405
19406         * gnulib-tool (SED): New variable.
19407         Use $SED instead of sed everywhere.
19408
19409 2006-12-22  Bruno Haible  <bruno@clisp.org>
19410
19411         * modules/no-c++: New file.
19412         * m4/no-c++.m4: New file.
19413         * MODULES.html.sh (Support for building libraries and executables):
19414         Add no-c++.
19415
19416 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19417
19418         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19419         Include <limits.h>, and use its INT_MAX to rewrite the
19420         j loop so that it does not overflow 'int'.  Problem reported by
19421         Ralf Wildenhues in
19422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19423         Play it safe by shifting left by 1 rather than multiplying by 2,
19424         as GCC is less likely to optimize this away when the value
19425         is signed (when it assumes overflow leads to undefined behavior).
19426         Also, don't assume time_t uses two's complement.
19427
19428 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         * MODULES.html.sh: New module wctype.
19431         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
19432         * lib/fnmatch.c: Don't bother to include <wchar.h> before
19433         <wctype.h>, since the new wctype module should fix this.
19434         * lib/quotearg.c: Include <wctype.h> unconditionally, since
19435         the wctype module should arrange for it.
19436         * lib/regex_internal.h: Likewise.
19437         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
19438         since the wctype module should handle this now.
19439         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
19440         * modules/fnmatch (Depends-on): Add wctype.
19441         * modules/quotearg (Depends-on): Likewise.
19442         * modules/regex (Depends-on): Likewise.
19443
19444 2006-12-19  Bruno Haible  <bruno@clisp.org>
19445
19446         * lib/strdup.h [C++]: Wrap definitions in extern "C".
19447         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
19448
19449 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19450
19451         * modules/savewd (Depends-on): Fix dependency on fcntl.
19452
19453 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19454
19455         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
19456         conforms to C99, rather than relying on the user's environment
19457         setting of STDINT_H.
19458
19459 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19460         and Eric Blake  <ebb9@byu.net>
19461
19462         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
19463         This is more consistent with the other defines here.
19464         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
19465         Port to z/OS.  Problem reported by Paul Gilmartin.
19466         Change local vars to use gl_ prefix rather than ac_.
19467         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
19468         with other defines.
19469         * modules/double-slash-root: New module.
19470         * modules/dirname (Files): Remove m4/double-slash-root.m4.
19471         (Depends-on): Add double-slash-root.
19472         * MODULES.html.sh (File system functions): Mention new module.
19473
19474 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
19475
19476         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
19477         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
19478         This is for the benefit of gzip, which doesn't do i18n.
19479
19480 2006-12-12  Jim Meyering  <jim@meyering.net>
19481
19482         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
19483         Reported by Andreas Schwab <schwab@suse.de>.
19484
19485 2006-12-12  Bruno Haible  <bruno@clisp.org>
19486
19487         Merge these changes.
19488         2006-09-05  Bruno Haible  <bruno@clisp.org>
19489         * lib/iconvme.c (iconv_string): No need to save and restore errno when
19490         iconv_alloc succeeded.
19491         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
19492         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
19493         test for " && dest " at the end - dest is always != NULL there. Call
19494         iconv with 4xNULL arguments initially, to reset the state. Call iconv
19495         with 2xNULL arguments, also to flush the state storage. Handle the
19496         IRIX iconv behaviour. Realloc the final result, to throw away unused
19497         memory.
19498
19499 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
19502         and fchmodat unconditionally, since glibc 2.4 has them.
19503         Problem reported by Arkadiusz Miskiewicz.
19504
19505 2006-12-10  Bruno Haible  <bruno@clisp.org>
19506
19507         * gnulib-tool (func_import): Show the include files only for those
19508         modules that are copied and specified.
19509         Reported by Karl Berry.
19510
19511 2006-12-08  Jim Meyering  <jim@meyering.net>
19512
19513         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
19514         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
19515
19516         * build-aux/announce-gen: Add two new options, both optional:
19517         --bootstrap-tools=TOOL_LIST
19518               a comma-separated list of tools, e.g.,
19519               autoconf,automake,bison,gnulib
19520         --gnulib-snapshot-date=DATE
19521               if gnulib is in the bootstrap tool list,
19522               then report this as the snapshot date.
19523               If not specified, use the current date/time.
19524               If you specify a date here, be sure it's UTC.
19525
19526 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19527
19528         * tests/test-argp-2.sh: Fix test to match actual output.
19529         (func_compare): Fix sed script to be portable.
19530
19531 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19532
19533         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
19534         workaround for this case.  It is not autoconfigured now; offhand
19535         it's hard to see how to autoconfigure it.
19536
19537 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19538
19539         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
19540         a directory that is about to be chowned.  Such a directory's
19541         initial file permissions should permit the owner only and this
19542         should not be changed until after the chown, since the group and
19543         other bits would be incorrect if they granted permission before
19544         the chown.
19545
19546         Fix porting problem for iswctype reported by Georg Schwarz in:
19547         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
19548         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
19549         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
19550         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
19551         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19552
19553 2006-12-03  Jim Meyering  <jim@meyering.net>
19554
19555         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
19556         p->fts_statp may not yet be defined.
19557         (fts_read): Instead, set it in the caller, once p->fts_statp is
19558         sure to be defined, and corresponds to a top-level directory.
19559         This bug made du -x fail.  Here's the coreutils test case:
19560         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
19561         Reported by Mike Frysinger.
19562
19563 2006-12-01  Jim Meyering  <jim@meyering.net>
19564
19565         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
19566         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
19567         Reported by Simon Josefsson.
19568
19569 2006-11-30  Jim Meyering  <jim@meyering.net>
19570
19571         * m4/warning.m4: Use the all-permissive copyright notice
19572         recommended by RMS (rather than LGPL).
19573         * m4/vararrays.m4: Likewise.
19574         * m4/flexmember.m4: Likewise.
19575
19576 2006-11-29  Bruno Haible  <bruno@clisp.org>
19577
19578         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19579         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
19580         using +=.
19581         Reported by Simon Josefsson <simon@josefsson.org>.
19582
19583 2006-11-28  James Youngman <jay@gnu.org>
19584
19585         * README: Advise users that they might find the bug-gnulib@gnu.org
19586         and autotools-announce@gnu.org mailing lists useful.
19587
19588 2006-11-28  Bruno Haible  <bruno@clisp.org>
19589
19590         * m4/ptrdiff_max.m4: Remove file.
19591
19592 2006-11-21  Bruno Haible  <bruno@clisp.org>
19593
19594         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19595         _AC_COMPUTE_INT.
19596         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19597         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19598         _AC_COMPUTE_INT.
19599         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19600         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19601         _AC_COMPUTE_INT.
19602         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19603
19604 2006-11-28  Jim Meyering  <jim@meyering.net>
19605
19606         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19607         warning from "gcc -Wshadow" about shadowing the builtin.
19608
19609 2006-11-27  Bruno Haible  <bruno@clisp.org>
19610
19611         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19612         _AC_COMPUTE_INT.
19613         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19614
19615 2006-11-27  Bruno Haible  <bruno@clisp.org>
19616             Paul Eggert  <eggert@cs.ucla.edu>
19617
19618         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19619
19620 2006-11-26  Bruno Haible  <bruno@clisp.org>
19621
19622         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19623         noinst_LTLIBRARIES.
19624
19625 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19626             Bruno Haible  <bruno@clisp.org>
19627
19628         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19629         if compiling with "gcc -ansi".
19630
19631 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19632
19633         Fix some incompatibilities with gcc -ansi -pedantic.
19634         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19635         if compiling pedantically with GCC, unless it's C99 or later.
19636         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19637         it mishandles gcc -ansi -pedantic as well.
19638         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19639         if gcc -pedantic.
19640         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19641         initializers for struct if -pedantic, unless it's C99 or later.
19642
19643 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19644
19645         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19646         Don't close an fd more than once. Identical atimes indicate
19647         success, not failure.
19648
19649 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19650
19651         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19652
19653 2006-11-23  Jim Meyering  <jim@meyering.net>
19654
19655         * build-aux/announce-gen: New file.  From coreutils.
19656
19657 2006-11-22  Jim Meyering  <jim@meyering.net>
19658
19659         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19660         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19661         (fts_read): Use a temporary to narrow the overused st_size member
19662         before using it in a switch statement.  Reported by Matthew Woehlke.
19663
19664         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19665         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19666
19667 2006-11-20  Bruno Haible  <bruno@clisp.org>
19668
19669         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19670         changequote instead of pairs of brackets.
19671         Reported by Andreas Schwab <schwab@suse.de>.
19672
19673 2006-11-21  Jim Meyering  <jim@meyering.net>
19674
19675         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19676         so as to remain compatible with older compilers.
19677         Patch from Michael Deutschmann.
19678
19679 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         * MODULES.html.sh (File system functions): Add openat.
19682
19683         * lib/openat.h (rpl_fstatat): New macro, if
19684         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19685         (fstatat): Define to rpl_fstatat under the same conditions,
19686         unless COMPILING_FSTATAT.
19687         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19688         seems to have the bug.
19689         * lib/fstatat.c: New file.
19690         * modules/openat (Files): Add it.
19691
19692 2006-11-20  Bruno Haible  <bruno@clisp.org>
19693
19694         * Makefile: New file.
19695
19696 2006-11-20  Jim Meyering  <jim@meyering.net>
19697
19698         The beginnings of syntax-related checks for gnulib.
19699         * lib/Makefile: New file.
19700         * lib/t-idcache: New script.  Ensure that the two halves of
19701         idcache.c stay in sync.
19702
19703         * lib/idcache.c: Adjust comments in user- and group- portions to
19704         be more accurate, and to be consistent with one another.
19705
19706 2006-11-20  Jim Meyering  <jim@meyering.net>
19707
19708         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19709         continue using the flexible array member (thus, this module performs
19710         half as many malloc calls), with the addition that...
19711         (getgroup, getuser): Consistently record a non-match via an empty
19712         "name" string, and map an empty string match to a NULL return value.
19713         * modules/idcache (Depends-on): Re-add flexmember.
19714
19715         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19716         (getuidbyname, getgroup, getgidbyname): Likewise.
19717
19718         Use cleaner syntax: NULL rather than 0.
19719         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19720
19721 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19722
19723         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19724         It mishandled the case where the group was missing.
19725         Problem reported by Greg Schafer.
19726         * modules/idcache: Likewise.
19727
19728 2006-11-18  Jim Meyering  <jim@meyering.net>
19729
19730         * check-module (%exempt_header): Add exception for some
19731         conditionally-included headers.
19732
19733         * modules/i-ring (Depends-on): Add verify.
19734         (License): Change to LGPL.
19735
19736 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19737
19738         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19739         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19740         and inttostr.h.  Use snprintf rather than uinttostr, so that
19741         LGPLed code doesn't depend on GPLed.
19742
19743 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         * modules/inline (License): Change from GPL to LGPL.
19746
19747 2006-11-17  Jim Meyering  <jim@meyering.net>
19748
19749         * modules/d-type (License): Switch to LGPL.
19750
19751 2006-11-15  Bruno Haible  <bruno@clisp.org>
19752
19753         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19754
19755 2006-11-15  Eric Blake  <ebb9@byu.net>
19756
19757         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19758         the module dependency.
19759
19760 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19761             Bruno Haible  <bruno@clisp.org>
19762
19763         * gnulib-tool (func_create_testdir): Add license consistency check.
19764
19765 2006-11-15  Eric Blake  <ebb9@byu.net>
19766
19767         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19768         random "(cached)" in configure output.
19769
19770 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19771
19772         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19773         test for conforming inttypes.h is both announced and cached.
19774
19775         * MODULES.html.sh (seen_modules, seen_files): New variables.
19776         (func_module): Rewrite to use a few less gnulib-tool and sed
19777         invocations.  Avoid a couple of quadratic algorithms for ...
19778         (missed_modules, missed_files): ... these, with ...
19779         (func_append, func_tmpdir): ... these new functions, from
19780         gnulib-tool.  Analogously, install traps for cleanup.
19781
19782         * tests/test-gc.c (main): Remove unused variables.
19783         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19784
19785 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         * modules/inttostr (License): Change to LGPL.
19788
19789 2006-11-14  Eric Blake  <ebb9@byu.net>
19790
19791         * modules/tempname (License): Change to LGPL.
19792
19793 2006-11-14  Eric Blake  <ebb9@byu.net>
19794
19795         * doc/functions.texi (Function Portability): *printf functions on
19796         Cygwin now understand all POSIX size specifiers.
19797
19798 2006-11-14  Bruno Haible  <bruno@clisp.org>
19799
19800         * modules/c-ctype (License): Change to LGPL.
19801
19802 2006-11-12  Bruno Haible  <bruno@clisp.org>
19803
19804         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19805         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19806         for GNOME libraries, for which the include files are installed in
19807         subdirectories of $prefix/include.
19808
19809 2006-11-12  Bruno Haible  <bruno@clisp.org>
19810
19811         * m4/lib-link.m4: Require at least autoconf-2.54.
19812         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19813         name to underscores for the --with option.
19814
19815 2006-11-13  Bruno Haible  <bruno@clisp.org>
19816
19817         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19818         the tests directory.
19819         Reported by Ralf Wildenhues.
19820
19821 2006-11-13  Bruno Haible  <bruno@clisp.org>
19822
19823         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19824         (func_emit_initmacro_end): Undo the override here.
19825         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19826         Works around the famous automake error in coreutils.
19827
19828 2006-11-13  Eric Blake  <ebb9@byu.net>
19829
19830         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19831         element, not its node.
19832
19833 2006-11-12  Bruno Haible  <bruno@clisp.org>
19834
19835         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19836         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19837
19838 2006-11-12  Bruno Haible  <bruno@clisp.org>
19839
19840         * gnulib-tool: New option --local-symlink.
19841         (func_usage): Document it.
19842         (lsymbolic): New variable.
19843         (func_import, func_create_testdir): If --symlink was not specified,
19844         test whether --local-symlink was specified and the file comes from
19845         the local_gnulib_dir.
19846
19847 2006-11-12  Bruno Haible  <bruno@clisp.org>
19848
19849         * gnulib-tool (func_ln): New function.
19850         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19851
19852 2006-11-12  Bruno Haible  <bruno@clisp.org>
19853
19854         Finish support for source files in subdirectories.
19855         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19856         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19857         AUTOMAKE_OPTIONS.
19858         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19859
19860 2006-11-12  Bruno Haible  <bruno@clisp.org>
19861
19862         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19863         EXTRA_lib_SOURCES augmentation.
19864         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19865
19866 2006-11-12  Jim Meyering  <jim@meyering.net>
19867
19868         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19869         file descriptors.  This also averts a failure on systems with
19870         native openat support when a traversed directory lacks "x" access.
19871         * lib/fts_.h: Include "i-ring.h"
19872         (struct FTS) [fts_fd_ring]: New member.
19873         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19874         (FCHDIR): Add parentheses.
19875         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19876         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19877         When descending, rather than simply closing the previous
19878         fts_cwd_fd value, push that file descriptor onto the ring.
19879         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19880         (fts_open): Initialize the new fd_ring member.
19881         (fts_close): Clear the ring.
19882         (fts_safe_changedir): When possible, use our new fd_ring to skip
19883         the diropen and fstat and dev/ino comparison that would normally
19884         accompany a virtual `chdir ("..")'.
19885
19886         * modules/fts (Depends-on): Add i-ring.
19887         * modules/i-ring: New module.
19888         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19889         * m4/i-ring.m4: New file.
19890
19891 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19892
19893         * gnulib-tool (func_create_testdir): Fix replacement of
19894         `build-aux' in configure.ac.  Run autotools in gltests
19895         subdirectory.
19896         (func_create_testdir, func_create_megatestdir, test): There is
19897         no need for '--force' in most autotool invocations in a new
19898         tree.  Actually fail the whole test if any of the tools, or the
19899         configure or make stages fail.
19900
19901         Sync from Automake.
19902         * build-aux/gnupload: Revert last change.  Add pointer to upload
19903         instructions of the GNU Maintenance Instructions.
19904         Suggestion by Karl Berry.
19905
19906 2006-11-10  Jim Meyering  <jim@meyering.net>
19907
19908         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19909
19910 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19911
19912         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19913         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19914         (bind_textdomain_codeset) [! ENABLE_NLS]:
19915         Evaluate all the arguments.  That way, callers get compatible behavior
19916         if the arguments have side effects.  Also, it avoids some GCC
19917         diagnostics in some cases; Joel E. Denny reported problems when Bison
19918         was configured with --enable-gcc-warnigs.
19919
19920 2006-11-10  Jim Meyering  <jim@meyering.net>
19921
19922         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19923         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19924         account.
19925
19926 2006-11-10  Jim Meyering  <jim@meyering.net>
19927
19928         * modules/inline: New file/module.
19929         * modules/xalloc (Files): Remove m4/inline.m4.
19930         (Depends-on): Add inline, instead.
19931         * modules/oset: Likewise.
19932         * modules/list: Likewise.
19933
19934 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19935
19936         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19937         Problem reported by Matthew Woehlke.
19938
19939 2006-11-09  Bruno Haible  <bruno@clisp.org>
19940
19941         * lib/tempname.c (gen_tempname): Remove variant that invokes
19942         __gen_tempname.
19943         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19944         __gen_tempname.
19945
19946 2006-11-08  Bruno Haible  <bruno@clisp.org>
19947
19948         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19949         to 'yes' instead of 'cross-compiling'.
19950
19951 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19952
19953         * lib/quotearg.h (quotearg_free): New decl.
19954         * lib/quotearg.c (quotearg_free): New function.
19955         (slot0, nslots, slotvec0, slotvec):
19956         Now file-scope so that quotearg_free can get at them.
19957
19958 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19959
19960         Sync from Automake.
19961         * build-aux/gnupload: Add missing 'gnu' to example URL.
19962         Report by Karl Berry.
19963
19964 2006-11-08  Bruno Haible  <bruno@clisp.org>
19965
19966         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19967         Suggested by Paul Eggert.
19968
19969 2006-11-08  Jim Meyering  <jim@meyering.net>
19970
19971         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19972         It's already included if !_LIBC.
19973         (fts_safe_changedir): Add a comment.
19974
19975 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19978         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19979         Matthew Woehlke.
19980
19981         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19982         definitions up, to avoid colliding with change below.
19983         (static_inline) [HAVE_INLINE]: New macro.
19984         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19985         Provide extern decls when !HAVE_INLINE.  Do not define unless
19986         static_inline is defined, either by us or by xmalloc.c.  Use
19987         static_inline rather than static inline.
19988         (XCALLOC): Optimize sizeof(T) = 1 case.
19989         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19990
19991 2006-11-07  Bruno Haible  <bruno@clisp.org>
19992
19993         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19994         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19995         AC_C_INLINE.
19996         * modules/xalloc (Files): Add m4/inline.m4.
19997
19998 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19999
20000         * README: Fix typo.
20001         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
20002         (Miscellanous Notes): ...from this.
20003
20004 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20005
20006         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20007         Mention that offsetof should be used instead of sizeof.
20008         From Bruno Haible.
20009
20010 2006-11-07  Bruno Haible  <bruno@clisp.org>
20011
20012         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
20013
20014 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20015
20016         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20017         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
20018         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20019         (gl_tree_add_before, gl_tree_add_after):
20020         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
20021         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
20022         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20023         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
20024         (gl_linked_add_after, gl_linked_add_at): Likewise.
20025         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
20026         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
20027         (gl_tree_add_before, gl_tree_add_after): Likewise.
20028         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
20029         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
20030         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20031
20032 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20033
20034         * lib/gl_oset.h: Use C comment style, not C++ comment style.
20035
20036 2006-11-06  Bruno Haible  <bruno@clisp.org>
20037
20038         * m4/inline.m4: New file.
20039         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
20040         * modules/list (Files): Add m4/inline.m4.
20041         * modules/oset (Files): Likewise.
20042
20043 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20044
20045         * lib/idcache.c: Include <stddef.h>, for offsetof.
20046         (struct userid.name): Change from char * to a flexible array member.
20047         All uses changed.
20048         * modules/idcache (Depends-on): Add flexmember.
20049
20050         * MODULES.html.sh (Core language properties): New module flexmember.
20051         * modules/flexmember, m4/flexmember.m4: New files.
20052
20053         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
20054         inline functions that are identical with the old xnmalloc_inline,
20055         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
20056         that we can avoid some unnecessary integer multiplications and
20057         divisions in the common case where the element size is known at
20058         compile time.
20059         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
20060         needed.
20061         (xnboundedmalloc): Remove.
20062         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
20063         arguments, for consistency with rest of this header.
20064         (xcharalloc): Rewrite using XNMALLOC.
20065         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
20066         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
20067         versions have been moved to lib/xalloc.h and renamed to be the
20068         non-*_inline versions.
20069         (xmalloc, xrealloc): Implement without reference to the xnmalloc
20070         and xnrealloc functions, since those functions are now inline and
20071         now call us.
20072         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
20073         renaming described above.
20074         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
20075         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
20076         captures the dependency in AC_C_INLINE.
20077
20078         New module canonicalize-lgpl, proposed by Charles Wilson in
20079         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
20080         with a few small changes afterwards.
20081         * MODULES.html.sh (File system functions): New module
20082         canonicalize-lgpl.
20083         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
20084         and canonicalize_file_name.
20085         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
20086         * modules/canonicalize-lgpl: New files.
20087
20088 2006-11-05  Bruno Haible  <bruno@clisp.org>
20089
20090         * gnulib-tool (func_import, func_create_testdir): Create directories
20091         also for files in subdirectories of lib/.
20092
20093 2006-11-05  Bruno Haible  <bruno@clisp.org>
20094
20095         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
20096         ANSI C compliant.
20097
20098 2006-11-03  Bruno Haible  <bruno@clisp.org>
20099
20100         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
20101         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
20102         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
20103         (xnboundedmalloc): New inline function.
20104         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
20105         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
20106         xmalloc.
20107         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
20108         xmalloc.
20109         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
20110         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
20111         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
20112         xmalloc.
20113         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20114         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
20115         xmalloc.
20116         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
20117         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20118         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
20119         xmalloc.
20120         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
20121         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
20122         gl_tree_add_after): Use XMALLOC instead of xmalloc.
20123         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
20124         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
20125         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
20126         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
20127
20128 2006-11-03  Bruno Haible  <bruno@clisp.org>
20129
20130         * lib/c-ctype.h [C++]: Define functions without name mangling.
20131         * lib/fwriteerror.h [C++]: Likewise.
20132         * lib/gcd.h [C++]: Likewise.
20133         * lib/linebreak.h [C++]: Likewise.
20134
20135 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20136
20137         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
20138         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
20139         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
20140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20141         Check for functions and headers just once.
20142         Check for declaration of canonicalize_file_name.
20143         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
20144
20145 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20146
20147         * gnulib-tool (func_import): Fix typo in actioncmd.
20148
20149 2006-11-02  Bruno Haible  <bruno@clisp.org>
20150
20151         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
20152         newline sequence in the Makefile.am snippet as a space, like "make"
20153         does.
20154         Reported by Roger Persson <perrog@gmail.com>.
20155
20156 2006-11-01  Bruno Haible  <bruno@clisp.org>
20157
20158         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
20159         already declared in <string.h>.
20160         * lib/strcase.h (strncasecmp): Don't declare it if yes.
20161
20162 2006-11-01  Bruno Haible  <bruno@clisp.org>
20163
20164         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
20165         * lib/strcase.h: Include <string.h>.
20166         (strcasecmp): Define to rpl_strcasecmp here.
20167
20168 2006-11-01  Bruno Haible  <bruno@clisp.org>
20169
20170         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
20171
20172 2006-11-01  Eric Blake  <ebb9@byu.net>
20173
20174         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
20175
20176         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
20177
20178 2006-10-29  Bruno Haible  <bruno@clisp.org>
20179
20180         Make it compile in C++ mode.
20181         * lib/full-write.c (full_rw): Add a cast.
20182
20183 2006-11-01  Bruno Haible  <bruno@clisp.org>
20184
20185         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
20186         be POSIX compliant.
20187         Reported by Roger Persson <perrog@gmail.com>.
20188
20189 2006-11-01  Eric Blake  <ebb9@byu.net>
20190
20191         * lib/getopt_.h: Fix comments.
20192
20193 2006-10-31  Eric Blake  <ebb9@byu.net>
20194
20195         * modules/tmpdir (Depends-on): Add sys_stat.
20196         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
20197         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
20198         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
20199         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
20200         tempname.
20201
20202 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
20203
20204         Avoid some C++ diagnostics reported by Bruno Haible.
20205         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
20206         xmalloc.
20207         (quotearg_alloc): Use xcharalloc rather than xmalloc.
20208         (struct slotvec): Move to top level.
20209         (quotearg_n_options): Rewrite to avoid xmalloc.
20210         * lib/xalloc.h (xcharalloc): New function.
20211         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
20212         [defined __cplusplus]: Add function template that provides result
20213         type propagation.  This part of the change is from Bruno Haible.
20214
20215 2006-10-29  Bruno Haible  <bruno@clisp.org>
20216
20217         Make it compile in C++ mode.
20218         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
20219         * lib/strnlen1.c (strnlen1): Cast memchr result.
20220         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
20221         * lib/clean-temp.c (string_equals, string_hash): Add casts.
20222         (create_temp_dir): Rename local variable 'template'.
20223         (compile_csharp_using_sscli): Add cast.
20224         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
20225         * lib/findprog.c (find_in_path): Likewise.
20226         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
20227         * lib/wait-process.c (register_slave_subprocess): Likewise.
20228
20229 2006-10-22  Bruno Haible  <bruno@clisp.org>
20230
20231         * modules/tsearch: New file.
20232         * lib/tsearch.h: New file.
20233         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
20234         * m4/tsearch.m4: New file.
20235         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
20236
20237 2006-10-29  Eric Blake  <ebb9@byu.net>
20238
20239         * lib/arcfour.c: Assume config.h.
20240         * lib/arctwo.c: Likewise.
20241         * lib/base64.c: Likewise.
20242         * lib/check-version.c: Likewise.
20243         * lib/crc.c: Likewise.
20244         * lib/des.c: Likewise.
20245         * lib/gc-gnulib.c: Likewise.
20246         * lib/gc-libgcrypt.c: Likewise.
20247         * lib/gc-pbkdf2-sha1.c: Likewise.
20248         * lib/getaddrinfo.c: Likewise.
20249         * lib/getdelim.c: Likewise.
20250         * lib/getline.c: Likewise.
20251         * lib/hmac-md5.c: Likewise.
20252         * lib/hmac-sha1.c: Likewise.
20253         * lib/iconvme.c: Likewise.
20254         * lib/md2.c: Likewise.
20255         * lib/md4.c: Likewise.
20256         * lib/memxor.c: Likewise.
20257         * lib/read-file.c: Likewise.
20258         * lib/readline.c: Likewise.
20259         * lib/rijndael-alg-fst.c: Likewise.
20260         * lib/rijndael-api-fst.c: Likewise.
20261         * lib/xgetdomainname.c: Likewise.
20262
20263 2006-10-28  Eric Blake  <ebb9@byu.net>
20264
20265         * lib/xstrndup.c: Assume config.h.
20266
20267 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20268
20269         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
20270         stat-macros.h is now for our own macros, whereas stat_h is for
20271         macros in the <sys/stat.h> name space.
20272         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
20273         (STAT_MACROS_H): Remove.
20274         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
20275         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
20276         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
20277         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
20278         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
20279         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
20280         Move these macros to ...
20281         * lib/stat_.h: here.  Don't include stat-macros.h.
20282         * lib/canonicalize.c: Don't include stat-macros.h.
20283         * lib/chown.c: Likewise.
20284         * lib/euidaccess.c: Likewise.
20285         * lib/file-type.c: Likewise.
20286         * lib/filemode.c: Likewise.
20287         * lib/glob.c: Likewise.
20288         * lib/isapipe.c: Likewise.
20289         * lib/lchown.c: Likewise.
20290         * lib/lstat.c: Likewise.
20291         * lib/mkdir-p.c: Likewise.
20292         * lib/rmdir.c: Likewise.
20293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
20294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
20295         unless mkdir isn't declared, to speed up 'configure'.
20296         Always create sys/stat.h, since it's unlikely any real sys/stat.h
20297         would define all the S_* symbols.
20298         * modules/canonicalize (Depends-on):
20299         Depend on sys_stat, not stat-macros.
20300         * modules/chown: Likewise.
20301         * modules/euidaccess: Likewise.
20302         * modules/filemode: Likewise.
20303         * modules/file-type: Likewise.
20304         * modules/glob: Likewise.
20305         * modules/isapipe: Likewise.
20306         * modules/lchown: Likewise.
20307         * modules/lstat: Likewise.
20308         * modules/mkancesdirs: Likewise.
20309         * modules/rmdir: Likewise.
20310         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
20311         * modules/modechange: Likewise.
20312         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
20313         (configure.ac): Remove gl_STAT_MACROS.
20314         * modules/sys_stat (Depends-on): Remove stat-macros.
20315
20316 2006-10-27  Bruno Haible  <bruno@clisp.org>
20317
20318         * m4/signed.m4: Remove file.
20319         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
20320         invocation.
20321         * modules/vasnprintf (Files): Remove m4/signed.m4.
20322
20323 2006-10-27  Bruno Haible  <bruno@clisp.org>
20324
20325         Update to GNU gettext 0.16.
20326         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20327         m4/inttypes-h.m4, m4/signed.m4.
20328         * m4/gettext.m4: Update to GNU gettext 0.16.
20329         * m4/intl.m4: New file, from GNU gettext.
20330         * m4/intldir.m4: New file, from GNU gettext.
20331         * config/srclist.txt: Update
20332
20333 2006-10-27  Eric Blake  <ebb9@byu.net>
20334
20335         * MODULES.html.sh: Document tempname.
20336         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20337         dependencies.
20338         (Files): Move lib/tempname.c...
20339         * modules/tempname: ...to this new module.
20340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20341         (gl_PREREQ_TEMPNAME): Move...
20342         * m4/tempname.m4: ...to this new file.
20343         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20344         * modules/sys_stat (Depends-on): Add stat-macros.
20345         * lib/stat_.h (includes): Pick up stat macros.
20346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20347         if stat macros are broken.
20348         * lib/tempname.c (includes): No need to include "stat-macros.h".
20349         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
20350         (direxists, __path_search) [!_LIBC]: Don't compile these in
20351         gnulib; the tmpdir module covers that.
20352         * lib/tempname.h: New file.
20353
20354 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20355
20356         * COPYING: Explain how gnulib-tool converts licence headers.
20357         Almost all wording by Eric Blake.
20358
20359 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20360
20361         * lib/mbchar.h (is_basic_table): Make read-only.
20362         * lib/mbchar.c (is_basic_table): Likewise.
20363         Reported by John Darrington.
20364
20365 2006-10-25  Bruno Haible  <bruno@clisp.org>
20366
20367         * lib/progname.h (set_program_name): Undefine before defining.
20368
20369 2006-10-25  Bruno Haible  <bruno@clisp.org>
20370
20371         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
20372         false for non-gcc C++ compilers.
20373         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20374
20375 2006-10-24  Bruno Haible  <bruno@clisp.org>
20376
20377         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
20378         iconv implementations like Irix iconv.
20379
20380 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20381
20382         * modules/vararrays: New file.
20383         * m4/vararrays.m4: New file, taken from diffutils.
20384         * MODULES.html.sh: New module vararrays.
20385
20386 2006-10-24  Karl Berry  <karl@gnu.org>
20387
20388         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
20389         Don't call GNU Unix.
20390
20391 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20392
20393         * users.txt: Add Libtool.
20394
20395         Sync from Libtool:
20396
20397         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20398
20399         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
20400         to gnulib's policy of including config.h unconditionally.
20401
20402 2006-10-24  Bruno Haible  <bruno@clisp.org>
20403
20404         * modules/wcwidth (Files): Add m4/wint_t.m4.
20405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
20406         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
20407
20408 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20409
20410         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
20411         to pacify GCC with some -W flags enabled.  Problem reported by
20412         Bruno Haible.
20413
20414 2006-10-24  Jim Meyering  <jim@meyering.net>
20415
20416         * MODULES.html.sh: Remove uinttostr.  It's not a module.
20417         Reported by Karl Berry.
20418
20419 2006-10-23  Bruno Haible  <bruno@clisp.org>
20420
20421         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20422
20423 2006-10-24  Bruno Haible  <bruno@clisp.org>
20424
20425         * lib/gl_list.h: Use C comment style, not C++ comment style.
20426
20427 2006-10-23  Eric Blake  <ebb9@byu.net>
20428
20429         * lib/getaddrinfo.c (includes): Add missing include.
20430
20431 2006-10-23  Bruno Haible  <bruno@clisp.org>
20432             Paul Eggert  <eggert@cs.ucla.edu>
20433
20434         Ability to rename obstack_free.
20435         * lib/obstack.h (__obstack_free): New macro. Declare instead of
20436         obstack_free.
20437         (obstack_free): Invoke the __obstack_free macro.
20438         * lib/obstack.c (obstack_free): Use __obstack_free macro.
20439
20440 2006-10-23  Bruno Haible  <bruno@clisp.org>
20441             Paul Eggert  <eggert@cs.ucla.edu>
20442
20443         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
20444         __argc, __argv from the declaration. (They are defined as macros on
20445         mingw.)
20446
20447 2006-10-22  Bruno Haible  <bruno@clisp.org>
20448
20449         * doc/gnulib-intro.texi: New file.
20450         * doc/gnulib.texi: Include it.
20451
20452 2006-10-21  Bruno Haible  <bruno@clisp.org>
20453
20454         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
20455         "Introduction", "Miscellanous Notes", "Particular Modules".
20456
20457 2006-10-21  Bruno Haible  <bruno@clisp.org>
20458
20459         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20460         Change mostlyclean-local rule to avoid sh syntax error from bash
20461         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
20462
20463 2006-10-23  Jim Meyering  <jim@meyering.net>
20464
20465         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
20466         in place of snprintf.
20467
20468         * modules/inttostr (Files): Add lib/uinttostr.c.
20469         * lib/uinttostr.c (inttostr): New file/function.
20470         * lib/inttostr.h (uinttostr): Declare.
20471         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
20472         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20473         Add uinttostr.
20474         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
20475
20476 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         * lib/canonicalize.c (ELOOP): Define if not already defined.
20479         Problem reported by Bruno Haible in
20480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
20481
20482 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20483
20484         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
20485         Problem reported by Perry Smith and Ville Laurikari.
20486
20487         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
20488         uses.
20489
20490 2006-10-19  Bruno Haible  <bruno@clisp.org>
20491
20492         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
20493         for mingw.
20494
20495 2006-10-19  Bruno Haible  <bruno@clisp.org>
20496
20497         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
20498         Needed for mingw.
20499
20500 2006-10-19  Bruno Haible  <bruno@clisp.org>
20501
20502         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
20503
20504 2006-10-19  Bruno Haible  <bruno@clisp.org>
20505
20506         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
20507         it.
20508
20509 2006-10-19  Bruno Haible  <bruno@clisp.org>
20510
20511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
20512         invocation.
20513
20514 2006-10-19  Bruno Haible  <bruno@clisp.org>
20515
20516         * gnulib-tool (func_create_testdir): Don't include ftruncate and
20517         mountlist by default.
20518
20519 2006-10-16  Bruno Haible  <bruno@clisp.org>
20520
20521         * lib/c-strstr.c: Include c-strstr.h.
20522
20523 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20524
20525         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
20526         in a slash.
20527
20528 2006-10-18  Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/lock.h [C++]: Wrap definitions in extern "C".
20531
20532 2006-10-18  Bruno Haible  <bruno@clisp.org>
20533
20534         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
20535         gl_LIBOBJS list.
20536
20537 2006-10-18  Bruno Haible  <bruno@clisp.org>
20538
20539         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
20540
20541 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20542
20543         * lib/xstrtol.h: Include gettext.h.
20544         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
20545         Problem reported by Eric Blake.
20546         * modules/xstrtol (Depends-on): Add gettext-h.
20547
20548 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
20549
20550         * lib/strftime.c (advance): New macro.
20551         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
20552         incomplete type, so you can't add 0 to it.  Problem and patch
20553         reported by Eelco Dolstra for dietlibc.
20554
20555 2006-10-18  Jim Meyering  <jim@meyering.net>
20556
20557         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
20558         type for a local, and rename it: s/up/user_proc/.
20559
20560 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
20561
20562         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
20563         READ_UTMP_USER_PROCESS.
20564         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
20565
20566 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20567
20568         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
20569         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
20570
20571 2006-10-17  Eric Blake  <ebb9@byu.net>
20572
20573         * lib/sigprocmask.c (sigprocmask): Fix typo.
20574
20575         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
20576
20577         * modules/clean-temp (Makefile.am): Don't add to make output...
20578         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
20579         config.h.
20580
20581 2006-10-17  Bruno Haible  <bruno@clisp.org>
20582
20583         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
20584         differently if DEFAULT_TEXT_DOMAIN is set.
20585
20586 2006-10-16  Bruno Haible  <bruno@clisp.org>
20587
20588         * lib/clean-temp.c: Include fwriteerror.h.
20589
20590 2006-10-16  Bruno Haible  <bruno@clisp.org>
20591
20592         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20593
20594 2006-10-16  Bruno Haible  <bruno@clisp.org>
20595
20596         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20597         * lib/sigprocmask.h: Include <sys/types.h>.
20598         (sigset_t): Use the system's definition if present.
20599
20600 2006-10-17  Eric Blake  <ebb9@byu.net>
20601
20602         * lib/xvasprintf.c (includes): Assume config.h.
20603         * lib/xasprintf.c (includes): Likewise.
20604
20605 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20606
20607         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20608         at least as wide as intmax_t.
20609
20610 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20611
20612         (Imported from Automake.)
20613         * build-aux/gnupload: Update to version 1.1 of directive file.
20614
20615 2006-10-16  Eric Blake  <ebb9@byu.net>
20616
20617         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20618         match Automake 1.10a.
20619
20620 2006-10-14  Bruno Haible  <bruno@clisp.org>
20621
20622         * modules/sigprocmask: New file.
20623         * lib/sigprocmask.h: New file.
20624         * lib/sigprocmask.c: New file.
20625         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20626         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20627         request sigprocmask.o.
20628         (gl_PREREQ_SIGPROCMASK): New macro.
20629         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20630         (Depends-on): Add sigprocmask.
20631         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20632         gt_SIGNALBLOCKING. Test for 'raise' only once.
20633         * lib/fatal-signal.c: Include sigprocmask.h.
20634         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20635         unblock_fatal_signals): Define always.
20636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20637         sigprocmask.
20638
20639 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         Sync from Automake.
20642         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20643         which incorrectly sets the mode of an existing destination
20644         directory.  In some cases the unpatched install-sh could do the
20645         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20646         system.  We hope this is rare in practice, but it's clearly worth
20647         fixing.  Problem reported by Alex Unleashed in
20648         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20649         Also, don't bother to check for -m bugs unless we're using -m;
20650         suggested by Stepan Kasal.
20651
20652 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20653
20654         Sync from Automake.
20655         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20656         `-c' flag, so they appear at the same position as in %FASTDEP%
20657         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20658         which ignores unknown options only after the first non-option.
20659         Bug report against M4 by Nelson H. F. Beebe.
20660
20661 2006-10-13  Jim Meyering  <jim@meyering.net>
20662
20663         Fix a bug in yesterday's change.
20664         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20665         p->fts_statp->st_dev would be used uninitialized.
20666         Ensures that we always call fts_stat on the very first entry.
20667         Miklos Szeredi reported that find -xdev stopped working.
20668
20669 2006-10-12  Bruno Haible  <bruno@clisp.org>
20670
20671         * gnulib-tool (func_get_automake_snippet): Append an automatically
20672         computed EXTRA_DIST augmentation.
20673         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20674         * modules/alloca-opt (Makefile.am): Likewise.
20675         * modules/allocsa (Makefile.am): Likewise.
20676         * modules/arcfour (Makefile.am): Likewise.
20677         * modules/arctwo (Makefile.am): Likewise.
20678         * modules/argmatch (Makefile.am): Likewise.
20679         * modules/argz (Makefile.am): Likewise.
20680         * modules/atexit (Makefile.am): Likewise.
20681         * modules/backupfile (Makefile.am): Likewise.
20682         * modules/byteswap (Makefile.am): Likewise.
20683         * modules/c-strtod (Makefile.am): Likewise.
20684         * modules/c-strtold (Makefile.am): Likewise.
20685         * modules/calloc (Makefile.am): Likewise.
20686         * modules/canon-host (Makefile.am): Likewise.
20687         * modules/canonicalize (Makefile.am): Likewise.
20688         * modules/chdir-long (Makefile.am): Likewise.
20689         * modules/chdir-safer (Makefile.am): Likewise.
20690         * modules/check-version (Makefile.am): Likewise.
20691         * modules/chown (Makefile.am): Likewise.
20692         * modules/cloexec (Makefile.am): Likewise.
20693         * modules/close-stream (Makefile.am): Likewise.
20694         * modules/closeout (Makefile.am): Likewise.
20695         * modules/crc (Makefile.am): Likewise.
20696         * modules/csharpexec (Makefile.am): Likewise.
20697         * modules/cycle-check (Makefile.am): Likewise.
20698         * modules/des (Makefile.am): Likewise.
20699         * modules/dev-ino (Makefile.am): Likewise.
20700         * modules/dirfd (Makefile.am): Likewise.
20701         * modules/dirname (Makefile.am): Likewise.
20702         * modules/dup2 (Makefile.am): Likewise.
20703         * modules/eealloc (Makefile.am): Likewise.
20704         * modules/error (Makefile.am): Likewise.
20705         * modules/euidaccess (Makefile.am): Likewise.
20706         * modules/exclude (Makefile.am): Likewise.
20707         * modules/exitfail (Makefile.am): Likewise.
20708         * modules/fcntl-safer (Makefile.am): Likewise.
20709         * modules/fcntl (Makefile.am): Likewise.
20710         * modules/file-type (Makefile.am): Likewise.
20711         * modules/fileblocks (Makefile.am): Likewise.
20712         * modules/filemode (Makefile.am): Likewise.
20713         * modules/filenamecat (Makefile.am): Likewise.
20714         * modules/fnmatch (Makefile.am): Likewise.
20715         * modules/fopen-safer (Makefile.am): Likewise.
20716         * modules/fpending (Makefile.am): Likewise.
20717         * modules/fprintftime (Makefile.am): Likewise.
20718         * modules/free (Makefile.am): Likewise.
20719         * modules/fsusage (Makefile.am): Likewise.
20720         * modules/ftruncate (Makefile.am): Likewise.
20721         * modules/fts (Makefile.am): Likewise.
20722         * modules/gc-arcfour (Makefile.am): Likewise.
20723         * modules/gc-des (Makefile.am): Likewise.
20724         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20725         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20726         * modules/gc-md4 (Makefile.am): Likewise.
20727         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20728         * modules/gc-sha1 (Makefile.am): Likewise.
20729         * modules/gc (Makefile.am): Likewise.
20730         * modules/getaddrinfo (Makefile.am): Likewise.
20731         * modules/getcwd (Makefile.am): Likewise.
20732         * modules/getdelim (Makefile.am): Likewise.
20733         * modules/getdomainname (Makefile.am): Likewise.
20734         * modules/getgroups (Makefile.am): Likewise.
20735         * modules/gethostname (Makefile.am): Likewise.
20736         * modules/gethrxtime (Makefile.am): Likewise.
20737         * modules/getline (Makefile.am): Likewise.
20738         * modules/getloadavg (Makefile.am): Likewise.
20739         * modules/getlogin_r (Makefile.am): Likewise.
20740         * modules/getndelim2 (Makefile.am): Likewise.
20741         * modules/getopt (Makefile.am): Likewise.
20742         * modules/getpagesize (Makefile.am): Likewise.
20743         * modules/getpass-gnu (Makefile.am): Likewise.
20744         * modules/getpass (Makefile.am): Likewise.
20745         * modules/getsubopt (Makefile.am): Likewise.
20746         * modules/gettime (Makefile.am): Likewise.
20747         * modules/gettimeofday (Makefile.am): Likewise.
20748         * modules/getugroups (Makefile.am): Likewise.
20749         * modules/getusershell (Makefile.am): Likewise.
20750         * modules/glob (Makefile.am): Likewise.
20751         * modules/group-member (Makefile.am): Likewise.
20752         * modules/hard-locale (Makefile.am): Likewise.
20753         * modules/hash (Makefile.am): Likewise.
20754         * modules/hmac-md5 (Makefile.am): Likewise.
20755         * modules/hmac-sha1 (Makefile.am): Likewise.
20756         * modules/human (Makefile.am): Likewise.
20757         * modules/idcache (Makefile.am): Likewise.
20758         * modules/imaxabs (Makefile.am): Likewise.
20759         * modules/imaxdiv (Makefile.am): Likewise.
20760         * modules/inet_ntop (Makefile.am): Likewise.
20761         * modules/inet_pton (Makefile.am): Likewise.
20762         * modules/intprops (Makefile.am): Likewise.
20763         * modules/inttostr (Makefile.am): Likewise.
20764         * modules/inttypes (Makefile.am): Likewise.
20765         * modules/isapipe (Makefile.am): Likewise.
20766         * modules/javaversion (Makefile.am): Likewise.
20767         * modules/lchmod (Makefile.am): Likewise.
20768         * modules/lchown (Makefile.am): Likewise.
20769         * modules/localcharset (Makefile.am): Likewise.
20770         * modules/long-options (Makefile.am): Likewise.
20771         * modules/lstat (Makefile.am): Likewise.
20772         * modules/malloc (Makefile.am): Likewise.
20773         * modules/mathl (Makefile.am): Likewise.
20774         * modules/mbchar (Makefile.am): Likewise.
20775         * modules/md2 (Makefile.am): Likewise.
20776         * modules/md4 (Makefile.am): Likewise.
20777         * modules/md5 (Makefile.am): Likewise.
20778         * modules/memcasecmp (Makefile.am): Likewise.
20779         * modules/memchr (Makefile.am): Likewise.
20780         * modules/memcmp (Makefile.am): Likewise.
20781         * modules/memcoll (Makefile.am): Likewise.
20782         * modules/memcpy (Makefile.am): Likewise.
20783         * modules/memmem (Makefile.am): Likewise.
20784         * modules/memmove (Makefile.am): Likewise.
20785         * modules/mempcpy (Makefile.am): Likewise.
20786         * modules/memrchr (Makefile.am): Likewise.
20787         * modules/memset (Makefile.am): Likewise.
20788         * modules/memxor (Makefile.am): Likewise.
20789         * modules/mkancesdirs (Makefile.am): Likewise.
20790         * modules/mkdir-p (Makefile.am): Likewise.
20791         * modules/mkdir (Makefile.am): Likewise.
20792         * modules/mkdtemp (Makefile.am): Likewise.
20793         * modules/mkstemp (Makefile.am): Likewise.
20794         * modules/mktime (Makefile.am): Likewise.
20795         * modules/modechange (Makefile.am): Likewise.
20796         * modules/mountlist (Makefile.am): Likewise.
20797         * modules/nanosleep (Makefile.am): Likewise.
20798         * modules/obstack (Makefile.am): Likewise.
20799         * modules/openat (Makefile.am): Likewise.
20800         * modules/pagealign_alloc (Makefile.am): Likewise.
20801         * modules/pathmax (Makefile.am): Likewise.
20802         * modules/physmem (Makefile.am): Likewise.
20803         * modules/poll (Makefile.am): Likewise.
20804         * modules/posixtm (Makefile.am): Likewise.
20805         * modules/posixver (Makefile.am): Likewise.
20806         * modules/putenv (Makefile.am): Likewise.
20807         * modules/quote (Makefile.am): Likewise.
20808         * modules/quotearg (Makefile.am): Likewise.
20809         * modules/raise (Makefile.am): Likewise.
20810         * modules/read-file (Makefile.am): Likewise.
20811         * modules/readline (Makefile.am): Likewise.
20812         * modules/readlink (Makefile.am): Likewise.
20813         * modules/readtokens (Makefile.am): Likewise.
20814         * modules/readutmp (Makefile.am): Likewise.
20815         * modules/realloc (Makefile.am): Likewise.
20816         * modules/regex (Makefile.am): Likewise.
20817         * modules/rename-dest-slash (Makefile.am): Likewise.
20818         * modules/rename (Makefile.am): Likewise.
20819         * modules/rijndael (Makefile.am): Likewise.
20820         * modules/rmdir (Makefile.am): Likewise.
20821         * modules/rpmatch (Makefile.am): Likewise.
20822         * modules/safe-read (Makefile.am): Likewise.
20823         * modules/safe-write (Makefile.am): Likewise.
20824         * modules/same-inode (Makefile.am): Likewise.
20825         * modules/same (Makefile.am): Likewise.
20826         * modules/save-cwd (Makefile.am): Likewise.
20827         * modules/savedir (Makefile.am): Likewise.
20828         * modules/setenv (Makefile.am): Likewise.
20829         * modules/settime (Makefile.am): Likewise.
20830         * modules/sha1 (Makefile.am): Likewise.
20831         * modules/sig2str (Makefile.am): Likewise.
20832         * modules/snprintf (Makefile.am): Likewise.
20833         * modules/stat-macros (Makefile.am): Likewise.
20834         * modules/stat-time (Makefile.am): Likewise.
20835         * modules/stdbool (Makefile.am): Likewise.
20836         * modules/stdint (Makefile.am): Likewise.
20837         * modules/stdlib-safer (Makefile.am): Likewise.
20838         * modules/stpcpy (Makefile.am): Likewise.
20839         * modules/stpncpy (Makefile.am): Likewise.
20840         * modules/strcase (Makefile.am): Likewise.
20841         * modules/strcasestr (Makefile.am): Likewise.
20842         * modules/strchrnul (Makefile.am): Likewise.
20843         * modules/strcspn (Makefile.am): Likewise.
20844         * modules/strdup (Makefile.am): Likewise.
20845         * modules/strerror (Makefile.am): Likewise.
20846         * modules/strftime (Makefile.am): Likewise.
20847         * modules/strndup (Makefile.am): Likewise.
20848         * modules/strnlen (Makefile.am): Likewise.
20849         * modules/strpbrk (Makefile.am): Likewise.
20850         * modules/strsep (Makefile.am): Likewise.
20851         * modules/strstr (Makefile.am): Likewise.
20852         * modules/strtod (Makefile.am): Likewise.
20853         * modules/strtoimax (Makefile.am): Likewise.
20854         * modules/strtok_r (Makefile.am): Likewise.
20855         * modules/strtol (Makefile.am): Likewise.
20856         * modules/strtoll (Makefile.am): Likewise.
20857         * modules/strtoul (Makefile.am): Likewise.
20858         * modules/strtoull (Makefile.am): Likewise.
20859         * modules/strtoumax (Makefile.am): Likewise.
20860         * modules/strverscmp (Makefile.am): Likewise.
20861         * modules/sys_socket (Makefile.am): Likewise.
20862         * modules/sys_stat (Makefile.am): Likewise.
20863         * modules/sysexits (Makefile.am): Likewise.
20864         * modules/time_r (Makefile.am): Likewise.
20865         * modules/timegm (Makefile.am): Likewise.
20866         * modules/timespec (Makefile.am): Likewise.
20867         * modules/tmpfile-safer (Makefile.am): Likewise.
20868         * modules/trim (Makefile.am): Likewise.
20869         * modules/unistd-safer (Makefile.am): Likewise.
20870         * modules/unlinkdir (Makefile.am): Likewise.
20871         * modules/unlocked-io (Makefile.am): Likewise.
20872         * modules/userspec (Makefile.am): Likewise.
20873         * modules/utime (Makefile.am): Likewise.
20874         * modules/utimecmp (Makefile.am): Likewise.
20875         * modules/utimens (Makefile.am): Likewise.
20876         * modules/vasnprintf (Makefile.am): Likewise.
20877         * modules/vasprintf (Makefile.am): Likewise.
20878         * modules/vsnprintf (Makefile.am): Likewise.
20879         * modules/xalloc (Makefile.am): Likewise.
20880         * modules/xgetcwd (Makefile.am): Likewise.
20881         * modules/xnanosleep (Makefile.am): Likewise.
20882         * modules/xreadlink (Makefile.am): Likewise.
20883         * modules/xstrtod (Makefile.am): Likewise.
20884         * modules/xstrtol (Makefile.am): Likewise.
20885         * modules/xstrtold (Makefile.am): Likewise.
20886         * modules/yesno (Makefile.am): Likewise.
20887         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20888
20889 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20890
20891         * modules/error (Makefile.am): Distribute files through
20892         EXTRA_DIST, not lib_SOURCES.
20893
20894 2006-10-12  Eric Blake  <ebb9@byu.net>
20895
20896         * modules/error (Makefile.am): Distribute files in /lib.
20897         * modules/obstack (Makefile.am): Likewise.
20898
20899 2006-10-12  Bruno Haible  <bruno@clisp.org>
20900
20901         * modules/acl (Makefile.am): Distribute all files in lib/ through
20902         EXTRA_DIST.
20903         * modules/arcfour (Makefile.am): Likewise.
20904         * modules/arctwo (Makefile.am): Likewise.
20905         * modules/argmatch (Makefile.am): Likewise.
20906         * modules/argz (Makefile.am): Likewise.
20907         * modules/atexit (Makefile.am): Likewise.
20908         * modules/backupfile (Makefile.am): Likewise.
20909         * modules/c-strtod (Makefile.am): Likewise.
20910         * modules/c-strtold (Makefile.am): Likewise.
20911         * modules/calloc (Makefile.am): Likewise.
20912         * modules/canon-host (Makefile.am): Likewise.
20913         * modules/canonicalize (Makefile.am): Likewise.
20914         * modules/chdir-long (Makefile.am): Likewise.
20915         * modules/chdir-safer (Makefile.am): Likewise.
20916         * modules/check-version (Makefile.am): Likewise.
20917         * modules/chown (Makefile.am): Likewise.
20918         * modules/cloexec (Makefile.am): Likewise.
20919         * modules/close-stream (Makefile.am): Likewise.
20920         * modules/closeout (Makefile.am): Likewise.
20921         * modules/crc (Makefile.am): Likewise.
20922         * modules/cycle-check (Makefile.am): Likewise.
20923         * modules/des (Makefile.am): Likewise.
20924         * modules/dirfd (Makefile.am): Likewise.
20925         * modules/dirname (Makefile.am): Likewise.
20926         * modules/dup2 (Makefile.am): Likewise.
20927         * modules/euidaccess (Makefile.am): Likewise.
20928         * modules/exclude (Makefile.am): Likewise.
20929         * modules/exitfail (Makefile.am): Likewise.
20930         * modules/fcntl-safer (Makefile.am): Likewise.
20931         * modules/file-type (Makefile.am): Likewise.
20932         * modules/fileblocks (Makefile.am): Likewise.
20933         * modules/filemode (Makefile.am): Likewise.
20934         * modules/filenamecat (Makefile.am): Likewise.
20935         * modules/fnmatch (Makefile.am): Likewise.
20936         * modules/fopen-safer (Makefile.am): Likewise.
20937         * modules/fpending (Makefile.am): Likewise.
20938         * modules/fprintftime (Makefile.am): Likewise.
20939         * modules/free (Makefile.am): Likewise.
20940         * modules/fsusage (Makefile.am): Likewise.
20941         * modules/ftruncate (Makefile.am): Likewise.
20942         * modules/fts (Makefile.am): Likewise.
20943         * modules/gc (Makefile.am): Likewise.
20944         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20945         * modules/getaddrinfo (Makefile.am): Likewise.
20946         * modules/getcwd (Makefile.am): Likewise.
20947         * modules/getdelim (Makefile.am): Likewise.
20948         * modules/getdomainname (Makefile.am): Likewise.
20949         * modules/getgroups (Makefile.am): Likewise.
20950         * modules/gethostname (Makefile.am): Likewise.
20951         * modules/gethrxtime (Makefile.am): Likewise.
20952         * modules/getline (Makefile.am): Likewise.
20953         * modules/getloadavg (Makefile.am): Likewise.
20954         * modules/getlogin_r (Makefile.am): Likewise.
20955         * modules/getopt (Makefile.am): Likewise.
20956         * modules/getpass (Makefile.am): Likewise.
20957         * modules/getpass-gnu (Makefile.am): Likewise.
20958         * modules/getsubopt (Makefile.am): Likewise.
20959         * modules/gettime (Makefile.am): Likewise.
20960         * modules/gettimeofday (Makefile.am): Likewise.
20961         * modules/getugroups (Makefile.am): Likewise.
20962         * modules/getusershell (Makefile.am): Likewise.
20963         * modules/glob (Makefile.am): Likewise.
20964         * modules/group-member (Makefile.am): Likewise.
20965         * modules/hard-locale (Makefile.am): Likewise.
20966         * modules/hash (Makefile.am): Likewise.
20967         * modules/hmac-md5 (Makefile.am): Likewise.
20968         * modules/hmac-sha1 (Makefile.am): Likewise.
20969         * modules/human (Makefile.am): Likewise.
20970         * modules/idcache (Makefile.am): Likewise.
20971         * modules/imaxabs (Makefile.am): Likewise.
20972         * modules/imaxdiv (Makefile.am): Likewise.
20973         * modules/inet_ntop (Makefile.am): Likewise.
20974         * modules/inet_pton (Makefile.am): Likewise.
20975         * modules/inttostr (Makefile.am): Likewise.
20976         * modules/isapipe (Makefile.am): Likewise.
20977         * modules/lchown (Makefile.am): Likewise.
20978         * modules/long-options (Makefile.am): Likewise.
20979         * modules/lstat (Makefile.am): Likewise.
20980         * modules/malloc (Makefile.am): Likewise.
20981         * modules/mathl (Makefile.am): Likewise.
20982         * modules/mbchar (Makefile.am): Likewise.
20983         * modules/md2 (Makefile.am): Likewise.
20984         * modules/md4 (Makefile.am): Likewise.
20985         * modules/md5 (Makefile.am): Likewise.
20986         * modules/memcasecmp (Makefile.am): Likewise.
20987         * modules/memchr (Makefile.am): Likewise.
20988         * modules/memcmp (Makefile.am): Likewise.
20989         * modules/memcoll (Makefile.am): Likewise.
20990         * modules/memcpy (Makefile.am): Likewise.
20991         * modules/memmem (Makefile.am): Likewise.
20992         * modules/memmove (Makefile.am): Likewise.
20993         * modules/mempcpy (Makefile.am): Likewise.
20994         * modules/memrchr (Makefile.am): Likewise.
20995         * modules/memset (Makefile.am): Likewise.
20996         * modules/memxor (Makefile.am): Likewise.
20997         * modules/mkancesdirs (Makefile.am): Likewise.
20998         * modules/mkdir (Makefile.am): Likewise.
20999         * modules/mkdir-p (Makefile.am): Likewise.
21000         * modules/mkdtemp (Makefile.am): Likewise.
21001         * modules/mkstemp (Makefile.am): Likewise.
21002         * modules/mktime (Makefile.am): Likewise.
21003         * modules/modechange (Makefile.am): Likewise.
21004         * modules/mountlist (Makefile.am): Likewise.
21005         * modules/nanosleep (Makefile.am): Likewise.
21006         * modules/openat (Makefile.am): Likewise.
21007         * modules/pagealign_alloc (Makefile.am): Likewise.
21008         * modules/physmem (Makefile.am): Likewise.
21009         * modules/poll (Makefile.am): Likewise.
21010         * modules/posixtm (Makefile.am): Likewise.
21011         * modules/posixver (Makefile.am): Likewise.
21012         * modules/putenv (Makefile.am): Likewise.
21013         * modules/quote (Makefile.am): Likewise.
21014         * modules/quotearg (Makefile.am): Likewise.
21015         * modules/raise (Makefile.am): Likewise.
21016         * modules/read-file (Makefile.am): Likewise.
21017         * modules/readline (Makefile.am): Likewise.
21018         * modules/readlink (Makefile.am): Likewise.
21019         * modules/readtokens (Makefile.am): Likewise.
21020         * modules/readutmp (Makefile.am): Likewise.
21021         * modules/realloc (Makefile.am): Likewise.
21022         * modules/regex (Makefile.am): Likewise.
21023         * modules/rename (Makefile.am): Likewise.
21024         * modules/rename-dest-slash (Makefile.am): Likewise.
21025         * modules/rijndael (Makefile.am): Likewise.
21026         * modules/rmdir (Makefile.am): Likewise.
21027         * modules/rpmatch (Makefile.am): Likewise.
21028         * modules/safe-read (Makefile.am): Likewise.
21029         * modules/safe-write (Makefile.am): Likewise.
21030         * modules/same (Makefile.am): Likewise.
21031         * modules/save-cwd (Makefile.am): Likewise.
21032         * modules/savedir (Makefile.am): Likewise.
21033         * modules/setenv (Makefile.am): Likewise.
21034         * modules/settime (Makefile.am): Likewise.
21035         * modules/sha1 (Makefile.am): Likewise.
21036         * modules/sig2str (Makefile.am): Likewise.
21037         * modules/snprintf (Makefile.am): Likewise.
21038         * modules/stdlib-safer (Makefile.am): Likewise.
21039         * modules/stpcpy (Makefile.am): Likewise.
21040         * modules/stpncpy (Makefile.am): Likewise.
21041         * modules/strcase (Makefile.am): Likewise.
21042         * modules/strcasestr (Makefile.am): Likewise.
21043         * modules/strchrnul (Makefile.am): Likewise.
21044         * modules/strcspn (Makefile.am): Likewise.
21045         * modules/strdup (Makefile.am): Likewise.
21046         * modules/strerror (Makefile.am): Likewise.
21047         * modules/strftime (Makefile.am): Likewise.
21048         * modules/strndup (Makefile.am): Likewise.
21049         * modules/strnlen (Makefile.am): Likewise.
21050         * modules/strpbrk (Makefile.am): Likewise.
21051         * modules/strsep (Makefile.am): Likewise.
21052         * modules/strstr (Makefile.am): Likewise.
21053         * modules/strtod (Makefile.am): Likewise.
21054         * modules/strtoimax (Makefile.am): Likewise.
21055         * modules/strtok_r (Makefile.am): Likewise.
21056         * modules/strtol (Makefile.am): Likewise.
21057         * modules/strtoll (Makefile.am): Likewise.
21058         * modules/strtoul (Makefile.am): Likewise.
21059         * modules/strtoull (Makefile.am): Likewise.
21060         * modules/strtoumax (Makefile.am): Likewise.
21061         * modules/strverscmp (Makefile.am): Likewise.
21062         * modules/time_r (Makefile.am): Likewise.
21063         * modules/timegm (Makefile.am): Likewise.
21064         * modules/tmpfile-safer (Makefile.am): Likewise.
21065         * modules/unistd-safer (Makefile.am): Likewise.
21066         * modules/unlinkdir (Makefile.am): Likewise.
21067         * modules/userspec (Makefile.am): Likewise.
21068         * modules/utime (Makefile.am): Likewise.
21069         * modules/utimecmp (Makefile.am): Likewise.
21070         * modules/utimens (Makefile.am): Likewise.
21071         * modules/vasnprintf (Makefile.am): Likewise.
21072         * modules/vasprintf (Makefile.am): Likewise.
21073         * modules/vsnprintf (Makefile.am): Likewise.
21074         * modules/xalloc (Makefile.am): Likewise.
21075         * modules/xgetcwd (Makefile.am): Likewise.
21076         * modules/xnanosleep (Makefile.am): Likewise.
21077         * modules/xreadlink (Makefile.am): Likewise.
21078         * modules/xstrtod (Makefile.am): Likewise.
21079         * modules/xstrtol (Makefile.am): Likewise.
21080         * modules/xstrtold (Makefile.am): Likewise.
21081         * modules/yesno (Makefile.am): Likewise.
21082
21083 2006-10-12  Jim Meyering  <jim@meyering.net>
21084
21085         * m4/getloadavg.m4: Revert the change below.
21086
21087         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
21088         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
21089         fail with a symlink, which is what coreutils' ./bootstrap now
21090         creates by default.
21091
21092 2006-10-12  Bruno Haible  <bruno@clisp.org>
21093
21094         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
21095         mingw.
21096         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
21097         MSVC and mingw explicitly.
21098
21099 2006-10-11  Simon Josefsson  <jas@extundo.com>
21100             Bruno Haible  <bruno@clisp.org>
21101
21102         Add support for multiple gnulib-tool invocations in the scope of a
21103         single configure.ac file.
21104         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
21105         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
21106         with the same contents as the _LIBADD variable.
21107         (func_emit_initmacro_start, func_emit_initmacro_end,
21108         func_emit_initmacro_done): New functions.
21109         (func_import, func_create_testdir): Invoke them. Allow the identifiers
21110         gl_LIBOBJS and gl_LTLIBOBJS.
21111
21112 2006-10-11  Bruno Haible  <bruno@clisp.org>
21113
21114         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
21115         (func_create_testdir): Don't create po/Makefile.am, don't invoke
21116         autoreconf. Instead, invoke autopoint explicitly but move back the
21117         *.m4 files from gnulib.
21118
21119 2006-10-11  Bruno Haible  <bruno@clisp.org>
21120
21121         * gnulib-tool (func_usage): Make module names after --create-testdir
21122         optional.
21123         (func_create_testdir): If no module was specified, use nearly all
21124         modules.
21125
21126 2006-10-12  Jim Meyering  <jim@meyering.net>
21127
21128         Big performance improvement for fts-based tools that use FTS_NOSTAT.
21129         Avoid spurious inode-mismatch problems on non-POSIX file systems.
21130         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
21131         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
21132         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
21133         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
21134         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
21135         (fts_set_stat_required): New function.
21136         (fts_open): Defer the calls to fts_stat, if possible or requested.
21137         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
21138         into fts_stat itself.
21139         (fts_read): Perform any required (deferred) fts_stat call.
21140         (fts_build): Likewise, for the directory we're about to open and read.
21141         In the readdir loop, carefully decide whether each entry will require
21142         an eventual call to fts_stat, using dirent.d_type info if available.
21143         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
21144         a command line argument into this function.  Update all callers.
21145         Map a return value of FTS_DOT to FTS_D for a command line argument.
21146         * modules/fts (Depends-on): Add d-type.  Alphabetize.
21147         Thanks to Miklos Szeredi for his tenacity and for the initial
21148         bug report about "find" failing on a FUSE-based file system.
21149
21150         * lib/fts.c (fts_open): Use consistent indentation.
21151
21152 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21153
21154         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
21155         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
21156         reported by Jim Meyering.  All uses of cache variables renamed
21157         to match Autoconf's.
21158         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
21159         the other one.
21160
21161         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21162         Fix misspelling in diagnostic.
21163
21164 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21165
21166         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
21167         defined.  Problem reported by Matthew Woehlke.
21168
21169         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
21170         Add support for Tandem NonStop R series.
21171         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
21172         Use new macro.
21173
21174         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
21175         (has_trailing_slash): Omit size arg; all callers changed.
21176         Omit 'inline', since it doesn't help performance and we'd
21177         need to configure it.
21178         Don't count //, ///, etc. as having a trailing slash.
21179         As a side effect, this removes a C99ism reported by Matthew Woehlke.
21180         (rpl_rename_dest_slash): On failure, use rename's errno rather
21181         than (in some cases) an incorrect or junk errno.
21182         Simplify code by removing need to compute length; this does
21183         cause it to make two passes instead of one over the file name,
21184         but it's worth it.
21185
21186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
21187         change, since Autoconf's version may no longer be appropriate now
21188         that we are using CVS Autoconf's version.  Add support for Tandem.
21189
21190 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21191             Bruno Haible  <bruno@clisp.org>
21192
21193         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
21194         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
21195         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
21196         gl_AC_TYPE_LONG_LONG.
21197
21198         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
21199         instead of HAVE_LONG_LONG.
21200         * lib/printf-args.c (printf_fetchargs): Likewise.
21201         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21202         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21203         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
21204         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
21205         gl_AC_TYPE_LONG_LONG.
21206
21207 2006-10-11  Bruno Haible  <bruno@clisp.org>
21208
21209         * m4/longlong.m4: Add comments.
21210         * m4/ulonglong.m4: Likewise.
21211
21212 2006-10-10  Bruno Haible  <bruno@clisp.org>
21213
21214         Make it possible to #define stpcpy, strdup to aliases.
21215         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
21216         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
21217
21218 2006-10-10  Bruno Haible  <bruno@clisp.org>
21219
21220         Make it possible to #define gcd to an alias.
21221         * lib/gcd.c: Include config.h.
21222
21223 2006-10-10  Bruno Haible  <bruno@clisp.org>
21224
21225         Make it possible to #define c_isascii to an alias.
21226         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
21227         defined. Undefine the macros before defining them, to avoid gcc
21228         warnings.
21229         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
21230         define NO_C_CTYPE_MACROS early.
21231
21232 2006-10-10  Bruno Haible  <bruno@clisp.org>
21233
21234         Make it possible to #define set_program_name to an alias.
21235         * lib/progname.c: Don't undefine set_program_name; instead, undefine
21236         ENABLE_RELOCATABLE early.
21237
21238 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21239
21240         Port to Tandem NSK OSS, which has 64-bit signed int but at most
21241         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
21242         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21243         More generally, don't assume that 64-bit signed int is available
21244         if unsigned int is, and vice versa.
21245         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
21246         unsigned symbols, not on their signed counterparts.
21247         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
21248         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
21249         (UINT64_C, UINTMAX_C):
21250         Likewise.
21251         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
21252         unsigned counterparts.
21253         (Have_long_long, Unsigned): New macros.
21254         (Int): Renamed from INT.
21255         (strtoimax): Use the new macros.
21256         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
21257         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
21258         * modules/inttypes (inttypes.h): Substitute
21259         HAVE_UNSIGNED_LONG_LONG_INT.
21260         * modules/stdint (stdint.h): Likewise.
21261         (Files): Add m4/ulonglong.m4.
21262
21263 2006-10-10  Bruno Haible  <bruno@clisp.org>
21264
21265         Fix a gcc -Wshadow warning.
21266         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
21267         to 'bucket'.
21268         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
21269         gl_linked_indexof_from_to): Likewise.
21270         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
21271         Likewise.
21272         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
21273         Likewise.
21274         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
21275         Reported by Eric Blake.
21276
21277 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
21280         for NetBSD.  Problem reported by Bruno Haible.
21281
21282 2006-10-09  Jim Meyering  <jim@meyering.net>
21283
21284         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
21285         Patch from Bruno Haible.
21286
21287 2006-10-09  Jim Meyering  <jim@meyering.net>
21288
21289         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
21290         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
21291         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
21292
21293 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21294
21295         Don't include <config.h> twice; this doesn't work in some cases,
21296         e.g., when config.h has "#define intmax_t long long int" and
21297         we include <config.h>, <inttypes.h>, <config.h> in that order.
21298         Problem reported by Matthew Woehlke in:
21299         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
21300         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
21301         * lib/fts-cycle.c: Don't include config.h.
21302         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
21303         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
21304         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
21305         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
21306         inttypes.h.
21307         * lib/xstrtoumax.c: Likewise.
21308         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
21309         __strtol and the like, so that this module is more like its siblings.
21310         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
21311         Remove; no longer needed now that we assume gnulib inttypes.h.
21312
21313 2006-10-08  Bruno Haible  <bruno@clisp.org>
21314
21315         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
21316         option.
21317
21318 2006-10-07  Jim Meyering  <jim@meyering.net>
21319
21320         * modules/inttypes (inttypes.h): Revert what seems to have been
21321         an inadvertent part of today's change: use "|", not "/" in the
21322         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
21323
21324 2006-10-07  Bruno Haible  <bruno@clisp.org>
21325
21326         * modules/sublist: New file.
21327
21328 2006-10-07  Bruno Haible  <bruno@clisp.org>
21329
21330         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21331         * modules/argz (argz.h): Likewise.
21332         * modules/arpa_inet (arpa/inet.h): Likewise.
21333         * modules/byteswap (byteswap.h): Likewise.
21334         * modules/configmake (configmake.h): Likewise.
21335         * modules/fcntl (fcntl.h): Likewise.
21336         * modules/fnmatch (fnmatch.h): Likewise.
21337         * modules/getopt (getopt.h): Likewise.
21338         * modules/glob (glob.h): Likewise.
21339         * modules/inttypes (inttypes.h): Likewise.
21340         * modules/netinet_in (netinet/in.h): Likewise.
21341         * modules/poll (poll.h): Likewise.
21342         * modules/stdbool (stdbool.h): Likewise.
21343         * modules/stdint (stdint.h): Likewise.
21344         * modules/sys_select (sys/select.h): Likewise.
21345         * modules/sys_socket (sys/socket.h): Likewise.
21346         * modules/sys_stat (sys/stat.h): Likewise.
21347         * modules/sysexits (sysexits.h): Likewise.
21348         * modules/unistd (unistd.h): Likewise.
21349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21350         Add a "DO NOT EDIT" comment to the generated file.
21351         (func_import): Likewise for gnulib-comp.m4.
21352
21353 2006-10-07  Bruno Haible  <bruno@clisp.org>
21354
21355         * lib/gl_sublist.h: New file.
21356         * lib/gl_sublist.c: New file.
21357
21358 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21359
21360         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
21361         name (relative to the original working directory) and the file
21362         name component (relative to the temporary working directory).  All
21363         callers changed.
21364         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
21365         * lib/mkdir-p.c (make_dir_parents): Likewise.
21366         * lib/mkdir-p.h (make_dir_parents): Likewise.
21367
21368 2006-10-06  Eric Blake  <ebb9@byu.net>
21369
21370         Define several macros for use by the clean-temp module.
21371         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
21372         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
21373         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
21374
21375         * lib/clean-temp.h (close_stream_temp): New declaration.
21376         * lib/clean-temp.c (includes): Pull in headers according to what
21377         other modules are in use.
21378         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
21379
21380 2006-10-06  Bruno Haible  <bruno@clisp.org>
21381
21382         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
21383         instead of fopen, fwriteerror.
21384
21385 2006-10-06  Bruno Haible  <bruno@clisp.org>
21386
21387         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
21388         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
21389         int.
21390         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
21391         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
21392         Return an error indicator.
21393         Suggested by Eric Blake.
21394
21395 2006-10-06  Bruno Haible  <bruno@clisp.org>
21396
21397         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
21398         Reported by Eric Blake.
21399
21400 2006-10-06  Bruno Haible  <bruno@clisp.org>
21401
21402         * modules/closeout (Description): Mention stderr too.
21403
21404 2006-10-06  Bruno Haible  <bruno@clisp.org>
21405         and Paul Eggert  <eggert@cs.ucla.edu>
21406
21407         * lib/closeout.c (close_stdout): Also close stderr.
21408         * lib/closeout.h: Update comment.
21409
21410 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21411
21412         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
21413         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
21414         * lib/dirchownmod.c: Include lchown.h.
21415         * lib/lchown.c: Don't include files that lchown.h now includes.
21416         Don't declare chown, since lchown.h now does that.
21417         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
21418         (lchown): Define to rpl_chown if lchown is declared but
21419         does not exist.  Declare using a prototype if lchown is not
21420         declared.  Add a copyright notice.
21421         * lib/mkstemp.h: Include <unistd.h>.
21422         * lib/openat.c: Include lchown.h.
21423
21424         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21425         we now test for that separately.
21426         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21427         rather than O_NOFOLLOW, when testing whether it's possible to
21428         avoid a race condition reliably.
21429         * lib/savewd.c (savewd_chdir): Likewise.
21430
21431         Remove macros that are no longer needed now that stdint.h is
21432         reliable.
21433         * lib/fsusage.c (UINTMAX_MAX): Remove.
21434         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
21435         * lib/utimecmp.c (SIZE_MAX): Remove.
21436
21437         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
21438
21439         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
21440         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
21441         O_NOATIME works.
21442
21443 2006-10-05  Bruno Haible  <bruno@clisp.org>
21444
21445         * lib/gl_list.h (gl_sortedlist_search_from_to,
21446         gl_sortedlist_indexof_from_to): New declarations.
21447         (gl_list_implementation): New fields sortedlist_search_from_to,
21448         sortedlist_indexof_from_to.
21449         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
21450         inline functions.
21451         * lib/gl_list.c (gl_sortedlist_search_from_to,
21452         gl_sortedlist_indexof_from_to): New functions.
21453         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
21454         function.
21455         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
21456         (gl_array_sortedlist_search_from_to): New function.
21457         (gl_array_list_implementation): Update.
21458         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
21459         function.
21460         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
21461         (gl_carray_sortedlist_search_from_to): New function.
21462         (gl_carray_list_implementation): Update.
21463         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
21464         gl_linked_sortedlist_indexof_from_to): New functions.
21465         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21466         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21467         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
21468         gl_tree_sortedlist_indexof_from_to): New functions.
21469         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21470         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21471         Update.
21472         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21473         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
21474         Update.
21475
21476 2006-10-05  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
21479         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
21480         (struct gl_list_implementation): Add fields search_from_to,
21481         indexof_from_to. Remove fields search, indexof.
21482         (gl_list_search): Use the search_from_to method.
21483         (gl_list_search_from, gl_list_search_from_to): New functions.
21484         (gl_list_indexof): Use the indexof_from_to method.
21485         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21486         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
21487         (gl_list_search_from, gl_list_search_from_to): New functions.
21488         (gl_list_indexof): Use the indexof_from_to method.
21489         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21490         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
21491         gl_array_indexof. Add start_index, end_index arguments.
21492         (gl_array_search_from_to): Renamed from gl_array_search. Add
21493         start_index, end_index arguments.
21494         (gl_array_remove, gl_array_list_implementation): Update.
21495         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
21496         gl_carray_indexof. Add start_index, end_index arguments.
21497         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
21498         start_index, end_index arguments.
21499         (gl_carray_remove, gl_carray_list_implementation): Update.
21500         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
21501         gl_linked_search. Add start_index, end_index arguments.
21502         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
21503         start_index, end_index arguments.
21504         (gl_linked_remove): Update.
21505         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21506         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21507         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
21508         field to 'size_t'.
21509         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
21510         gl_tree_search. Add start_index, end_index arguments.
21511         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21512         start_index, end_index arguments.
21513         (gl_tree_remove): Update.
21514         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21515         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21516         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
21517         function.
21518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
21519         gl_tree_search. Add start_index, end_index arguments.
21520         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21521         start_index, end_index arguments.
21522         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21523         Update.
21524         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21525
21526 2006-10-05  Bruno Haible  <bruno@clisp.org>
21527
21528         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
21529
21530         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
21531         fwriteerror_temp): New declarations.
21532         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
21533         (descriptors): New variable.
21534         (cleanup): First, close the descriptors.
21535         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
21536         fclose_temp, fwriteerror_temp): New functions.
21537
21538 2006-10-04  Jim Meyering  <jim@meyering.net>
21539
21540         * lib/fts.c (fts_open): Tiny comment change.
21541
21542 2006-10-04  Bruno Haible  <bruno@clisp.org>
21543
21544         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
21545         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
21546         gl_LOCK_BODY.
21547         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
21548         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
21549         gl_LOCK_EARLY_BODY.
21550         (gl_LOCK): Require gl_LOCK_BODY.
21551
21552 2006-10-04  Bruno Haible  <bruno@clisp.org>
21553
21554         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
21555         (gl_oset_search_atleast): New declaration.
21556         (struct gl_oset_implementation): Add field 'search_atleast'.
21557         (gl_oset_search_atleast): New inline function.
21558         * lib/gl_oset.c (gl_oset_search_atleast): New function.
21559         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
21560         (gl_array_oset_implementation): Update.
21561         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
21562         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
21563         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
21564
21565 2006-10-04  Bruno Haible  <bruno@clisp.org>
21566
21567         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
21568
21569 2006-10-03  Bruno Haible  <bruno@clisp.org>
21570
21571         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
21572         from gl_avltreehash_list_implementation.
21573
21574 2006-10-03  Bruno Haible  <bruno@clisp.org>
21575
21576         * lib/gl_oset.c (gl_oset_add): Fix return type.
21577
21578 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
21579
21580         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
21581
21582 2006-10-02  Eric Blake  <ebb9@byu.net>
21583
21584         * modules/strnlen (Depends-on): Add extensions.
21585
21586 2006-10-02  Eric Blake  <ebb9@byu.net>
21587
21588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
21589         definition in 2.60+.
21590
21591 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21592
21593         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21594         checks.
21595
21596 2006-10-02  Bruno Haible  <bruno@clisp.org>
21597
21598         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21599         to the AUTOMAKE_OPTIONS.
21600         Reported by Jim Meyering.
21601
21602 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         Work around bug in Solaris 10 /proc file system:
21605         /proc/self/fd/NNN/.. isn't the parent directory of
21606         the directory whose file descriptor is NNN.  This needs to
21607         be worked around at run time, not compile time, since a
21608         program might be built on Solaris 8, where things work, and
21609         run on Solaris 10.
21610         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21611         to use the following interface instead:
21612         (OPENAT_BUFFER_SIZE): New macro.
21613         (openat_proc_name): New function.
21614         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21615         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21616         Likewise.
21617         * lib/openat-proc.c: New file.
21618         * modules/openat (Files): Add lib/openat-proc.c.
21619         (Depends-on): Add same-inode, stdbool.
21620         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21621
21622 2006-09-29  Bruno Haible  <bruno@clisp.org>
21623
21624         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21625         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21626         argument. Set stdout_closed before testing for ferror, not after.
21627         (fwriteerror, fwriteerror_no_ebadf): New functions.
21628
21629 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21630
21631         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21632
21633 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21634
21635         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21636         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21637
21638 2006-09-28  Jim Meyering  <jim@meyering.net>
21639
21640         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21641         Include <unistd.h>.
21642
21643 2006-09-28  Bruno Haible  <bruno@clisp.org>
21644
21645         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21646         * modules/linkedhash-list (Depends-on): Likewise.
21647         * modules/rbtreehash-list (Depends-on): Likewise.
21648
21649 2006-09-28  Bruno Haible  <bruno@clisp.org>
21650
21651         * lib/strndup.h: Simplify the redefinition of strndup.
21652         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21653         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21654
21655 2006-09-28  Bruno Haible  <bruno@clisp.org>
21656
21657         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21658         * lib/gl_linkedhash_list.c: Likewise.
21659         * lib/gl_rbtreehash_list.c: Likewise.
21660
21661 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21662
21663         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21664         getaddrinfo.
21665
21666         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21667         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21668         it causes <stdio_ext.h> to cause a compile-time error.
21669         Problem reported by Nelson H. F. Beebe.
21670         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21671         of HAVE_DECL___PENDING.
21672
21673         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21674         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21675         declaration.
21676
21677 2006-09-27  Jim Meyering  <jim@meyering.net>
21678
21679         This file could end up with a definition for a function
21680         named __strndup, rather than rpl_strndup on a system with
21681         incomplete weak_alias support.
21682         * lib/strndup.c (strndup): Rename from __strndup.
21683         Remove #defines that used to map __strndup to strndup.
21684         Don't use K&R prototypes.
21685         Remove LIBC-related code, since this file is not sync'd with glibc.
21686         * lib/strndup.h: Revamp, accordingly.
21687         * m4/strndup.m4: Modernize.
21688
21689 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         * modules/savewd (Depends-on): Add 'raise'.
21692         * lib/savewd.c: Include <signal.h>, for 'raise'.
21693
21694 2006-09-26  Jim Meyering  <jim@meyering.net>
21695
21696         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21697         when we detect Darwin 8.7.0's acl_get_file bug.
21698         Rearrange to perform the new (below) run-test while $LIBS
21699         contains any acl-related library.  Set USE_ACL at the end.
21700         (gl_ACL_GET_FILE): New function.
21701
21702 2006-09-26  Eric Blake  <ebb9@byu.net>
21703
21704         * lib/verror.c: Include <config.h> unconditionally.
21705
21706 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21707
21708         * modules/clock-time (Maintainer): Add self.
21709         * modules/getlogin_r (Depends-on): Add extensions.
21710
21711 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21712
21713         * modules/clock-time: New module.
21714         * modules/nanosleep (Depends-on): Add clock-time.
21715         * modules/gethrxtime (Depends-on): Likewise.
21716         * modules/gettime (Depends-on): Likewise.
21717         * modules/settime (Depends-on): Likewise.
21718
21719         * modules/fts-lgpl: Depend on openat.
21720         * modules/mkancesdirs: Depend on savewd.
21721         * modules/mkdir-p: Likewise.
21722
21723 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21724
21725         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21726
21727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21728         `gl_have_arbitrary_file_name_length_limit' to
21729         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21730         actually works between configure runs.
21731
21732 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21733             Bruno Haible  <bruno@clisp.org>
21734
21735         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21736
21737 2006-09-25  Jim Meyering  <jim@meyering.net>
21738
21739         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21740         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21741
21742 2006-09-25  Eric Blake  <ebb9@byu.net>
21743
21744         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21745         exec's in 2006-09-18 patch when shuffling fds.
21746
21747 2006-09-25  Bruno Haible  <bruno@clisp.org>
21748
21749         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21750         Reported by Jim Meyering.
21751
21752 2006-09-24  Jim Meyering  <jim@meyering.net>
21753
21754         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21755         compare a pointer against a literal "0".  That caused failures with
21756         at least HP-UX's hpcc.
21757
21758 2006-09-22  Simon Josefsson  <jas@extundo.com>
21759
21760         * modules/gc-sha1:
21761         * modules/gc-md4:
21762         * modules/gc-hmac-sha1:
21763         * modules/gc-hmac-md5:
21764         * modules/gc-des:
21765         * modules/gc-arcfour: Distribute more files.
21766
21767 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21768
21769         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21770         (gl_linked_iterator_from_to): Initialize struct completely.
21771         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21772         (gl_tree_iterator_from_to): Likewise
21773         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21774         * lib/gl_array_list.c [lint] (gl_array_iterator)
21775         (gl_array_iterator_from_to): Likewise.
21776         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21777         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21778         (gl_carray_iterator_from_to): Likewise.
21779
21780         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21781         * lib/md4.c (md4_process_block): Remove unused variable.
21782         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21783         parentheses for clarity.
21784
21785 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21786
21787         * modules/bison-i18n (Depends-on): Add gettext.
21788
21789 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21790
21791         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21792         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21793         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21794         also add missing comma that caused broken test.
21795         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21796         stdlib.h, for `abort'.
21797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21798         variables.
21799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21800         include unistd.h if present, for `rmdir'.
21801         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21802         variables.
21803         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21804         in the process include standard headers for prototypes.
21805         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21806         gets declared on GNU/Linux.
21807         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21808         unistd.h, for `rmdir'.
21809         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21810
21811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21812         always true.
21813         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21814
21815         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21816
21817 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21818
21819         * gnulib-tool (func_version): Create output all at once.  This
21820         may help avoid triggering unnecessary SIGPIPEs, and at any
21821         rate it doesn't hurt.
21822
21823 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21824             Bruno Haible  <bruno@clisp.org>
21825
21826         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21827         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21828         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21829
21830         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21831         (gl_FUNC_VASPRINTF): Invoke it.
21832
21833 2006-09-22  Bruno Haible  <bruno@clisp.org>
21834
21835         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21836         getloadavg.c as first argument.
21837
21838 2006-09-22  Bruno Haible  <bruno@clisp.org>
21839
21840         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21841         at the beginning of the gl_INIT macro.
21842         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21843         gl_GETLOADAVG.
21844
21845 2006-09-22  Bruno Haible  <bruno@clisp.org>
21846
21847         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21848         module.
21849         Suggested by Ralf Wildenhues.
21850
21851 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21852
21853         Import this patch from libc:
21854
21855         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21856
21857         * lib/regex_internal.c (re_string_reconstruct): Handle
21858         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21859         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21860         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21861         re_string_context_at.
21862
21863         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21864         now requires it.
21865         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21866         gl_REGEX now does it for us.
21867         (gl_REGEX): Add test taken from
21868         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21869
21870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21871         Check that large offsets work.  Modernize Autoconf usages.
21872         Prefer "yes" to mean a good thing rather than a bad.
21873         Don't put "#define mkstemp" in config.h, as this might interfere
21874         with standard system headers that "#define mkstemp mkstemp64".
21875
21876         * modules/mkstemp (Depends-on): Add extensions, so that
21877         mkstemp is visible on some platforms.
21878         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21879         (Include): Change to "mkstemp.h" from <stdlib.h>.
21880         (Files): Add mkstemp.h.
21881
21882         * lib/mkstemp.h: New file, since some standard headers
21883         #define mkstemp.
21884         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21885         Include "mkstemp.h".
21886         Make the _LIBC code resemble glibc original more,
21887         e.g., use K&R style.
21888         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21889         (mkstemp): Remove, since mkstemp.h does this for us.
21890         * lib/stdlib--.h: Include mkstemp.h.
21891
21892         Import this patch from libc:
21893
21894         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21895
21896         * lib/tempname.c (__gen_tempname): Change attempts_min
21897         into a macro.  Use preprocessor to decide how to initialize
21898         attempts [Coverity CID 67].
21899
21900 2006-09-20  Bruno Haible  <bruno@clisp.org>
21901
21902         * lib/mkdtemp.c: Import from libc.
21903         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21904                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21905                 attempts_min into a macro.  Use preprocessor to decide how to
21906                 initialize attempts [Coverity CID 67].
21907         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21908                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21909                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21910
21911 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21912
21913         * gnulib-tool (func_exit): New function, to allow to pass the
21914         exit status portably through the trap.  Use everywhere.
21915         (--help, --version): Signal a write error.
21916         (trap): catch SIGPIPE, for write errors.
21917         Exit at the end of the trap, with the correct exit status.
21918
21919 2006-09-19  Karl Berry  <karl@gnu.org>
21920
21921         * doc/gnulib.texi: note about the license texinfo files.
21922
21923 2006-09-19  Eric Blake  <ebb9@byu.net>
21924
21925         * gnulib-tool: Avoid space-tab.
21926
21927 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21928
21929         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21930         that prevented coreutils 6.1 from building.  Problem reported
21931         by Petter Reinholdtsen.
21932
21933 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21934
21935         * gnulib-tool (avoidlist): Fix typo that broke options like
21936         --avoid=lock that are used by coreutils bootstrap.
21937
21938 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21939
21940         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21941         more systematically.
21942
21943 2006-09-18  Jim Meyering  <jim@meyering.net>
21944
21945         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21946
21947 2006-09-18  Bruno Haible  <bruno@clisp.org>
21948
21949         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21950
21951 2006-09-18  Bruno Haible  <bruno@clisp.org>
21952
21953         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21954         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21955         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21956         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21957         * m4/gettext.m4: Require autoconf >= 2.52.
21958         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21959         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21960         of gl_cv_header_inttypes_h.
21961
21962 2006-09-18  Bruno Haible  <bruno@clisp.org>
21963
21964         * lib/javaversion.c: Include configmake.h.
21965
21966 2006-09-18  Bruno Haible  <bruno@clisp.org>
21967
21968         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21969         avoid that the while loops be executed in a subshell.
21970
21971 2006-09-18  Bruno Haible  <bruno@clisp.org>
21972
21973         * MODULES.html.sh (func_module): Break long lines.
21974         Suggested by Bruce Korb <bkorb@gnu.org>.
21975
21976 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21977
21978         Speed up by a factor of 1.12.
21979         * gnulib-tool (nl): New variable.
21980         (func_import): Rewrite include directive extraction to only read each
21981         directive once.
21982
21983 2006-09-17  Bruno Haible  <bruno@clisp.org>
21984
21985         * modules/javaversion (Makefile.am): Remove DEFS setting.
21986         (Depends-on): Add configmake, for PKGDATADIR definition.
21987
21988 2006-09-17  Bruno Haible  <bruno@clisp.org>
21989
21990         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21991
21992 2006-09-17  Bruno Haible  <bruno@clisp.org>
21993
21994         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21995         (func_modules_transitive_closure, func_modules_add_dummy,
21996         func_modules_to_filelist, func_import, func_create_testdir,
21997         func_create_megatestdir, ...): Use it wherever possible.
21998         Suggested by Ralf Wildenhues.
21999
22000 2006-09-16  Karl Berry  <karl@gnu.org>
22001
22002         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
22003         to avoid sectioning errors.
22004         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
22005         [ifinfo]: blank line after @center-ed titles.
22006         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
22007         Spell FSF address consistently with others.
22008         (These changes approved by rms.)
22009
22010 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22011
22012         Speed up by a factor of 1.61.
22013         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
22014         already checked module names again.
22015
22016 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22017
22018         Speed up by a factor of 1.13.
22019         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
22020         for new_files, and the input to func_add_or_update.
22021
22022 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22023
22024         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
22025         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
22026
22027 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22028
22029         * modules/mkancesdirs (Depends-on): Add fcntl.
22030         * modules/savewd: New file.
22031         * MODULES.html.sh (File system functions): Add savewd.
22032
22033         * modules/configmake (Makefile.am): Add support for the
22034         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
22035
22036 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22037
22038         * m4/savewd.m4: New file.
22039
22040 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22041
22042         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
22043         (dirchownmod): New arg FD.  All callers changed.
22044         Use FD rather than opening the directory ourself, as opening is
22045         now the caller's responsibility.
22046         * lib/dirchownmod.h: Likewise.
22047         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
22048         hosts that require <sys/types.h> before <sys/stat.h>.  Include
22049         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
22050         (test_dir): Remove.
22051         (mkancesdirs): Return length of prefix of FILE that has already
22052         been made, or -2 if there is a child doing the work.  Redo
22053         algorithm so that it is O(N) rather than O(N**2).  Optimize away
22054         ".", and treat ".." specially since it might stray back into
22055         already-created areas.  Use a subprocess if necessary.  New arg
22056         WD; all users changed.  MAKE_DIR function should now return 1
22057         if it creates a directory that is not readable.  Return -2 if
22058         a child process is spun off.
22059         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
22060         Adjust signature to match code.
22061         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
22062         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
22063         all users changed.
22064         * lib/savewd.c, lib/savewd.h: New files.
22065
22066 2006-09-15  Jim Meyering  <jim@meyering.net>
22067
22068         * modules/rename-dest-slash: New module.
22069         * MODULES.html.sh (posix_compat): Add it here.
22070
22071         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
22072
22073 2006-09-15  Jim Meyering  <jim@meyering.net>
22074
22075         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
22076         file.
22077
22078         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
22079
22080 2006-09-15  Jim Meyering  <jim@meyering.net>
22081
22082         * lib/rename-dest-slash.c (has_trailing_slash): Use
22083         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
22084         (rpl_rename_dest_slash): Perform the cheaper trailing slash
22085         test before testing whether SRC is a directory.
22086         Suggestions from Bruno Haible.
22087
22088         Avoid a warning about an unused variable.
22089         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
22090         into the #ifdef block where it's used.
22091
22092         * lib/rename-dest-slash.c: New file.
22093
22094 2006-09-14  Bruno Haible  <bruno@clisp.org>
22095
22096         * lib/allocsa.c: Include <config.h> unconditionally.
22097         * lib/asnprintf.c: Likewise.
22098         * lib/asprintf.c: Likewise.
22099         * lib/c-strcasecmp.c: Likewise.
22100         * lib/c-strcasestr.c: Likewise.
22101         * lib/c-strncasecmp.c: Likewise.
22102         * lib/c-strstr.c: Likewise.
22103         * lib/classpath.c: Likewise.
22104         * lib/clean-temp.c: Likewise.
22105         * lib/concatpath.c: Likewise.
22106         * lib/copy-file.c: Likewise.
22107         * lib/csharpcomp.c: Likewise.
22108         * lib/csharpexec.c: Likewise.
22109         * lib/execute.c: Likewise.
22110         * lib/fatal-signal.c: Likewise.
22111         * lib/findprog.c: Likewise.
22112         * lib/fwriteerror.c: Likewise.
22113         * lib/gl_array_list.c: Likewise.
22114         * lib/gl_array_oset.c: Likewise.
22115         * lib/gl_avltree_list.c: Likewise.
22116         * lib/gl_avltree_oset.c: Likewise.
22117         * lib/gl_avltreehash_list.c: Likewise.
22118         * lib/gl_carray_list.c: Likewise.
22119         * lib/gl_linked_list.c: Likewise.
22120         * lib/gl_linkedhash_list.c: Likewise.
22121         * lib/gl_list.c: Likewise.
22122         * lib/gl_oset.c: Likewise.
22123         * lib/gl_rbtree_list.c: Likewise.
22124         * lib/gl_rbtree_oset.c: Likewise.
22125         * lib/gl_rbtreehash_list.c: Likewise.
22126         * lib/imaxabs.c: Likewise.
22127         * lib/imaxdiv.c: Likewise.
22128         * lib/javacomp.c: Likewise.
22129         * lib/javaexec.c: Likewise.
22130         * lib/javaversion.c: Likewise.
22131         * lib/linebreak.c: Likewise.
22132         * lib/localcharset.c: Likewise.
22133         * lib/lock.c: Likewise.
22134         * lib/mbchar.c: Likewise.
22135         * lib/mbswidth.c: Likewise.
22136         * lib/mkdtemp.c: Likewise.
22137         * lib/pipe.c: Likewise.
22138         * lib/printf-args.c: Likewise.
22139         * lib/printf-parse.c: Likewise.
22140         * lib/progname.c: Likewise.
22141         * lib/progreloc.c: Likewise.
22142         * lib/readlink.c: Likewise.
22143         * lib/sh-quote.c: Likewise.
22144         * lib/stpcpy.c: Likewise.
22145         * lib/stpncpy.c: Likewise.
22146         * lib/strcasecmp.c: Likewise.
22147         * lib/strcasestr.c: Likewise.
22148         * lib/strcspn.c: Likewise.
22149         * lib/striconv.c: Likewise.
22150         * lib/strncasecmp.c: Likewise.
22151         * lib/strnlen1.c: Likewise.
22152         * lib/strstr.c: Likewise.
22153         * lib/strtok_r.c: Likewise.
22154         * lib/tls.c: Likewise.
22155         * lib/tmpdir.c: Likewise.
22156         * lib/unicodeio.c: Likewise.
22157         * lib/unsetenv.c: Likewise.
22158         * lib/vasnprintf.c: Likewise.
22159         * lib/vasprintf.c: Likewise.
22160         * lib/wait-process.c: Likewise.
22161         * lib/xallocsa.c: Likewise.
22162         * lib/xsetenv.c: Likewise.
22163         * lib/xstriconv.c: Likewise.
22164
22165 2006-09-13  Simon Josefsson  <jas@extundo.com>
22166
22167         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
22168         that internally, suggested by Ralf Wildenhues
22169         <Ralf.Wildenhues@gmx.de>.
22170
22171 2006-09-13  Simon Josefsson  <jas@extundo.com>
22172
22173         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
22174         @LIBOBJS@.
22175         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22176
22177 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         * lib/_fpending.c: Include <config.h> unconditionally, since we no
22180         longer worry about uses that don't define HAVE_CONFIG_H.
22181         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
22182         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
22183         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
22184         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
22185         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
22186         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
22187         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
22188         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
22189         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
22190         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
22191         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
22192         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
22193         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
22194         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
22195         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
22196         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
22197         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
22198         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
22199         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
22200         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
22201         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
22202         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
22203         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
22204         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
22205         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
22206         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
22207         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
22208         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
22209         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
22210         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
22211         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
22212         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
22213         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
22214         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
22215         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
22216         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
22217         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
22218         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
22219         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
22220         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
22221         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
22222         Likewise.
22223
22224 2006-09-13  Eric Blake  <ebb9@byu.net>
22225
22226         * lib/getopt.c: Fix typo in last commit.
22227
22228 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22229
22230         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
22231         dgettext.
22232
22233 2006-09-12  Jim Meyering  <jim@meyering.net>
22234
22235         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
22236         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
22237         Reported by Nelson H. F. Beebe.
22238
22239 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22240
22241         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
22242         program_invocation_name and program_invocation_short_name are
22243         initialized.
22244         * lib/argp-namefrob.h: Move declarations of program_invocation_name
22245         and program_invocation_short_name to argp.h, so they are visible
22246         to user programs.
22247         * lib/argp.h: Likewise
22248
22249 2006-09-10  Bruno Haible  <bruno@clisp.org>
22250
22251         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22252         m4/inttypes_h.m4, m4/uintmax_t.m4.
22253
22254 2006-09-10  Bruno Haible  <bruno@clisp.org>
22255
22256         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
22257         gl_AC_TYPE_UINTMAX_T.
22258
22259 2006-09-10  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
22262
22263 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22264
22265         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
22266         convention.  Text proposed by Bruno Haible.
22267         (struct argp_option): Document the use of N_() wrappers.
22268
22269         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
22270         '\v', and translate the two parts separately, instead of feeding
22271         the whole string to gettext.  This allows to exclude
22272         '\v' from the strings visible to the translator by writing doc
22273         strings as N_("..") "\v" N_("..").
22274
22275 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
22276
22277         * config/srclist.txt: Undo latest change; the bug was fixed.
22278
22279 2006-09-09  Bruno Haible  <bruno@clisp.org>
22280
22281         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
22282         assignments if building a library without libtool.
22283         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
22284         in func_emit_lib_Makefile_am.
22285         (func_import): When building a static library libfoo.a, arrange to
22286         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
22287         (func_create_testdir): Likewise.
22288         * modules/gc (configure.ac, Makefile.am): If building statically,
22289         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
22290         * modules/iconvme (configure.ac, Makefile.am): Likewise.
22291         * modules/striconv (configure.ac, Makefile.am): Likewise.
22292         Based on a suggestion by Ralf Wildenhues.
22293
22294 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22295
22296         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
22297         Check for unistd.h too, since Autoconf doesn't assume POSIX.
22298         Also:
22299
22300         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22301         Add year_2050_test to catch glibc bug 2821
22302         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22303
22304         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22305         Prefer #ifdef to #if.
22306
22307         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22308         Return from 'main' instead of calling 'exit'.
22309
22310 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22311
22312         * lib/mktime.c (guess_time_tm): Fix bug where mktime
22313         returned the maximum time_t value rather than (time_t) -1.
22314         Problem originally reported by William Bardwell
22315         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
22316
22317         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22318         Moved to here ...
22319         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
22320         ... from here.
22321
22322 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22323
22324         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22325         2821 is fixed.
22326
22327 2006-09-08  Jim Meyering  <jim@meyering.net>
22328
22329         Don't make generated files read-only.  That would bother too many
22330         people.  However, do retain the ability to work when targets are
22331         read-only: remove the destination and temporary files before writing
22332         them (when generated via sed or echo), or by using the -f option for
22333         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
22334         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22335         * modules/byteswap, modules/configmake, modules/fcntl:
22336         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22337         * modules/localcharset, modules/netinet_in, modules/poll:
22338         * modules/stdbool, modules/stdint, modules/sys_select:
22339         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22340
22341 2006-09-08  Jim Meyering  <jim@meyering.net>
22342
22343         Avoid new build failure on FreeBSD 6.0.
22344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22345         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
22346         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22347
22348 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22349
22350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
22351
22352 2006-09-07  Jim Meyering  <jim@meyering.net>
22353
22354         Fix global typo in last change: use chmod u-w, not chmod u-x.
22355         Spotted by Paul Eggert and Bruce Korb.
22356         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22357         * modules/byteswap, modules/configmake, modules/fcntl:
22358         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22359         * modules/localcharset, modules/netinet_in, modules/poll:
22360         * modules/stdbool, modules/stdint, modules/sys_select:
22361         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22362
22363 2006-09-06  Jim Meyering  <jim@meyering.net>
22364
22365         Make generated files be read-only.
22366         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
22367         Ensure that each generated file is now read-only.
22368         * modules/argz: Likewise.
22369         * modules/arpa_inet: Likewise.
22370         * modules/byteswap: Likewise.
22371         * modules/configmake: Likewise.
22372         * modules/fcntl: Likewise.
22373         * modules/fnmatch: Likewise.
22374         * modules/getopt: Likewise.
22375         * modules/glob: Likewise.
22376         * modules/inttypes: Likewise.
22377         * modules/netinet_in: Likewise.
22378         * modules/poll: Likewise.
22379         * modules/stdbool: Likewise.
22380         * modules/stdint: Likewise.
22381         * modules/sys_select: Likewise.
22382         * modules/sys_socket: Likewise.
22383         * modules/sys_stat: Likewise.
22384         * modules/sysexits: Likewise.
22385         * modules/localcharset: Same as above, but continue using temporary
22386         file named "t-$@" (why different?) rather than the "$@-t" used
22387         everywhere else.
22388
22389         * modules/sysexits (Makefile.am): Replace literal occurrences
22390         of "sysexit.h" more readable, and more consistent, "$@".
22391
22392 2006-09-06  Bruno Haible  <bruno@clisp.org>
22393
22394         * modules/striconv: New file.
22395         * modules/xstriconv: New file.
22396         * MODULES.html.sh (Internationalization functions): Add striconv,
22397         xstriconv.
22398
22399 2006-09-06  Bruno Haible  <bruno@clisp.org>
22400
22401         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
22402         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
22403         not using libtool correctly.
22404
22405 2006-09-06  Bruno Haible  <bruno@clisp.org>
22406
22407         * lib/striconv.h: New file.
22408         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
22409         iconvstring.c.
22410         * lib/xstriconv.h: New file.
22411         * lib/xstriconv.c: New file.
22412
22413 2006-09-06  Bruno Haible  <bruno@clisp.org>
22414
22415         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22416         lib_..._LDFLAGS.
22417
22418 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22419
22420         * lib/argz_.h: Sync from Libtool.
22421
22422         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
22423                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22424
22425         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22426
22427 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22428
22429         * modules/trim: New file.
22430
22431 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22432
22433         * lib/trim.h: New file.
22434         * lib/trim.c: New file.
22435
22436 2006-09-05  Bruno Haible  <bruno@clisp.org>
22437
22438         * MODULES.html.sh (String handling): Add trim.
22439
22440 2006-09-04  Karl Berry  <karl@gnu.org>
22441
22442         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
22443         until next release.
22444
22445 2006-09-03  Bruno Haible  <bruno@clisp.org>
22446
22447         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
22448         correctly.
22449
22450 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22451
22452         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
22453         not gl_GETLOADAVG.  Omit unneeded semicolons.
22454         Problems reported by Ralf Wildenhues in
22455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22456         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
22457         at the end, which is the usual gnulib style.
22458
22459         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
22460         of doing all the work ourselves.
22461         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
22462         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
22463
22464 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22465
22466         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
22467         Problem reported by Ralf Wildenhues in
22468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22469
22470         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
22471         HAVE_STRUCT_STATFS_F_FSTYPENAME.
22472
22473 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22474
22475         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
22476         yesterday's patch by changing test -n to test -z.
22477
22478 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22479
22480         * modules/getloadavg (Files): Add m4/getloadavg.m4.
22481         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
22482         the former is now obsolescent.
22483
22484         * modules/chdir-long (Depends-on): Add fcntl.
22485
22486 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
22489         obsolescent, and programs should use gnulib instead.
22490         * m4/getloadavg.m4: New file, with contents taken from Autoconf
22491         but with prefixes changed.
22492
22493 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
22496         or stdbool.h, because they might not exist while configuring.
22497
22498         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
22499         Don't include unistd.h or limits.h; not needed, since chdir-long.h
22500         does that for us.
22501         (O_DIRECTORY): Remove.
22502
22503 2006-08-31  Eric Blake  <ebb9@byu.net>
22504
22505         * gnulib-tool: Don't let emacs change spaces to TAB.
22506
22507 2006-08-31  Bruno Haible  <bruno@clisp.org>
22508
22509         * gnulib-tool: When calling func_import more than once, do it in a
22510         subshell.
22511         Reported by Eric Blake <ebb9@byu.net>.
22512
22513 2006-08-31  Bruno Haible  <bruno@clisp.org>
22514
22515         * gnulib-tool (nl): Remove variable.
22516         (sed_transform_lib_file): Use more robust test for config-h module.
22517         (func_import): Fix typo in 2006-08-25 patch.
22518
22519 2006-08-31  Bruno Haible  <bruno@clisp.org>
22520
22521         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
22522         specified, augment Makefile.am variables instead of assigning them.
22523
22524 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22525
22526         Work around a bug in both the Linux and SunOS 64-bit kernels:
22527         nanosleep mishandles sleeps for longer than 2**31 seconds.
22528         Problem reported by Frank v Waveren in
22529         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
22531         Check for nanosleep bug.
22532         (LIB_NANOSLEEP): Append clock_gettime library if needed.
22533
22534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22535
22536         Work around a bug in both the Linux and SunOS 64-bit kernels:
22537         nanosleep mishandles sleeps for longer than 2**31 seconds.
22538         Problem reported by Frank v Waveren in
22539         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22540         * lib/nanosleep.c (BILLION): New constant.
22541         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
22542         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
22543         implementation.
22544
22545 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22546
22547         * modules/nanosleep (Depends-on): Add gettime.
22548
22549 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22550         and Simon Josefsson  <jas@extundo.com>
22551         and Oskar Liljeblad  <oskar@osk.mine.nu>
22552
22553         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
22554         * gnulib-tool (func_import): New license type 'unmodifiable license
22555         text'.
22556         * modules/fdl: Use it.  Longer description.
22557         * module/gpl, module/lgpl: New files.
22558
22559 2006-08-30  Jim Meyering  <jim@meyering.net>
22560
22561         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
22562         shadowing the parameter.
22563
22564 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22565
22566         Sync from Libtool:
22567
22568         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22569
22570         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
22571         sharing with gnulib.  Report by Eric Blake.
22572
22573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22574
22575         * modules/isapipe: New file.
22576         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
22577
22578 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22579
22580         * modules/configmake (Makefile.am): Add a comment, and omit
22581         the CONFIGMAKE_ prefix from generated macro names.  Suggested
22582         by Bruno Haible.
22583
22584 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22585
22586         * m4/isapipe.m4: New file.
22587
22588 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22589
22590         * lib/isapipe.c, lib/isapipe.h: New files.
22591
22592 2006-08-29  Jim Meyering  <jim@meyering.net>
22593
22594         * modules/configmake (Makefile.am): Make configmake.h depend on
22595         Makefile.  Otherwise, a stale configmake.h could hang around.
22596
22597 2006-08-29  Eric Blake  <ebb9@byu.net>
22598
22599         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22600         resolution of upstream bug 3044.
22601
22602 2006-08-29  Bruno Haible  <bruno@clisp.org>
22603
22604         * modules/localcharset (Depends-on): Add configmake.
22605         (Makefile.am): Remove setting of LIBDIR through DEFS.
22606
22607 2006-08-29  Bruno Haible  <bruno@clisp.org>
22608
22609         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22610         defined.
22611
22612 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22613
22614         * modules/fcntl: New file.
22615         * modules/chdir-safer (Depends-on): Add fcntl.
22616         * modules/fts: Likewise.
22617         * modules/mkdir-p: Likewise.
22618
22619         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22620         This undoes the most recent change, since we're now addressing the
22621         problem in a different way.
22622
22623         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22624         into output, since the output might be called Makefile.am even
22625         if $makefile_name is something different.
22626         (func_import): Use $makefile_am rather than
22627         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22628         empty.
22629
22630         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22631
22632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22633
22634         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22635         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22636         recent change to stdint.m4, since we're now addressing the problem in a
22637         different way.
22638
22639 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22640
22641         * m4/fcntl_h.m4: New file.
22642
22643 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22644
22645         * lib/fcntl_.h: New file.
22646         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22647         the fcntl module.
22648         * lib/dirchownmod.c: Likewise.
22649         * lib/fts.c: Likewise.
22650
22651         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22652         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22653         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22654         just before including <inttypes.h>, to avoid circular inclusion.
22655
22656 2006-08-28  Jim Meyering  <jim@meyering.net>
22657
22658         * doc/visibility.texi: Actually read and correct the grammar of the
22659         sentence affected by yesterday's change.
22660
22661 2006-08-28  Eric Blake  <ebb9@byu.net>
22662
22663         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22664         needs wrapper.
22665
22666 2006-08-28  Eric Blake  <ebb9@byu.net>
22667
22668         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22669
22670 2006-08-28  Eric Blake  <ebb9@byu.net>
22671
22672         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22673
22674 2006-08-28  Bruno Haible  <bruno@clisp.org>
22675
22676         * modules/c-strstr: New file, from GNU gettext.
22677         * MODULES.html.sh (String handling): Add c-strstr.
22678
22679 2006-08-28  Bruno Haible  <bruno@clisp.org>
22680
22681         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22682         macros.
22683         Reported by Eric Blake.
22684
22685 2006-08-28  Bruno Haible  <bruno@clisp.org>
22686
22687         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22688         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22689         * lib/vasprintf.c: Include errno.h, limits.h.
22690         (EOVERFLOW): New fallback definition.
22691         (vasprintf): Test here whether the string length is > INT_MAX.
22692         * lib/vsnprintf.c: Include errno.h, limits.h.
22693         (EOVERFLOW): New fallback definition.
22694         (vsnprintf): Fix bug when generated string was too long for the buffer.
22695         Test here whether the string length is > INT_MAX.
22696
22697 2006-08-28  Bruno Haible  <bruno@clisp.org>
22698
22699         * lib/inttypes_.h (SCNX*): Remove definitions.
22700         Reported by Eric Blake.
22701
22702 2006-08-28  Bruno Haible  <bruno@clisp.org>
22703
22704         * lib/c-strstr.h: New file, from GNU gettext.
22705         * lib/c-strstr.c: New file, from GNU gettext.
22706
22707 2006-08-28  Bruno Haible  <bruno@clisp.org>
22708
22709         * gnulib-tool: Reorder some statements.
22710
22711 2006-08-28  Bruno Haible  <bruno@clisp.org>
22712
22713         * gnulib-tool: New option --makefile-name.
22714         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22715         $makefile_name.
22716         (func_import): Write $makefile_name to the cache file, and read it from
22717         there unless explicitly specified. Use $makefile_name as file name
22718         instead of Makefile.am. Adjust the recommendations accordingly.
22719
22720 2006-08-28  Bruno Haible  <bruno@clisp.org>
22721
22722         * gnulib-tool (func_verify_module): Check against misapplying patch.
22723
22724 2006-08-28  Bruno Haible  <bruno@clisp.org>
22725
22726         * gnulib-tool (func_relativize, func_relconcat): New functions.
22727         Give an error if --local-dir is given with --update.
22728         Remove trailing slashes from $local_gnulib_dir.
22729         (func_import): Store the relativized $local_gnulib_dir in
22730         gnulib-cache.m4, and read it from there if not specified explicitly.
22731
22732 2006-08-28  Bruno Haible  <bruno@clisp.org>
22733
22734         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22735         is the current directory. Respect also $local_gnulib_dir.
22736
22737 2006-08-28  Bruno Haible  <bruno@clisp.org>
22738             Simon Josefsson  <jas@extundo.com>
22739
22740         BeOS portability.
22741         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22742
22743 2006-08-27  Jim Meyering  <jim@meyering.net>
22744
22745         * doc/visibility.texi: Remove duplicate word: "pointer".
22746
22747 2006-08-26  Bruno Haible  <bruno@clisp.org>
22748
22749         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22750         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22751         (Makefile.am): Create inttypes.h from inttypes_.h.
22752         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22753
22754         * modules/imaxabs: New file.
22755
22756         * modules/imaxdiv: New file.
22757
22758 2006-08-26  Bruno Haible  <bruno@clisp.org>
22759
22760         * m4/inttypes.m4: New file.
22761         * m4/_inttypes_h.m4: Remove file.
22762         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22763         PRI_MACROS_BROKEN.
22764         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22765
22766         * m4/imaxabs.m4: New file.
22767
22768         * m4/imaxdiv.m4: New file.
22769
22770 2006-08-26  Bruno Haible  <bruno@clisp.org>
22771
22772         * lib/inttypes_.h: New file.
22773         * lib/inttypes.h: Remove file.
22774         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22775
22776         * lib/imaxabs.c: New file.
22777
22778         * lib/imaxdiv.c: New file.
22779
22780 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22781
22782         New config-h module, so that "make" output needn't be cluttered
22783         by -DHAVE_CONFIG_H.
22784         * MODULES.html.sh (Support for building libraries and executables):
22785         Add config-h.
22786         * modules/config-h: New file.
22787         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22788         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22789         the config-h module is used.
22790
22791         New configmake module, so that "make" output needn't be cluttered
22792         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22793         * MODULES.html.sh (Support for building libraries and executables):
22794         Add configmake.
22795         * modules/configmake: New file.
22796
22797 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22798
22799         * m4/config-h.m4: New file.
22800
22801 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22802
22803         * config/srclist.txt: Add elisp-comp.
22804
22805 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22806
22807         * MODULES.html.sh (Support for building libraries and executables):
22808         Add elisp-comp.
22809         * build-aux/elisp-comp: New file.
22810         * modules/elisp-comp: New file.
22811
22812 2006-08-24  Bruno Haible  <bruno@clisp.org>
22813
22814         * gnulib-tool (func_create_testdir): Use non-default values of
22815         sourcebase and m4base.
22816
22817 2006-08-24  Bruno Haible  <bruno@clisp.org>
22818
22819         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22820         HTML structure.
22821
22822 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22823
22824         * modules/openat (Depends-on): Add lchown.
22825
22826 2006-08-23  Bruno Haible  <bruno@clisp.org>
22827
22828         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22829         of gl_LOCK_EARLY instead of gl_LOCK.
22830
22831 2006-08-23  Bruno Haible  <bruno@clisp.org>
22832
22833         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22834         on OSF/1 to no.
22835         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22836
22837 2006-08-23  Bruno Haible  <bruno@clisp.org>
22838
22839         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22840         as unusable.
22841
22842         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22843         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22844         (gl_LOCK): New macro.
22845
22846 2006-08-22  Simon Josefsson  <jas@extundo.com>
22847
22848         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22849         to md5 module.
22850
22851 2006-08-22  Simon Josefsson  <jas@extundo.com>
22852
22853         * MODULES.html.sh: Add "Support for maintaining and release
22854         projects".
22855
22856         * build-aux/gnupload: New file, from coreutils.
22857
22858 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22859
22860         Avoid the need for AC_LIBSOURCES in m4 macros.
22861         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22862         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22863         * modules/check-version (EXTRA_DIST): Add check-version.h.
22864         * modules/crc (EXTRA_DIST): Add crc.h.
22865         * modules/des (EXTRA_DIST): Add des.h.
22866         * modules/gc (EXTRA_DIST): Add gc.h.
22867         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22868         * modules/getline (EXTRA_DIST): Add getline.h.
22869         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22870         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22871         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22872         * modules/md2 (EXTRA_DIST): Add md2.h.
22873         * modules/md4 (EXTRA_DIST): Add md4.h.
22874         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22875         * modules/read-file (EXTRA_DIST): Add read-file.h.
22876         * modules/readline (EXTRA_DIST): Add readline.h.
22877         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22878         rijndael-api-fst.h.
22879
22880 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22881
22882         * m4/rijndael.m4 (gl_ARCFOUR):
22883         * m4/arctwo.m4 (gl_ARCTWO):
22884         * m4/check-version.m4 (gl_CHECK_VERSION):
22885         * m4/crc.m4 (gl_CRC):
22886         * m4/des.m4 (gl_DES):
22887         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22888         * m4/gc.m4 (gl_GC):
22889         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22890         * m4/getline.m4 (gl_FUNC_GETLINE):
22891         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22892         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22893         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22894         * m4/md2.m4 (gl_MD2):
22895         * m4/md4.m4 (gl_MD4):
22896         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22897         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22898         * m4/readline.m4 (gl_FUNC_READLINE):
22899         * m4/rijndael.m4 (gl_RIJNDAEL):
22900         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22901         to get the necessary .h files and whatnot.
22902
22903 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22904
22905         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22906         gnulib rather than the other way around.
22907         * config/srclistvars.sh (COREUTILS): Remove.
22908
22909 2006-08-22  Jim Meyering  <jim@meyering.net>
22910
22911         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22912
22913         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22914
22915 2006-08-22  Eric Blake  <ebb9@byu.net>
22916
22917         * modules/regexprops-generic: New file.
22918         * MODULES.html.sh (Support for building documentation): List it.
22919
22920 2006-08-22  Eric Blake  <ebb9@byu.net>
22921
22922         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22923         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22925         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22926
22927 2006-08-22  Bruno Haible  <bruno@clisp.org>
22928
22929         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22930         and lib_LTLIBRARIES like the other lib_* variables.
22931
22932 2006-08-22  Bruno Haible  <bruno@clisp.org>
22933
22934         * build-aux/x-to-1.in: New file, from GNU gettext.
22935
22936 2006-08-22  Bruno Haible  <bruno@clisp.org>
22937
22938         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22939         <utmpx.h> exists.
22940
22941 2006-08-22  Bruno Haible  <bruno@clisp.org>
22942
22943         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22944         <utmpx.h> exists.
22945
22946 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22947
22948         BeOS portability.
22949         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22950         exist.
22951         Problem reported by Bruno Haible.
22952
22953 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22954
22955         Avoid the need for AC_LIBSOURCES in m4 macros.
22956         * modules/acl (EXTRA_DIST): Add acl.h.
22957         * modules/argmatch (Files): Add m4/argmatch.m4.
22958         (configure.ac): Add gl_ARGMATCH.
22959         (EXTRA_DIST): Renamed from lib_SOURCES, for
22960         consistency with the other modules.  Remove argmatch.c.
22961         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22962         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22963         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22964         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22965         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22966         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22967         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22968         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22969         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22970         * modules/closeout (EXTRA_DIST): Add closeout.h.
22971         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22972         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22973         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22974         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22975         dirname.h; remove basename.c and stripslash.c.
22976         * modules/exclude (EXTRA_DIST): Add exclude.h.
22977         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22978         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22979         * modules/file-type (EXTRA_DIST): Add file-type.h.
22980         * modules/filemode (EXTRA_DIST): Add filemode.h.
22981         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22982         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22983         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22984         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22985         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22986         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22987         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22988         * modules/getdate (EXTRA_DIST): Add getdate.c.
22989         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22990         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22991         * modules/getpass (EXTRA_DIST): Add getpass.h.
22992         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22993         * modules/group-member (EXTRA_DIST): Add group-member.h.
22994         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22995         * modules/hash (EXTRA_DIST): Add hash.h.
22996         * modules/human (EXTRA_DIST): Add human.h.
22997         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22998         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22999         * modules/lchown (EXTRA_DIST): Add lchown.h.
23000         * modules/long-options (EXTRA_DIST): Add long-options.h.
23001         * modules/lstat (EXTRA_DIST): Add lstat.h.
23002         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
23003         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
23004         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
23005         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
23006         * modules/memxor (EXTRA_DIST): Add memxor.h.
23007         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
23008         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
23009         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
23010         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
23011         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
23012         * modules/physmem (EXTRA_DIST): Add physmem.h.
23013         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
23014         * modules/posixver (EXTRA_DIST): Add posixver.h.
23015         * modules/quote (EXTRA_DIST): Add quote.h.
23016         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
23017         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
23018         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
23019         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
23020         regex_internal.h regexec.c.
23021         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
23022         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
23023         * modules/same (EXTRA_DIST): Add same.h.
23024         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
23025         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
23026         * modules/savedir (EXTRA_DIST): Add savedir.h.
23027         * modules/sha1 (EXTRA_DIST): Add sha1.h.
23028         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
23029         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
23030         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
23031         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
23032         * modules/strdup (EXTRA_DIST): Add strdup.h.
23033         * modules/strftime (EXTRA_DIST): Add strftime.h.
23034         * modules/strndup (EXTRA_DIST): Add strndup.h.
23035         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
23036         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
23037         * modules/time_r (EXTRA_DIST): Add time_r.h.
23038         * modules/timespec (EXTRA_DIST): Add timespec.h.
23039         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
23040         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
23041         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
23042         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
23043         * modules/userspec (EXTRA_DIST): Add userspec.h.
23044         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
23045         * modules/utimens (EXTRA_DIST): Add utimens.h.
23046         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
23047         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
23048         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
23049         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
23050         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
23051         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
23052         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
23053         * modules/yesno (EXTRA_DIST): Add yesno.h.
23054
23055 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
23056
23057         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
23058
23059         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
23060         * m4/dev-ino.m4, same-inode.m4: Remove.
23061
23062         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
23063         * m4/acl.m4 (AC_FUNC_ACL):
23064         * m4/backupfile.m4 (gl_BACKUPFILE):
23065         * m4/c-strtod.m4 (gl_C99_STRTOLD):
23066         * m4/canon-host.m4 (gl_CANON_HOST):
23067         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
23068         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
23069         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
23070         * m4/cloexec.m4 (gl_CLOEXEC):
23071         * m4/close-stream.m4 (gl_CLOSE_STREAM):
23072         * m4/closeout.m4 (gl_CLOSEOUT):
23073         * m4/dirfd.m4 (gl_FUNC_DIRFD):
23074         * m4/dirname.m4 (gl_DIRNAME):
23075         * m4/exclude.m4 (gl_EXCLUDE):
23076         * m4/exitfail.m4 (gl_EXITFAIL):
23077         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
23078         * m4/file-type.m4 (gl_FILE_TYPE):
23079         * m4/filemode.m4 (gl_FILEMODE):
23080         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
23081         * m4/fpending.m4 (gl_FUNC_FPENDING):
23082         * m4/fprintftime.m4 (gl_FPRINTFTIME):
23083         * m4/fts.m4 (gl_FUNC_FTS):
23084         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
23085         * m4/getdate.m4 (gl_GETDATE):
23086         * m4/gethrxtime.m4 (gl_GETHRXTIME):
23087         * m4/getpagesize.m4 (gl_GETPAGESIZE):
23088         * m4/getpass.m4 (gl_FUNC_GETPASS):
23089         * m4/gettime.m4 (gl_GETTIME):
23090         * m4/getugroups.m4 (gl_GETUGROUPS):
23091         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
23092         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
23093         * m4/hard-locale.m4 (gl_HARD_LOCALE):
23094         * m4/hash.m4 (gl_HASH):
23095         * m4/idcache.m4 (gl_IDCACHE):
23096         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
23097         * m4/lchown.m4 (gl_FUNC_LCHOWN):
23098         * m4/long-options.m4 (gl_LONG_OPTIONS):
23099         * m4/lstat.m4 (gl_FUNC_LSTAT):
23100         * m4/md5.m4 (gl_MD5):
23101         * m4/memcasecmp.m4 (gl_MEMCASECMP):
23102         * m4/memcoll.m4 (gl_MEMCOLL):
23103         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
23104         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
23105         * m4/memxor.m4 (gl_MEMXOR):
23106         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
23107         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
23108         * m4/modechange.m4 (gl_MODECHANGE):
23109         * m4/mountlist.m4 (gl_MOUNTLIST):
23110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23111         * m4/openat.m4 (gl_FUNC_OPENAT):
23112         * m4/pathmax.m4 (gl_PATHMAX):
23113         * m4/physmem.m4 (gl_PHYSMEM):
23114         * m4/posixtm.m4 (gl_POSIXTM):
23115         * m4/posixver.m4 (gl_POSIXVER):
23116         * m4/quote.m4 (gl_QUOTE):
23117         * m4/quotearg.m4 (gl_QUOTEARG):
23118         * m4/readtokens.m4 (gl_READTOKENS):
23119         * m4/readutmp.m4 (gl_READUTMP):
23120         * m4/regex.m4 (gl_REGEX):
23121         * m4/safe-read.m4 (gl_SAFE_READ):
23122         * m4/safe-write.m4 (gl_SAFE_WRITE):
23123         * m4/same.m4 (gl_SAME):
23124         * m4/save-cwd.m4 (gl_SAVE_CWD):
23125         * m4/savedir.m4 (gl_SAVEDIR):
23126         * m4/settime.m4 (gl_SETTIME):
23127         * m4/sha1.m4 (gl_SHA1):
23128         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
23129         * m4/stat-macros.m4 (gl_STAT_MACROS):
23130         * m4/stat-time.m4 (gl_STAT_TIME):
23131         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
23132         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
23133         * m4/strdup.m4 (gl_FUNC_STRDUP):
23134         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
23135         * m4/strndup.m4 (gl_FUNC_STRNDUP):
23136         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
23137         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
23138         * m4/time_r.m4 (gl_TIME_R):
23139         * m4/timespec.m4 (gl_TIMESPEC):
23140         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
23141         * m4/unlinkdir.m4 (gl_UNLINKDIR):
23142         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
23143         * m4/userspec.m4 (gl_USERSPEC):
23144         * m4/utimecmp.m4 (gl_UTIMECMP):
23145         * m4/utimens.m4 (gl_UTIMENS):
23146         * m4/xalloc.m4 (gl_XALLOC):
23147         * m4/xgetcwd.m4 (gl_XGETCWD):
23148         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
23149         * m4/xreadlink.m4 (gl_XREADLINK):
23150         * m4/xstrtod.m4 (gl_XSTRTOD):
23151         * m4/yesno.m4 (gl_YESNO):
23152         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
23153         to get the necessary .h files and whatnot.
23154
23155 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
23156             Bruno Haible  <bruno@clisp.org>
23157
23158         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
23159         /bin/sh understanding of '!' conditional negation.
23160
23161 2006-08-21  Jim Meyering  <jim@meyering.net>
23162
23163         * modules/openat (Depends-on): Really alphabetize.
23164
23165         * modules/acl (Depends-on): Add error and quote.
23166
23167         * check-module (find_included_lib_files): Add at-func.c to the
23168         ok-to-include-more-than-once white list.
23169
23170         * modules/openat (Depends-on): Add lstat.  Alphabetize.
23171
23172 2006-08-21  Bruno Haible  <bruno@clisp.org>
23173
23174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23175         Emit a pkgdata_DATA variable only if some snippets add contents to it.
23176         Reported by Martin Lambers <marlam@marlam.de>.
23177
23178 2006-08-21  Bruno Haible  <bruno@clisp.org>
23179
23180         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
23181         specify an installation location, don't emit a noinst_LIBRARIES or
23182         noinst_LTLIBRARIES assignment.
23183
23184 2006-08-21  Bruno Haible  <bruno@clisp.org>
23185
23186         BeOS portability.
23187         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
23188         BeOS has mbrtowc() but no <wctype.h>.
23189
23190 2006-08-21  Bruno Haible  <bruno@clisp.org>
23191
23192         BeOS portability.
23193         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
23194         exist.
23195
23196 2006-08-21  Bruno Haible  <bruno@clisp.org>
23197
23198         BeOS portability.
23199         * lib/mbchar.h: Include <wctype.h> only if it exists.
23200
23201 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23202
23203         Remove files that are no longer needed by their respective modules.
23204         * m4/obstack.m4: Remove.
23205         * m4/strerror_r.m4: Remove.
23206         * m4/uint32_t.m4: Remove.
23207         * m4/uintptr_t.m4: Remove.
23208         * m4/ullong_max.m4: Remove.
23209         * m4/xstrtoimax.m4: Remove.
23210         * m4/xstrtoumax.m4: Remove.
23211
23212         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
23213         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
23214         dependencies now capture this.
23215
23216         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
23217         Do not use AC_LIBSOURCES, since gnulib modules now do this.
23218         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
23219         * m4/human.m4 (gl_HUMAN): Likewise.
23220         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
23221         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
23222
23223         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
23224
23225         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
23226         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
23227         stdint.
23228         * m4/human.m4 (gl_HUMAN): Likewise.
23229         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
23230         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
23231         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23232         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23233         * m4/xstrtol (gl_XSTRTOL): Likewise.
23234
23235         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
23236         AC_TYPE_LONG_LONG_INT.
23237         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
23238         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
23239         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
23240         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
23241
23242         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
23243         on stdbool.
23244
23245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
23246         (gl_PREREQ_XSTRTOUL): Remove.
23247
23248         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
23249
23250         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
23251         mode.
23252
23253 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23254
23255         Add and change modules to make it easier for coreutils to use
23256         gnulib-tool.
23257         * modules/backupfile (Files): Remove m4/d-ino.m4.
23258         (Depends-on): Add d-ino.
23259         * modules/cycle-check (Depends-on): Add stdint.
23260         (lib_SOURCES): Add cycle-check.h.
23261         * modules/d-ino: New module.
23262         * modules/d-type: New module.
23263         * modules/error (Files): Remove m4/strerror_r.m4.
23264         * modules/filemode (Files): Add m4/st_dm_mode.m4.
23265         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
23266         m4/inttypes_h.m4, m4/uintmax_t.m4.
23267         (Depends-on): Add stdint.
23268         (lib_SOURCES): Add fsusage.h.
23269         * modules/getcwd (Files): Remove d-ino.m4.
23270         (Depends-on): Add d-ino.
23271         * modules/getndelim2 (Depends-on): Add stdint.
23272         * modules/glob (Files): Remove m4/d-type.m4.
23273         (Depends-on): Add d-type.
23274         * modules/host-os: New module.
23275         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
23276         m4/inttypes_h.m4, m4/uintmax_t.m4.
23277         * Depends-on: Add stdint.
23278         (lib_SOURCES): Add human.h.
23279         * modules/inttostr (Files): Remove m4/intmax_t.m4,
23280         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
23281         m4/uintmax_t.m4, m4/ulonglong.m4.
23282         (Depends-on): Add stdint.
23283         (EXTRA_DIST): Add inttostr.h.
23284         * modules/lchmod: New module.
23285         * modules/link-follow: New module.
23286         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
23287         (Depends-on): Add lchmod.
23288         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
23289         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
23290         (Depends-on): Add stdint.
23291         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
23292         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
23293         (Depends-on): Add stdint.
23294         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
23295         * modules/perl: New module.
23296         * modules/regex (Depends-on): Add stdint.
23297         * modules/rmdir-errno: New module.
23298         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23299         m4/intmax_t.m4.
23300         (Depends-on): Add stdint.
23301         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
23302         m4/uintmax_t.m4.
23303         (Depends-on): Add stdint.
23304         * modules/unlink-busy: New module.
23305         * modules/utimecmp (Depends-on): Add stdint.
23306         * modules/uptime: New module.
23307         * modules/winsz-ioctl: New module.
23308         * modules/winsz-termios: New module.
23309         * modules/xnanosleep (Depends-on): Add nanosleep.
23310         * modules/ullong_max: Remove.
23311         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
23312         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
23313         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
23314         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
23315         (Depends-on): Add inttypes.
23316         (lib_SOURCES): Add xstrtol.h.
23317         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
23318         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
23319         * MODULES.html.sh: Move 'assert' into the assert section.
23320         Move 'dummy' into the linking section.
23321         Remove ullong_max.
23322         Add section for compatibility checks for POSIX:2001 functions,
23323         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
23324         winsz-ioctl, and winsz-termios into it.
23325         Add lchmod.
23326         Add top-level Misc section and put host-os, perl, and uptime
23327         into it.
23328
23329 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23330
23331         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23332         now assume the stdint module.  Do not include inttypes.h.
23333         * lib/fsusage.h: Likewise.
23334         * lib/getndelim2.c: Likewise.
23335         * lib/human.h: Likewise.
23336         * lib/inttostr.h: Likewise.
23337         * lib/obstack.c: Likewise.
23338         * lib/regex_internal.h: Likewise.
23339         * lib/tempname.c: Likewise.
23340         * lib/utimecmp.c: Likewise.
23341         * lib/xstrtol.h: Likewise.
23342
23343         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23344
23345         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23346         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23347         * lib/xtime.h: Likewise.
23348
23349 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23350
23351         * modules/openat (Files): Add lib/fchmodat.c.
23352         Fixes problem reported by Jay Youngman.
23353
23354 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23355
23356         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
23357         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
23358
23359 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23360             Bruno Haible  <bruno@clisp.org>
23361
23362         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
23363         and is a script that invokes bison. Tighten the code. Add comments.
23364
23365 2006-08-18  Jim Meyering  <jim@meyering.net>
23366
23367         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
23368         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
23369         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
23370         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
23371
23372 2006-08-18  Bruno Haible  <bruno@clisp.org>
23373
23374         * modules/bison-i18n: New file.
23375         * MODULES.html.sh (Internationalization functions): Add it.
23376
23377 2006-08-18  Bruno Haible  <bruno@clisp.org>
23378
23379         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
23380         sys/statvfs.h. When getmntinfo was found, check its declaration and
23381         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
23382
23383 2006-08-18  Bruno Haible  <bruno@clisp.org>
23384
23385         * m4/bison-i18n.m4: New file, from bison.
23386
23387 2006-08-18  Bruno Haible  <bruno@clisp.org>
23388
23389         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
23390         (ME_DUMMY): Treat "kernfs" as a dummy.
23391         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
23392
23393 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23394
23395         Update from coreutils.
23396
23397         2006-08-15  Jim Meyering  <jim@meyering.net>
23398
23399         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
23400
23401         2006-01-17  Jim Meyering  <jim@meyering.net>
23402
23403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
23404
23405         2006-01-11  Jim Meyering  <jim@meyering.net>
23406
23407         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
23408         Check for the lchmod function.
23409
23410 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23411
23412         Update from coreutils.
23413
23414         * lib/__fpending.h: Add copyright notice.
23415         * lib/fprintftime.h: Likewise.
23416         * lib/savedir.c: Use (C) in copyright notice.
23417         * lib/savedir.h: Likewise.
23418
23419         2006-08-15  Jim Meyering  <jim@meyering.net>
23420
23421         * lib/at-func.c: New file, with the logic of all emulated at-functions.
23422         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23423         in support of the EXPECTED_ERRNO macro.
23424         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23425         definitions.  Instead, define the appropriate symbols and include
23426         "at-func.c".
23427         * lib/mkdirat.c (mkdirat): Likewise.
23428         * lib/fchmodat.c (fchmodat): Likewise.
23429         (ENOSYS): Remove definition.
23430         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
23431         it.  Don't include "unistd--.h" -- it wasn't ever used.
23432
23433         2006-01-17  Jim Meyering  <jim@meyering.net>
23434
23435         Rewrite fts.c not to change the current working directory,
23436         by using openat, fstatat, fdopendir, etc..
23437
23438         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
23439         (HAVE_OPENAT_SUPPORT): Define.
23440         [_LIBC] (fchdir): Don't undef or define; no longer used.
23441         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
23442         Now, this `function' always succeeds, and consumes its file descriptor
23443         parameter -- so callers must not close such FDs.  Update callers.
23444         (diropen_fd, opendirat, cwd_advance_fd): New functions.
23445         (diropen): Add parameter, SP.  Adjust all callers.
23446         Implement using diropen_fd, rather than open.
23447         (fts_open): Initialize new member, fts_cwd_fd.
23448         Remove fts_rft-setting code.
23449         (fts_close): Close fts_cwd_fd, if necessary.
23450         (__opendir2): Define in terms of opendir or opendirat,
23451         depending on whether the FST_NOCHDIR flag is set.
23452         (fts_build): Since fts_safe_changedir consumes its FD, and since
23453         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
23454         and close the dup'd file descriptor upon failure.
23455         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
23456         (fts_safe_changedir): Tweak semantics to reflect that this function
23457         now calls cwd_advance_fd and hence consumes its FD argument.
23458         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
23459         [struct FTS] (fts_rft): Remove now-unused member.
23460         [struct FTS] (fts_cycle.state): Improve comment.
23461
23462         * lib/openat.c (openat_needs_fchdir): New function.
23463         * lib/openat.h (openat_needs_fchdir): Declare it.
23464
23465 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
23468         Problem and fix reported by Pádraig Brady in
23469         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
23470
23471 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23472
23473         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
23474
23475 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23476
23477         * lib/memcoll.c (memcoll): Optimize for the common case where the
23478         arguments are bytewise equal.
23479
23480 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23481
23482         * doc/regexprops-generic.texi: Add a copyright notice.
23483
23484 2006-08-15  Bruno Haible  <bruno@clisp.org>
23485
23486         * modules/tmpdir (License): Change to LGPL.
23487
23488 2006-08-15  Bruno Haible  <bruno@clisp.org>
23489
23490         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
23491         module.
23492
23493 2006-08-14  Simon Josefsson  <jas@extundo.com>
23494
23495         * config/srclist.txt: Add gnupload.
23496
23497 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23498
23499         Change copyright notice from LGPL 2 to GPL 2, since that's the
23500         standard form used in the gnulib repository.
23501         * tests/test-lock.c: Likewise.
23502         * tests/test-stdint.c: Likewise.
23503         * tests/test-tls.c: Likewise.
23504
23505         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
23506         prelude-manager.  User shorter URLs for GNU projects, without '?'.
23507         Add copyright notice.
23508
23509         * check-module: Add copyright notice.  Output a copyright
23510         notice if "--version" is specified.
23511         * modules/COPYING: New file.
23512         * tests/test-getaddrinfo.c: Add copyright notice.
23513         * tests/test-verify.c: Likewise.
23514
23515 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23516
23517         Change copyright notice from LGPL 2 to GPL 2, since that's the
23518         standard form used in the gnulib repository.
23519         * lib/lock.c: LGPL -> GPL.
23520         * lib/lock.h: Likewise.
23521         * lib/strnlen1.c: Likewise.
23522         * lib/strnlen1.h: Likewise.
23523         * lib/tls.c: Likewise.
23524         * lib/tls.h: Likewise.
23525         * lib/tmpdir.c: Likewise.
23526
23527         * lib/TODO: Remove; this belongs only in coreutils.
23528
23529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23530
23531         Add copyright notices to long-enough files that lack them, since
23532         otherwise the files aren't clearly free.  Use the same notice that
23533         getdate.texi already uses.
23534         * doc/alloca-opt.texi: Add copyright notice.
23535         * doc/alloca.texi: Likewise.
23536         * doc/ctime.texi: Likewise.
23537         * doc/functions.texi: Likewise.
23538         * doc/gcd.texi: Likewise.
23539         * doc/gnulib-tool.texi: Likewise.
23540         * doc/inet_ntoa.texi: Likewise.
23541         * doc/visibility.texi: Likewise.
23542
23543         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
23544         * doc/quote.texi: Add copyright notice.
23545
23546         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
23547         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
23548         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
23549         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
23550         is now obsolete, and give a pointer to the Sun list.
23551         Add copyright notice.
23552
23553 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23554
23555         * config/srclistvars.sh: Add copyright notice.
23556
23557 2006-08-14  Eric Blake  <ebb9@byu.net>
23558
23559         Import the following change from libc:
23560
23561         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
23562
23563         Upstream bug 2997.
23564         * lib/misc/error.c: Add space between program name and message if file
23565         name is missing.
23566
23567 2006-08-12  Karl Berry  <karl@gnu.org>
23568
23569         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
23570         remove, these originate in gnulib now.
23571
23572 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23573
23574         * doc/Makefile (standards.info standards.html standards.dvi):
23575         Also depend on make-stds.texi.
23576
23577 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23578
23579         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
23580         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
23581
23582         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
23583         in wchar_t.  Problem reported by Eric Blake.
23584
23585         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
23586         LEN is smaller than SIZE.  Suggested by Bruno Haible.
23587         Also, help the compiler to keep LEN in a register.
23588
23589 2006-08-11  Eric Blake  <ebb9@byu.net>
23590
23591         * users.txt: Sort.  Add tar.
23592
23593 2006-08-11  Bruno Haible  <bruno@clisp.org>
23594
23595         * users.txt: New file.
23596
23597 2006-08-11  Bruno Haible  <bruno@clisp.org>
23598
23599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23600         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23601
23602 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         * modules/snprintf (Depends-on): Remove minmax.
23605         (Maintainer): Add self and Bruno.
23606
23607 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23608
23609         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23610         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23611         (EOVERFLOW): Define if the system does not.
23612         Do not include "minmax.h"; it wasn't used.
23613         (snprintf): Don't assume size_t promotes to an unsigned type.
23614         Fix bug when generated string was too long for the buffer: the
23615         buffer's contents are supposed to be the initial prefix of the
23616         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23617         exceeds INT_MAX; do the check ourselves.
23618
23619         Import the following changes from libc:
23620
23621         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23622
23623         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23624         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23625         set wc to the byte which couldn't be converted.
23626         (re_string_reconstruct): Don't clear valid_raw_len before calling
23627         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23628         tip_context using re_string_context_at.
23629
23630         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23631
23632         * lib/posix/regex.h: g++ still cannot handled [restrict].
23633
23634         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23635
23636         * lib/posix/regex.h: Remove special handling for VMS.
23637
23638 2006-08-10  Jim Meyering  <jim@meyering.net>
23639
23640         * modules/same-inode: New module.
23641         * modules/dev-ino: New module.
23642         * modules/cycle-check: Depend on these modules, rather than simply
23643         including their .h files.
23644         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23645         required via m4/cycle-check.m4.
23646         * modules/same: Depend on new same-inode module, rather than
23647         including same-inode.h.
23648         * modules/chdir-safer: New file.
23649
23650         * modules/chown (Depends-on): Add stat-macros.
23651
23652 2006-08-10  Jim Meyering  <jim@meyering.net>
23653
23654         * m4/cycle-check.m4: New file.
23655         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23656         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23657
23658 2006-08-10  Eric Blake  <ebb9@byu.net>
23659
23660         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23661         in from original proposal.
23662
23663 2006-08-10  Eric Blake  <ebb9@byu.net>
23664         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23665
23666         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23667         namespace.
23668
23669 2006-08-10  Bruno Haible  <bruno@clisp.org>
23670
23671         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23672         as well.
23673
23674 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23675
23676         Sync from coreutils.
23677
23678         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23679
23680         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23681         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23682
23683 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23684
23685         * modules/restrict: Remove; no longer needed now that we assume
23686         Autoconf 2.59 or later.
23687         * MODULES.html.sh: Remove 'restrict'.
23688         * modules/argp (Depends-on): Remove 'restrict'.
23689         * modules/base64 (Depends-on): Likewise.
23690         * modules/gc (Depends-on): Likewise.
23691         * modules/getaddrinfo (Depends-on): Likewise.
23692         * modules/glob (Depends-on): Likewise.
23693         * modules/inet_ntop (Depends-on): Likewise.
23694         * modules/inet_pton (Depends-on): Likewise.
23695         * modules/memxor (Depends-on): Likewise.
23696         * modules/regex (Depends-on): Likewise.
23697         * modules/strtok_r (Depends-on): Likewise.
23698         * modules/time_r (Depends-on): Likewise.
23699
23700 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23701
23702         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23703         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23704         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23705         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23706         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23707         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23708         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23709         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23710
23711         Merge from coreutils.
23712         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23713         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23715         * m4/time_r.m4 (gl_TIME_R): Likewise.
23716
23717 2006-08-09  Karl Berry  <karl@gnu.org>
23718
23719         * config/srclist.txt: no more gettext-tools, per Bruno.
23720
23721 2006-08-08  Eric Blake  <ebb9@byu.net>
23722
23723         * modules/verror: New module.
23724         * MODULES.html.sh: Document it.
23725
23726 2006-08-08  Eric Blake  <ebb9@byu.net>
23727
23728         * lib/verror.h, lib/verror.c: New files.
23729
23730 2006-08-08  Eric Blake  <ebb9@byu.net>
23731
23732         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23733         verror_at_line output complies with GNU Coding Standards even when
23734         file is NULL.
23735
23736 2006-08-07  Bruno Haible  <bruno@clisp.org>
23737
23738         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23739         versions of AIX.
23740         Reported by Ralf Wildenhues.
23741
23742 2006-08-07  Bruno Haible  <bruno@clisp.org>
23743
23744         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23745         in an AC_DEFUN. Needed so that the autoconf snippets can use
23746         AC_REQUIRE.
23747
23748 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23749
23750         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23751         Initialize pkgdata_DATA.
23752         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23753         overriding it.
23754
23755 2006-08-06  Eric Blake  <ebb9@byu.net>
23756
23757         * lib/error.h: Fold in some upstream changes from glibc.
23758         * lib/error.c: Likewise.
23759
23760 2006-08-04  Bruno Haible  <bruno@clisp.org>
23761
23762         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23763         Make the mostlyclean-local rule depend on mostlyclean-generic.
23764         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23765
23766 2006-07-31  Bruno Haible  <bruno@clisp.org>
23767
23768         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23769         <stdlib.h>, <string.h>.
23770
23771 2006-07-30  Bruno Haible  <bruno@clisp.org>
23772
23773         * modules/readlink (License): Change to LGPL.
23774
23775 2006-07-30  Bruno Haible  <bruno@clisp.org>
23776
23777         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23778         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23779         set PKGDATADIR to point to it.
23780
23781 2006-07-30  Bruno Haible  <bruno@clisp.org>
23782
23783         * modules/csharpexec (configure.ac): Comment out macro invocation.
23784         * modules/javaexec (configure.ac): Likewise.
23785         * modules/javacomp-script (configure.ac): Likewise.
23786
23787         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23788
23789 2006-07-30  Bruno Haible  <bruno@clisp.org>
23790
23791         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23792         linked-list.
23793
23794 2006-07-30  Bruno Haible  <bruno@clisp.org>
23795
23796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23797
23798 2006-07-30  Bruno Haible  <bruno@clisp.org>
23799
23800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23801         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23802         get removed.
23803
23804 2006-07-29  Bruno Haible  <bruno@clisp.org>
23805
23806         Make it possible for gnulib-tool to work with locally modified or
23807         augmented gnulib repositories.
23808         * gnulib-tool (func_usage): Document --local-dir option.
23809         (local_gnulib_dir): New variable.
23810         Handle --local-dir option.
23811         (func_lookup_file): New function.
23812         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23813         (func_get_description, func_get_filelist, func_get_description,
23814         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23815         func_get_automake_snippet, func_get_include_directive,
23816         func_get_license, func_get_maintainer): Use func_lookup_file.
23817         (func_import, func_create_testdir): Use func_lookup_file.
23818
23819 2006-07-29  Bruno Haible  <bruno@clisp.org>
23820
23821         * modules/setenv (Depends-on): Add unistd.
23822
23823 2006-07-29  Bruno Haible  <bruno@clisp.org>
23824
23825         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23826
23827 2006-07-29  Bruno Haible  <bruno@clisp.org>
23828
23829         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23830
23831 2006-07-29  Bruno Haible  <bruno@clisp.org>
23832
23833         * gnulib-tool (import, update): If there is no Makefile.am, look at
23834         aclocal.m4, instead of bailing out.
23835
23836 2006-07-29  Bruno Haible  <bruno@clisp.org>
23837
23838         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23839         Categorize the options by when they are useful.
23840
23841 2006-07-29  Bruno Haible  <bruno@clisp.org>
23842
23843         * gnulib-tool (func_usage): Document option --no-libtool.
23844         Handle option --no-libtool.
23845         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23846         for changed semantics of $libtool variable.
23847         (func_import): Likewise. If libtool is not used, show this through
23848         an option --no-libtool.
23849         (func_create_testdir): Update.
23850
23851 2006-07-29  Bruno Haible  <bruno@clisp.org>
23852
23853         * gnulib-tool (func_import): Extend error message about missing
23854         --doc-base.
23855
23856 2006-07-29  Bruno Haible  <bruno@clisp.org>
23857
23858         * gnulib-tool (func_import): Don't create the $docbase directory if
23859         there is no file to store there.
23860
23861 2006-07-29  Bruno Haible  <bruno@clisp.org>
23862
23863         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23864         relevant, look for configure.ac there, not in the current directory.
23865         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23866
23867 2006-07-29  Bruno Haible  <bruno@clisp.org>
23868
23869         * gnulib-tool (SORT): New variable.
23870         (func_usage): Undocument --assume-autoconf option.
23871         Remove --assume-autoconf option handling.
23872         (autoconf_minversion): Determine from the contents of configure.ac.
23873         (func_import): Remove autoconf_minversion handling.
23874         Suggested by Eric Blake.
23875
23876 2006-07-29  Bruno Haible  <bruno@clisp.org>
23877
23878         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23879
23880 2006-07-29  Bruno Haible  <bruno@clisp.org>
23881
23882         * config/srclist.txt (*setenv.[ch]): Remove rules.
23883
23884 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23885
23886         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23887
23888 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23889
23890         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23891         arpa/inet.h.
23892
23893 2006-07-28  Simon Josefsson  <jas@extundo.com>
23894
23895         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23896         * modules/inet_pton (Depends-on): Likewise.
23897
23898 2006-07-28  Simon Josefsson  <jas@extundo.com>
23899
23900         * m4/netinet_in_h.m4: New file.
23901
23902 2006-07-28  Simon Josefsson  <jas@extundo.com>
23903
23904         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23905         #include's.
23906
23907 2006-07-28  Simon Josefsson  <jas@extundo.com>
23908
23909         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23910         #include's.
23911
23912 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23913
23914         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23915         setgid on directories only if they set these bits.
23916         * lib/modechange.h: Remove obsolete comment about masks.
23917
23918 2006-07-28  Eric Blake  <ebb9@byu.net>
23919
23920         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23921         macro expansion.
23922
23923 2006-07-28  Bruno Haible  <bruno@clisp.org>
23924
23925         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23926
23927 2006-07-28  Bruno Haible  <bruno@clisp.org>
23928
23929         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23930
23931 2006-07-28  Bruno Haible  <bruno@clisp.org>
23932
23933         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23934         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23935         Define fallbacks.
23936         Avoids link error on FreeBSD 4.x.
23937         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23938
23939         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23940         encoding.
23941         * lib/mbswidth.c (iswcntrl): Likewise.
23942
23943 2006-07-27  Bruno Haible  <bruno@clisp.org>
23944
23945         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23946         test.
23947
23948 2006-07-27  Bruno Haible  <bruno@clisp.org>
23949
23950         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23951         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23952         defined.
23953
23954 2006-07-26  Eric Blake  <ebb9@byu.net>
23955
23956         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23957
23958 2006-07-26  Eric Blake  <ebb9@byu.net>
23959
23960         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23961         like mingw that lack mkstemp.
23962         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23963         avoid compilation warning on mingw.
23964
23965 2006-07-26  Bruno Haible  <bruno@clisp.org>
23966
23967         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23968         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23969         INT_FAST*_MIN, INTPTR_MIN.
23970
23971 2006-07-25  Bruno Haible  <bruno@clisp.org>
23972
23973         * modules/version-etc (Depends-on): Add stdarg.
23974
23975 2006-07-25  Bruno Haible  <bruno@clisp.org>
23976
23977         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23978         complex commands.
23979
23980 2006-07-25  Bruno Haible  <bruno@clisp.org>
23981
23982         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23983         defined in <stdarg.h> or config.h.
23984
23985 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23986
23987         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23988         (gl_STDIO_SAFER): Remove.
23989
23990 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * MODULES.html.sh (File stream based Input/Output):
23993         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23994         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23995         * modules/fopen-safer, modules/tmpfile-safer: New files.
23996         * modules/stdio-safer: Remove.
23997
23998 2006-07-24  Bruno Haible  <bruno@clisp.org>
23999
24000         * modules/tmpdir: New file.
24001         * MODULES.html.sh (File system functions): Add it.
24002
24003 2006-07-24  Bruno Haible  <bruno@clisp.org>
24004
24005         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
24006         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
24007
24008 2006-07-24  Bruno Haible  <bruno@clisp.org>
24009
24010         * modules/clean-temp: New file.
24011
24012 2006-07-24  Bruno Haible  <bruno@clisp.org>
24013
24014         * m4/tmpdir.m4: New file, from GNU gettext.
24015
24016 2006-07-24  Bruno Haible  <bruno@clisp.org>
24017
24018         * lib/tmpdir.h: New file, from GNU gettext.
24019         * lib/tmpdir.c: New file, from GNU gettext.
24020
24021 2006-07-24  Bruno Haible  <bruno@clisp.org>
24022
24023         * lib/clean-temp.h: New file, from GNU gettext.
24024         * lib/clean-temp.c: New file, from GNU gettext.
24025
24026 2006-07-23  Eric Blake  <ebb9@byu.net>
24027
24028         * modules/stdio-safer (Files): Add tmpfile-safer.c.
24029         (Depends-on): Add binary-io.
24030
24031 2006-07-23  Eric Blake  <ebb9@byu.net>
24032
24033         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
24034
24035 2006-07-23  Eric Blake  <ebb9@byu.net>
24036
24037         * lib/tmpfile-safer.c: New file.
24038         * lib/stdio-safer.h (fopen_safer): Add prototype.
24039         * lib/stdio--.h (tmpfile): Make safer.
24040
24041 2006-07-23  Bruno Haible  <bruno@clisp.org>
24042
24043         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
24044         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
24045         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
24046         gl_linked_remove_at): Use it.
24047
24048 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24049         and Simon Josefsson <jas@extundo.com>
24050
24051         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
24052
24053         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
24054
24055 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24056
24057         * modules/close-stream: New file.
24058         * modules/closeout (Description): Make it clear that it exits
24059         with a diagnostic on error.
24060         (Depends-on): Add close-stream.  Remove fpending, stdbool.
24061         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
24062
24063 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24064
24065         * m4/close-stream.m4: New file.
24066
24067 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
24068
24069         * lib/close-stream.c, lib/close-stream.h: New files.
24070
24071 2006-07-22  Bruno Haible  <bruno@clisp.org>
24072
24073         Merge from GNU gettext 0.15.
24074
24075         2006-05-01  Bruno Haible  <bruno@clisp.org>
24076
24077                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
24078
24079         2006-07-22  Bruno Haible  <bruno@clisp.org>
24080
24081                 * modules/javaversion: New file.
24082                 * MODULES.html.sh (Java): Add javaversion.
24083
24084         2006-03-12  Bruno Haible  <bruno@clisp.org>
24085
24086                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
24087
24088         2005-12-04  Bruno Haible  <bruno@clisp.org>
24089
24090                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
24091                 (untested).
24092
24093         2006-06-21  Bruno Haible  <bruno@clisp.org>
24094
24095                 Avoid warnings from recent versions of mcs.
24096                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
24097                 -o, -L, -r any more. Use options documented since mcs-1.0
24098                 instead. Similarly for -g.
24099
24100         2005-12-04  Bruno Haible  <bruno@clisp.org>
24101
24102                 * build-aux/csharpcomp.sh.in: Suffix for resources is
24103                 .resources, not .resource.
24104
24105         2005-07-09  Bruno Haible  <bruno@clisp.org>
24106
24107                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
24108                 add a .dll suffix.
24109                 Reported by Mark Junker <mjscod@gmx.de>.
24110
24111         2006-07-22  Bruno Haible  <bruno@clisp.org>
24112
24113                 * modules/gettext: Upgrade to gettext-0.15.
24114                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
24115                 m4/visibility.m4.
24116                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
24117
24118 2006-07-22  Bruno Haible  <bruno@clisp.org>
24119
24120         Merge from GNU gettext 0.15.
24121
24122         2006-03-25  Bruno Haible  <bruno@clisp.org>
24123
24124                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
24125
24126         2006-07-21  Bruno Haible  <bruno@clisp.org>
24127
24128                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
24129                 "1.1".
24130
24131         2006-05-09  Bruno Haible  <bruno@clisp.org>
24132
24133                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
24134                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
24135                 for the conftestver execution.
24136
24137         2006-05-01  Bruno Haible  <bruno@clisp.org>
24138
24139                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
24140                 optional target-version argument. Verify that the compiler
24141                 groks source of the specified source-version, or add -source
24142                 option as necessary. Verify that the compiler produces
24143                 bytecode in the specified target-version, or add -target and
24144                 -source options as necessary. Make the result of the test
24145                 available as variable CONF_JAVAC. Also log error output in
24146                 config.log.
24147
24148         2006-03-11  Bruno Haible  <bruno@clisp.org>
24149
24150                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
24151
24152         2006-05-09  Bruno Haible  <bruno@clisp.org>
24153
24154                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
24155                 CLASSPATH_SEPARATOR to a semicolon.
24156
24157         2006-03-12  Bruno Haible  <bruno@clisp.org>
24158
24159                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
24160                 available as variable CONF_JAVA, for subsequent autoconf
24161                 tests. Also log error output in config.log.
24162
24163         2006-07-19  Bruno Haible  <bruno@clisp.org>
24164
24165                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
24166                 that getline works on glibc2 systems. Needed to avoid trouble
24167                 in relocatable.c.
24168                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
24169
24170         2005-12-04  Bruno Haible  <bruno@clisp.org>
24171
24172                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
24173                 launcher (untested).
24174
24175         2005-12-04  Bruno Haible  <bruno@clisp.org>
24176
24177                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
24178
24179         2006-07-22  Bruno Haible  <bruno@clisp.org>
24180
24181                 * gettext.m4: Update from GNU gettext-0.15.
24182                 * nls.m4: Likewise.
24183                 * po.m4: Likewise.
24184                 * inttypes-pri.m4: Likewise.
24185                 * inttypes-h.m4: Renamed from inttypes.m4.
24186                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
24187
24188 2006-07-22  Bruno Haible  <bruno@clisp.org>
24189
24190         Merge from GNU gettext 0.15.
24191
24192         2005-07-05  Bruno Haible  <bruno@clisp.org>
24193
24194                 * printf-args.c (printf_fetchargs): Work around broken
24195                 definition of wint_t on mingw.
24196
24197         2005-02-12  Bruno Haible  <bruno@clisp.org>
24198
24199                 * xallocsa.h: Add extern "C" for C++.
24200
24201         2006-05-17  Bruno Haible  <bruno@clisp.org>
24202
24203                 Cygwin portability.
24204                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
24205
24206         2006-04-30  Bruno Haible  <bruno@clisp.org>
24207
24208                 * progreloc.c: Include <mach-o/dyld.h> if available.
24209                 (find_executable): Use _NSGetExecutablePath when possible.
24210
24211         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
24212
24213                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
24214                 function.
24215
24216         2005-12-29  Bruno Haible  <bruno@clisp.org>
24217
24218                 * progreloc.c (set_program_name_and_installdir): Fix
24219                 compilation error.
24220
24221         2005-12-04  Bruno Haible  <bruno@clisp.org>
24222
24223                 Cygwin portability.
24224                 * progreloc.c: Include <windows.h> also on Cygwin.
24225                 (find_executable): Add support for Cygwin.
24226                 (set_program_name_and_installdir): Handle also platforms with
24227                 nonempty EXEEXT.
24228
24229         2006-07-11  Bruno Haible  <bruno@clisp.org>
24230
24231                 * javacomp.c: Fix a comment.
24232                 Reported by Jim Meyering.
24233
24234         2006-04-30  Bruno Haible  <bruno@clisp.org>
24235
24236                 * javacomp.h (compile_java_class): Add source_version,
24237                 target_version arguments.
24238                 * javacomp.c: Rewritten to choose only a compiler that
24239                 respects the specified source_version and target_version.
24240
24241         2006-06-27  Bruno Haible  <bruno@clisp.org>
24242
24243                 Assume correct S_ISDIR macro.
24244                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
24245
24246         2006-07-22  Bruno Haible  <bruno@clisp.org>
24247
24248                 * javaversion.h: New file, from GNU gettext.
24249                 * javaversion.c: New file, from GNU gettext.
24250                 * javaversion.java: New file, from GNU gettext.
24251                 * javaversion.class: New file, from GNU gettext.
24252
24253         2006-05-17  Bruno Haible  <bruno@clisp.org>
24254
24255                 Cygwin portability.
24256                 * javaexec.c (execute_java_class): Test for jview program
24257                 also on Cygwin.
24258
24259         2006-04-09  Bruno Haible  <bruno@clisp.org>
24260
24261                 * fatal-signal.c: Don't include string.h.
24262                 (at_fatal_signal): Use a copying loop instead of memcpy.
24263
24264         2005-12-04  Bruno Haible  <bruno@clisp.org>
24265
24266                 * csharpexec.c: Add support for 'clix' launcher (untested).
24267                 (execute_csharp_using_sscli): New function.
24268                 (execute_csharp_program): Call it.
24269
24270         2006-06-21  Bruno Haible  <bruno@clisp.org>
24271
24272                 Avoid warnings from recent versions of mcs.
24273                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
24274                 -o, -L, -r any more. Use options documented since mcs-1.0
24275                 instead. Similarly for -g.
24276
24277         2005-07-09  Bruno Haible  <bruno@clisp.org>
24278
24279                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
24280                 add a .dll suffix.
24281                 Reported by Mark Junker <mjscod@gmx.de>.
24282
24283         2006-06-17  Bruno Haible  <bruno@clisp.org>
24284
24285                 * config.charset: Update for NetBSD 3.0.
24286
24287         2006-05-17  Bruno Haible  <bruno@clisp.org>
24288
24289                 Cygwin portability.
24290                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
24291
24292         2006-05-16  Bruno Haible  <bruno@clisp.org>
24293
24294                 * localcharset.c [CYGWIN]: Include <windows.h>.
24295                 (get_charset_aliases): For Cygwin, return the same CPxxx
24296                 aliases list as under WIN32.
24297                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
24298                 the environment variables. Fall back to GetACP().
24299
24300         2006-04-05  Bruno Haible  <bruno@clisp.org>
24301
24302                 * config.charset: Update Juan Manuel Guerrero's address.
24303
24304         2005-02-12  Bruno Haible  <bruno@clisp.org>
24305
24306                 * allocsa.h: Add extern "C" for C++.
24307
24308         2005-02-10  Bruno Haible  <bruno@clisp.org>
24309
24310                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
24311                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
24312
24313         2006-07-22  Bruno Haible  <bruno@clisp.org>
24314
24315                 * gettext.h: Update to GNU gettext-0.15.
24316
24317 2006-07-22  Bruno Haible  <bruno@clisp.org>
24318
24319         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
24320         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
24321         lib-prefix.m4, longdouble.m4, ssize_t.m4.
24322
24323 2006-07-21  Eric Blake  <ebb9@byu.net>
24324
24325         * modules/stdlib-safer: New file.
24326         * MODULES.html.sh (File stream based Input/Output): Add
24327         stdlib-safer.
24328
24329 2006-07-21  Eric Blake  <ebb9@byu.net>
24330
24331         * lib/stdlib-safer.h: New file from coreutils, required by
24332         stdlib--.h.
24333
24334 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
24335
24336         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24337
24338 2006-07-20  Bruno Haible  <bruno@clisp.org>
24339
24340         * gnulib-tool: Recognize new option --assume-autoconf.
24341         (autoconf_minversion): New variable.
24342         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24343
24344 2006-07-20  Bruno Haible  <bruno@clisp.org>
24345
24346         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24347
24348 2006-07-19  Derek R. Price  <derek@ximbiot.com>
24349
24350         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
24351         Reindent and repaginate.
24352
24353 2006-07-19  Derek Price  <derek@ximbiot.com>
24354
24355         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
24356         Correct grammar.
24357
24358 2006-07-17  Bruno Haible  <bruno@clisp.org>
24359
24360         * modules/list: New file.
24361         * modules/array-list: New file.
24362         * modules/carray-list, modules/carray-list-tests: New files.
24363         * modules/linked-list, modules/linked-list-tests: New files.
24364         * modules/avltree-list, modules/avltree-list-tests: New files.
24365         * modules/rbtree-list, modules/rbtree-list-tests: New files.
24366         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
24367         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
24368         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
24369         * modules/oset: New file.
24370         * modules/array-oset: New file.
24371         * modules/avltree-oset, modules/avltree-oset-tests: New files.
24372         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
24373         * tests/test-carray_list.c: New file.
24374         * tests/test-linked_list.c: New file.
24375         * tests/test-avltree_list.c: New file.
24376         * tests/test-rbtree_list.c: New file.
24377         * tests/test-linkedhash_list.c: New file.
24378         * tests/test-avltreehash_list.c: New file.
24379         * tests/test-rbtreehash_list.c: New file.
24380         * tests/test-avltree_oset.c: New file.
24381         * tests/test-rbtree_oset.c: New file.
24382         * MODULES.html.sh (Container data structures): New section.
24383
24384 2006-07-17  Bruno Haible  <bruno@clisp.org>
24385
24386         * m4/gl_list.m4: New file.
24387
24388 2006-07-17  Bruno Haible  <bruno@clisp.org>
24389
24390         * lib/gl_list.h: New file.
24391         * lib/gl_list.c: New file.
24392         * lib/gl_array_list.h: New file.
24393         * lib/gl_array_list.c: New file.
24394         * lib/gl_carray_list.h: New file.
24395         * lib/gl_carray_list.c: New file.
24396         * lib/gl_linked_list.h: New file.
24397         * lib/gl_linked_list.c: New file.
24398         * lib/gl_anylinked_list1.h: New file.
24399         * lib/gl_anylinked_list2.h: New file.
24400         * lib/gl_avltree_list.h: New file.
24401         * lib/gl_avltree_list.c: New file.
24402         * lib/gl_anyavltree_list1.h: New file.
24403         * lib/gl_anyavltree_list2.h: New file.
24404         * lib/gl_rbtree_list.h: New file.
24405         * lib/gl_rbtree_list.c: New file.
24406         * lib/gl_anyrbtree_list1.h: New file.
24407         * lib/gl_anyrbtree_list2.h: New file.
24408         * lib/gl_anytree_list1.h: New file.
24409         * lib/gl_anytree_list2.h: New file.
24410         * lib/gl_linkedhash_list.h: New file.
24411         * lib/gl_linkedhash_list.c: New file.
24412         * lib/gl_anyhash_list1.h: New file.
24413         * lib/gl_anyhash_list2.h: New file.
24414         * lib/gl_avltreehash_list.h: New file.
24415         * lib/gl_avltreehash_list.c: New file.
24416         * lib/gl_rbtreehash_list.h: New file.
24417         * lib/gl_rbtreehash_list.c: New file.
24418         * lib/gl_anytreehash_list1.h: New file.
24419         * lib/gl_anytreehash_list2.h: New file.
24420
24421         * lib/gl_oset.h: New file.
24422         * lib/gl_oset.c: New file.
24423         * lib/gl_array_oset.h: New file.
24424         * lib/gl_array_oset.c: New file.
24425         * lib/gl_avltree_oset.h: New file.
24426         * lib/gl_avltree_oset.c: New file.
24427         * lib/gl_rbtree_oset.h: New file.
24428         * lib/gl_rbtree_oset.c: New file.
24429         * lib/gl_anytree_oset.h: New file.
24430
24431 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24432
24433         * m4/mkancesdirs.m4: New file.
24434         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
24435         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
24436         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
24437         it.
24438
24439 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24440
24441         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
24442         * lib/mkancesdirs.h: New files.
24443         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
24444         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
24445         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
24446         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
24447         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
24448         callers changed.  Revamp internals significantly, by not
24449         attempting to create directories that are temporarily more
24450         permissive than the final results.  Do not attempt to use
24451         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
24452         This removes some race conditions, fixes some bugs, and simplifies
24453         things.  Use new dirchownmod function to do owner and mode changes.
24454         * lib/mkdir-p.h: Likewise.
24455         * lib/modechange.c (octal_to_mode): New function.
24456         (struct mode_change): New member mentioned.
24457         (make_node_op_equals): New arg mentioned.  All callers changed.
24458         (mode_compile): Keep track of which mode bits the user has explicitly
24459         mentioned.
24460         (mode_adjust): New arg DIR, so that we implement the X op correctly.
24461         New arg PMODE_BITS, to keep track of which mode bits the user
24462         mentioned; it treats S_ISUID and S_ISGID speciall.
24463         All callers changed.
24464         * lib/modechange.h: Likewise.
24465
24466 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24467
24468         * MODULES.html.sh: Add mkancestors.
24469         * modules/mkancesdirs: New module.
24470         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
24471         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
24472         The chdir-safer and afs files are now orphans; I'll remove them
24473         unless someone speaks up.
24474         Add lib/dirchownmod.c, lib/dirchownmod.h.
24475         (Depends-on): Remove alloca, chown, save-cwd, dirname.
24476         Add lchown, mkancesdirs.
24477         (Maintainer): Add self.
24478
24479 2006-07-15  Karl Berry  <karl@gnu.org>
24480
24481         * gnulib-tool: help message wording/arrangement.
24482
24483 2006-07-14  Simon Josefsson  <jas@extundo.com>
24484
24485         * doc/gnulib.texi (Libtool and Windows): New section.
24486
24487 2006-07-12  Simon Josefsson  <jas@extundo.com>
24488
24489         * modules/gendocs (License): Fix license, approved by Karl.
24490
24491 2006-07-12  Eric Blake  <ebb9@byu.net>
24492
24493         * MODULES.html.sh: Add gendocs.
24494
24495 2006-07-11  Eric Blake  <ebb9@byu.net>
24496
24497         * modules/fdl: New module, to install doc/fdl.texi.
24498         * MODULES.html.sh: Add new section for documentation modules.
24499         * gnulib-tool: Avoid space-tab.
24500         (--doc-base): New option, to manage files from doc.
24501
24502 2006-07-11  Eric Blake  <ebb9@byu.net>
24503
24504         * m4/absolute-header.m4: Fix comments to match recent change.
24505
24506 2006-07-11  Eric Blake  <ebb9@byu.net>
24507
24508         * gnulib-tool: List --doc-base before --tests-base.
24509
24510 2006-07-11  Derek R. Price  <derek@ximbiot.com>
24511
24512         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
24513
24514 2006-07-11  Bruno Haible  <bruno@clisp.org>
24515
24516         * README: Mention where to put documentation.
24517
24518 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24519
24520         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
24521
24522 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24523
24524         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
24525         to stdint.m4.
24526
24527 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24528
24529         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
24530         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
24531         "no/such/file/stdint.h" when there is no such file, so that
24532         the resulting C code can be parsed by dodgy compilers.
24533         Problems reported by Bob Proulx.
24534
24535 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24536
24537         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
24538         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24539         macros into the GNU _D_EXACT_NAMLEN.
24540         * lib/savedir.c:  Likewise.
24541         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
24542
24543 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24544         and Paul Eggert  <eggert@cs.ucla.edu>
24545
24546         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
24547         * m4/savedir.m4:
24548         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24549         macros into the GNU _D_EXACT_NAMLEN.
24550
24551 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24552
24553         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
24554         around the absolute name, to work around a problem with the HP-UX
24555         11.23 native C compiler, reported by Bob Proulx.
24556
24557 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24558
24559         * doc/maintain.texi, make-stds.texi: Sync from
24560         <http://savannah.gnu.org/projects/gnustandards>.
24561
24562 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
24565
24566 2006-07-09  Jim Meyering  <jim@meyering.net>
24567
24568         * m4/glob.m4: Remove a doubled word in a comment.
24569
24570 2006-07-09  Jim Meyering  <jim@meyering.net>
24571
24572         * lib/argp-pv.c: Remove a doubled word in a comment.
24573         * lib/check-version.c (check_version): Likewise.
24574         * lib/javacomp.c (compile_java_class): Likewise.
24575
24576 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24577
24578         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
24579         for the benefit of people using Autoconf 2.60.  If you want to
24580         support older Autoconf versions you can copy m4/onceonly_2_57.m4
24581         (or m4/onceonly.m4, if pre-2.57) manually.
24582
24583 2006-07-08  Jim Meyering  <jim@meyering.net>
24584
24585         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
24586         comment.
24587         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
24588         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
24589         comment.
24590
24591 2006-07-08  Jim Meyering  <jim@meyering.net>
24592
24593         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24594
24595 2006-07-07  Simon Josefsson  <jas@extundo.com>
24596
24597         * tests/test-crc.c: Change expected crc value, the test vector
24598         were probably computed using the old broken crc.c?
24599
24600 2006-07-06  Simon Josefsson  <jas@extundo.com>
24601
24602         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24603         now the canonical place for the M4 file).
24604
24605         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24606         from the sys_socket dependency now.
24607
24608         * modules/inet_pton (Files): Ditto.
24609
24610         * modules/inet_ntop (Files): Ditto.
24611
24612 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24613
24614         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24615         not gl_PREREQ_GETUSERSHELL.
24616
24617 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24618
24619         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24620         with only one argument, for Autoconf 2.60.
24621         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24622         expand to nothing, so add a shell command to avoid syntax error.
24623         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24624
24625 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24626
24627         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24628
24629 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24630
24631         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24632         no longer needed.  Check for isblank decl.
24633         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24634         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24635         of existence.
24636
24637 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24638
24639         * lib/getloadavg.c: Use __VMS, not VMS.
24640         * lib/getopt.c: Likewise.
24641         * lib/getpagesize.h: Likewise.
24642         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24643         and probably does not work.
24644
24645 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24646
24647         * lib/.cppi-disable: Add wcwidth.
24648         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24649         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24650         (ISGRAPH): Remove.  All uses changed to isgraph.
24651         (FOLD) [!defined _LIBC]: Remove special case.
24652         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24653         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24654         HAVE_ISBLANK.
24655         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24656         case.
24657
24658 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24659
24660         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24661         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24662         brackets.  Other minor changes to suppress some compiler
24663         warnings.
24664
24665 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24666         and Paul Eggert  <eggert@cs.ucla.edu>
24667
24668         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24669         of invoking obsolescent AC_HEADER_DIRENT macro.
24670         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24671         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24672         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24674         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24675         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24676         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24677         * m4/readdir.m4: Remove; no longer needed.
24678
24679 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24680         and Paul Eggert  <eggert@cs.ucla.edu>
24681
24682         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24683         Don't worry about this obsolete case any more.
24684         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24685         directories.
24686         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24687         worry about this obsolete case any more.
24688         * lib/fts.c: Likewise.
24689         * lib/getcwd.c: Likewise.
24690         * lib/glob.h: Likewise.
24691         * lib/savedir.c: Likewise.
24692
24693 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24694
24695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24696         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24697         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24698         needed.
24699         All uses removed.
24700         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24701         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24702         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24703         needed.
24704         * m4/getdate.m4 (gl_GETDATE): Likewise.
24705         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24706         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24707         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24708         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24709         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24710         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24711         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24712         needed.
24713
24714 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24715
24716         * lib/memcasecmp.c: Include <limits.h>.
24717         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24718         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24719         Don't assume isdigit succeeds only on '0' through '9'.
24720
24721 2006-07-05  Eric Blake  <ebb9@byu.net>
24722
24723         * modules/getaddrinfo (Depends-on): Add snprintf.
24724
24725 2006-07-05  Eric Blake  <ebb9@byu.net>
24726
24727         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24728         to avoid 'header present but could not be compiled' on cygwin.
24729
24730 2006-07-05  Eric Blake  <ebb9@byu.net>
24731
24732         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24733         missing from netdb.h.
24734         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24735
24736 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24737
24738         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24739         no longer needed.
24740         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24741         * m4/getdate.m4 (gl_GETDATE): Likewise.
24742         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24743         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24744         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24745         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24747
24748 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24749
24750         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24751         All uses of is_space replaced by isspace.
24752         * lib/exit.h: Don't talk about STDC_HEADERS.
24753         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24754         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24755         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24756         replaced by isprint etc.
24757         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24758         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24759         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24760         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24761         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24762         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24763
24764 2006-07-05  Bruno Haible  <bruno@clisp.org>
24765
24766         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24767         the function exists, before testing against AIX.
24768         Reported by Martin Lambers <marlam@marlam.de>.
24769
24770 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24771
24772         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24773         From Mark D. Baushke.
24774
24775 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24776
24777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24778         to the absolute name, not just one, to bypass Sun C 5.8's
24779         "warning: #include of /usr/include/... may be non-portable".
24780
24781 2006-07-04  Eric Blake  <ebb9@byu.net>
24782
24783         * modules/dirname-tests: New test module.
24784         * tests/test-dirname.c: New file, replacing dirname.c
24785         TEST_DIRNAME section that was recently deleted.
24786
24787 2006-07-04  Bruno Haible  <bruno@clisp.org>
24788
24789         Assume ANSI C header files and <ctype.h> functions.
24790         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24791         (mbsnwidth): Use isprint, iscntrl instead.
24792
24793 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24794
24795         Merge from coreutils.
24796         * MODULES.html.sh: Add xstrtold.
24797         * modules/xstrtold: New file.
24798         * modules/cycle-check (Files): Add lib/same-inode.h.
24799         * modules/dirname (Files): Add m4/double-slash-root.m4.
24800         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24801         * modules/mkdir-p (Files): Add lib/same-inode.h.
24802         * modules/same (Files): Add lib/same-inode.h.
24803
24804 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24805
24806         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24807         This is to keep the terminology clean; POSIX talks about
24808         "absolute pathnames", not "full pathnames", but the GNU
24809         Coding Standards say to use "path" for something else;
24810         so use "absolute" to keep both sides happy.
24811         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24812         Set gl_absolute_header, not gl_full_header_path.
24813         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24814         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24815         All uses changed.
24816
24817         Merge from coreutils.
24818
24819         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24820
24821         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24822         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24823         want to require the building of c-strtod.o.
24824         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24825         needs -lm directly.
24826         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24827
24828         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24829
24830         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24831         --as-needed option if available.  Problem reported by Albert Chin in
24832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24833         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24834         cc merely issues a bunch of annoying warnings for --as-needed
24835         (this problem was reported by Bob Proulx).  Also, try linking with
24836         -lm to detect a bug in binutils 2.16 (this problem was reported
24837         by Ralf Wildenhues).
24838
24839         2006-06-18  Jim Meyering  <jim@meyering.net>
24840
24841         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24842         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24843         macro.
24844         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24845         also check for glibc-2.4's abort-inducing bug.
24846
24847         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24848         Low-probability clean-up should be to use rmdir to get rid of
24849         the just-created directory, not unlink.
24850
24851         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24852         configure fail, and request a bug report to inform us about it.
24853         Add a comment that, barring reports to the contrary, in 2007 we'll
24854         assume ftruncate is universally available.
24855
24856         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24859
24860         2006-03-12  Jim Meyering  <jim@meyering.net>
24861
24862         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24863         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24864         * m4/same.m4 (gl_SAME): Likewise.
24865         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24866
24867         2006-03-11  Eric Blake  <ebb9@byu.net>
24868
24869         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24870         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24871         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24872         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24873
24874 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24875
24876         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24877         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24878         reported by Mark D. Baushke, one in
24879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24880
24881         Merge from coreutils.
24882
24883         * lib/.cppi-disable: Add stdint_.h.
24884         * lib/.cvsignore: Add stdint.h.
24885
24886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24889         both double and long double versions.
24890         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24891         * lib/xstrtold.c: New file.
24892         * lib/xstrtod.h (xstrtold): New decl.
24893
24894         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         * lib/filemode.c (setst): Remove.
24897         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24898         (arguably) clearer, and the generated code is a bit smaller on my
24899         Debian GNU/Linux stable x86 host.
24900
24901         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24902
24903         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24904         Assume that filemode.h includes sys/types.h and sys/stat.h.
24905         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24906         (ftypelet): Reorder to put common cases first, for efficiency.
24907         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24908         to do 'M'.
24909         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24910         of 10, for compatibility with FreeBSD.  All callers changed.
24911         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24912         types that can't be deduced solely from st_mode.  First arg is now a
24913         const pointer.
24914         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24915         (strmode): Renamed from mode_string.
24916         (filemodestring): New decl.
24917         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24918         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24919         needed.
24920         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24921
24922         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24923
24924         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24925         fsusage.h now does that.  Include fsusage.h first, to test interface.
24926         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24927         at most one method (the old code could have generated decls that
24928         didn't conform to C89, not that this was ever exercised).
24929         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24930
24931         2006-03-19  Jim Meyering  <jim@meyering.net>
24932
24933         Work even in a chroot where d_ino values for entries in "/"
24934         don't match the stat.st_ino values for the same names.
24935         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24936         number, iterate through all entries again, using lstat instead.
24937         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24938         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24939
24940         * lib/getcwd.c (__getcwd): Clarify a comment.
24941         Use memcpy in place of a call to strcpy.
24942
24943         2006-03-12  Jim Meyering  <jim@meyering.net>
24944
24945         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24946         matches that of the current directory (which we're about to chdir ".."
24947         out of), then save the dev-ino of the parent, instead.
24948
24949         * lib/same-inode.h (SAME_INODE): New file/macro.
24950         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24951         Include "same-inode.h", instead.
24952         * lib/same.c: Likewise.
24953         * lib/cycle-check.h: Include "same-inode.h".
24954         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24955         * lib/cycle-check.c (SAME_INODE): Remove definition.
24956         * lib/root-dev-ino.h: Include "same-inode.h".
24957
24958         2006-03-11  Eric Blake  <ebb9@byu.net>
24959
24960         * lib/same.c (same_name): s/base_name/last_component/
24961         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24962         * lib/filenamecat.c (file_name_concat): Likewise.
24963
24964         2006-03-11  Eric Blake  <ebb9@byu.net>,
24965                     Paul Eggert  <eggert@cs.ucla.edu>
24966
24967         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24968         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24969         drive prefix.
24970         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24971         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24972         (last_component): New method.
24973         * lib/dirname.c (dir_len): Determine when drive letters need a
24974         subsequent slash.  Preserve // when it is special.
24975         (dir_name): Don't append dot when drive letter is absolute.
24976         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24977         * lib/basename.c (base_name): New semantics - malloc the result.
24978         Preserve // when it is special.  Preserve relative files that look
24979         like drive letters.
24980         (base_len): Preserve // when it is special.
24981         (last_component): New method, similar to old base_name semantics.
24982         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24983         base_name.  Strip redundant slashes from ///.
24984
24985 2006-07-03  Jim Meyering  <jim@meyering.net>
24986
24987         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24988         macro is used before the first cycle_check call.
24989
24990 2006-07-03  Eric Blake  <ebb9@byu.net>
24991
24992         * modules/dirname (Depends-on): Add xstrndup.
24993
24994 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24995
24996         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24997         test cases, so that config.log is a bit easier to follow.
24998
24999 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25000
25001         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
25002         both are 64 bits, since this seems to be the tradition, and this
25003         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
25004         we ever run into a host that prefers long long to long in this
25005         case, we'll need another configure-time test.  Problem reported by
25006         Jim Meyering.
25007
25008 2006-07-02  Eric Blake  <ebb9@byu.net>
25009
25010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
25011
25012 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25013
25014         * modules/inttypes (Depends-on): No longer depends on stdint.
25015         * modules/stdint (Description): Say more about assumptions.
25016         Say that the fast types might differ.  Say macros are used.
25017         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
25018         (Makefile.am): Revise list of substituted symbols to match
25019         new stdint.m4.
25020         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
25021         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
25022         * tests/test-stdint.c (verify_same_types)
25023         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
25024         the code conforms to C99/C89.
25025         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
25026         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
25027
25028 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25029
25030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
25031         but fix a bug, by requiring at least 64 bits.
25032         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25033         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
25034         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
25035         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
25036
25037         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
25038         changes.  Make 2.59 a prerequisite.  Check and substitute for
25039         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
25040         inttypes.h.  Do not use special include files; just use the
25041         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
25042         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
25043         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
25044         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
25045         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
25046         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
25047         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
25048         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
25049         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
25050         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
25051         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
25052         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
25053         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
25054         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
25055         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
25056         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
25057         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
25058         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
25059         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
25060         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
25061         WINT_MAX.  Check for C99 conformance more strictly, by detecting
25062         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
25063         not check for things that C99 does not require, e.g., int8_t.  If
25064         a test isn't needed unless <stdint.h> isn't working, and is
25065         unlikely to be needed for any other reason, then don't do it
25066         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
25067         size_t, since we assume C89 freestanding at least.  Do not check
25068         for sig_atomic_t, wchar_t, or wint_t, since the code now does
25069         the right thing even if the types are not defined.  Instead use:
25070         (gl_STDINT_TYPE_PROPERTIES): New macro.
25071         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
25072         testing whether <sys/types.h> clashes, as Autoconf does this for
25073         us now.  All uses removed.
25074         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
25075         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
25076         (gl_CHECK_TYPE_SAME):
25077         Remove; no longer needed.
25078         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
25079         exists, since we'll return 0 anyway in that case.
25080         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
25081
25082 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25083
25084         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
25085         possible collision with system files.
25086         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
25087         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
25088         WCHAR_MIN and WCHAR_MAX in this case.
25089         (<stddef.h>): Do not include; no longer needed.
25090         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
25091         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
25092         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
25093         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
25094         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
25095         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
25096         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
25097         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
25098         !defined(__c99))]: Include in this case too, since it's harmless
25099         now.
25100         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
25101         dangerous to do so.
25102         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
25103         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
25104         (_STDINT_MIN, _STDINT_MAX): New macros.
25105         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
25106         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
25107         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
25108         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
25109         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
25110         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
25111         macros, not typedefs; this simplifies things quite a bit.
25112         Use long int for all types narrower than int64_t.
25113         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
25114         Define in terms of long long int or int64_t or long int,
25115         not int64_t or int32_t.  This saves some compile-time testing.
25116         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
25117         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
25118         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
25119         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
25120         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
25121         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
25122         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
25123         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
25124         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
25125         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
25126         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25127         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25128         undef any previous version and define our own version, for
25129         simplicity and consistency with the new macros for types.
25130         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
25131         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
25132         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
25133         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
25134         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
25135         @WINT_T_SUFFIX@ to keep things simple here.
25136         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
25137         Simplify by assuming typical 8/16/32/64 host, since we're
25138         already doing that elsewhere anyway.
25139         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
25140         and assume long long int is 64 bits if available.  This
25141         speeds up 'configure'.
25142
25143 2006-07-01  Eric Blake  <ebb9@byu.net>
25144
25145         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
25146         Reported by Andreas Buening.
25147
25148 2006-07-01  Eric Blake  <ebb9@byu.net>
25149
25150         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
25151
25152 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
25153
25154         * lib/getaddrinfo.c: fixed typo
25155
25156 2006-06-29  Jim Meyering  <jim@meyering.net>
25157
25158         * modules/strftime (Maintainer): Add my name, since with the
25159         FPRINTFTIME changes strftime.c has forked from glibc.
25160
25161 2006-06-29  Eric Blake  <ebb9@byu.net>
25162
25163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
25164
25165 2006-06-29  Eric Blake  <ebb9@byu.net>
25166
25167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
25168
25169 2006-06-29  Eric Blake  <ebb9@byu.net>
25170
25171         * lib/stat_.h: New file.
25172
25173 2006-06-29  Eric Blake  <ebb9@byu.net>
25174
25175         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
25176         unused static function.
25177
25178 2006-06-29  Eric Blake  <ebb9@byu.net>
25179
25180         * doc/functions.texi (Function Portability): Document missing lstat
25181         on mingw.
25182
25183 2006-06-29  Eric Blake  <ebb9@byu.net>
25184
25185         * MODULES.html.sh: Add sys_stat.
25186         * modules/sys_stat: New module.
25187         * modules/mkstemp (Depends-on): Add sys_stat.
25188
25189 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25190
25191         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
25192
25193 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25194
25195         * m4/c-bs-a.m4: Removed.
25196
25197 2006-06-29  Derek R. Price  <derek@ximbiot.com>
25198
25199         * lib/strftime.c: Assume strftime() exists.
25200
25201 2006-06-29  Derek Price  <derek@ximbiot.com>
25202
25203         * modules/c-bs-a: Removed - \a is C89.
25204         * MODULES.html.sh: Remove c-bs-a.
25205
25206 2006-06-29  Bruno Haible  <bruno@clisp.org>
25207
25208         * modules/wcwidth (License): Change to LGPL.
25209
25210 2006-06-28  Simon Josefsson  <jas@extundo.com>
25211
25212         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
25213         on _WIN32.
25214
25215         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
25216         getnameinfo.
25217
25218 2006-06-28  Simon Josefsson  <jas@extundo.com>
25219
25220         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
25221
25222 2006-06-28  Simon Josefsson  <jas@extundo.com>
25223
25224         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
25225         functions there.  It will succeed on Windows XP, but on Windows
25226         2000 and (presumably) earlier, it will fail, and use the internal
25227         re-implementation.
25228         (use_win32_p): New function.
25229         (getaddrinfo): Use strtoul on servname, to support numeric ports.
25230         Support AI_NUMERICSERV to disable getservbyname.
25231         (getnameinfo): New function, only supports
25232         NI_NUMERICHOST|NI_NUMERICSERV for now.
25233
25234         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
25235         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
25236         getnameinfo.
25237
25238 2006-06-28  Eric Blake  <ebb9@byu.net>
25239
25240         * modules/wcwidth: New file.
25241         * modules/mbchar (Depends-on): Add wcwidth.
25242         * modules/mbswidth (Depends-on): Add wcwidth.
25243         * MODULES.html.sh: Add wcwidth.
25244
25245 2006-06-28  Eric Blake  <ebb9@byu.net>
25246
25247         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
25248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
25249
25250 2006-06-28  Eric Blake  <ebb9@byu.net>
25251
25252         * lib/xvasprintf.h: Fix comments.
25253
25254 2006-06-28  Eric Blake  <ebb9@byu.net>
25255
25256         * lib/mbchar.h (wcwidth): Include wcwidth.h.
25257         * lib/mbswidth.c (wcwidth): Move from here...
25258         * lib/wcwidth.h: ...to this new file.
25259
25260 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25261
25262         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
25263
25264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
25265         it's obsolete.
25266         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
25267
25268 2006-06-28  Derek R. Price  <derek@ximbiot.com>
25269
25270         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
25271         Autoconf 2.60 says this stuff was obsolete.
25272
25273 2006-06-28  Bruno Haible  <bruno@clisp.org>
25274
25275         * modules/wcwidth (Files): Add m4/wchar_t.m4.
25276
25277 2006-06-28  Bruno Haible  <bruno@clisp.org>
25278
25279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
25280         gt_TYPE_WCHAR_T.
25281
25282 2006-06-28  Bruno Haible  <bruno@clisp.org>
25283
25284         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
25285         declaration for wcwidth.
25286         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
25287
25288 2006-06-28  Bruno Haible  <bruno@clisp.org>
25289
25290         * lib/mkdtemp.c [MINGW]: Include <io.h>.
25291         (mkdir): Define using _mkdir.
25292
25293 2006-06-28  Bruno Haible  <bruno@clisp.org>
25294
25295         * lib/getaddrinfo.h: Fix POSIX URL.
25296         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
25297         _WIN32.
25298         (use_win32_p): Make static.
25299         (getaddrinfo): Reject service name if it is empty or does not consist
25300         solely of decimal digits, or if its value is > 65535.
25301         (getnameinfo): Remove useless casts.
25302
25303 2006-06-27  Simon Josefsson  <jas@extundo.com>
25304
25305         * modules/sys_select: New file, suggested by Bruno Haible, Paul
25306         Eggert and Martin Lambers.
25307
25308 2006-06-27  Simon Josefsson  <jas@extundo.com>
25309
25310         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
25311         Eggert and Martin Lambers.
25312
25313 2006-06-27  Bruno Haible  <bruno@clisp.org>
25314
25315         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
25316         result to 0, not to empty.
25317         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
25318
25319 2006-06-27  Bruno Haible  <bruno@clisp.org>
25320
25321         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
25322
25323 2006-06-26  Simon Josefsson  <jas@extundo.com>
25324
25325         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25326         present.
25327
25328 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
25329
25330         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25331         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
25332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25333
25334 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
25335
25336         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25337
25338 2006-06-26  Bruno Haible  <bruno@clisp.org>
25339
25340         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25341
25342 2006-06-26  Bruno Haible  <bruno@clisp.org>
25343
25344         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25345
25346 2006-06-26  Bruno Haible  <bruno@clisp.org>
25347
25348         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
25349         SGI C compiler in pre-C99 mode.
25350         Suggested by Mark D. Baushke and Larry Jones.
25351
25352 2006-06-26  Bruno Haible  <bruno@clisp.org>
25353
25354         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
25355         WCHAR_MAX.
25356         Reported by Mark D. Baushke and Larry Jones.
25357
25358 2006-06-26  Bruno Haible  <bruno@clisp.org>
25359
25360         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
25361         in pre-C99 mode.
25362         Suggested by Mark D. Baushke and Larry Jones.
25363
25364 2006-06-23  Simon Josefsson  <jas@extundo.com>
25365             Bruno Haible  <bruno@clisp.org>
25366
25367         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
25368         Emit mostlyclean-local rule.
25369         (func_emit_tests_Makefile_am): Likewise.
25370         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
25371
25372 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
25373
25374         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
25375
25376 2006-06-23  Bruno Haible  <bruno@clisp.org>
25377
25378         * tests/test-stdint.c: Update to match ISO C 99 Technical
25379         Corrigendum 1.
25380
25381 2006-06-23  Bruno Haible  <bruno@clisp.org>
25382
25383         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
25384
25385 2006-06-23  Bruno Haible  <bruno@clisp.org>
25386
25387         * lib/stdint_.h: Treat IRIX like OpenBSD.
25388
25389 2006-06-23  Bruno Haible  <bruno@clisp.org>
25390
25391         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
25392         ISO C 99 Technical Corrigendum 1.
25393
25394 2006-06-22  Simon Josefsson  <jas@extundo.com>
25395
25396         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
25397         MinGW.
25398
25399 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25400
25401         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
25402         needed.  Some compiler complained about some of them.  Problem reported
25403         by Larry Jones in
25404         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
25405
25406 2006-06-21  Simon Josefsson  <jas@extundo.com>
25407
25408         * tests/test-getaddrinfo.c: New file.
25409
25410         * modules/getaddrinfo-tests: New file.
25411
25412         * MODULES.html.sh: Add inet_pton.
25413
25414         * modules/inet_pton: New file.
25415
25416 2006-06-21  Simon Josefsson  <jas@extundo.com>
25417
25418         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
25419         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
25420         of using the (limited) gnulib implementation on Windows XP.
25421
25422         * m4/inet_pton.m4: New file.
25423
25424 2006-06-21  Simon Josefsson  <jas@extundo.com>
25425
25426         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
25427         variable.
25428
25429         * lib/socket_.h: Don't define WINVER.
25430
25431         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
25432         slightly modified to work in gnulib.
25433
25434 2006-06-21  Simon Josefsson  <jas@extundo.com>
25435
25436         * doc/gnulib.texi (Windows sockets): Add.
25437
25438 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
25439
25440         * lib/read-file.c (fread_file): Start with buffer allocation of
25441         0 bytes rather than 1 byte; this simplifies the code.
25442         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
25443         code to free buffer and save/restore errno.
25444         (internal_read_file): Remove unused local.
25445
25446 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25447
25448         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
25449         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
25450         Problem reported by Denis Excoffier in
25451         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
25452
25453 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25454
25455         * modules/sys_socket, modules/socklen: Include sys/types since
25456         FreeBSD 4.x's sys/socket.h needs it.
25457
25458 2006-06-19  Simon Josefsson  <jas@extundo.com>
25459
25460         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
25461
25462 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25463
25464         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
25465
25466 2006-06-19  Bruno Haible  <bruno@clisp.org>
25467
25468         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
25469         and FULL_PATH_INTTYPES_H in angle brackets.
25470         Reported by Mark D. Baushke <mdb@gnu.org>.
25471
25472 2006-06-17  Eric Blake  <ebb9@byu.net>
25473
25474         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
25475         errno.
25476
25477 2006-06-17  Bruno Haible  <bruno@clisp.org>
25478
25479         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
25480         <sys/inttypes.h>.
25481
25482 2006-06-17  Bruno Haible  <bruno@clisp.org>
25483
25484         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
25485         whether errno is declared. Assume <errno.h> declares errno.
25486
25487 2006-06-17  Bruno Haible  <bruno@clisp.org>
25488
25489         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
25490
25491 2006-06-17  Bruno Haible  <bruno@clisp.org>
25492
25493         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
25494         problem on Solaris 2.5.1.
25495
25496 2006-06-16  Eric Blake  <ebb9@byu.net>
25497
25498         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
25499         * lib/unicodeio.c [!defined errno]: Likewise.
25500         * lib/strtol.c [!defined errno]: Likewise.
25501         * lib/strtod.c [!defined errno]: Likewise.
25502
25503 2006-06-15  Eric Blake  <ebb9@byu.net>
25504
25505         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
25506
25507 2006-06-15  Eric Blake  <ebb9@byu.net>
25508
25509         * config/srclist.txt (ssize_t.m4): Lose sync.
25510
25511 2006-06-15  Bruno Haible  <bruno@clisp.org>
25512
25513         * modules/stdint (Files): Include m4/full-header-path.m4,
25514         m4/size_max.m4, m4/wchar_t.m4.
25515         (Makefile.am): Many more substitutions.
25516         * modules/stdint-tests: New file.
25517         * tests/test-stdint.c: New file.
25518
25519 2006-06-15  Bruno Haible  <bruno@clisp.org>
25520
25521         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
25522         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
25523         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
25524         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
25525         gl_CHECK_TYPE_SAME): New macros.
25526
25527 2006-06-15  Bruno Haible  <bruno@clisp.org>
25528
25529         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
25530
25531 2006-06-15  Bruno Haible  <bruno@clisp.org>
25532
25533         * lib/stdint_.h: Rewritten to be fully auto-configured.
25534         Fixes bug on HP-UX/IA64.
25535
25536 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         * lib/getdate.y (__attribute__): Don't define if already defined.
25539         Problem reported by Larry Jones.
25540         * lib/utimens.c (__attribute__): Likewise.
25541
25542 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
25543
25544         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
25545         reported by Andreas Schwab.
25546
25547 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25548             Bruno Haible  <bruno@clisp.org>
25549
25550         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
25551         check for the declaration of strnlen and a run test that exposes the
25552         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
25553         rpl_strndup.
25554
25555 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25556             Bruno Haible  <bruno@clisp.org>
25557
25558         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
25559
25560 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25561
25562         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
25563         compile test, for Tru64 4.0D.
25564
25565 2006-05-28  Karl Berry  <karl@gnu.org>
25566
25567         * config/srclist.txt (printf-args.c): lose sync.
25568
25569 2006-05-26  Martin Lambers  <marlam@marlam.de>
25570
25571         * lib/getpass.c: Updates the test for the native W32 API, and adds
25572         missing includes, thus fixing compilation warnings.
25573
25574 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25575
25576         * lib/exclude.c (exclude_fnmatch): New function.
25577         (excluded_file_name): Call exclude_fnmatch.
25578         * lib/exclude.h (excluded_file_name): New prototype
25579
25580 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
25581
25582         * lib/tempname.c (small_open, large_open): New macros.
25583         (__open, __open64) [!_LIBC]: Remove.
25584         (__gen_tempname): Use small_open and large_open instead of __open
25585         and __open64.  This fixes a portability bug on HP-UX 11.11i
25586         reported by Simon Wing-Tang in
25587         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
25588
25589 2006-05-24  Bruno Haible  <bruno@clisp.org>
25590
25591         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25592         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25593         Reported by Thorsten Maerz <torte@netztorte.de> via
25594         Aaron Stone <aaron@serendipity.cx>.
25595
25596 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25597
25598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25599         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25600         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25601         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25602         not really conditional on the cache.
25603         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25604
25605 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25606
25607         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25608         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25609         (my_usleep): Don't mishandle maximum value.
25610
25611 2006-05-19  Jim Meyering  <jim@meyering.net>
25612
25613         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25614
25615 2006-05-17  Bruno Haible  <bruno@clisp.org>
25616
25617         Cygwin portability.
25618         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25619
25620 2006-05-17  Bruno Haible  <bruno@clisp.org>
25621
25622         * lib/stdint_.h: Fix recognition of Cygwin.
25623
25624 2006-05-15  Bruno Haible  <bruno@clisp.org>
25625
25626         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25627         on libtool patch by Ralf Wildenhues.
25628
25629 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25630
25631         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25632         test for C99 conformance; (bool) 0.5 is an integer constant
25633         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25634         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25635
25636 2006-05-11  Simon Josefsson  <jas@extundo.com>
25637
25638         * m4/xvasprintf.m4: Fix obvious typo.
25639
25640 2006-05-11  Jim Meyering  <jim@meyering.net>
25641
25642         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25643         James Lemley.
25644
25645 2006-05-10  Simon Josefsson  <jas@extundo.com>
25646
25647         * lib/md4.c: Typo fix, update copyright years.
25648         (K1, K2): Don't use L because it turn computations into 64-bit on
25649         64-bit platforms.
25650
25651 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25652
25653         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25654         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25655         unwanted sign propagation, e.g., on hosts with 64-bit int.
25656         There still are some problems with reeelly weird theoretical hosts
25657         (e.g., 33-bit int) but it's not worth worrying about now.
25658         * lib/sha1.c (rol): Likewise.
25659         (K1, K2, K3, K4): Remove unnecessary L suffix.
25660
25661 2006-05-10  Bruno Haible  <bruno@clisp.org>
25662
25663         * lib/des.c: Cast to avoid warnings.
25664
25665 2006-05-09  Bruno Haible  <bruno@clisp.org>
25666
25667         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25668         (Depends-on): Depend also on xsize, stdarg.
25669         (configure.ac): Add gl_XVASPRINTF.
25670
25671 2006-05-09  Bruno Haible  <bruno@clisp.org>
25672
25673         * m4/xvasprintf.m4: New file.
25674
25675 2006-05-09  Bruno Haible  <bruno@clisp.org>
25676
25677         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25678         (EOVERFLOW): Define fallback value.
25679         (xstrcat): New function.
25680         (xvasprintf): Recognize the special case of a string concatenation.
25681
25682 2006-05-08  Eric Blake  <ebb9@byu.net>
25683
25684         * gnulib-tool (func_version): Base copyright year on CVS date.
25685         (func_emit_copyright_notice): New function.
25686         (func_emit_lib_Makefile_am): Use it.
25687         (func_emit_tests_Makefile_am): Likewise.
25688         (func_import): Likewise.
25689
25690 2006-05-08  Bruno Haible  <bruno@clisp.org>
25691
25692         * modules/stdarg: New file.
25693         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25694
25695 2006-05-08  Bruno Haible  <bruno@clisp.org>
25696
25697         * m4/stdarg.m4: New file, from GNU gettext.
25698
25699 2006-05-08  Bruno Haible  <bruno@clisp.org>
25700
25701         * config/srclist.txt (build-aux/config.rpath): different from latest
25702         release.
25703
25704 2006-05-08  Bruno Haible  <bruno@clisp.org>
25705
25706         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25707
25708 2006-05-05  Jim Meyering  <jim@meyering.net>
25709
25710         * m4/warning.m4: New file, derived from bison's file by the same name.
25711
25712 2006-05-03  Bruno Haible  <bruno@clisp.org>
25713
25714         * lib/stdint_.h: Shorter URL.
25715         * lib/inttypes.h: Likewise.
25716
25717 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25718
25719         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25720
25721 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25722
25723         * lib/verify.h: Document the internals better.  Most of this change
25724         was written by Bruno Haible.
25725
25726 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25727
25728         * doc/verify.texi: New file, partly based on a proposal by
25729         Bruno Haible.
25730
25731 2006-05-02  Bruno Haible  <bruno@clisp.org>
25732
25733         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25734         test from here...
25735         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25736
25737 2006-04-29  Bruno Haible  <bruno@clisp.org>
25738
25739         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25740         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25741
25742 2006-04-29  Bruno Haible  <bruno@clisp.org>
25743
25744         * gnulib-tool: Make --update option actually work.
25745
25746 2006-04-29  Bruno Haible  <bruno@clisp.org>
25747
25748         * doc/gcd.texi: New file.
25749         * doc/gnulib.texi: Include it.
25750
25751 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25752
25753         * lib/getdate.y (get_date): When adding relative date, start with the
25754         initial time, not with the result of the first mktime call.
25755
25756 2006-04-25  Bruno Haible  <bruno@clisp.org>
25757
25758         * gnulib-tool (func_import): Output the include directives in three
25759         blocks, sorted separately.
25760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25761
25762 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25763
25764         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25765         to define main with arguments, for C++.  Reported by Eric Blake.
25766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25767         Prefer 'int main ()' to 'int main (void)', for C++.
25768         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25769         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25770         for 'main', for C99 and C++.
25771
25772 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25773
25774         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25775         Don't assume that exit status -1 is valid.
25776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25777         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25778         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25779         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25780         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25781         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25782         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25783         functions can be used without declaring them, or that you can
25784         exit with status -1.
25785         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25786
25787 2006-04-24  Karl Berry  <karl@gnu.org>
25788
25789         * config/srclist.txt (longdouble.m4): sync lost.
25790
25791 2006-04-24  Eric Blake  <ebb9@byu.net>
25792
25793         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25794
25795 2006-04-24  Bruno Haible  <bruno@clisp.org>
25796
25797         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25798         poll() implementation in AIX.
25799         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25800
25801 2006-04-24  Bruno Haible  <bruno@clisp.org>
25802
25803         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25804         assigned exactly once.
25805
25806 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25807             Bruno Haible  <bruno@clisp.org>
25808
25809         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25810         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25811         for AM_CPPFLAGS.
25812
25813 2006-04-23  Bruno Haible  <bruno@clisp.org>
25814
25815         * modules/copy-file: Depend on unistd.
25816         * modules/execute: Likewise.
25817         * modules/fatal-signal: Likewise.
25818         * modules/findprog: Likewise.
25819         * modules/mkdtemp : Likewise.
25820         * modules/pipe: Likewise.
25821         * modules/wait-process: Likewise.
25822
25823 2006-04-23  Bruno Haible  <bruno@clisp.org>
25824
25825         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25826         condition was already detected.
25827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25828
25829 2006-04-23  Bruno Haible  <bruno@clisp.org>
25830
25831         * lib/copy-file.c: Include <unistd.h> unconditionally.
25832         * lib/execute.c: Likewise.
25833         * lib/fatal-signal.c: Likewise.
25834         * lib/findprog.c: Likewise.
25835         * lib/mkdtemp.c: Likewise.
25836         * lib/pipe.h: Likewise.
25837         * lib/pipe.c: Likewise.
25838         * lib/wait-process.h: Likewise.
25839
25840 2006-04-23  Bruno Haible  <bruno@clisp.org>
25841
25842         * gnulib-tool (func_usage): Fix --import description. Document
25843         --update.
25844         (func_import): Create temporary file in a temporary directory, if
25845         --dry-run is specified. Silence errors from 'grep' when there are no
25846         m4 files in $m4dir.
25847         (func_create_testdir): Silence errors from 'grep' when there are no
25848         m4 files in $m4dir.
25849         Reported by Karl Berry <karl@freefriends.org>.
25850
25851 2006-04-20  Bruno Haible  <bruno@clisp.org>
25852
25853         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25854         one argument, so that the code will be portable to Autoconf 2.60.
25855         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25856         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25857         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25858
25859 2006-04-19  Derek Price  <derek@ximbiot.com>
25860             Eric Blake  <ebb9@byu.net>
25861
25862         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25863         rather than "/full/path.h".  Update comment to match.  Shorten &
25864         generalize m4_translit call via AS_TR_CPP.
25865
25866 2006-04-19  Derek Price  <derek@ximbiot.com>
25867             Eric Blake  <ebb9@byu.net>
25868
25869         * lib/inttypes.h: Correct grammar in comment.
25870
25871 2006-04-18  Derek Price  <derek@ximbiot.com>
25872             Paul Eggert  <eggert@cs.ucla.edu>
25873
25874         * modules/inttypes: New file.
25875         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25876
25877 2006-04-18  Derek Price  <derek@ximbiot.com>
25878             Paul Eggert  <eggert@cs.ucla.edu>
25879
25880         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25881         New files.
25882
25883 2006-04-18  Derek Price  <derek@ximbiot.com>
25884             Paul Eggert  <eggert@cs.ucla.edu>
25885
25886         * lib/inttypes.h: New file.
25887         * lib/strtoimax.c: Assume <inttypes.h>.
25888
25889 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25890
25891         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25892         isn't mounted.  Problem reported by Kir Kolyshkin.
25893
25894 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25895
25896         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25897         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25898         Derek R. Price.
25899         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25900         implementation.
25901
25902 2006-04-12  Eric Blake  <ebb9@byu.net>
25903
25904         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25905         is now done automatically by the corresponding Autoconf macro.
25906
25907 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25908
25909         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25910         time_r.h.
25911
25912 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25913
25914         Merge regex changes from libc, removing some of our
25915         POSIX-conformance changes that were rejected and redoing them in a
25916         less-intrusive way.
25917
25918         * lib/regcomp.c (re_compile_internal, init_dfa):
25919         Length arg is now size_t, not Idx.  All uses changed.
25920         (peek_token): Forward decl now says internal_function.
25921         (__re_error_msgid, __re_error_msgid_idx):
25922         Now static rather than extern with attribute_hidden.
25923         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25924         For some reason libc prefers K&R style defns for external functions.
25925         (regerror) [!defined _LIBC]: Likewise.
25926         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25927         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25928         (build_range_exp, build_collating_symbol):
25929         Use K&R-style defn.
25930         (re_compile_fastmap): Use '\0' to memset, not 0.
25931         (utf8_sb_map): Make the calculations more obvious.
25932         (init_dfa, parse_bracket_exp, build_charclass_op):
25933         Call calloc and cast result, as glibc does.
25934         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25935         (build_range_exp, build_collating_symbol):
25936         Now internal functions.
25937
25938         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25939
25940         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25941         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25942         Don't depend on VMS; depend on __VMS instead, for POSIX
25943         namespace cleanness.
25944         (regoff_t): Define to ssize_t, not long int.
25945
25946         Remove the REG_ macros named below.  Instead, make the old names
25947         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25948         __USE_GNU_REGEX.
25949         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25950         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25951         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25952         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25953         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25954         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25955         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25956         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25957         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25958         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25959         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25960         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25961         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25962         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25963         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25964         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25965         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25966         (REG_NREGS):
25967         Remove.  All uses replaced by the old RE_* names.
25968         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25969         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25970         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25971         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25972         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25973         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25974         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25975         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25976         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25977         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25978         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25979         Don't bother having these macros be independent of each others'
25980         values, since they no longer exist in the POSIX name space.
25981
25982         Rename the following member names back to their old names,
25983         unless !__USE_GNU_REGEX.  All uses changed back.
25984         (buffer): Renamed from re_buffer.
25985         (allocated): Renamed from re_allocated.
25986         (used): Renamed from re_used.
25987         (syntax): Renamed from re_syntax.
25988         (fastmap): Renamed from re_fastmap.
25989         (translate): Renamed from re_translate.
25990         (can_be_null): Renamed from re_can_be_null.
25991         (regs_allocated): Renamed from re_regs_allocated.
25992         (fastmap_accurate): Renamed from re_fastmap_accurate.
25993         (no_sub): Renamed from re_no_sub.
25994         (not_bol): Renamed from re_not_bol.
25995         (not_eol): Renamed from re_not_eol.
25996         (newline_anchor): Renamed from re_newline_anchor.
25997         (num_regs): Renamed from rm_num_regs.
25998         (start): Renamed from rm_start.
25999         (end): Renamed from rm_end.
26000
26001         (free_state): Move up a bit.
26002
26003         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
26004         #define to be empty.
26005         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
26006         when that is what is intended.
26007         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
26008         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
26009         (MAX): New macro.
26010         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
26011         All uses changed back to re_malloc, etc.  It's now the caller's
26012         responsibility to check for overflow; all callers changed.
26013         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
26014         (re_x2nrealloc): Remove.
26015         (free_state): Remove decl.
26016
26017         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
26018         (re_set_registers, re_exec):
26019         Use K&R-style defn.
26020
26021         2006-01-31  Roland McGrath  <roland@redhat.com>
26022
26023         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
26024         Reported by Mike Frysinger <vapier@gentoo.org>.
26025
26026         2006-01-15  Andreas Jaeger  <aj@suse.de>
26027
26028         [BZ #1950]
26029         * lib/regex_internal.c (re_string_reconstruct): Adjust for
26030         build_wcs_upper_buffer change.
26031         (build_wcs_upper_buffer): Change return type.
26032
26033         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
26034
26035         * lib/regex_internal.h: Include <stdint.h> if available.
26036
26037         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
26038
26039         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
26040
26041         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
26042
26043         * lib/regcomp.c: Adjust for changed secondary hash function.
26044
26045         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
26046
26047         * lib/regex.h: Pretty printing.
26048         Clean up namespace a bit.
26049
26050         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
26051
26052         * lib/regexec.c (update_cur_sifted_state, check_arrival,
26053         check_arrival_add_next_nodes): Avoid using uninitialized variable.
26054
26055         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26056                     Ulrich Drepper  <drepper@redhat.com>
26057
26058         [BZ #1302]
26059         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
26060         changed.
26061         (bitset_word_t): Renamed from bitset_word.  All uses changed.
26062
26063         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
26064
26065         [BZ #281]
26066         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
26067         * lib/regcomp.c: Remove unnecessary uses of
26068         unsigned RE_TRANSLATE_TYPE.
26069         * lib/regex_internal.h: Likewise.
26070         * lib/regex_internal.c: Likewise.
26071         * lib/regexec.c: Likewise.
26072         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
26073
26074         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
26075
26076         * lib/regexec.c (find_recover_state): Remove unnecessary
26077         initialization.
26078         (transit_state_bkref): Make DFA a const pointer.
26079         (get_subexp): Likewise.
26080         (check_arrival): Likewise.
26081         (update_cur_sifted_state): Likewise.
26082         (re_search_internal): Likewise.
26083         (prune_impossible_nodes): Likewise.
26084         (acquire_init_state_context): Likewise.
26085         (proceed_next_node): Likewise.
26086         (set_regs): Likewise.
26087         (free_fail_stack_return): Likewise.
26088         (check_arrival_expand_ecl): Mark DFA parameter as const.
26089         (check_arrival_expand_ecl_sub): Likewise.
26090         (check_subexp_limits): Likewise.
26091         (sub_epsilon_src_nodes):  Likewise.
26092         (add_epsilon_src_nodes):  Likewise.
26093         (merge_state_array): Likewise.
26094         (update_regs): Likewise.
26095         (build_trtable): Likewise.
26096         (sift_states_backward): Mark MCTX parameter as const.
26097         (build_sifted_states): Likewise.
26098         (update_cur_sifted_state): Likewise.
26099         (sift_states_mkref): Likewise.
26100         (check_arrival_expand_ecl): Mark eclosure as const.
26101         (check_dst_limits_calc_pos_1): Likewise.
26102         * lib/regex_internal.h (re_match_context_t): Make dfa a const
26103         pointer.
26104
26105         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
26106
26107         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
26108         (transit_state_sb): Likewise.
26109         (transit_state_mb): Likewise.
26110         (sift_states_iter_mb): Likewise.
26111         (check_arrival_add_next_nodes): Likewise.
26112         (check_node_accept_bytes): Change first parameter to pointer-to-const.
26113         [_LIBC] (re_search_2_stub): Use mempcpy.
26114
26115         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
26116         mbrtowc for very simple UTF-8 case.
26117
26118         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
26119         a pointer-to-const.
26120         (re_acquire_state_context): Likewise.
26121         * lib/regex_internal.h: Adjust prototypes.
26122
26123         * lib/regex.c: Prevent using C++ compilers.
26124
26125         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
26126         (re_acquire_state_context): Likewise.
26127
26128 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26129
26130         * modules/regex (Depends-on): Add ssize_t.
26131
26132 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26133
26134         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
26135         translation table.
26136
26137 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26138
26139         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
26140
26141 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
26142             Bruno Haible  <bruno@clisp.org>
26143
26144         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
26145         <sys/types.h> and <inttypes.h>.
26146
26147 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26148
26149         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
26150         `__error_t_defined', so argp.h will not typedef the former.
26151
26152 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26153
26154         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
26155         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
26156         glibc names.  Even if glibc is changed to conform to POSIX, the
26157         traditional names will be available anyway, since regex depends on
26158         the extensions module.  Also, fix a longstanding typo in the
26159         implementation of Spencer ERE test #75 from grep 2.3.  Problems
26160         reported by Emanuele Giaquinta.  Also, change sense of cached
26161         variable, so that the message makes sense.
26162
26163 2006-03-24  Simon Josefsson  <jas@extundo.com>
26164
26165         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
26166         including some doc fixes.
26167         (base64_encode_alloc): Fix +1 bug on allocation failures.
26168
26169 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26170
26171         * lib/base64.c (base64_encode): Do not read past end of array with
26172         unsanitized input on systems with CHAR_BIT > 8.
26173
26174 2006-03-24  Eric Blake  <ebb9@byu.net>
26175
26176         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
26177
26178 2006-03-22  Karl Berry  <karl@gnu.org>
26179
26180         * config/srclist.txt (*setenv.[ch]): get from coreutils.
26181         * config/srclistvars.sh (COREUTILS): new var.
26182
26183 2006-03-17  Jim Meyering  <jim@meyering.net>
26184
26185         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
26186         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
26187
26188 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26189
26190         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
26191         no longer needs it.  Instead, check that regoff_t is as least
26192         as wide as ptrdiff_t.
26193
26194         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
26195         so that our regex.h stays compatible with the installed regex.
26196         This is helpful for installers who configure --without-included-regex.
26197         Problem reported by Emanuele Giaquinta.
26198
26199 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
26200
26201         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
26202         Typedef to long int, not to off_, as POSIX will likely change
26203         in that direction.
26204
26205 2006-03-15  Eric Blake  <ebb9@byu.net>
26206
26207         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
26208
26209 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26210
26211         * lib/argp-help.c (validate_uparams): Fix typo
26212         * lib/argp-parse.c (argp_default_options): Consistently begin help
26213         messages with a lowercase letter.
26214
26215 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
26216
26217         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
26218         overrun buffers and shouldn't be used (much as gets shouldn't be
26219         used).
26220         * lib/time_r.c (asctime_r, ctime_r): Likewise.
26221
26222 2006-03-08  Simon Josefsson  <jas@extundo.com>
26223
26224         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
26225         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26226
26227 2006-03-08  Simon Josefsson  <jas@extundo.com>
26228
26229         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
26230         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26231
26232 2006-03-08  Simon Josefsson  <jas@extundo.com>
26233
26234         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
26235         signal that configure disabled the device.
26236
26237 2006-03-08  Simon Josefsson  <jas@extundo.com>
26238
26239         * build-aux/maint.mk: Fix refresh-po, to handle no translated
26240         languages.
26241
26242 2006-03-07  Simon Josefsson  <jas@extundo.com>
26243
26244         * modules/getopt (Depends-on): Add unistd.
26245
26246         * modules/unistd: New file.
26247
26248 2006-03-07  Simon Josefsson  <jas@extundo.com>
26249
26250         * modules/gc-random: New file.
26251
26252 2006-03-07  Simon Josefsson  <jas@extundo.com>
26253
26254         * m4/unistd_h.m4: New file.
26255
26256 2006-03-07  Simon Josefsson  <jas@extundo.com>
26257
26258         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
26259         test to be side-effect free by storing the result in the cache
26260         variable gl_cv_lib_readline, and moving the assignment of
26261         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
26262         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26263
26264 2006-03-07  Simon Josefsson  <jas@extundo.com>
26265
26266         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
26267         error on missing devices (the functions will return an error).
26268
26269         * m4/gc.m4: Move random stuff to gc-random.m4
26270
26271 2006-03-07  Simon Josefsson  <jas@extundo.com>
26272
26273         * lib/unistd_.h: New file.
26274
26275 2006-03-07  Simon Josefsson  <jas@extundo.com>
26276
26277         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
26278
26279 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26280
26281         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
26282         Problem reported by Juan Manuel Guerrero.
26283
26284 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26285
26286         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
26287         the unistd module.
26288         * lib/getlogin_r.c: Likewise.
26289         * lib/getlogin_r.h: Likewise.
26290         * lib/glob.c: Likewise.
26291         * lib/pagealign_alloc.c: Likewise.
26292         * lib/unistd_.h: Remove; no longer needed.
26293
26294 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26297         Add unistd.
26298         * modules/c-stack (Depends-on): Add unistd.
26299         * modules/getlogin_r: Likewise.
26300         * modules/glob: Likewise.
26301         * modules/pagealign_alloc: Likewise.
26302         * modules/unistd (Files): Remove lib/unistd_.h.
26303         (EXTRA_DIST): Remove.
26304         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
26305         need unistd_.h.
26306         (MOSTLYCLEANFILES): Remove unistd.h-t.
26307
26308 2006-03-03  Simon Josefsson  <jas@extundo.com>
26309
26310         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
26311
26312 2006-03-03  Simon Josefsson  <jas@extundo.com>
26313
26314         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
26315         libidn and bison.
26316
26317 2006-03-03  Simon Josefsson  <jas@extundo.com>
26318
26319         * build-aux/maint.mk: Add indent target.
26320
26321 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
26322
26323         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
26324         our replacement poll.h in any case, to avoid a differing
26325         declaration from a system header.  Seen on AIX.
26326
26327 2006-03-01  Simon Josefsson  <jas@extundo.com>
26328
26329         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26330         <kasal@ucw.cz>.
26331
26332 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26333
26334         * modules/gettime (Depends-on): Add extensions module.
26335         * modules/nanosleep (Depends-on): Likewise.
26336         * modules/settime (Depends-on): Likewise.
26337
26338 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26339
26340         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26341         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26342         pedantically.
26343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26344         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26345
26346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26347         not "==".  Reported by Ralf Wildenhues.
26348
26349 2006-03-01  Karl Berry  <karl@gnu.org>
26350
26351         * doc/Copyright/request-*: new files, synced from gnuorg.
26352
26353 2006-03-01  Karl Berry  <karl@gnu.org>
26354
26355         * config/srclist.txt (Copyright/*): new entries.
26356
26357 2006-02-28  Simon Josefsson  <jas@extundo.com>
26358
26359         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
26360
26361 2006-02-27  Simon Josefsson  <jas@extundo.com>
26362
26363         * lib/base64.h: Indent #define's.  From Jim Meyering
26364         <jim@meyering.net>.
26365
26366 2006-02-27  Jim Meyering  <jim@meyering.net>
26367
26368         Revert the change of 2006-02-24, so these files can continue
26369         to be sync'd from gettext.
26370         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
26371         of `config.h'.
26372
26373 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26374
26375         * modules/intprops: New file.
26376         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
26377         Add intprops.
26378         * modules/getloadavg (Files): Remove lib/intprops.h.
26379         (Depends-on): Add intprops.
26380         * modules/human: Likewise.
26381         * modules/inttostr: Likewise.
26382         * modules/openat: Likewise.
26383         * modules/sig2str: Likewise.
26384         * modules/userspec: Likewise.
26385         * modules/utimecmp: Likewise.
26386         * modules/xnanosleep: Likewise.
26387         * modules/xstrtol: Likewise.
26388
26389 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
26390
26391         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
26392         * modules/lock-tests (TESTS): Use $(EXEEXT).
26393         * modules/tls-tests: Likewise.
26394         * modules/argp-tests: Likewise.
26395         (check_PROGRAMS): New var, replacing...
26396         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
26397
26398 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26399
26400         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
26401         `config.h'.
26402
26403 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26404
26405         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
26406
26407 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26408
26409         Sync from coreutils.
26410         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
26411         gl_CHDIR_SAFER.
26412
26413 2006-02-22  Jim Meyering  <jim@meyering.net>
26414
26415         Sync from coreutils.
26416         * m4/chdir-safer.m4: New file.
26417
26418 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26419
26420         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
26421         AT_FDCWD exceeds INT_MAX.
26422         * lib/openat.h (AT_FDCWD): Likewise.
26423
26424 2006-02-17  Eric Blake  <address@hidden>
26425
26426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
26427
26428 2006-02-16  Simon Josefsson  <jas@extundo.com>
26429
26430         * modules/getaddrinfo (Depends-on): Add sys_socket.
26431
26432 2006-02-15  Simon Josefsson  <jas@extundo.com>
26433
26434         * build-aux/maint.mk: Add dsyntax-check rule.
26435
26436 2006-02-15  Eric Blake  <ebb9@byu.net>
26437
26438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
26439         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
26440         'present but cannot compile' warnings on cygwin.
26441         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
26442         use ws2tcpip.h if sys/socket.h works.
26443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
26444         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
26445
26446 2006-02-14  Simon Josefsson  <jas@extundo.com>
26447
26448         * modules/maintainer-makefile (Files): Rename.
26449
26450         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
26451         and (the local) Makefile.cfg to maint-cfg.mk.
26452
26453         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
26454         to the latter.
26455
26456         * modules/maintainer-makefile: New module.
26457
26458         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
26459         severaly stripped to make it possible to build it up from scratch
26460         with reliable tests.
26461
26462         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
26463         fixes to permit overriding the default actions when configure and
26464         makefile are not available.
26465
26466 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26467
26468         Sync from coreutils.
26469         * modules/lstat (Depends-on): Don't depend on xalloc.
26470         (License): Change from GPL to LGPL, since this is now simply a
26471         replacement for a libc function.
26472
26473 2006-02-14  Jim Meyering  <jim@meyering.net>
26474
26475         Sync from coreutils.
26476
26477         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
26478         failure on deficient systems, and simplify gnulib lgpl dependencies.
26479         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
26480         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
26481
26482         * lib/xalloc-die.c: Remove unused definition of N_.
26483
26484 2006-02-14  Jim Meyering  <jim@meyering.net>
26485
26486         Sync from coreutils.
26487         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
26488         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
26489         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
26490         double-quote uses of that variable, to accommodate the rare case in
26491         which getmntent is available in none of the libraries checked.  This
26492         happens at least on FreeBSD 5.0.
26493
26494 2006-02-13  Simon Josefsson  <jas@extundo.com>
26495
26496         * gnulib-tool (Usage): Fix --import, from
26497         karl@freefriends.org (Karl Berry).
26498
26499 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26500
26501         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
26502
26503 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
26504
26505         * lib/argp-namefrob.h: Restore changes accidentally lost during the
26506         "autoupdate" on 2005-12-12.
26507
26508 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26509
26510         * modules/closeout (Depends-on): Remove atexit.
26511
26512 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26513
26514         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
26515         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
26516
26517 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
26520         __EXTENSIONS__ if this causes compilation to fail.  Problem
26521         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
26522         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
26523
26524 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26525
26526         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
26527         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
26528         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
26529         All uses changed.
26530
26531 2006-01-26  Simon Josefsson  <jas@extundo.com>
26532
26533         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
26534         prototype is visible on mingw32.
26535
26536         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
26537         for mingw32.
26538
26539         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
26540         mingw32).
26541
26542 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26543
26544         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
26545         attempt to open for write; this always fails, at least on POSIX
26546         hosts.  This reinstates the 2006-01-09 change, which was
26547         inadvertently removed.
26548
26549 2006-01-26  Bruno Haible  <bruno@clisp.org>
26550
26551         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
26552         Reported by Paul Eggert.
26553
26554 2006-01-26  Bruno Haible  <bruno@clisp.org>
26555             Paul Eggert  <eggert@cs.ucla.edu>
26556
26557         * lib/stdbool_.h (_Bool)
26558         [(! (defined __cplusplus || defined __BEOS__)
26559           && !defined __GNUC__
26560           && !(defined __HP_cc || defined __xlc__
26561                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
26562                || defined __sgi))]:
26563         #define to signed char in these cases too; this simplifies
26564         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
26565         etc., separately) and makes it more conservative.
26566
26567 2006-01-25  Simon Josefsson  <jas@extundo.com>
26568
26569         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
26570         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
26571         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
26572
26573 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26574
26575         * lib/argp-namefrob.h: Bugfix. Remove stray #
26576
26577 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26578
26579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
26580         so that we test the test.
26581         Check for yet another HP-UX cc bug involving *bool |= bool.
26582
26583 2006-01-25  Karl Berry  <karl@gnu.org>
26584
26585         * config/srclist.txt (vasnprintf.c): sync lost.
26586
26587 2006-01-25  Jim Meyering  <jim@meyering.net>
26588
26589         Sync from the stable (b5) branch of coreutils:
26590
26591         * lib/fts.c (fts_children): Don't let close() clobber errno from
26592         failed fchdir().
26593
26594         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26595         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26596         a dangling symlink.  That can also happen at least for ELOOP.
26597         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26598         FYI, this bug predates the inclusion of fts.c in coreutils.
26599
26600         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26601         in their own block, so pre-c99 compilers don't object.
26602
26603         Avoid the double-free (first in fts_read, second in fts_close) that
26604         would occur when an `active' directory is made inaccessible (e.g.,
26605         via chmod a-x) during a traversal.
26606         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26607         before returning.  Reproduce this failure by
26608         mkdir -p a/b; cd a; chmod a-x . b
26609         Reported by Stavros Passas.
26610
26611 2006-01-25  Jim Meyering  <jim@meyering.net>
26612
26613         * lib/fileblocks.c: Remove more useless parentheses.
26614         * lib/readutmp.h: Likewise.
26615
26616 2006-01-25  Bruno Haible  <bruno@clisp.org>
26617
26618         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26619         warnings.
26620         Reported by Paul Eggert.
26621
26622 2006-01-25  Bruno Haible  <bruno@clisp.org>
26623
26624         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26625         rid of a trap command. For Solaris sh.
26626         Reported by Mark D. Baushke <mdb@gnu.org>.
26627
26628 2006-01-24  Simon Josefsson  <jas@extundo.com>
26629
26630         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26631         Bruno.
26632
26633 2006-01-24  Karl Berry  <karl@gnu.org>
26634
26635         * config/srclist.txt (argp-namefrob.h): sync lost.
26636
26637 2006-01-24  Jim Meyering  <jim@meyering.net>
26638
26639         * modules/openat (Files): Add lib/intprops.h.
26640         From Mark D. Baushke.
26641
26642 2006-01-24  Jim Meyering  <jim@meyering.net>
26643
26644         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26645         Reported by Mark D. Baushke.
26646
26647 2006-01-24  Jim Meyering  <jim@meyering.net>
26648
26649         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26650
26651 2006-01-24  Bruno Haible  <bruno@clisp.org>
26652
26653         * modules/strnlen (Maintainer): Change from glibc to all.
26654
26655 2006-01-24  Bruno Haible  <bruno@clisp.org>
26656
26657         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26658         Patch by Paul Eggert.
26659
26660 2006-01-24  Bruno Haible  <bruno@clisp.org>
26661
26662         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26663         already has it.
26664         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26665         2005-11-26.
26666
26667         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26668         'signed char' to avoid problems with the built-in _Bool type.
26669         Reported by Paul Eggert on 2005-11-26.
26670
26671 2006-01-24  Bruno Haible  <bruno@clisp.org>
26672
26673         * gnulib-tool (func_import): Avoid constructing complicated sed
26674         expressions inside backquote.
26675         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26676
26677 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26678
26679         These changes imported from libc.
26680         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26681         test and two separate function calls.
26682         * lib/strndup.c (__strndup): Add libc_hidden_def.
26683
26684 2006-01-23  Simon Josefsson  <jas@extundo.com>
26685
26686         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26687         Remove the test_*_SOURCES variable: automake infers it by default.
26688         * modules/tls-tests: Likewise.
26689
26690 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26691
26692         Work around porting bugs reported by Dieter in
26693         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26694         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26695         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26696         Include "getopt.h" first, to check interface.
26697         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26698         !HAVE_DECL_GETENV.
26699         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26700         (__strndup): Revert to K&R-style function dfns, the glibc style.
26701         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26702         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26703         Include strnlen.h first, to get prototype properly.
26704         (strnlen): Renamed from __strnlen.
26705         Remove weak alias.
26706
26707 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26708
26709         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26710
26711 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26712
26713         * config/srclist.txt: Adjust to reflect glibc reorganization.
26714         This affects only comments.
26715
26716 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26717
26718          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26719          Reported by Bruce Korb <bkorb@gnu.org>.
26720
26721 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26722
26723         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26724         to pacify gcc -Wswitch-default.
26725
26726 2006-01-22  Bruno Haible  <bruno@clisp.org>
26727
26728         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26729         temporary buffer for sprintf, take into account the precision also
26730         for 'd', 'i', 'u', 'o', 'x', 'X'.
26731
26732 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26733
26734         * modules/argp-tests: New module
26735         * tests/test-argp.c: New file
26736         * tests/test-argp-2.sh: New file
26737
26738 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26739
26740         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26741         (__argp_base_name): Removed
26742         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26743         typo.
26744         (__argp_base_name): Provide macro definition or extern declaration
26745         depending on the configuration
26746
26747 2006-01-20  Simon Josefsson  <jas@extundo.com>
26748
26749         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26750
26751 2006-01-20  Simon Josefsson  <jas@extundo.com>
26752
26753         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26754
26755 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26756
26757         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26758         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26759         Suggested by Bruno Haible.
26760
26761 2006-01-20  Karl Berry  <karl@gnu.org>
26762
26763         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26764         until changes propagate, I guess.
26765
26766 2006-01-19  Simon Josefsson  <jas@extundo.com>
26767
26768         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26769
26770 2006-01-19  Simon Josefsson  <jas@extundo.com>
26771
26772         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26773
26774 2006-01-19  Simon Josefsson  <jas@extundo.com>
26775
26776         * gnulib-tool: Set check_PROGRAMS.
26777
26778         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26779         modules/des-tests, modules/gc-arcfour-tests,
26780         modules/gc-arctwo-tests, modules/gc-des-tests,
26781         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26782         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26783         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26784         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26785         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26786         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26787         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26788         test_*_SOURCES.
26789
26790 2006-01-18  Simon Josefsson  <jas@extundo.com>
26791
26792         * modules/socklen (Depends-on): Depend on sys_socket.
26793
26794 2006-01-18  Simon Josefsson  <jas@extundo.com>
26795
26796         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26797         modules/des-tests, modules/gc-arcfour-tests,
26798         modules/gc-arctwo-tests, modules/gc-des-tests,
26799         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26800         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26801         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26802         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26803         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26804         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26805         $(EXEEXT) to automake TESTS variable, for mingw32.
26806
26807 2006-01-17  Simon Josefsson  <jas@extundo.com>
26808
26809         * modules/socklen (Include): Need sys/socket.h.
26810
26811 2006-01-17  Bruno Haible  <bruno@clisp.org>
26812
26813         * modules/ssize_t (Include): Add <sys/types.h>.
26814
26815 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26816
26817         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26818         it's not portable and it doesn't work with cross-compiles.
26819         Problem reported by Bruno Haible.  Fix missing-$ typo in
26820         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26821         -zignore from being used with Sun's C compiler.
26822
26823 2006-01-12  Simon Josefsson  <jas@extundo.com>
26824
26825         * lib/base64.c: Fix warning, reported by Bruno Haible
26826         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26827
26828 2006-01-12  Bruno Haible  <bruno@clisp.org>
26829
26830         * modules/ldd: New file.
26831         * build-aux/ldd.sh.in: New file.
26832         * MODULES.html.sh (Support for building libraries and executables): Add
26833         ldd.
26834
26835 2006-01-12  Bruno Haible  <bruno@clisp.org>
26836
26837         * m4/ldd.m4: New file.
26838
26839 2006-01-12  Bruno Haible  <bruno@clisp.org>
26840
26841         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26842         endless loop while replacing $auxdir with build-aux.
26843
26844 2006-01-11  Simon Josefsson  <jas@extundo.com>
26845
26846         * lib/stdint_.h (SIZE_MAX): Add missing (.
26847
26848 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26849
26850         Sync from coreutils.
26851         * lib/md5.c: Fix commentary typos.
26852         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26853         * lib/md5.h (__attribute__): Remove; unused.
26854         * lib/sha1.c: Fix commentary to match md5 better.
26855         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26856         so that we don't need to worry about alignment.  All uses changed.
26857         This merges the 2005-10-28 md5 change into sha1.
26858
26859 2006-01-11  Jim Meyering  <jim@meyering.net>
26860
26861         Sync from coreutils.
26862         * lib/md5.c (OP): Fix spacing.
26863
26864 2006-01-11  Bruno Haible  <bruno@clisp.org>
26865
26866         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26867         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26868         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26869
26870 2006-01-11  Bruno Haible  <bruno@clisp.org>
26871
26872         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26873         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26874         the "early" section as well.
26875
26876 2006-01-11  Bruno Haible  <bruno@clisp.org>
26877
26878         Avoid "ar: no archive members specified" error on MacOS X.
26879         * gnulib-tool (func_modules_add_dummy): New function.
26880         (func_import, func_create_testdir): Invoke it.
26881
26882 2006-01-11  Bruno Haible  <bruno@clisp.org>
26883
26884         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26885         with $auxdir in AC_CONFIG_FILES statements.
26886
26887 2006-01-11  Bruno Haible  <bruno@clisp.org>
26888
26889         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26890         Initialize also noinst_HEADERS to empty.
26891
26892 2006-01-11  Bruno Haible  <bruno@clisp.org>
26893
26894         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26895         variables.
26896         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26897         autoreconf.
26898
26899 2006-01-11  Bruno Haible  <bruno@clisp.org>
26900
26901         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26902         overridable by the user.
26903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26904
26905 2006-01-10  Simon Josefsson  <jas@extundo.com>
26906
26907         * modules/sys_socket: New file.
26908
26909 2006-01-10  Simon Josefsson  <jas@extundo.com>
26910
26911         * m4/sys_socket_h.m4: New file.
26912
26913 2006-01-10  Simon Josefsson  <jas@extundo.com>
26914
26915         * lib/socket_.h: New file.
26916
26917 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26918
26919         * modules/readutmp (Maintainer): Add myself.
26920
26921 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26922
26923         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26924         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26925         People who are still concerned with buggy memcmp implementations
26926         can invoke gl_FUNC_MEMCMP themselves.
26927
26928 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26929
26930         * lib/regex_internal.h (BITSET_WORD_BITS):
26931         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26932         preprocessor mishandles large unsigned values as if they were signed.
26933         Problem reported by Claudio Fontana in
26934         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26935
26936 2006-01-10  Jim Meyering  <jim@meyering.net>
26937
26938         Avoid the double-free (first in fts_read, second in fts_close) that
26939         would occur when an `active' directory is made inaccessible (e.g.,
26940         via chmod a-x) during a traversal.
26941         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26942         before returning.  Reproduce this failure by
26943         mkdir -p a/b; cd a; chmod a-x . b
26944         Reported by Stavros Passas.
26945
26946         Sync from coreutils.
26947         * lib/sha1.c: Tweak grammar in a comment.
26948
26949 2006-01-10  Jim Meyering  <jim@meyering.net>
26950
26951         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26952         Patch by Joerg Sonnenberger.
26953
26954 2006-01-10  Bruno Haible  <bruno@clisp.org>
26955
26956         * modules/readutmp: Depend on module free.
26957         * modules/strtok_r: Depend on module restrict.
26958
26959 2006-01-10  Bruno Haible  <bruno@clisp.org>
26960
26961         * modules/gettext (configure.ac): Add an invocation of
26962         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26963
26964 2006-01-10  Bruno Haible  <bruno@clisp.org>
26965
26966         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26967         Reported by Werner Lemberg <wl@gnu.org>.
26968
26969 2006-01-10  Bruno Haible  <bruno@clisp.org>
26970
26971         * lib/localcharset.c: Update from GNU gettext.
26972
26973 2006-01-10  Bruno Haible  <bruno@clisp.org>
26974
26975         * lib/argp.h (__const): Remove macro. Use const instead.
26976         * lib/argp-fmtstream.h (__const): Likewise.
26977         * lib/glob_.h (__const): Remove macro.
26978         * lib/glob-libc.h: Use const instead of __const.
26979
26980 2006-01-10  Bruno Haible  <bruno@clisp.org>
26981
26982         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26983         variable.
26984         Needed to avoid an automake error regarding the 'gettext' module.
26985
26986 2006-01-09  Simon Josefsson  <jas@extundo.com>
26987
26988         * modules/inet_ntop (Depends-on): Add restrict.
26989
26990 2006-01-09  Simon Josefsson  <jas@extundo.com>
26991
26992         * modules/gc-rijndael-tests (License): Put under LGPL.
26993
26994         * modules/gc-des-tests (License): Likewise.
26995
26996         * modules/gc-arcfour-tests (License): Likewise.
26997
26998         * modules/gc-arctwo-tests (License): Likewise.
26999
27000         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
27001
27002         * modules/gc-hmac-sha1-tests (Files): Likewise.
27003
27004         * modules/gc-hmac-md5-tests (License): Likewise.
27005
27006         * modules/gc-sha1-tests (License): Likewise.
27007
27008         * modules/gc-md5-tests (License): Likewise.
27009
27010         * modules/gc-md4-tests (License): Likewise.
27011
27012         * modules/gc-md2-tests (License): Likewise.
27013
27014         * modules/gc-tests (License): Likewise.
27015
27016         * modules/des-tests (License): Likewise.
27017
27018         * modules/md4-tests (License): Likewise.
27019
27020         * modules/md2-tests (License): Likewise.
27021
27022 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27023
27024         Sync from coreutils:
27025
27026         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
27027         * modules/lib-ignore: New file.
27028         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
27029         chdir-safer.m4, lchmod.m4.
27030         * modules/openat: Add mkdirat.c, openat-priv.h.
27031
27032 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27033
27034         Sync from coreutils.
27035         * m4/lib-ignore.m4: New file.
27036         * m4/lchmod.m4: New file.
27037
27038 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27039
27040         Sync from coreutils.
27041         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
27042         for write access: POSIX says that must fail.
27043         * lib/fts.c (diropen): Likewise.
27044         * lib/save-cwd.c (save_cwd): Likewise.
27045         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
27046         well, for minor improvements on hosts that lack O_DIRECTORY.
27047         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
27048         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
27049         Fall back on chown if open failed with EACCES.
27050
27051         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
27052         Report an error at compile-time if only a 1-second nominal clock
27053         resolution is found.
27054
27055         * lib/lchmod.h: New file.
27056         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
27057         (make_dir_parents): Use lchown rather than chown, and
27058         lchmod rather than chmod.
27059
27060         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
27061         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
27062         "proc" reported by n0dalus.
27063
27064         * lib/mountlist.c: Include <limits.h>.
27065         (dev_from_mount_options)
27066         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
27067         New function.  It no longer assumes "dev=" has the System V meaning
27068         on Linux (since it doesn't).  It also parses "dev=" more carefully.
27069         (read_file_system_list)
27070         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
27071         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
27072         dev= in that case.
27073
27074         * lib/posixtm.h (PDS_PRE_2000): New macro.
27075         * lib/posixtm.c (year): Arg is now syntax_bits rather than
27076         allow_century.  All usages changed.  Reject dates outside the range
27077         1969-1999 if PDS_PRE_2000 is used.
27078
27079 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27080
27081         Sync from coreutils.
27082         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
27083         (Time of day items): Mention the possibility of leap seconds.
27084         Problem reported by Dr. David Alan Gilbert.
27085
27086 2006-01-09  Jim Meyering  <jim@meyering.net>
27087
27088         Sync from coreutils.
27089
27090         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
27091
27092         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
27093
27094         * lib/modechange.c (mode_compile): Reject an invalid mode string
27095         that starts with an octal digit.  From Andreas Gruenbacher.
27096
27097         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
27098         and dup to open_safer and dup_safer, respectively.
27099         (openat_permissive): Fix typo in comment.
27100
27101         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
27102         "gettext.h"; either no longer needed or are guaranteed by openat.h.
27103         (_): Remove; no longer needed.
27104         (openat): Renamed from rpl_openat; no need for rpl_openat
27105         since openat.h renames openat for us.
27106         Replace most of the body with a call to openat_permissive,
27107         to avoid duplicate code.
27108         Port to (probably hypothetical) environments were mode_t is
27109         wider than int.
27110         (openat_permissive): Require mode arg, so that we can check
27111         types better.  Put it just after flags.  Change cwd failure
27112         indicator from pointer-to-bool to pointer-to-errno-value.
27113         All callers changed.
27114         Invoke openat_save_fail and/or openat_restore_fail if
27115         cwd_errno is null, so that openat can call us.
27116         (openat_permissive, fdopendir, fstatat, unlinkat):
27117         Simplify errno handling to avoid some duplicate code,
27118         as it's OK to set errno on success.
27119         * lib/openat.h: Revamp code so that function macros depend on
27120         __OPENAT_PREFIX only, not also on AT_FDCWD.
27121         (openat_ro): Remove.  Caller changed to use openat_permissive.
27122         (openat_permissive): Now a macro, if not a function.
27123         (openat_restore_fail, openat_save_fail): Now always functions,
27124         since mkdirat needs them even if __OPENAT_PREFIX is defined.
27125
27126         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
27127         and openat.c.
27128         * lib/mkdirat.c: Include openat-priv.h.
27129         Remove definitions of macros defined therein.
27130         * lib/openat.c: Likewise.
27131
27132         * lib/mkdirat.c (mkdirat): New file and function.
27133         * lib/openat.h (mkdirat): Declare.
27134
27135         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
27136
27137         * lib/openat.h (openat_permissive): Declare.
27138         (openat_ro): Define.
27139
27140         * lib/openat.c (EXPECTED_ERRNO): New macro.
27141         (openat_permissive): New function -- used in remove.c rewrite.
27142         (all functions): Set errno just before returning, only if there
27143         was an actual failure.
27144         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
27145
27146         Emulate openat-family functions using Linux's procfs, if possible.
27147         Idea and some code based on Ulrich Drepper's glibc changes.
27148
27149         * lib/openat.c: (BUILD_PROC_NAME): New macro.
27150         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
27151         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
27152         before falling back on save_cwd and restore_cwd.
27153         (fdopendir, fstatat, unlinkat): Likewise.
27154
27155         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
27156         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
27157
27158         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
27159         as second argument to va_arg.  Otherwise, some versions of gcc
27160         warn that `if this code is reached, the program will abort'.
27161
27162 2006-01-09  Jim Meyering  <jim@meyering.net>
27163
27164         Sync from coreutils.
27165         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
27166         Require openat-priv.h.
27167
27168 2006-01-09  Bruno Haible  <bruno@clisp.org>
27169
27170         * modules/strnlen (Include): Use strnlen.h.
27171
27172 2006-01-09  Bruno Haible  <bruno@clisp.org>
27173
27174         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
27175
27176 2006-01-09  Bruno Haible  <bruno@clisp.org>
27177
27178         * lib/sysexit_.h (EX_OK): New macro.
27179         Suggested by Martin Lambers <marlam@marlam.de>.
27180
27181 2006-01-09  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
27184         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
27185
27186 2006-01-09  Bruno Haible  <bruno@clisp.org>
27187
27188         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
27189         numbers.
27190
27191 2006-01-09  Bruno Haible  <bruno@clisp.org>
27192
27193         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
27194         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
27195         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
27196         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
27197
27198 2006-01-09  Bruno Haible  <bruno@clisp.org>
27199
27200         * build-aux/javacomp.sh.in: New file, moved from lib/.
27201         * modules/javacomp-script (Files): Update.
27202         (configure.ac): Add AC_CONFIG_FILES invocation.
27203         (EXTRA_DIST): Remove variable.
27204
27205         * build-aux/javaexec.sh.in: New file, moved from lib/.
27206         * modules/javaexec (Files): Update.
27207         (configure.ac): Add AC_CONFIG_FILES invocation.
27208         (EXTRA_DIST): Remove javaexec.sh.in.
27209
27210         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
27211         * modules/csharpcomp-script (Files): Update.
27212         (configure.ac): Add AC_CONFIG_FILES invocation.
27213         (EXTRA_DIST): Remove variable.
27214
27215         * build-aux/csharpexec.sh.in: New file, moved from lib/.
27216         * modules/csharpexec (Files): Update.
27217         (configure.ac): Add AC_CONFIG_FILES invocation.
27218         (EXTRA_DIST): Remove csharpexec.sh.in.
27219
27220 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27221
27222         Sync from coreutils.
27223
27224         Add POSIX ACL support
27225         * lib/acl.h (copy_acl, set_acl): Add declarations.
27226         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
27227         systems other than Linux.
27228         (chmod_or_fchmod): New function: use fchmod when possible,
27229         and chmod otherwise.
27230         (file_has_acl): Add a POSIX ACL implementation, with a
27231         Linux-specific subcase.
27232         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
27233         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
27234         acls are unsupported.
27235         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
27236         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
27237         are unsupported.
27238
27239 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
27240
27241         Sync from coreutils.
27242         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
27243
27244 2006-01-07  Bruno Haible  <bruno@clisp.org>
27245
27246         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
27247         gl_EARLY.
27248
27249 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27250
27251         * lib/strftime.c (tzname): Don't declare if it is already #defined.
27252         Problem reported for Mingw by Mark Junker.
27253
27254 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27255
27256         * README: Gnulib normally doesn't generate a tarball.
27257
27258 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27259
27260         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
27261         long int, not int, for nanosecond counts, so that people who are
27262         used to POSIX struct timespec won't be surprised.  Reported by Jim
27263         Meyering.
27264
27265 2005-12-28  Bruno Haible  <bruno@clisp.org>
27266
27267         * build-aux/config.rpath: Update from GNU gettext.
27268
27269 2005-12-16  Jim Meyering  <jim@meyering.net>
27270
27271         * modules/fprintftime: New module.
27272         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
27273
27274 2005-12-16  Jim Meyering  <jim@meyering.net>
27275
27276         * m4/fprintftime.m4: New file.
27277
27278 2005-12-16  Jim Meyering  <jim@meyering.net>
27279
27280         * lib/fprintftime.c, lib/fprintftime.h: New files.
27281
27282 2005-12-15  Simon Josefsson  <jas@extundo.com>
27283
27284         * modules/socklen (configure.ac): Fix M4 macro name, to align with
27285         new m4/socklen.m4.
27286
27287 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27288
27289         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
27290         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
27291
27292 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27293
27294         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
27295         * lib/argp-help.c (fill_in_uparams): Check if the constructed
27296         struct uparams is valid. Fall back to the default values if it is
27297         not.
27298
27299 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27300
27301         * modules/argp (Files): Add argp-pin.c
27302         (Depends-on): dirname
27303         (lib_SOURCES): Add argp-pin.c
27304
27305 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27306
27307         * m4/argp.m4:  Check if program_invocation_name and
27308         program_invocation_short_name are declared and define appropriate
27309         macros if they are not.
27310
27311 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27312
27313         * lib/argp-help.c (__argp_base_name): New function
27314         (__argp_short_program_name): Rewrite using __argp_base_name
27315         * lib/argp-namefrob.h: Define program_invocation_name and
27316         program_invocation_short_name if requested
27317         (__argp_base_name): Add prototype
27318         * lib/argp-parse.c (argp_def): Use gettext wrappers
27319         (argp_default_parser): Use __argp_base_name
27320         * lib/argp-pin.c: New file. Defines program_invocation_name and
27321         program_invocation_short_name on systems that lack them.
27322
27323 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27324
27325         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27326         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27327         porting problem reported by Georg Schwarz in
27328         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27329
27330 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27331
27332         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27333         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27334         porting problem reported by Georg Schwarz in
27335         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27336
27337 2005-12-05  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27340         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27341         Reported by Mark Junker <mjscod@gmx.de>.
27342
27343 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27344
27345         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27346         Use implementation from Albert Chin, with some
27347         comments/corrections by Stepan Kasal and myself.
27348
27349 2005-12-02  Bruno Haible  <bruno@clisp.org>
27350
27351         * gnulib-tool (func_import): Accept GPLed build tool modules when
27352         --lgpl is given.
27353         * modules/csharpcomp-script: New file.
27354         * modules/csharpcomp: Depend on it.
27355         * modules/javacomp-script: New file.
27356         * modules/javacomp: Depend on it.
27357         Suggested by Simon Josefsson.
27358
27359 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27360
27361         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
27362         statement, to work around an HP-UX 10.20 compiler bug reported by
27363         Peter O'Gorman.
27364
27365 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27366
27367         * modules/savedir (Depends-on): Add openat.
27368
27369 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27370
27371         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
27372         (uintmax_t) [defined uintmax_t]: Do not declare.
27373         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
27374         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
27375         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
27376         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
27377         sake of portability to weird hosts that C allows (though we don't
27378         know of any practical examples).
27379
27380         * lib/savedir.h (fdsavedir): New decl.
27381         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
27382         contains most of the former guts of savedir.
27383         (savedir): Use savedirstream.
27384         Include "openat.h".
27385
27386 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27387
27388         * modules/obstack (Files): Add m4/ulonglong.m4.
27389         Problem reported by Davide Angelocola.
27390
27391 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27392
27393         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
27394         coreutils no longer futzes with rounding modes.
27395
27396 2005-11-14  Jim Meyering  <jim@meyering.net>
27397
27398         * lib/mkstemp-safer.c: Include <config.h>, required for possible
27399         replacement of mkstemp.
27400
27401 2005-11-10  Simon Josefsson  <jas@extundo.com>
27402
27403         * lib/readline.c: Remove EOL.
27404
27405 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27406
27407         * modules/gethrxtime (Depends-on): Add gettime.
27408
27409 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27410
27411         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
27412         or gettimeofday; no longer needed.
27413
27414 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27415
27416         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
27417         time business.
27418         (gethrxtime) [! (HAVE_NANOUPTIME
27419         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
27420         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
27421         our own approximation.
27422
27423 2005-11-08  Eric Blake  <ebb9@byu.net>
27424
27425         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27426
27427 2005-11-08  Eric Blake  <ebb9@byu.net>
27428
27429         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27430
27431 2005-11-04  Bruno Haible  <bruno@clisp.org>
27432
27433         * gnulib-tool: Implement --update mode.
27434
27435 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27436
27437         Fix porting problem reported by Theodoros V. Kalamatianos.
27438         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
27439         Don't assume that futimes failing means we must fail.
27440
27441 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27442
27443         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
27444         variables to suggest the intended function of the PATH_MAX check.
27445
27446 2005-10-30  Kean Johnston  <jkj@sco.com>
27447
27448         Trivial changes to support SCO systems.
27449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
27450         as PATH_MAX.
27451         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
27452         where __ptr is null when no I/O is pending.
27453
27454 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27455
27456         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
27457         leave errno alone.  Problem reported by Dmitry V. Levin.
27458
27459 2005-10-28  Simon Josefsson  <jas@extundo.com>
27460
27461         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
27462         Test more.
27463
27464         * tests/test-gc-md2.c, tests/test-md2.c: New files.
27465
27466         * modules/md2, modules/md2-tests: New files.
27467
27468 2005-10-28  Simon Josefsson  <jas@extundo.com>
27469
27470         * m4/inet_ntop.m4: More tests.
27471
27472         * m4/gc-md2.m4, md2.m4: New file.
27473
27474 2005-10-28  Simon Josefsson  <jas@extundo.com>
27475
27476         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
27477         "restrict" keywords, as per POSIX.  Protect the function
27478         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
27479         Don't use K&R prototypes.  Check the sprintf return values.
27480         Re-define EAFNOSUPPORT if not present.  Indent.
27481
27482         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
27483         suggested by Bruno Haible <bruno@clisp.org>.
27484
27485         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
27486
27487         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
27488
27489         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
27490         libgcrypt).
27491
27492         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
27493
27494         * lib/md2.h, lib/md2.c: New files.
27495
27496 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
27499         errno alone.  Problem reported by Frederic Jolliton.
27500
27501 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27502
27503         * modules/verify (License): Change from GPL to LGPL.  This is a
27504         tiny module and there are apparently near-equivalents that are
27505         under the BSD license.
27506
27507 2005-10-24  Simon Josefsson  <jas@extundo.com>
27508
27509         * modules/sha1: Relicense to LGPL.
27510
27511 2005-10-24  Simon Josefsson  <jas@extundo.com>
27512
27513         * lib/md4.h: Shrink buffer size, now that we changed the type.
27514
27515 2005-10-23  Simon Josefsson  <jas@extundo.com>
27516
27517         * gnulib-tool (func_import): Fix --tests-base.
27518
27519 2005-10-22  Simon Josefsson  <jas@extundo.com>
27520
27521         * modules/arcfour (Depends-on): Need stdint.
27522
27523 2005-10-22  Simon Josefsson  <jas@extundo.com>
27524
27525         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
27526         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
27527
27528 2005-10-22  Simon Josefsson  <jas@extundo.com>
27529
27530         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
27531         suggested by Bruno Haible <bruno@clisp.org>.
27532
27533 2005-10-22  Simon Josefsson  <jas@extundo.com>
27534
27535         * lib/crc.h: Include stddef.h, for size_t.
27536
27537 2005-10-22  Simon Josefsson  <jas@extundo.com>
27538
27539         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
27540         arcfour_context struct (simplify test vector testing in GNU
27541         Shishi).
27542
27543 2005-10-21  Simon Josefsson  <jas@extundo.com>
27544
27545         * modules/des, modules/des-tests: New files.
27546
27547         * modules/gc-des, modules/gc-des-tests: New files.
27548
27549         * tests/test-des.c, tests/test-gc-des.c: New file.
27550
27551 2005-10-21  Simon Josefsson  <jas@extundo.com>
27552
27553         * modules/arctwo, modules/arctwo-tests: New files.
27554
27555         * tests/test-arctwo.c: New file.
27556
27557         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
27558
27559         * tests/test-gc-arctwo.c: New file.
27560
27561 2005-10-21  Simon Josefsson  <jas@extundo.com>
27562
27563         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
27564         Bruno Haible <bruno@clisp.org>.
27565
27566         * m4/gc-des.m4: New file.
27567
27568 2005-10-21  Simon Josefsson  <jas@extundo.com>
27569
27570         * m4/arctwo.m4: New file.
27571
27572         * m4/gc-arctwo.m4: New file.
27573
27574 2005-10-21  Simon Josefsson  <jas@extundo.com>
27575
27576         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
27577         block.
27578
27579 2005-10-21  Simon Josefsson  <jas@extundo.com>
27580
27581         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
27582         <bruno@clisp.org>.
27583
27584         * lib/hmac-sha1.c (hmac_sha1): Likewise.
27585
27586         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
27587         Bruno Haible <bruno@clisp.org>.
27588
27589         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
27590         <bruno@clisp.org>.
27591
27592 2005-10-21  Simon Josefsson  <jas@extundo.com>
27593
27594         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27595
27596 2005-10-21  Simon Josefsson  <jas@extundo.com>
27597
27598         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27599
27600 2005-10-21  Simon Josefsson  <jas@extundo.com>
27601
27602         * lib/des.h, lib/des.c: New files.
27603
27604         * lib/gc-gnulib.c: Support DES.c
27605
27606 2005-10-21  Simon Josefsson  <jas@extundo.com>
27607
27608         * lib/arctwo.h, lib/arctwo.c: New files.
27609
27610         * lib/gc-gnulib.c: Support ARCTWO.
27611
27612 2005-10-21  Simon Josefsson  <jas@extundo.com>
27613
27614         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27615         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27616
27617 2005-10-21  Simon Josefsson  <jas@extundo.com>
27618
27619         * gnulib-tool (func_import, func_create_testdir): Define automake
27620         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27621         Makefile.am snippet),
27622         suggested by Bruno Haible <bruno@clisp.org>.
27623
27624         * modules/gc (Makefile.am): Use it.
27625
27626 2005-10-21  Bruno Haible  <bruno@clisp.org>
27627
27628         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27629         patch.
27630
27631 2005-10-19  Simon Josefsson  <jas@extundo.com>
27632
27633         * tests/test-gc-rijndael.c: New file.
27634
27635         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27636
27637 2005-10-19  Simon Josefsson  <jas@extundo.com>
27638
27639         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27640         interface too.
27641
27642 2005-10-19  Simon Josefsson  <jas@extundo.com>
27643
27644         * tests/test-gc-arcfour.c: New file.
27645
27646         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27647
27648 2005-10-19  Simon Josefsson  <jas@extundo.com>
27649
27650         * modules/gc-md4, modules/gc-md4-tests: New file.
27651
27652         * tests/test-gc-md4.c: New file.
27653
27654 2005-10-19  Simon Josefsson  <jas@extundo.com>
27655
27656         * m4/gc-md4.m4: New file.
27657
27658 2005-10-19  Simon Josefsson  <jas@extundo.com>
27659
27660         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27661         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27662         <kasal@ucw.cz>.
27663
27664 2005-10-19  Simon Josefsson  <jas@extundo.com>
27665
27666         * m4/gc-arcfour.m4: New file.
27667
27668         * m4/gc-rijndael.m4: New file.
27669
27670 2005-10-19  Simon Josefsson  <jas@extundo.com>
27671
27672         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27673
27674 2005-10-19  Simon Josefsson  <jas@extundo.com>
27675
27676         * lib/gc-gnulib.c: Support ARCFOUR.
27677
27678 2005-10-19  Simon Josefsson  <jas@extundo.com>
27679
27680         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27681         support.
27682
27683         * lib/gc.h: Add ECB enum type.
27684
27685         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27686
27687 2005-10-18  Simon Josefsson  <jas@extundo.com>
27688
27689         * tests/test-md5.c: New file.
27690
27691         * modules/md5-tests: New file.
27692
27693 2005-10-18  Simon Josefsson  <jas@extundo.com>
27694
27695         * tests/test-md4.c: New file.
27696
27697         * modules/md4, modules/md4-tests: New files.
27698
27699 2005-10-18  Simon Josefsson  <jas@extundo.com>
27700
27701         * m4/md4.m4: New file.
27702
27703 2005-10-18  Simon Josefsson  <jas@extundo.com>
27704
27705         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27706
27707 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27708
27709         * gnulib-tool (func_create_testdir): Omit the second check whether
27710         BUILT_SOURCES in nonempty.
27711
27712 2005-10-17  Simon Josefsson  <jas@extundo.com>
27713
27714         * tests/test-rijndael.c: New file.
27715
27716 2005-10-17  Simon Josefsson  <jas@extundo.com>
27717
27718         * modules/sha1: Depend on stdint instead of md5.
27719
27720         * modules/md5: Depend on stdint, remove uint32_t.
27721
27722 2005-10-17  Simon Josefsson  <jas@extundo.com>
27723
27724         * modules/gc-sha1-tests: New file.
27725
27726         * tests/test-gc-sha1.c: New file.
27727
27728 2005-10-17  Simon Josefsson  <jas@extundo.com>
27729
27730         * m4/md5.m4: Remove call to uint32_t.m4.
27731
27732 2005-10-17  Simon Josefsson  <jas@extundo.com>
27733
27734         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27735
27736         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27737         md5.h.
27738
27739         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27740
27741         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27742
27743 2005-10-17  Simon Josefsson  <jas@extundo.com>
27744
27745         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27746
27747 2005-10-17  Simon Josefsson  <jas@extundo.com>
27748
27749         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27750
27751 2005-10-17  Simon Josefsson  <jas@extundo.com>
27752
27753         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27754
27755         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27756
27757 2005-10-17  Bruno Haible  <bruno@clisp.org>
27758
27759         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27760         that it can also be used in a test.
27761
27762 2005-10-16  Bruno Haible  <bruno@clisp.org>
27763
27764         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27765         TESTS_ENVIRONMENT, so that individual tests can augment it.
27766
27767         * gnulib-tool (func_create_testdir): Use an intermediate target for
27768         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27769         macros, like $(ALLOCA_H), which cannot be passed through the command
27770         line.
27771
27772 2005-10-15  Simon Josefsson  <jas@extundo.com>
27773
27774         * modules/rijndael-tests: New file.
27775
27776         * modules/rijndael: New file.
27777
27778 2005-10-15  Simon Josefsson  <jas@extundo.com>
27779
27780         * m4/rijndael.m4: New file.
27781
27782 2005-10-15  Simon Josefsson  <jas@extundo.com>
27783
27784         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27785
27786         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27787
27788 2005-10-14  Simon Josefsson  <jas@extundo.com>
27789
27790         * tests/test-arcfour.c: New file.
27791
27792         * modules/arcfour, modules/arcfour-tests: New files.
27793
27794 2005-10-14  Simon Josefsson  <jas@extundo.com>
27795
27796         * m4/arcfour.m4: New file.
27797
27798 2005-10-14  Simon Josefsson  <jas@extundo.com>
27799
27800         * lib/arcfour.h, lib/arcfour.c: New files.
27801
27802 2005-10-14  Roland McGrath  <roland@redhat.com>
27803
27804         Import from libc.  [BZ #1331]
27805         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27806         macro argument.
27807         Reported by Matej Vela <vela@debian.org>.
27808
27809 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27810
27811         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27812         include <wchar.h>; no longer needed.
27813
27814 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27815
27816         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27817
27818 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27819         and  Ulrich Drepper  <drepper@redhat.com>
27820
27821         Import from libc.
27822         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27823         instead of inline stream orientation test and two separate
27824         function calls.  Pay no attention to USE_IN_LIBIO.
27825
27826 2005-10-13  Simon Josefsson  <jas@extundo.com>
27827
27828         * modules/gc-hmac-md5-tests: New file.
27829
27830         * tests/test-gc-hmac-sha1.c: New file.
27831
27832         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27833
27834         * modules/gc-hmac-md5-tests: New file.
27835
27836         * tests/test-gc-md5.c: New file.
27837
27838         * modules/gc-md5-tests: New file.
27839
27840 2005-10-13  Simon Josefsson  <jas@extundo.com>
27841
27842         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27843         Move memory allocation outside of loop.
27844
27845 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27846
27847         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27848         intermediate directory is in a read-only file system.  Problem
27849         reported by Eric Blake.
27850
27851 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27852
27853         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27854
27855 2005-10-12  Simon Josefsson  <jas@extundo.com>
27856
27857         * tests/test-hmac-sha1.c: New file.
27858
27859         * modules/hmac-sha1-tests: New file.
27860
27861         * modules/hmac-sha1: New file.
27862
27863 2005-10-12  Simon Josefsson  <jas@extundo.com>
27864
27865         * modules/gc-sha1: New file.
27866
27867 2005-10-12  Simon Josefsson  <jas@extundo.com>
27868
27869         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27870
27871         * tests/test-gc-pbkdf2-sha1.c: New file.
27872
27873 2005-10-12  Simon Josefsson  <jas@extundo.com>
27874
27875         * modules/gc-md5, modules/gc-hmac-md5: New files.
27876
27877         * modules/gc (Files): Remove md5, memxor and hmac files.
27878
27879 2005-10-12  Simon Josefsson  <jas@extundo.com>
27880
27881         * m4/gc-pbkdf2-sha1.m4: New file.
27882
27883         * m4/gc-hmac-sha1.m4: New file.
27884
27885         * m4/gc-sha1: New file.
27886
27887         * m4/hmac-sha1.m4: New file.
27888
27889 2005-10-12  Simon Josefsson  <jas@extundo.com>
27890
27891         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27892
27893         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27894
27895 2005-10-12  Simon Josefsson  <jas@extundo.com>
27896
27897         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27898         suggested by Bruno Haible <bruno@clisp.org>.
27899
27900 2005-10-12  Simon Josefsson  <jas@extundo.com>
27901
27902         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27903
27904 2005-10-12  Simon Josefsson  <jas@extundo.com>
27905
27906         * lib/gc-pbkdf2-sha1.c: New file.
27907
27908         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27909
27910 2005-10-12  Simon Josefsson  <jas@extundo.com>
27911
27912         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27913
27914         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27915
27916 2005-10-12  Simon Josefsson  <jas@extundo.com>
27917
27918         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27919         GC_USE_HMAC_MD5, respectively.
27920
27921         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27922         (gc_md5): Fix typo.
27923
27924         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27925
27926         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27927
27928         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27929
27930 2005-10-12  Bruno Haible  <bruno@clisp.org>
27931
27932         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27933         Reported by Stepan Kasal <kasal@ucw.cz>.
27934
27935 2005-10-11  Simon Josefsson  <jas@extundo.com>
27936
27937         * tests/test-crc.c: New file.
27938
27939         * modules/crc, modules/crc-tests: New files.
27940
27941 2005-10-11  Simon Josefsson  <jas@extundo.com>
27942
27943         * m4/crc.m4: New file.
27944
27945 2005-10-11  Simon Josefsson  <jas@extundo.com>
27946
27947         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27948
27949         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27950
27951         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27952
27953 2005-10-11  Simon Josefsson  <jas@extundo.com>
27954
27955         * lib/crc.h, lib/crc.c: New files.
27956
27957         * lib/gc.h (gc_hash_buffer): Add doc.
27958
27959 2005-10-11  Bruno Haible  <bruno@clisp.org>
27960
27961         * modules/c-strcasestr: New file.
27962         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27963
27964 2005-10-11  Bruno Haible  <bruno@clisp.org>
27965
27966         * modules/c-strcase: New file.
27967         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27968
27969 2005-10-11  Bruno Haible  <bruno@clisp.org>
27970
27971         * lib/strcasecmp.c: Include limits.h.
27972         (strcasecmp): Avoid integer overflow on exotic platforms.
27973         * lib/strncasecmp.c: Include limits.h.
27974         (strncasecmp): Avoid integer overflow on exotic platforms.
27975         Reported by Paul Eggert.
27976
27977 2005-10-11  Bruno Haible  <bruno@clisp.org>
27978
27979         * lib/c-strcasestr.h: New file, from GNU gettext.
27980         * lib/c-strcasestr.c: New file, from GNU gettext.
27981
27982 2005-10-11  Bruno Haible  <bruno@clisp.org>
27983
27984         * lib/c-strcase.h: New file, from GNU gettext.
27985         * lib/c-strcasecmp.c: New file, from GNU gettext.
27986         * lib/c-strncasecmp.c: New file, from GNU gettext.
27987
27988 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27989
27990         * modules/mempcpy (License): GPL -> LGPL.
27991         * modules/strchrnul (License): Likewise.
27992         * modules/sysexits (License): Likewise.
27993
27994 2005-10-08  Simon Josefsson  <jas@extundo.com>
27995
27996         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27997
27998 2005-10-07  Simon Josefsson  <jas@extundo.com>
27999
28000         * m4/memxor.m4: Remove gl_C_RESTRICT call.
28001
28002 2005-10-06  Simon Josefsson  <jas@extundo.com>
28003
28004         * tests/test-hmac-md5.c: New file.
28005
28006         * modules/hmac-md5-tests: New file.
28007
28008         * modules/hmac-md5: New file.
28009
28010 2005-10-06  Simon Josefsson  <jas@extundo.com>
28011
28012         * m4/hmac-md5.m4: New file.
28013
28014         * m4/memxor.m4: Require gl_C_RESTRICT.
28015
28016 2005-10-06  Simon Josefsson  <jas@extundo.com>
28017
28018         * lib/memxor.c (memxor): Avoid casts and warnings.
28019
28020 2005-10-06  Simon Josefsson  <jas@extundo.com>
28021
28022         * lib/hmac-md5.c: New file.
28023
28024         * lib/hmac.h: New file.
28025
28026 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
28029         promotes to int, not unsigned int, to catch the AIX 5.3
28030         compiler bug.
28031
28032 2005-10-05  Simon Josefsson  <jas@extundo.com>
28033
28034         * modules/memxor: New file.
28035
28036         * modules/iconv (Files): Move config.rpath to havelib, it is used
28037         there.
28038
28039         * modules/havelib (Files): Add config.rpath.
28040
28041 2005-10-05  Simon Josefsson  <jas@extundo.com>
28042
28043         * m4/memxor.m4: New file.
28044
28045 2005-10-05  Simon Josefsson  <jas@extundo.com>
28046
28047         * lib/memxor.c (memxor): Fix compiler error.
28048
28049         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
28050         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
28051
28052         * lib/memxor.h, lib/memxor.c: New files.
28053
28054         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
28055         we assume all systems have it, suggested by Jim Meyering
28056         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
28057         any systems lack sys/socket.h; mingw32 is known to lack it, but we
28058         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
28059         same reasons.
28060
28061 2005-10-05  Simon Josefsson  <jas@extundo.com>
28062
28063         * config/srclist.txt: Add glibc bug 1423 for md5.h.
28064
28065 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
28068         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
28069         needed, since the source code now assumes these .h files.
28070
28071 2005-10-05  Derek Price  <derek@ximbiot.com>
28072
28073         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
28074
28075 2005-10-05  Bruno Haible  <bruno@clisp.org>
28076
28077         * modules/stdint (License): Change to LGPL.
28078
28079 2005-10-04  Simon Josefsson  <jas@extundo.com>
28080
28081         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
28082         D. Baushke" <mdb@gnu.org>.
28083
28084 2005-10-04  Bruno Haible  <bruno@clisp.org>
28085
28086         * lib/verify.h (verify_true): Provide alternative definition for C++.
28087
28088 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28089
28090         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
28091         (SSIZE_MAX): New macro, if not already defined.
28092         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
28093         than 2 GiB.
28094
28095 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28096
28097         Sync from coreutils.
28098         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
28099         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
28100         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
28101         ULLONG_MAX doesn't work with 2.7.2.1.
28102
28103 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28104
28105         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
28106         From Ben Pfaff.
28107
28108         * modules/exclude (Depends-on): Depend on verify.
28109         * modules/strtoimax (Depends-on): Likewise.
28110         * modules/utimecmp (Depends-on): Likewise.
28111
28112 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28113
28114         * lib/exclude.c: Include verify.h.
28115         (verify): Remove.  All callers changed to use verify.h's version.
28116         * lib/strtoimax.c: Likewise.
28117         * lib/utimecmp.c: Likewis.e
28118
28119         Sync from coreutils.
28120         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
28121         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
28122         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
28123         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
28124         bother returning ENOSYS if settimeofday or stime fails; just let
28125         them return whatever errno they want to return.
28126         * lib/utimens.c: Include unistd.h, for dup2.
28127         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
28128         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
28129
28130 2005-10-02  Jim Meyering  <jim@meyering.net>
28131
28132         Sync from coreutils.
28133         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
28134         from glibc-2.2.5 that fails for read-only files.
28135
28136 2005-10-02  Jim Meyering  <jim@meyering.net>
28137
28138         Sync from coreutils.
28139         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
28140         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
28141         `#if HAVE_CONFIG_H'.
28142         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
28143         Remove AT_FDCWD test.
28144         Do not consume the fd unless successful.
28145         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
28146         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
28147         block, so that we don't even try to compile it if settimeofday is
28148         available.  This works around a compilation failure on OSF1 V5.1,
28149         due to stime requiring a `long int*' while tv_sec is `int'.
28150
28151 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
28152
28153         Sync from coreutils.
28154         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
28155         against `yes', rather than just testing for nonempty.
28156
28157 2005-10-01  Simon Josefsson  <jas@extundo.com>
28158
28159         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
28160         and Darwin.
28161
28162         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
28163         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
28164         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
28165         freeaddrinfo and gai_strerror are declared by the POSIX headers.
28166         Check if struct addrinfo is declared.
28167
28168 2005-10-01  Simon Josefsson  <jas@extundo.com>
28169
28170         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
28171         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
28172         AI_* and EAI_* definitions.  Protect function declarations.
28173
28174 2005-10-01  Jim Meyering  <jim@meyering.net>
28175
28176         Sync from coreutils.
28177
28178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
28179         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
28180         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
28181         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28182         in the inet and nsl libraries.  Required on Solaris 5.7.
28183
28184 2005-10-01  Jim Meyering  <jim@meyering.net>
28185
28186         Sync from coreutils.
28187         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
28188         in the inet and nsl libraries.  Required on Solaris 5.7.
28189
28190 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
28191
28192         * lib/getdelim.c (getdelim): Remove unused variables.
28193
28194 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28195
28196         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
28197         so that the code works even with ancient cpp.  Portability problem
28198         with GCC 2.7.2.1 reported by Thomas M.Ott.
28199
28200 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28201
28202         * modules/regex (Depends-on): Add strcase.
28203
28204         * modules/gethostname (Licence): Change from GPL to LGPL, since
28205         gethostname.c is a trivial implementation of a standard library
28206         function.
28207         * modules/poll (License): Change from GPL to LGPL, since it's
28208         derived from LGPL code.
28209
28210 2005-09-27  Jim Meyering  <jim@meyering.net>
28211
28212         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
28213         HAVE_CONFIG_H.
28214
28215         * lib/intprops.h (signed_type_or_expr__): Define.
28216         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
28217         for unsigned types.
28218
28219 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28220
28221         * lib/verify.h (verify_expr): Remove, replacing with:
28222         (verify_true): New macro that returns true instead of void.
28223         (verify_type__): Remove.
28224         (verify): Use verify_true rather than verify_type__.
28225
28226 2005-09-26  Bruno Haible  <bruno@clisp.org>
28227
28228         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
28229         is necessary.
28230         (lib_SOURCES): Remove mbchar.c.
28231         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
28232         (Files): Add m4/mbrtowc.m4.
28233         * modules/mbiter: Likewise.
28234         * modules/mbuiter: Likewise.
28235
28236 2005-09-26  Bruno Haible  <bruno@clisp.org>
28237
28238         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
28239         compile mbchar.c if they are not both present.
28240         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
28241         * m4/mbiter.m4 (gl_MBITER): Likewise.
28242         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
28243         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
28244         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
28245
28246 2005-09-25  Jim Meyering  <jim@meyering.net>
28247
28248         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
28249         also uses socklen_t.
28250
28251 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28252
28253         * lib/utimens.c (ENOSYS): Define if not already defined.
28254         (futimens): Support having a null PATH if the file descriptor
28255         is nonnegative.
28256
28257         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
28258         Remove.
28259         (__attribute): Define to empty unless GCC 3.1 or later.
28260         This works around a core dump on OpenBSD 3.4, which has GCC
28261         2.95.3, which dumps core when given __attribute__(()).  It also
28262         simplifies other tests, since we really don't want to bother with
28263         worrying about which ancient version of GCC supported what.
28264         Original problem reported by Yoann Vandoorselaere, with part of
28265         the fix suggested by Derek Price.
28266
28267 2005-09-24  Jim Meyering  <jim@meyering.net>
28268
28269         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
28270         so we can once again use a positive bitfield width of 1 -- now we
28271         don't have to explain why we were using a bitfield width of 2.
28272
28273 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28274
28275         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
28276         and similarly for the other external symbols.  Problem reported
28277         by James Gallager.
28278
28279         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
28280         bug reported by Jim Meyering.
28281
28282         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
28283         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
28284         not needed, since socklen is a prerequisite module.
28285
28286 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28287
28288         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
28289         Problem reported by Eric Blake.
28290         (getaddrinfo): Initialize se so that it's not garbage.
28291         Redo internal storage allocation so that it doesn't make unportable
28292         assumptions about alignment.
28293         Fix a memory leak.
28294
28295         * lib/utimens.c (futimens): Use futimesat if available.
28296         Prefer it to futimes since it doesn't have the futimes bug.
28297
28298         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
28299         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
28300         Instead, declare a function that returns a pointer to an array,
28301         and use verify_type__ to declare the size of the array.
28302         Problem and germ of a solution reported by Bruno Haible.
28303         (verify_type__): Use 2, not 1, for bitfield size, to avoid
28304         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
28305
28306 2005-09-23  Jim Meyering  <jim@meyering.net>
28307
28308         Sync from coreutils.
28309         Correct build failure (socklen_t not defined) on at least
28310         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
28311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
28312
28313 2005-09-23  Jim Meyering  <jim@meyering.net>
28314
28315         * modules/getaddrinfo (Depends-on): Add socklen.
28316
28317 2005-09-23  Bruno Haible  <bruno@clisp.org>
28318
28319         * tests/test-verify.c: New file.
28320
28321 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28322
28323         Sync from coreutils.
28324
28325         * modules/argmatch (Depends-on): Add verify.
28326         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28327         unistd-safer.
28328         * modules/save-cwd (Depends-on): Likewise.
28329
28330         * modules/openat (Files): Add lib/openat-die.c.
28331         (Depends-on): Remove error, exitfail.
28332         Add dirname.
28333
28334         * modules/verify: New file.
28335         * MODULES.html.sh (Diagnostics <assert.h>): New section,
28336         with "verify" module.
28337
28338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28339
28340         Sync from coreutils.
28341
28342         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28343         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28344         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28345         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28346         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28347         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
28348         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
28349         Don't bother checking for string.h, stdlib.h, unistd.h.
28350         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
28351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
28352         module's job.
28353         * m4/jm-macros.m4 (gl_MACROS): Likewise.
28354         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
28355
28356         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
28357         (gl_GETDATE): Use it.
28358
28359         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
28360
28361 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28362
28363         Sync from coreutils.
28364
28365         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
28366         stat-time.h.
28367         * lib/argmatch.h: Include verify.h
28368         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
28369         (ARGMATCH_ASSERT): Remove; unused.
28370         * lib/canonicalize.c: Assume STDC_HEADERS.
28371         * lib/exclude.c: Include "strcase.h".
28372         * lib/regex_internal.h [!defined _LIBC]: Likewise.
28373         * lib/getusershell.c: Include stdio--.h rather than stdio.h
28374         and stdio-safer.h.
28375         (getusershell): Call fopen, not fopen_safer.
28376         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
28377         Do not include unistd-safer.h.
28378         (save_cwd): Don't call fd_safer; no longer needed
28379         now that we include fcntl--.h.
28380
28381         * lib/getdate.y (relative_time): New type.
28382         (RELATIVE_TIME_0): New constant.
28383         (parser_control): Use relative_time instead of doing it ourselves.
28384         (%union): Add new relative_time rel member.
28385         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
28386         Now typeless.
28387         (relunit, relunit_snumber): Now of type rel.
28388         (zone, rel, relunit, get_date): Adjust to above changes.
28389
28390         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
28391         Do not include unistd-safer.h.
28392         (getloadavg): Don't call fd_safer; no longer needed
28393         now that we include fcntl--.h.
28394
28395         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
28396         (make_dir_parents): Treat ENOSYS like EEXIST.
28397
28398         Improve quality of diagnostics on restore_cwd failure.
28399         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
28400         (make_dir_parents): Last arg is now int * (for errno), not bool *.
28401         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
28402         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
28403         each time through the loop.  Do not diagnose restore_cwd failure;
28404         that is the caller's job (and perhaps the caller does not care).
28405
28406         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
28407         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
28408         If the file already exists but is not a directory, don't bother
28409         to try to make its parents.
28410         Close potential file descriptor leak if we can't chdir("/") (!).
28411         Don't always return true if chdir($PWD) fails; return true only
28412         if the requested action was done successfully (except for the
28413         chdir($PWD)).
28414         Don't log final directory unless we actually made it.
28415         Refactor to avoid duplicate code to fix up permissions.
28416         Don't attempt to fix up parent permissions if chdir($PWD) fails.
28417
28418         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
28419         to make it a bit faster and (I hope) clearer.
28420         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
28421         Fix bug in formats like %2N.
28422
28423         * lib/verify.h: New file.
28424
28425 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28426
28427         Sync from coreutils.
28428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
28429
28430 2005-09-22  Jim Meyering  <jim@meyering.net>
28431
28432         Sync from coreutils.
28433
28434         * m4/lstat.m4 (gl_FUNC_LSTAT):
28435         Use AC_LIBSOURCES to require lstat.c and lstat.h.
28436         Remove obsolete comment.
28437         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
28438         * m4/xstrtod.m4: Likewise.
28439
28440         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
28441
28442 2005-09-22  Jim Meyering  <jim@meyering.net>
28443
28444         Sync from coreutils.
28445
28446         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
28447
28448         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
28449         the .tm_year member, since otherwise gcc-4.0 would now warn about
28450         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
28451
28452         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
28453         order to avoid an unsuppressible warning from gcc on 64-bit systems.
28454
28455         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
28456         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
28457         when run in a time zone for which daylight savings time is in effect
28458         for the starting date.
28459
28460         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
28461         stop us from restricting permissions of just-created absolute-named
28462         directories.
28463         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
28464         to restore initial working directory.
28465         * lib/mkdir-p.c (make_dir_parents): New parameter:
28466         different_working_dir, to tell caller if/when we change the working
28467         directory and are unable to return to the initial one.
28468         * lib/mkdir-p.h (make_dir_parents): Update prototype.
28469         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
28470         `return false'.  This fixes a bug introduced on 2004-07-30.
28471
28472         * lib/openat.c (fdopendir): Be sure to close the supplied
28473         file descriptor before returning.  This makes our replacement
28474         implementation a little closer to Solaris's, where fdopendir
28475         ties the file descriptor to the returned DIR* pointer.
28476         * lib/openat.c (unlinkat): New function.
28477         * lib/openat.h (unlinkat): Add prototype.
28478         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
28479         (openat_restore_fail): Rename from openat_restore_die.
28480         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
28481
28482         Provide an alternative to exiting immediately upon save_cwd or
28483         restore_cwd failure.  Now, an application can arrange e.g.,
28484         to perform a longjump in that case.
28485         * lib/openat.c: Include dirname.h.
28486         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
28487         (rpl_openat, fdopendir, fstatat): Call openat_save_die
28488         and openat_restore_die rather than calling error directly.
28489         Don't include "error.h" or "exitfail.h"; they're no longer needed.
28490
28491         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
28492         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
28493         define.
28494
28495         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
28496         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
28497                             int utc, int nanoseconds);
28498         Background:
28499         date should not have to allocate a megabyte of virtual memory to
28500         handle a format argument like +%1048575T.  When implemented with
28501         strftime, it must allocate such a buffer, use strftime to fill it
28502         in, print it, then free it.
28503         With fprintftime, it simply prints everything and exits.
28504         With no need for memory allocation, that's one fewer way to fail.
28505         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
28506         optional field width, not before, so we accept %9:z, not %:9z.
28507         (my_strftime): Be sure to use L_('x') for literals.
28508
28509         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
28510         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
28511         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
28512         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
28513         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
28514         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
28515         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
28516         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
28517         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
28518         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
28519         * lib/xgethostname.c, lib/xreadlink.c:
28520         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
28521
28522         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
28523         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
28524         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
28525         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28526         and don't include <sys/file.h>).
28527
28528 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
28529
28530         Sync from coreutils.
28531
28532         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
28533         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
28534         [!LDAV_DONE]: Avoid unused variable warning.
28535
28536 2005-09-21  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/unicodeio.h (unicode_to_mb): New declaration.
28539
28540 2005-09-20  Derek Price  <derek@ximbiot.com>
28541
28542         * lib/getaddrinfo.c: Don't include <netdb.h> included from
28543         getaddrinfo.h.
28544
28545 2005-09-20  Bruno Haible  <bruno@clisp.org>
28546
28547         * gnulib-tool: Remove trailing slashes from the values specified for
28548         --source-base, --m4-base, --tests-base, --aux-dir.
28549         Suggested by Simon Josefsson <jas@extundo.com>.
28550
28551 2005-09-20  Bruno Haible  <bruno@clisp.org>
28552
28553         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
28554         func_modules_to_filelist, func_import, func_create_testdir): Make all
28555         sorting results locale-independent, so that gnulib-cache.m4 doesn't
28556         change when gnulib-tool is invoked in a different locale.
28557
28558 2005-09-19  Simon Josefsson  <jas@extundo.com>
28559
28560         * m4/socklen.m4: Fix typo.
28561
28562 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28563
28564         Use a consistent style for including <config.h>.
28565         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
28566         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
28567         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
28568         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
28569         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
28570         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
28571         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
28572         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
28573         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
28574         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
28575         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
28576         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
28577         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
28578         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
28579         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
28580         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
28581         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
28582         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
28583         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
28584         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
28585         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
28586         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
28587         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
28588         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
28589         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
28590         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
28591         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28592         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28593         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28594         lib/xstrtoumax.c, lib/yesno.c:
28595         Standardize inclusion of config.h.
28596         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28597         lib/inttostr.h:  Removed inclusion of config.h from header files.
28598         * lib/inttostr.c:  Adjusted in-tree users.
28599         * lib/timespec.h: Remove superfluous warning to include config.h.
28600         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28601         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28602         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28603         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28604         config.h with HAVE_CONFIG_H.
28605
28606 2005-09-19  Jim Meyering  <jim@meyering.net>
28607
28608         * modules/pathmax (License): Change to LGPL.
28609
28610 2005-09-19  Derek Price  <derek@ximbiot.com>
28611
28612         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28613
28614 2005-09-19  Bruno Haible  <bruno@clisp.org>
28615
28616         * gnulib-tool (import): Provide default for --tests-base.
28617
28618 2005-09-19  Bruno Haible  <bruno@clisp.org>
28619
28620         * doc/quote.texi: New file, extracted from gnulib.texi.
28621         * doc/ctime.texi: New file, extracted from gnulib.texi.
28622         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28623         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28624         * doc/gnulib.texi: Include them.
28625
28626 2005-09-18  Bruno Haible  <bruno@clisp.org>
28627
28628         Portability fix.
28629         * gnulib-tool (func_readlink): New function.
28630         (func_ln_if_changed): Use it.
28631
28632 2005-09-18  Bruno Haible  <bruno@clisp.org>
28633
28634         * gnulib-tool: Support --with-tests also with --import.
28635         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28636         (func_import): Use variables $testsbase and $inctests. Emit a
28637         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28638         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28639         SUBDIRS += $testsdir.
28640         (func_create_testdir): Update.
28641
28642 2005-09-18  Bruno Haible  <bruno@clisp.org>
28643
28644         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28645         instead of $dry_run.
28646         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28647         (func_ln_if_changed): Don't handle dry-run here.
28648         (func_import): In dry-run mode, detect more precisely which actions
28649         would be performed, and don't use "...ing" verbs.
28650
28651 2005-09-18  Bruno Haible  <bruno@clisp.org>
28652
28653         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28654         (func_import): Use join on two temporary files instead of three nested
28655         loops, in order to determine which files are new or old.
28656
28657 2005-09-18  Bruno Haible  <bruno@clisp.org>
28658
28659         * gnulib-tool (func_import): Comment out code that spits out the
28660         new files with --dry-run.
28661
28662 2005-09-18  Bruno Haible  <bruno@clisp.org>
28663
28664         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28665
28666 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28667
28668         * lib/stat-time.h: New file.
28669         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28670         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28671         in a different way.
28672         (timespec_cmp): New function.
28673         * lib/utimecmp.c: Include stat-time.h.
28674         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28675         members exist, not on the obsolescent ST_MTIM_NSEC.
28676         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28677
28678 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28679
28680         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28681
28682 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28683
28684         * MODULES.html.sh (File system functions): Add stat-time.
28685         * modules/stat-time: New file.
28686         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28687         is now done in a different way, by the stat-time module.
28688         * modules/utimecmp (Depends-on): Add stat-time.
28689
28690 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28691
28692         * m4/st_mtim.m4: Remove.  Superseded by...
28693         * m4/stat-time.m4: New file.
28694         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28695         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28696
28697 2005-09-15  Derek Price  <derek@ximbiot.com>
28698
28699         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28700
28701 2005-09-15  Derek Price  <derek@ximbiot.com>
28702
28703         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28704         * lib/regex_internal.c: Ditto, using this...
28705         (__GNUC_PREREQ): ...new macro.
28706         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28707         using...
28708         (__GNUC_PREREQ): ...this new macro.
28709
28710         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28711
28712 2005-09-15  Derek Price  <derek@ximbiot.com>
28713             Paul Eggert  <eggert@cs.ucla.edu>
28714
28715         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28716         changes, consolidating in...
28717         * lib/regex_internal.h: ...this file.
28718
28719 2005-09-13  Jim Meyering  <jim@meyering.net>
28720
28721         * lib/canon-host.c: Filter through gnu indent and reword comments
28722         slightly.
28723         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28724
28725 2005-09-13  Derek Price  <derek@ximbiot.com>
28726
28727         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28728         failure.
28729         Reported by Jim Meyering  <jim@meyering.net>.
28730
28731 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28732
28733         * lib/base64.c: Typo.
28734         (base64_encode): Put b64str in initialized data section.
28735
28736 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28737
28738         Merge glibc and coreutils changes into gnulib, plus a few
28739         extra fixes.
28740         * lib/md5.c: Use #error rather than a string.
28741         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28742         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28743         (__attribute__): Define to empty for non recent-GCC.
28744         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28745         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28746         Renamed from their non-__ counterparts, with new macros replacing
28747         them if not _LIBC.  Add __THROW attribute.
28748         (rol): Remove.
28749         (struct md5_ctx): Align buffer if using GCC.
28750         * lib/sha1.h (struct sha1_ctx): Likewise.
28751         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28752         The old name was backwards.
28753         (NOTSWAP): Remove; not used.
28754         (rol): New macro, moved here from md5.h.
28755         (sha1_process_block): Remove a FIXME that doesn't make sense.
28756
28757 2005-09-12  Derek Price  <derek@ximbiot.com>
28758
28759         Return usable errors from canon-host.
28760         * lib/canon-host.h: New file.
28761         * lib/canon-host.c (canon_host): Wrap...
28762         (canon_host_r): ...this new function, which now relies exclusively on
28763         getaddrinfo.
28764         (ch_strerror): New function.
28765         (last_cherror): New global.
28766         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28767         interface.
28768         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28769         void *.
28770         (freeaddrinfo): Free ai->ai_canonname when set.
28771
28772 2005-09-12  Derek Price  <derek@ximbiot.com>
28773
28774         Make canon-host require getaddrinfo.
28775         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28776         AC_LIBSOURCE canon-host.h.  Call...
28777         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28778         gl_GETADDRINFO.
28779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28780
28781 2005-09-12  Derek Price  <derek@ximbiot.com>
28782
28783         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28784         LGPL.
28785         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28786
28787 2005-09-12  Derek Price  <derek@ximbiot.com>
28788
28789         * lib/gai_strerror.c: Include config.h when available.  Include
28790         getaddrinfo.h before other headers to test interface.
28791         Reported by Larry Jones <lawrence.jones@ugs.com>.
28792
28793 2005-09-12  Derek Price  <derek@ximbiot.com>
28794             Paul Eggert  <eggert@cs.ucla.edu>
28795
28796         * modules/glob (Files): Add glob-libc.h.
28797
28798 2005-09-12  Derek Price  <derek@ximbiot.com>
28799             Paul Eggert  <eggert@cs.ucla.edu>
28800
28801         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28802         glob_.h, glob-libc.h.
28803         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28804
28805 2005-09-12  Derek Price  <derek@ximbiot.com>
28806             Paul Eggert  <eggert@cs.ucla.edu>
28807
28808         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28809         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28810         protecting things that should be done only in gnulib contexts.
28811         * lib/glob_.h: New file, containing only the glob things needed for
28812         gnulib.
28813         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28814         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28815         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28816         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28817         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28818         and to respect the namespace rules better.
28819
28820 2005-09-08  Simon Josefsson  <jas@extundo.com>
28821
28822         * modules/socklen: New file.
28823
28824 2005-09-08  Simon Josefsson  <jas@extundo.com>
28825
28826         * m4/socklen.m4: New file.
28827
28828 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         * modules/utimens (Files): Add m4/utimbuf.m4, since
28831         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28832         Reported by Sergey Poznyakoff.
28833
28834 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28835
28836         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28837         definitions, since that's the preferred style in glibc.
28838         Fix a minor spacing issue, and update copyright notice to match
28839         glibc's.
28840
28841 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28842
28843         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28844
28845 2005-09-06  Simon Josefsson  <jas@extundo.com>
28846
28847         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28848         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28849
28850 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28851
28852         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28853         warning.
28854
28855 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28856
28857         * config/srclist.txt: Add glibc bug 1302.
28858
28859 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28860
28861         Change bitset word type from unsigned int to unsigned long int,
28862         as this has better performance on typical 64-bit hosts.
28863         Port bitset code to hosts with unusual word sizes.
28864         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28865         (build_collating_symbol):
28866         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28867         argument is a bitset.  This is merely a style issue, but it makes
28868         it clearer that an entire array is expected.
28869         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28870         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28871         Port to the case where bitset_word is not the same as unsigned int.
28872         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28873         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28874         Likewise.
28875         * lib/regexec.c (check_dst_limits_calc_pos_1,
28876         check_subexp_matching_top):
28877         (build_trtable, group_nodes_into_DFAstates):
28878         Likewise.
28879         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28880         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28881         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28882         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28883         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28884         * lib/regcomp.c (optimize_subexps, lower_subexp):
28885         Work even if bitset_word has holes in its bitwise representation.
28886         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28887         * lib/regexec.c (check_dst_limits_calc_pos_1,
28888         check_subexp_matching_top):
28889         Likewise.
28890         * lib/regex_internal.c (re_string_reconstruct):
28891         Don't assume UCHAR_MAX == 255.
28892         * lib/regex_internal.h (bitset_set_all): Likewise.
28893         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28894         All uses changed.
28895         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28896         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28897         All uses changed.
28898         (BITSET_WORD_MAX): New macro.
28899         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28900         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28901         (bitset_empty, bitset_copy):
28902         Prefer sizeof (bitset) to multiplying it out ourselves.
28903         (bitset_not_merge): Remove; unused.
28904         (bitset_contain): Return bool, not unsigned int with one bit on.
28905         All callers changed.
28906         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28907         alignment than re_node_set; do this by defining a new internal
28908         type struct dests_alloc and using it to allocate memory.
28909
28910 2005-09-05  Bruno Haible  <bruno@clisp.org>
28911
28912         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28913         links.
28914
28915 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28916
28917         * modules/size_max (Makefile.am): Add size_max.h
28918
28919 2005-09-04  Derek Price  <derek@ximbiot.com>
28920
28921         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28922
28923 2005-09-03  Simon Josefsson  <jas@extundo.com>
28924
28925         * gnulib-tool: Fix typo.
28926
28927 2005-09-03  Simon Josefsson  <jas@extundo.com>
28928
28929         * config/srclist.txt: Add glibc bug 1293.
28930
28931 2005-09-03  Derek Price  <derek@ximbiot.com>
28932
28933         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28934         From Larry Jones <lawrence.jones@ugs.com>.
28935
28936 2005-09-02  Simon Josefsson  <jas@extundo.com>
28937
28938         * modules/socklen: New file.
28939
28940 2005-09-02  Simon Josefsson  <jas@extundo.com>
28941
28942         * modules/havelib: New module.
28943
28944         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28945         Use havelib.
28946
28947 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28948
28949         Check for arithmetic overflow when calculating sizes, to prevent
28950         some buffer-overflow issues.  These patches are conservative, in the
28951         sense that when I couldn't determine whether an overflow was possible,
28952         I inserted a run-time check.
28953         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28954         macros.
28955         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28956         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28957         (re_xnrealloc, re_x2nrealloc): New inline functions.
28958         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28959         parse_bracket_exp):
28960         (build_equiv_class, build_charclass): Check for arithmetic overflow
28961         in size expression calculations.
28962         * lib/regex_internal.c (re_string_realloc_buffers):
28963         (build_wcs_upper_buffer, re_node_set_add_intersect):
28964         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28965         (re_dfa_add_node, register_state): Likewise.
28966         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28967         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28968         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28969         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28970
28971 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28972
28973         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28974         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28975
28976 2005-09-02  Bruno Haible  <bruno@clisp.org>
28977
28978         Support for lib vs. lib64 distinction on biarch platforms.
28979         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28980         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28981         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28982
28983 2005-09-02  Bruno Haible  <bruno@clisp.org>
28984
28985         * gnulib-tool (import): In the other first-use case, provide defaults
28986         as well.
28987
28988 2005-09-02  Bruno Haible  <bruno@clisp.org>
28989
28990         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28991         patches not yet found in the latest gettext release.
28992
28993 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28994
28995         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28996         to avoid a collision with bits/local_lim.h in glibc.
28997         All uses changed.  Problem reported by Dmitry V. Levin in
28998         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28999
29000         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
29001         bugs in int versus size_t comparisons.
29002         (re_string_context_at): Fix bug where the code assumed that
29003         Idx is signed.
29004
29005         Use bool where appropriate.
29006         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
29007         All callers changed.
29008         (calc_eclosure_iter): Likewise, for ROOT arg.
29009         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
29010         (build_charclass_op): Likewise, for NON_MATCH arg.
29011         * lib/regex_internal.c (re_string_allocate, re_string_construct):
29012         (re_string_construct_common): Likewise, for ICASE arg.
29013         * lib/regexec.c (re_search_2_stub, re_search_stub):
29014         Likewise, for RET_LEN arg.
29015         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
29016         (set_regs): Likewise, for FL_BACKTRACK arg.
29017         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
29018         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
29019         (calc_eclosure_iter, parse_bracket_exp):
29020         Use bool for internal variables that are booleans.
29021         * lib/regexec.c (re_search_internal, check_matching,
29022         proceed_next_node):
29023         (set_regs, build_sifted_states, sift_states_bkref):
29024         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
29025         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29026         (find_collation_sequence_value):
29027         Likewise.
29028         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
29029         (re_node_set_compare):
29030         Return bool, not int. All callers changed.
29031         * lib/regexec.c (check_halt_node_context, check_dst_limits):
29032         (build_trtable, check_node_accept): Likewise.
29033         * lib/regex_internal.h: Include stdbool.h.
29034
29035         Fix bugs uncovered when converting to bool.
29036         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
29037         failure instead of charging ahead blindly.
29038         * lib/regex_internal.c (register_state): Likewise.
29039         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
29040         for freeing internal storage.
29041         (group_nodes_into_DFA_states): Use unsigned int, not int, for
29042         bitset pieces used as boolean, to avoid undefined behavior
29043         on hosts that do int overflow checking.
29044
29045 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29046
29047         * config/srclist.txt: Add glibc bugs 1285-1287.
29048
29049 2005-09-01  Jim Meyering  <jim@meyering.net>
29050
29051         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
29052         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
29053         Require gl_STAT_MACROS, too.
29054
29055 2005-09-01  Bruno Haible  <bruno@clisp.org>
29056
29057         * gnulib-tool (import): In the first-use case, provide defaults.
29058
29059 2005-09-01  Bruno Haible  <bruno@clisp.org>
29060
29061         * gnulib-tool (func_import): Remove the .tmp files.
29062
29063 2005-09-01  Bruno Haible  <bruno@clisp.org>
29064
29065         * gnulib-tool (func_import): Fix handling of symbolic links.
29066
29067 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29068
29069         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
29070         old glibc regex code mishandles strings longer than 2**31 bytes.
29071         This patch fixes this when the regex code is used in gnulib
29072         (i.e., outside glibc).
29073
29074         This patch should not affect the use of the regex code inside
29075         glibc.  No doubt this problem also needs to be handled for glibc
29076         as well, but the result will be an incompatible change to the
29077         glibc ABI, and the old ABI will have to be supported too.  That
29078         can be the the subject for another patch.
29079
29080         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
29081         governing whether the rest of this patch is active.  By default,
29082         the macro is disabled and the patch has no effect.
29083         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
29084         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
29085         (struct re_pattern_buffer, re_search, re_search_2, re_match):
29086         (re_match_2, re_set_registers): Use the new types.
29087         * lib/regex_internal.h (Idx, re_hashval_t): New types.
29088         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
29089         New macros.
29090         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
29091         (re_string_context_at, bin_tree_t, re_dfastate_t):
29092         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
29093         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
29094         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
29095         (re_string_char_size_at, re_string_wchar_at):
29096         (re_string_elem_size_at):
29097         Use the new types and macros to port to 64-bit hosts.
29098         Use unsigned types for internal values, so that the code
29099         mostly works even for arrays larger than SSIZE_MAX.
29100         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
29101         (search_duplicated_node, calc_eclosure_iter, fetch_number):
29102         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29103         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
29104         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
29105         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
29106         (calc_inveclosure, parse_dup_op, build_range_exp):
29107         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
29108         (fetch_number, create_token_tree, mark_opt_subexp):
29109         Likewise.
29110         * lib/regex_internal.c (re_string_construct_common,
29111         create_ci_newstate):
29112         (create_cd_newstate, re_string_allocate, re_string_construct):
29113         (re_string_realloc_buffers, build_wcs_upper_buffer):
29114         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29115         (re_string_reconstruct, re_string_peek_byte_case):
29116         (re_string_fetch_byte_case, re_string_context_at):
29117         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29118         (re_node_set_init_copy, re_node_set_add_intersect):
29119         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29120         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29121         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29122         (re_acquire_state, re_acquire_state_context, register_state):
29123         Likewise.
29124         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
29125         search_cur_bkref_entry):
29126         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
29127         (re_search_internal, re_search_2_stub, re_search_stub)
29128         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
29129         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
29130         (update_cur_sifted_state, check_dst_limits):
29131         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29132         (check_subexp_limits, sift_states_bkref, merge_state_array):
29133         (check_subexp_matching_top, get_subexp, get_subexp_sub):
29134         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
29135         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29136         (expand_bkref_cache, check_node_accept_bytes):
29137         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
29138         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
29139         (acquire_init_state_context, check_halt_node_context):
29140         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
29141         (sift_states_backward, clean_state_log_if_needed):
29142         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
29143         (find_recover_state, transit_state_sb, transit_state_mb):
29144         (transit_state_bkref, build_trtable, match_ctx_clean):
29145         Likewise.
29146         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
29147         to work around an assumption that REG_MISSING is negative.
29148
29149         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
29150         (seek_collating_symbol_entry) [defined _LIBC]:
29151         (lookup_collation_sequence_value) [defined _LIBC]:
29152         (build_range_exp, build_collating_symbol) [defined _LIBC]:
29153         Use prototypes rather than old-style function definitions.
29154         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
29155         (transit_state_sb) [0]:
29156         (find_collation_sequence_value) [defined _LIBC]: Likewise.
29157
29158         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
29159         rm_eo.
29160
29161         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
29162         (optimize_subexps, lower_subexp):
29163         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
29164         since the signed shift might overflow.  Use 1u<<31 instead.
29165         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
29166         Likewise.
29167         * lib/regexec.c (check_dst_limits_calc_pos_1,
29168         check_subexp_matching_top): Likewise.
29169
29170         * lib/regcomp.c (optimize_subexps, lower_subexp):
29171         Use CHAR_BIT rather than 8, for clarity.
29172         * lib/regexec.c (check_dst_limits_calc_pos_1):
29173         (check_subexp_matching_top): Likewise.
29174         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
29175         have to worry about portability issues when shifting it left.
29176         Remove no-longer-needed test for table_size > 0.
29177         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
29178         in a word, as the resulting behavior is undefined.
29179         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
29180         in one case, a <= should have been an <, and in another case the
29181         whole test was missing.
29182         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
29183         the standard name CHAR_BIT.
29184         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
29185         this is not true on one's complement and signed-magnitude hosts.
29186
29187         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
29188         next_last_offset.
29189         (struct re_dfa_t): Remove unused member states_alloc.
29190         * lib/regcomp.c (init_dfa): Don't initialize unused members.
29191
29192 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29193
29194         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
29195         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
29196         and large-file glibc and in 32-bit large-file Solaris.
29197
29198 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29199
29200         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
29201         lengths fit in regoff_t; this isn't true if regoff_t is the same
29202         width as size_t.
29203         * lib/regex.c (re_search_internal): 5th arg is LAST_START
29204         (= START + RANGE) instead of RANGE.  This avoids overflow
29205         problems when regoff_t is the same width as size_t.
29206         All callers changed.
29207         (re_search_2_stub): Check for overflow when adding the
29208         sizes of the two strings.
29209         (re_search_stub): Check for overflow when adding START
29210         to RANGE; if it occurs, substitute the extreme value.
29211
29212 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29213
29214         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
29215
29216 2005-08-31  Jim Meyering  <jim@meyering.net>
29217
29218         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
29219         a pointer-to-const.
29220         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
29221         (register_state): Likewise.
29222         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
29223         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
29224         (group_nodes_into_DFAstates): Likewise.
29225
29226 2005-08-31  Jim Meyering  <jim@meyering.net>
29227
29228         * check-module: Add a FIXME comment.
29229
29230 2005-08-31  Eric Blake  <ebb9@byu.net>
29231
29232         * modules/unistd-safer (Files): Add unistd--.h.
29233         * modules/stdio-safer (Files): Add stdio--.h.
29234
29235 2005-08-31  Derek Price  <derek@ximbiot.com>
29236
29237         * lib/getdelim.c (getdelim): Return EOF on EOF.
29238         Reported by Larry Jones <lawrence.jones@ugs.com>.
29239
29240 2005-08-31  Bruno Haible  <bruno@clisp.org>
29241
29242         Avoid unnecessary diffs in the generated lib/Makefile.am.
29243         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
29244         the generated files.
29245         (func_import): Don't set cmd.
29246
29247 2005-08-31  Bruno Haible  <bruno@clisp.org>
29248
29249         * lib/strstr.c: Include <stddef.h>, for NULL.
29250         * lib/strcasestr.c: Likewise.
29251         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29252
29253 2005-08-31  Bruno Haible  <bruno@clisp.org>
29254
29255         * gnulib-tool: New option --macro-prefix.
29256         (func_import): Use macro_prefix.
29257         (import): Handle option --macro-prefix.
29258
29259 2005-08-31  Bruno Haible  <bruno@clisp.org>
29260
29261         * gnulib-tool (import): Rename most ac_* variables to cached_*.
29262         Also use new variables cached_lgpl, cached_libtool.
29263
29264 2005-08-31  Bruno Haible  <bruno@clisp.org>
29265
29266         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
29267         always instantiating them.
29268
29269 2005-08-31  Bruno Haible  <bruno@clisp.org>
29270
29271         * gnulib-tool (func_import): Read the previous cached settings
29272         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
29273         earlier added by gnulib but are now dropped. Warn when a gnulib file
29274         overwrites a non-gnulib file.
29275
29276 2005-08-31  Bruno Haible  <bruno@clisp.org>
29277
29278         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
29279         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
29280         projects that don't keep autogenerated files in CVS. Put into
29281         actioncmd only the specified modules, not the transitive closure.
29282
29283 2005-08-31  Bruno Haible  <bruno@clisp.org>
29284
29285         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
29286         Create directories that shall be filled.
29287         (import): Don't look for gl_* macros in configure.ac. Recurse across
29288         all directories containing a gnulib-cache.m4 files, if meaningful.
29289
29290 2005-08-31  Bruno Haible  <bruno@clisp.org>
29291
29292         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
29293         (import): Set seen_libtool when we see gl_LIBTOOL.
29294
29295 2005-08-31  Bruno Haible  <bruno@clisp.org>
29296
29297         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
29298         declaration macro definitions from generated gnulib.m4.
29299
29300 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
29301
29302         * lib/iconvme.h: Add prototype for iconv_alloc.
29303
29304 2005-08-29  Simon Josefsson  <jas@extundo.com>
29305
29306         * lib/iconvme.c: Fix errno.
29307
29308 2005-08-29  Bruno Haible  <bruno@clisp.org>
29309
29310         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
29311         that it works when the directory contains spaces.
29312
29313 2005-08-29  Bruno Haible  <bruno@clisp.org>
29314
29315         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
29316
29317 2005-08-29  Bruno Haible  <bruno@clisp.org>
29318
29319         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
29320         Emit more advice.
29321
29322 2005-08-29  Bruno Haible  <bruno@clisp.org>
29323         and Stepan Kasal  <kasal@ucw.cz>
29324
29325         * check-module: If more parameters are given, check each of them
29326         separately; add more exceptions, as noted by Jim Meyering.
29327         (check_module): New procedure.
29328         (%exempt_header): Now contains all exceptions.
29329
29330 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
29331
29332         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29333
29334 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29335
29336         * lib/iconvme.c: Split iconv_string into iconv_alloc.
29337
29338 2005-08-28  Bruno Haible  <bruno@clisp.org>
29339
29340         * m4/gnulib-tool.m4: New file.
29341
29342 2005-08-27  Jim Meyering  <jim@meyering.net>
29343
29344         * modules/unistd-safer (Files): Add pipe-safer.c.
29345         * modules/fcntl-safer (Files): Add creat-safer.c.
29346
29347 2005-08-27  Jim Meyering  <jim@meyering.net>
29348
29349         * m4/stdlib-safer.m4: New file.  From coreutils.
29350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
29351         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
29352         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
29353         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
29354         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
29355
29356 2005-08-27  Jim Meyering  <jim@meyering.net>
29357
29358         * lib/fopen-safer.c: Merge minor changes from coreutils.
29359         * lib/dup-safer.c: Likewise.
29360         * lib/fd-safer.c: Likewise.
29361
29362         Merge from coreutils.
29363         * lib/stdio--.h: New file.
29364         * lib/stdlib--.h: New file.
29365         * lib/mkstemp-safer.c: New file.
29366
29367         GNU tar needs these.
29368         * lib/pipe-safer.c: New file.
29369         * lib/creat-safer.c: New file.
29370         * lib/fcntl--.h (creat): Define to creat_safer.
29371         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
29372         * lib/unistd--.h (pipe): Define to pipe_safer.
29373         * lib/unistd-safer.h: Declare pipe_safer.
29374
29375 2005-08-26  Simon Josefsson  <jas@extundo.com>
29376
29377         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
29378         Haible <bruno@clisp.org>.
29379
29380 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
29381
29382         * lib/regex_internal.h: Remove all references to
29383         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
29384         or better.
29385         (bitset_not, bitset_merge, bitset_not_merge):
29386         (bitset_mask, re_string_allocate, re_string_construct):
29387         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
29388         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
29389         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
29390         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
29391         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29392         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29393         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
29394         (re_acquire_state_context):
29395         Remove unnecessary forward decls.
29396         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
29397         Put __attribute at function definition,
29398         now that the function decl has been removed.
29399         * lib/regex_internal.c (re_string_peek_byte_case):
29400         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
29401         Likewise.
29402
29403 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
29404
29405         * m4/regex.m4: Add AC_PREREQ(2.50).
29406         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
29407
29408 2005-08-25  Simon Josefsson  <jas@extundo.com>
29409
29410         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
29411         __fsetlocking.
29412
29413 2005-08-25  Simon Josefsson  <jas@extundo.com>
29414
29415         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
29416         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
29417         GLIBC specific code.
29418
29419 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29420
29421         Make regex safe for g++.  This fixes one real bug (an "err"
29422         that should have been "*err").  g++ problem reported by
29423         Sam Steingold.
29424         * lib/regex_internal.h (re_calloc): New macro, consistent with
29425         re_malloc etc.  All callers of calloc changed to use re_calloc.
29426         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29427         not int.  All callers changed.
29428         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
29429         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
29430         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
29431         (find_recover_state): Change "err" to "*err"; this fixes what
29432         appears to be a real bug.
29433         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
29434         versus int.
29435
29436 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29437
29438         * modules/regex (Depends-on): Add malloc, since the code
29439         assumes that !malloc(0) means failure.
29440
29441 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29442
29443         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
29444
29445         alloca modernization/simplification for regex.
29446         * lib/regex.c: Remove portability cruft for alloca.  This no longer
29447         needs to be at the start of the file, and can be moved into
29448         regex_internal.h and simplified.
29449         * lib/regex_internal.h: Include <alloca.h>.
29450         (__libc_use_alloca) [!defined _LIBC]: New macro.
29451         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
29452         now works outside glibc.
29453
29454 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29455
29456         * config/srclist.txt: Add glibc bugs 1241, 1245.
29457
29458 2005-08-25  Jim Meyering  <jim@meyering.net>
29459
29460         * lib/open-safer.c: Include <config.h>.
29461         Otherwise, we'd lose LARGEFILE support in any file using
29462         e.g. "fcntl--.h"
29463
29464 2005-08-25  Bruno Haible  <bruno@clisp.org>
29465
29466         * m4/minmax.m4: Require autoconf 2.52.
29467         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
29468         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
29469         alternatives of translit over the alphabet.
29470         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
29471
29472 2005-08-24  Simon Josefsson  <jas@extundo.com>
29473
29474         * tests/test-getpass.c: New file.
29475
29476 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
29479         for GNU regex features.
29480
29481 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29482
29483         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
29484         * lib/regex.h (regerror): Likewise.
29485
29486         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
29487         requires this.  (The code never needed it.)
29488
29489         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
29490         All uses of recently-renamed identifiers changed to use the new,
29491         POSIX-compliant names.  The code will build and run just fine
29492         without these changes, but it's better to eat our own dog food
29493         and use the standard-conforming names.
29494
29495         * lib/regex.h: Fix a multitude of POSIX name space violations.
29496         These changes have an effect only for programs that define
29497         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
29498         do not change anything for programs compiled in the normal way.
29499         Also, there is no effect on the ABI.
29500
29501         (_REGEX_SOURCE): New macro.
29502         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
29503         defined and _GNU_SOURCE is not; this fixes a name space violation.
29504
29505         Rename the following macros to obey POSIX requirements.
29506         The old names are still visible as macros if _REGEX_SOURCE is defined.
29507         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
29508         RE_BACKSLASH_ESCAPE_IN_LISTS.
29509         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
29510         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
29511         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
29512         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
29513         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
29514         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
29515         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
29516         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
29517         (REG_INTERVALS): renamed from RE_INTERVALS.
29518         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
29519         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
29520         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
29521         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
29522         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
29523         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
29524         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
29525         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
29526         RE_UNMATCHED_RIGHT_PAREN_ORD.
29527         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
29528         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
29529         (REG_DEBUG): renamed from RE_DEBUG.
29530         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
29531         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
29532         unusual, since we can't clash with the POSIX REG_ICASE.
29533         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
29534         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
29535         (REG_NO_SUB): renamed from RE_NO_SUB.
29536         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
29537         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
29538         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
29539         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
29540         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
29541         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
29542         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
29543         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
29544         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
29545         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
29546         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
29547         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
29548         RE_SYNTAX_POSIX_MINIMAL_BASIC.
29549         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
29550         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
29551         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
29552         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
29553         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
29554         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
29555         (REG_FIXED): Renamed from REGS_FIXED.
29556         (REG_NREGS): Renamed from RE_NREGS.
29557
29558         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
29559         of other REG_* macros, since POSIX says the user is allowed to
29560         #undef these macros selectively.
29561
29562         (reg_errcode_t): Update comment stating what other tables need
29563         to be consistent.
29564
29565         Rename the following enum values to obey POSIX requirements.
29566         The old names are still visible as macros.
29567         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
29568         is not defined, since GNU is supposed to be a superset of POSIX as
29569         much as possible, and since we want reg_errcode_t to be a signed
29570         type for implementation consistency.
29571         (_REG_NOERROR): Renamed from REG_NOERROR.
29572         (_REG_NOMATCH): Renamed from REG_NOMATCH.
29573         (_REG_BADPAT): Renamed from REG_BADPAT.
29574         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
29575         (_REG_ECTYPE): Renamed from REG_ECTYPE.
29576         (_REG_EESCAPE): Renamed from REG_EESCAPE.
29577         (_REG_ESUBREG): Renamed from REG_ESUBREG.
29578         (_REG_EBRACK): Renamed from REG_EBRACK.
29579         (_REG_EPAREN): Renamed from REG_EPAREN.
29580         (_REG_EBRACE): Renamed from REG_EBRACE.
29581         (_REG_BADBR): Renamed from REG_BADBR.
29582         (_REG_ERANGE): Renamed from REG_ERANGE.
29583         (_REG_ESPACE): Renamed from REG_ESPACE.
29584         (_REG_BADRPT): Renamed from REG_BADRPT.
29585         (_REG_EEND): Renamed from REG_EEND.
29586         (_REG_ESIZE): Renamed from REG_ESIZE.
29587         (_REG_ERPAREN): Renamed from REG_ERPAREN.
29588         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
29589         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
29590         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
29591         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29592
29593         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29594         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29595         changed.  But support the old name if the new one is not defined
29596         and if _REGEX_SOURCE.
29597
29598         Change the following member names in struct re_pattern_buffer.
29599         The old names are still supported if !_REGEX_SOURCE.
29600         The new names are always supported, regardless of _REGEX_SOURCE.
29601         (re_buffer): Renamed from buffer.
29602         (re_allocated): Renamed from allocated.
29603         (re_used): Renamed from used.
29604         (re_syntax): Renamed from syntax.
29605         (re_fastmap): Renamed from fastmap.
29606         (re_translate): Renamed from translate.
29607         (re_can_be_null): Renamed from can_be_null.
29608         (re_regs_allocated): Renamed from regs_allocated.
29609         (re_fastmap_accurate): Renamed from fastmap_accurate.
29610         (re_no_sub): Renamed from no_sub.
29611         (re_not_bol): Renamed from not_bol.
29612         (re_not_eol): Renamed from not_eol.
29613         (re_newline_anchor): Renamed from newline_anchor.
29614
29615         Change the following member names in struct re_registers.
29616         The old names are still supported if !_REGEX_SOURCE.
29617         The new names are always supported, regardless of _REGEX_SOURCE.
29618         (rm_num_regs): Renamed from num_regs.
29619         (rm_start): Renamed from start.
29620         (rm_end): Renamed from end.
29621
29622         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29623         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29624         Prepend __ to parameter names.
29625
29626         Undo yesterday's changes.
29627
29628 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29629
29630         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29631         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29632         lib/regex.c.
29633
29634 2005-08-24  Jim Meyering  <jim@meyering.net>
29635
29636         Sync from coreutils.
29637         * m4/fcntl-safer.m4: New file.
29638
29639         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29640         and object files for this module.
29641
29642 2005-08-24  Jim Meyering  <jim@meyering.net>
29643
29644         Sync from coreutils.
29645         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29646
29647 2005-08-24  Jim Meyering  <jim@meyering.net>
29648
29649         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29650         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29651
29652 2005-08-24  Jim Meyering  <jim@meyering.net>
29653
29654         * modules/fcntl-safer: New module.
29655         * modules/fts (Depends-on): Add fcntl-safer.
29656         * MODULES.html.sh (File descriptor based Input/Output):
29657         Add fcntl-safer.
29658
29659 2005-08-24  Bruno Haible  <bruno@clisp.org>
29660
29661         Support for unit test modules.
29662         * modules/README: Mention tests modules.
29663         * modules/TEMPLATE-TESTS: New file.
29664         * gnulib-tool: New options --extract-tests-module, --with-tests and
29665         --tests-base (unused for the moment).
29666         (testsbase, inctests): New variables.
29667         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29668         (func_verify_module): Exclude TEMPLATE-TESTS.
29669         (func_verify_nontests_module, func_verify_tests_module): New functions.
29670         (func_get_dependencies): Add implicit dependency for tests modules.
29671         (func_get_tests_module): New function.
29672         (func_modules_transitive_closure): When --with-tests was specified,
29673         include the unit tests as well, unless explicitly avoided.
29674         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29675         (func_emit_tests_Makefile_am): New function.
29676         (func_create_testdir): When --with-tests was specified, emit a
29677         tests/ directory.
29678         * MODULES.html.sh (Future developments): Update.
29679
29680 2005-08-24  Bruno Haible  <bruno@clisp.org>
29681
29682         * modules/tls-tests: New file.
29683         * tests/test-tls.c: New file, from GNU gettext.
29684
29685 2005-08-24  Bruno Haible  <bruno@clisp.org>
29686
29687         * modules/lock-tests: New file.
29688         * tests/test-lock.c: New file, from GNU gettext.
29689
29690 2005-08-24  Bruno Haible  <bruno@clisp.org>
29691
29692         * lib/lock.h: Add multiple inclusion guard.
29693         * lib/tls.h: Add multiple inclusion guard.
29694
29695 2005-08-24  Bruno Haible  <bruno@clisp.org>
29696
29697         * gnulib-tool: Add support for the --aux-dir option to
29698         --create-testdir, --create-megatestdir, --test, --megatest.
29699         (func_create_testdir, func_create_megatestdir): Optionally emit a
29700         AC_CONFIG_AUX_DIR directive.
29701         (create-testdir, create-megatestdir, test, megatest): Provide a
29702         default value for $auxdir.
29703
29704 2005-08-24  Bruno Haible  <bruno@clisp.org>
29705
29706         * gnulib-tool (import): Use compound statement instead of subshell
29707         where possible.
29708
29709 2005-08-24  Bruno Haible  <bruno@clisp.org>
29710
29711         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29712
29713 2005-08-24  Bruno Haible  <bruno@clisp.org>
29714
29715         * gnulib-tool (func_version): Update.
29716
29717 2005-08-24  Bruno Haible  <bruno@clisp.org>
29718
29719         * gnulib-tool (func_import, func_create_testdir,
29720         func_create_megatestdir): Quote all autoconf macro arguments.
29721
29722 2005-08-24  Bruno Haible  <bruno@clisp.org>
29723
29724         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29725         option --force, because --force causes the aclocal.m4 of each
29726         subdirectory to be newer than the corresponding config.h.in.
29727
29728 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29729
29730         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29731         All contents moved to gl_REGEX.
29732         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29733         assume that it does.
29734
29735 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29736
29737         * lib/regex.h (REG_NOSYS)
29738         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29739         Define, since POSIX requires it as of 2001.
29740         (_REG_ENOSYS)
29741         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29742         New private symbol, used to keep the enum signed in all cases.
29743         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29744         Youngman in
29745         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29746
29747         * lib/regex_internal.c (re_string_skip_chars, register_state):
29748         (calc_state_hash):
29749         Remove forward decls; no longer needed now that we use prototypes.
29750         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29751         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29752         (clean_state_log_if_needed): Likewise.
29753
29754 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29755
29756         * config/srclist.txt: Add glibc bugs 1231-1233.
29757
29758 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29759
29760         Fix problems reported by Sam Steingold in
29761         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29762         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29763         assumed that reg_errcode_t is a signed type, which is not
29764         necessarily true if _XOPEN_SOURCE is not defined.
29765         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29766         since some compilers warn about it otherwise.
29767
29768 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29769
29770         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29771         (init_word_char, create_initial_state, duplicate_node_closure):
29772         (fetch_token, peek_token_bracket, build_range_exp):
29773         (build_collating_symbol): Remove forward decls; no longer needed
29774         now that we use prototypes.
29775
29776         * lib/regcomp.c:
29777         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29778         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29779         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29780         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29781         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29782         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29783         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29784         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29785         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29786         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29787         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29788         (build_charclass, build_charclass_op, fetch_number, create_tree):
29789         (create_token_tree, mark_opt_subexp, duplicate_tree):
29790         Use prototypes rather than old-style definitions.
29791
29792         * lib/regex_internal.c:
29793         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29794         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29795         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29796         (re_string_reconstruct, re_string_peek_byte_case):
29797         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29798         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29799         (re_node_set_init_copy, re_node_set_add_intersect):
29800         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29801         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29802         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29803         (re_acquire_state, re_acquire_state_context, register_state):
29804         (create_ci_newstate, create_cd_newstate, free_state):
29805         Likewise.
29806         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29807         re_search_2):
29808         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29809         (re_search_internal, prune_impossible_nodes):
29810         (acquire_init_state_context, check_matching, static):
29811         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29812         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29813         (update_regs, sift_states_backward, build_sifted_states):
29814         (clean_state_log_if_needed, merge_state_array):
29815         (update_cur_sifted_state, add_epsilon_src_nodes):
29816         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29817         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29818         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29819         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29820         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29821         (check_arrival, check_arrival_add_next_nodes):
29822         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29823         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29824         (check_node_accept_bytes, check_node_accept, extend_buffers):
29825         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29826         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29827         (sift_ctx_init):
29828         Likewise.
29829
29830         * lib/regex_internal.h:
29831         (re_string_allocate, re_string_construct, re_string_reconstruct):
29832         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29833         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29834         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29835         (re_string_context_at, re_string_peek_byte_case):
29836         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29837         is defined, since we now use prototypes always.
29838
29839         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29840         C89 or better.  All uses removed.
29841
29842 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         * config/srclist.txt: Add glibc bugs 1220-1227.
29845
29846 2005-08-20  Jim Meyering  <jim@meyering.net>
29847
29848         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29849         of unused local, dfa.
29850
29851 2005-08-20  Bruno Haible  <bruno@clisp.org>
29852
29853         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29854
29855 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29856
29857         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29858         (re_node_set_insert_last, re_dfa_add_node):
29859         Rename local variables to avoid GCC shadowing warnings.
29860
29861 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29862
29863         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29864         [defined lint]: Suppress bogus uninitialized-variable warnings.
29865
29866         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29867         and let the caller return REG_ESPACE if out of space.  This
29868         removes an uninitialied-variable warning with GCC 4.0.1, and also
29869         avoids taking the address of a local variable.  All callers
29870         changed.
29871
29872 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29873
29874         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29875         $LIBCSRC/posix/regexec.c.
29876         Add glibc bug 1217 for regcomp.c.
29877
29878 2005-08-19  Jim Meyering  <jim@meyering.net>
29879
29880         * lib/regexec.c (proceed_next_node): Redo local variables to
29881         avoid GCC shadowing warnings.
29882
29883 2005-08-18  Bruno Haible  <bruno@clisp.org>
29884
29885         * lib/strstr.c (strstr): Fix return value in multibyte case.
29886         * lib/strcasestr.c (strcasestr): Likewise.
29887
29888 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29889
29890         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29891
29892 2005-08-17  Jim Meyering  <jim@meyering.net>
29893
29894         Make the %s format (seconds since the epoch) work for a negative
29895         number and when used with a zero-padded field width, e.g. %015s.
29896
29897         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29898         label so that it precedes the code to set `digits'.  Otherwise,
29899         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29900         print `00-22'.  Now, it prints `-0022', as it should.
29901
29902 2005-08-17  Bruno Haible  <bruno@clisp.org>
29903
29904         * modules/strstr (Files): Add m4/mbrtowc.m4.
29905         (Depends-on): Add mbuiter.
29906
29907 2005-08-17  Bruno Haible  <bruno@clisp.org>
29908
29909         * modules/strcasestr: New file.
29910         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29911         strcasestr.
29912
29913 2005-08-17  Bruno Haible  <bruno@clisp.org>
29914
29915         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29916
29917 2005-08-17  Bruno Haible  <bruno@clisp.org>
29918
29919         * modules/mbuiter: New file.
29920         * MODULES.html.sh (Extended multibyte and wide character utilities):
29921         Add mbuiter.
29922
29923 2005-08-17  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29926         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29927
29928 2005-08-17  Bruno Haible  <bruno@clisp.org>
29929
29930         * m4/strcasestr.m4: New file.
29931
29932 2005-08-17  Bruno Haible  <bruno@clisp.org>
29933
29934         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29935         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29936
29937 2005-08-17  Bruno Haible  <bruno@clisp.org>
29938
29939         * lib/strcasestr.h: New file.
29940         * lib/strcasestr.c: New file.
29941
29942 2005-08-17  Bruno Haible  <bruno@clisp.org>
29943
29944         * lib/strcasecmp.c: Use mbuiter.h.
29945
29946 2005-08-17  Bruno Haible  <bruno@clisp.org>
29947
29948         * lib/mbuiter.h: New file.
29949
29950 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29951
29952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29953         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29954         and gl_GETOPT are both invoked via different paths (as happens
29955         with GNU tar CVS because it uses both argp and getopt), the former
29956         wins.
29957
29958 2005-08-16  Bruno Haible  <bruno@clisp.org>
29959
29960         * modules/tls: New file.
29961         * MODULES.html.sh (Multithreading): Add tls.
29962
29963 2005-08-16  Bruno Haible  <bruno@clisp.org>
29964
29965         * modules/strnlen1: New file.
29966         * MODULES.html.sh (String handling): Add strnlen1.
29967
29968 2005-08-16  Bruno Haible  <bruno@clisp.org>
29969
29970         * modules/strcase (Files): Add m4/mbrtowc.m4.
29971         (Depends-on): Add strnlen1, mbchar.
29972
29973 2005-08-16  Bruno Haible  <bruno@clisp.org>
29974
29975         * modules/mbiter: New file.
29976         * MODULES.html.sh (Extended multibyte and wide character utilities):
29977         Add mbiter.
29978
29979 2005-08-16  Bruno Haible  <bruno@clisp.org>
29980
29981         * modules/mbfile: New file.
29982         * MODULES.html.sh (Extended multibyte and wide character utilities):
29983         Add mbfile.
29984
29985 2005-08-16  Bruno Haible  <bruno@clisp.org>
29986
29987         * modules/mbchar: New file.
29988         * MODULES.html.sh (Extended multibyte and wide character utilities):
29989         New section.
29990
29991 2005-08-16  Bruno Haible  <bruno@clisp.org>
29992
29993         * m4/tls.m4: New file, from GNU gettext.
29994
29995 2005-08-16  Bruno Haible  <bruno@clisp.org>
29996
29997         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29998         always.
29999         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
30000
30001 2005-08-16  Bruno Haible  <bruno@clisp.org>
30002
30003         * m4/mbiter.m4: New file.
30004
30005 2005-08-16  Bruno Haible  <bruno@clisp.org>
30006
30007         * m4/mbfile.m4: New file.
30008
30009 2005-08-16  Bruno Haible  <bruno@clisp.org>
30010
30011         * m4/mbchar.m4: New file.
30012
30013 2005-08-16  Bruno Haible  <bruno@clisp.org>
30014
30015         * lib/tls.h: New file, from GNU gettext.
30016         * lib/tls.c: New file, from GNU gettext.
30017
30018 2005-08-16  Bruno Haible  <bruno@clisp.org>
30019
30020         * lib/strnlen1.h: New file.
30021         * lib/strnlen1.c: New file.
30022
30023 2005-08-16  Bruno Haible  <bruno@clisp.org>
30024
30025         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
30026         (mbi_init): Update.
30027         (mbi_avail, mbi_advance): Let the iteration end before the terminating
30028         NUL byte, not after it.
30029
30030 2005-08-16  Bruno Haible  <bruno@clisp.org>
30031
30032         * lib/strcase.h (strcasecmp): Add note in comments.
30033         * lib/strncasecmp.c: Use code from strcasecmp.c.
30034         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
30035         (strcasecmp): Work correctly in multibyte locales.
30036
30037 2005-08-16  Bruno Haible  <bruno@clisp.org>
30038
30039         * lib/mbiter.h: New file.
30040
30041 2005-08-16  Bruno Haible  <bruno@clisp.org>
30042
30043         * lib/mbfile.h: New file.
30044
30045 2005-08-16  Bruno Haible  <bruno@clisp.org>
30046
30047         * lib/mbchar.h: New file.
30048         * lib/mbchar.c: New file.
30049
30050 2005-08-16  Bruno Haible  <bruno@clisp.org>
30051
30052         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
30053         the valid ones. Makes the comparison operations transitive:
30054         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
30055         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
30056
30057 2005-08-15  Simon Josefsson  <jas@extundo.com>
30058
30059         * modules/ssize_t (License): Change to 'unlimited'.
30060
30061         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
30062
30063 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30064
30065         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
30066         Add comments for each pending glibc patch.
30067
30068 2005-08-15  Bruno Haible  <bruno@clisp.org>
30069
30070         * lib/regex.h (__restrict_arr): Don't define to __restrict if
30071         __cplusplus is defined.
30072
30073 2005-08-14  Jim Meyering  <jim@meyering.net>
30074
30075         Sync from coreutils.
30076
30077         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
30078         Use the hash-table-based cycle-detection code not just when
30079         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
30080         Reported by James Youngman in
30081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
30082         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
30083         FTS_TIGHT_CYCLE_CHECK.
30084         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
30085         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
30086         once again.
30087         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
30088         * lib/fts.c (fd_safer): Remove decl.
30089         Include fcntl--.h rather than unistd-safer.h
30090         (fts_safe_changedir): Don't call fd_safer; no longer needed
30091         now that we include fcntl--.h.
30092
30093 2005-08-12  Simon Josefsson  <jas@extundo.com>
30094
30095         * modules/getndelim2: Use ssize_t module.
30096         * modules/getnline: Likewise.
30097         * modules/safe-read: Likewise.
30098         * modules/xreadlink: Likewise.
30099
30100         * modules/ssize_t: New file.
30101
30102 2005-08-12  Simon Josefsson  <jas@extundo.com>
30103
30104         * m4/readline.m4: Look for termcap, curses or ncurses if required.
30105
30106 2005-08-12  Simon Josefsson  <jas@extundo.com>
30107
30108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30109         ssize_t.
30110
30111 2005-08-12  Simon Josefsson  <jas@extundo.com>
30112
30113         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
30114         readline, getdelim and check_version.
30115         (Support for systems lacking ISO C 99: Sizes of integer types):
30116         Add size_max.
30117
30118 2005-08-12  Bruno Haible  <bruno@clisp.org>
30119
30120         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
30121
30122 2005-08-11  Simon Josefsson  <jas@extundo.com>
30123
30124         * modules/readline: New file.
30125
30126         * modules/strnlen (Files): Add strnlen.h.
30127
30128 2005-08-11  Simon Josefsson  <jas@extundo.com>
30129
30130         * m4/readline.m4: New file.
30131
30132 2005-08-11  Simon Josefsson  <jas@extundo.com>
30133
30134         * lib/readline.h, readline.c: New file.
30135
30136 2005-08-11  Simon Josefsson  <jas@extundo.com>
30137
30138         * doc/gnulib.texi (Initial import, Finishing touches): Mention
30139         gl_AVOID.
30140
30141 2005-08-11  Bruno Haible  <bruno@clisp.org>
30142
30143         * lib/strnlen.h (strnlen): Change parameter name to match comment.
30144
30145 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
30146
30147         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
30148
30149 2005-08-10  Simon Josefsson  <jas@extundo.com>
30150
30151         * tests/test-iconvme.c: New file.
30152
30153 2005-08-10  Simon Josefsson  <jas@extundo.com>
30154
30155         * m4/strnlen.m4: New file.
30156
30157         * m4/strndup.m4: Don't check for strnlen declaration, done in
30158         strnlen.m4.
30159
30160 2005-08-10  Simon Josefsson  <jas@extundo.com>
30161
30162         * lib/strndup.c: Use strnlen.h.
30163
30164         * lib/strnlen.h: New file.
30165
30166 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30167
30168         * README: Typos.
30169
30170 2005-08-02  Simon Josefsson  <jas@extundo.com>
30171
30172         * modules/readline: New file.
30173
30174 2005-08-02  Simon Josefsson  <jas@extundo.com>
30175
30176         * modules/getdelim: New file.
30177
30178         * modules/getline: Rewrite, don't use getndelim2.
30179
30180 2005-08-02  Simon Josefsson  <jas@extundo.com>
30181
30182         * m4/getline.m4: Separate out getdelim stuff into separate module.
30183
30184         * m4/getdelim.m4: New file.
30185
30186 2005-08-02  Simon Josefsson  <jas@extundo.com>
30187
30188         * lib/getline.h, getline.c: Rewrite.
30189
30190         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
30191
30192 2005-07-31  Bruno Haible  <bruno@clisp.org>
30193
30194         * lib/lock.h (gl_lock_initializer): New macro.
30195         (gl_lock_define_initialized): Use it.
30196         (gl_rwlock_initializer): New macro.
30197         (gl_rwlock_define_initialized): Use it.
30198         (gl_recursive_lock_initializer): New macro.
30199         (gl_recursive_lock_define_initialized): Use it.
30200
30201 2005-07-30  Karl Berry  <karl@gnu.org>
30202
30203         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
30204         Report from Ben Pfaff, regarding getopt.
30205
30206 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
30207
30208         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
30209         normal way.
30210         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
30211         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
30212         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
30213         (gl_GETOPT): Use the new macros.  Most of the implementation
30214         is moved to the new macros.  This is for programs like Emacs
30215         that don't want all the functionality of gl_GETOPT.
30216
30217 2005-07-26  Bruno Haible  <bruno@clisp.org>
30218
30219         * m4/lock.m4: Update from GNU gettext.
30220
30221 2005-07-26  Bruno Haible  <bruno@clisp.org>
30222
30223         * lib/lock.h: Update from GNU gettext.
30224         * lib/lock.c: Update from GNU gettext.
30225
30226 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30227
30228         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
30229         obsolescent AC_TRY_RUN.  Include the default includes files, for
30230         'exit'.
30231
30232 2005-07-24  Bruno Haible  <bruno@clisp.org>
30233
30234         * modules/visibility: New file.
30235         * MODULES.html.sh (Misc): Add visibility.
30236
30237 2005-07-24  Bruno Haible  <bruno@clisp.org>
30238
30239         * m4/visibility.m4: New file.
30240
30241 2005-07-24  Bruno Haible  <bruno@clisp.org>
30242
30243         * doc/visibility.texi: New file.
30244
30245 2005-07-22  Bruno Haible  <bruno@clisp.org>
30246
30247         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
30248         $(ALLOCA_H), redundant through BUILT_SOURCES.
30249         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
30250         redundant through BUILT_SOURCES.
30251         * modules/byteswap (Makefile.am): Remove explicit dependency on
30252         $(BYTESWAP_H), redundant through BUILT_SOURCES.
30253         * modules/fnmatch (Makefile.am): Remove explicit dependency on
30254         $(FNMATCH_H), redundant through BUILT_SOURCES.
30255         * modules/getopt (Makefile.am): Remove explicit dependency on
30256         $(GETOPT_H), redundant through BUILT_SOURCES.
30257         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
30258         redundant through BUILT_SOURCES.
30259         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
30260         redundant through BUILT_SOURCES.
30261         * modules/stdbool (Makefile.am): Remove explicit dependency on
30262         $(STDBOOL_H), redundant through BUILT_SOURCES.
30263         * modules/stdint (Makefile.am): Remove explicit dependency on
30264         $(STDINT_H), redundant through BUILT_SOURCES.
30265         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
30266         Remove explicit dependency on $(SYSEXITS_H).
30267         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
30268
30269 2005-07-18  Simon Josefsson  <jas@extundo.com>
30270
30271         * lib/check-version.c (check_version): Accept identical versions too.
30272
30273 2005-07-18  Bruno Haible  <bruno@clisp.org>
30274
30275         * modules/lock: New file.
30276         * MODULES.html.sh (Multithreading): New section.
30277
30278 2005-07-18  Bruno Haible  <bruno@clisp.org>
30279
30280         * m4/lock.m4: New file, from GNU gettext.
30281
30282 2005-07-18  Bruno Haible  <bruno@clisp.org>
30283
30284         * lib/lock.h: New file, from GNU gettext.
30285         * lib/lock.c: New file, from GNU gettext.
30286
30287 2005-07-18  Bruno Haible  <bruno@clisp.org>
30288
30289         * lib/lock.h (gl_once_t): New type.
30290         (gl_once_define, gl_once): New macros.
30291         * lib/lock.c (fresh_once): New variable.
30292         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
30293         functions.
30294
30295 2005-07-16  Simon Josefsson  <jas@extundo.com>
30296
30297         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
30298         workaround, suggested by Bruno.
30299
30300 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30301
30302         * modules/xalloc (Depends-on): Add xalloc-die.
30303         * modules/xvasprintf (Depends-on): Add xalloc-die.
30304
30305 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30306
30307         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
30308         with a minor change.
30309
30310 2005-07-15  Bruno Haible  <bruno@clisp.org>
30311
30312         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
30313         When using lib/poll.c, define poll as rpl_poll.
30314
30315 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
30316
30317         * modules/argp (Depends-on): Remove unlocked-io.
30318
30319 2005-07-14  Derek Price  <derek@ximbiot.com>
30320
30321         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
30322         for glob symlink bug.
30323
30324 2005-07-14  Bruno Haible  <bruno@clisp.org>
30325
30326         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30327         Instead, test for *_unlocked function declarations directly.
30328
30329 2005-07-11  Simon Josefsson  <jas@extundo.com>
30330
30331         * modules/size_max: New file.
30332
30333         * modules/xsize: Depend on size_max module for size_max.m4.
30334
30335 2005-07-11  Simon Josefsson  <jas@extundo.com>
30336
30337         * lib/size_max.h: New file.
30338
30339 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30340
30341         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30342         copyright symbol and the year.
30343         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30344         (version_etc_va): Use parameterized copyright notice.
30345         Reword to conform to the current GNU coding standards.
30346
30347 2005-07-11  Karl Berry  <karl@gnu.org>
30348
30349         * doc/gnulib.texi (Quoting): new node.
30350         (Initial import): more info, from Patrice.
30351
30352 2005-07-11  Bruno Haible  <bruno@clisp.org>
30353
30354         * gnulib-tool (func_usage): Document option --avoid.
30355         (Command line options): Handle --avoid.
30356         (func_acceptable): New function.
30357         (func_modules_transitive_closure): Use it.
30358
30359 2005-07-11  Bruno Haible  <bruno@clisp.org>
30360
30361         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
30362         Reported by Jim Meyering.
30363
30364 2005-07-10  Bruno Haible  <bruno@clisp.org>
30365
30366         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
30367         Needed when size_t is smaller than 'unsigned int'.
30368         Reported by Paul Eggert.
30369
30370 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30371
30372         * modules/argp (Depends-on): Add unlocked-io
30373
30374 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30375
30376         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
30377         block of defines.
30378
30379 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30380
30381         * config/srclist.txt: Comment out regcomp.c, since we have a porting
30382         fix now.
30383
30384 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
30385         and Paul Eggert  <eggert@cs.ucla.edu>
30386
30387         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
30388         in wint_t, not wchar_t.  Remove now-unnecessary cast.
30389
30390 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30391
30392         * modules/regex (Files): Add lib/regex_internal.c,
30393         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
30394         (Depends-on): Add extensions.
30395         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
30396
30397 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30398
30399         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
30400         pathconf.
30401         * m4/same.m4 (gl_SAME): Likewise.
30402         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
30403
30404         * m4/regex.m4: Adjust to new libc regex implementation.
30405         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
30406         all the .c and .h parts of (the new) regex.
30407         Quote the m4 stuff better.
30408         Check for RE_ICASE bug of old gnulib.
30409         Check for REG_STARTEND of recent libc.
30410         Rename local variables from jm_* to gl_*.
30411         Quote operand of "test -f".
30412         Say "recent enough" version of libc, not "version 2".
30413         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
30414         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
30415         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
30416         Remove check for btowc, isascii.
30417         Require AM_LANGINFO_CODESET.
30418
30419 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30420
30421         * lib/regex.c, regex.h: Sync from libc.
30422         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30423         * lib/regexec.c:
30424         New files, synced from libc, except that regex_internal.h
30425         currently has a small porting fix.
30426
30427 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30428
30429         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
30430         regex_internal.c, regexec.c.
30431         Add regex_internal.h too, but as a comment, since the libc version
30432         is currently broken in gnulib mode.
30433
30434 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30435
30436         Support programs like Emacs that use gnulib but not gettext.
30437         * MODULES.html.sh (Internationalization functions): Add gettext-h.
30438         * modules/gettext-h: New file.
30439         * modules/gettext (Files): Remove lib/gettext.h.
30440         (Depends-on): Add gettext-h.
30441         (Makefile.am): Remove lib_SOURCES.
30442         * modules/argmatch, modules/c-stack, modules/closeout:
30443         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
30444         * modules/execute, modules/file-type, modules/getaddrinfo:
30445         * modules/getopt, modules/human, modules/javacomp:
30446         * modules/javaexec, modules/mkdir-p, modules/obstack:
30447         * modules/openat, modules/pagealign_alloc, modules/pipe:
30448         * modules/quotearg, modules/regex, modules/rpmatch:
30449         * modules/unicodeio, modules/userspec, modules/version-etc:
30450         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
30451         * modules/xsetenv:
30452         Depend on gettext-h, not gettext.
30453
30454 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30455
30456         * gnulib-tool (func_import): Add support for 'public domain' license.
30457         * modules/alloca, modules/atexit, modules/memmove:
30458         Now public domain, not GPL.
30459         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
30460         * modules/realloc, modules/strerror, modules/strtod:
30461         Now LGPL, not GPL.
30462
30463 2005-07-05  Bruno Haible  <bruno@clisp.org>
30464
30465         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
30466         autoconf CVS. Needed for mingw.
30467
30468 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30469
30470         Remove the dependency of the strftime module on the tzset module.
30471         * modules/strftime (Depends-on): Remove dependency on tzset.
30472
30473 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30474
30475         Remove the dependency of the strftime module on the tzset module.
30476         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
30477         gl_FUNC_TZSET_CLOBBER.
30478
30479 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30480
30481         Remove the dependency of the strftime module on the tzset module.
30482         * lib/strftime.c (my_strftime)
30483         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
30484         Copy the input structure, to work around some of the bug with
30485         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
30486         Solaris releases, you should also use the tzset module, but we won't
30487         require it as a dependency any more since we don't want LGPLed code
30488         to depend on GPLed code.
30489
30490 2005-07-02  Jim Meyering  <jim@meyering.net>
30491
30492         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
30493         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
30494         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
30495         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
30496
30497 2005-07-02  Jim Meyering  <jim@meyering.net>
30498
30499         * lib/backupfile.c (backup_args): Change a `0' to NULL.
30500
30501 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30502
30503         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
30504         declares only 'struct timespec;' (!).
30505
30506 2005-07-01  Jim Meyering  <jim@meyering.net>
30507
30508         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
30509         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
30510         * lib/save-cwd.c, tempname.c:
30511         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30512         and don't include <sys/file.h>).
30513
30514 2005-06-29  Jim Meyering  <jim@meyering.net>
30515
30516         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
30517         type name.  Use the variable name instead.
30518         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
30519         Likewise.
30520
30521 2005-06-28  Simon Josefsson  <jas@extundo.com>
30522
30523         * modules/check-version (Files): Add check-version.m4.
30524
30525 2005-06-28  Simon Josefsson  <jas@extundo.com>
30526
30527         * m4/check-version.m4: New file, suggested by Jim Meyering
30528         <jim@meyering.net>.
30529
30530 2005-06-28  Simon Josefsson  <jas@extundo.com>
30531
30532         * lib/check-version.h, lib/check-version.c: New files.
30533
30534 2005-06-28  Simon Josefsson  <jas@extundo.com>
30535
30536         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
30537         collision with global variable.  Better indentation.  Don't
30538         increment buffer pointer beyond buffer end.  Based on comments
30539         from Paul Eggert <eggert@cs.ucla.edu>.
30540
30541         * lib/base64.h: Indent.
30542
30543 2005-06-28  Simon Josefsson  <jas@extundo.com>
30544
30545         * doc/gnulib.texi (Library version handling): New section.
30546
30547 2005-06-28  Jim Meyering  <jim@meyering.net>
30548
30549         * check-module (find_included_lib_files): Hard-code another
30550         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
30551         but modules/fts-lgpl (correctly) does not list those files.
30552
30553         * modules/canonicalize (Files): Add lib/pathmax.h.
30554
30555 2005-06-25  Simon Josefsson  <jas@extundo.com>
30556
30557         * modules/check-version: New file.
30558
30559 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
30560
30561         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
30562         initializer of struct addrinfo, as an indication that we don't
30563         care how many members the structure has.
30564
30565 2005-06-24  Derek Price  <derek@ximbiot.com>
30566         and Bruno Haible  <bruno@clisp.org>
30567
30568         Remove stat module & update lstat.
30569         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
30570         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30571         * m4/stat.m4: Remove this file.
30572
30573 2005-06-24  Derek Price  <derek@ximbiot.com>
30574         and Bruno Haible  <bruno@clisp.org>
30575
30576         Remove stat module & update lstat.
30577         * lib/stat.c: Remove this file...
30578         (slash_aware_lstat): ...moving this content and its support...
30579         * lib/lstat.c (rpl_lstat): ...into here.
30580         * lib/lstat.h: New file.
30581
30582 2005-06-24  Derek Price  <derek@ximbiot.com>
30583         and Bruno Haible  <bruno@clisp.org>
30584
30585         Remove stat module & update lstat.
30586         * config/srclist.txt (libc sources): Remove stat.
30587
30588 2005-06-24  Derek Price  <derek@ximbiot.com>
30589         and Bruno Haible  <bruno@clisp.org>
30590
30591         Remove stat module & update lstat.
30592         * MODULES.html.sh (stat): Remove.
30593         * MODULES.html: Regenerated.
30594         * modules/lstat (Description): Correct function name.
30595         (Files): Add "lstat.h".
30596         (Depends-on): Remove stat, add xalloc, stat-macros.
30597         * modules/stat: Remove this file.
30598         (Include): Add "lstat.h", remove <sys/stat.h>.
30599
30600 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30601
30602         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30603         (ranged_convert): Don't save conversion in a temporary struct.
30604         This causes a warning with GCC 4.0.0, and anyway in the typical
30605         case it's not worth the extra 100 bytes or so of code.
30606         (ranged_convert, __mktime_internal): When calling a function via a
30607         pointer P, use P () rather than (*P) (), as we now assume C89 or
30608         better.
30609
30610 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30611
30612         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30613         "who -r" failed to give output.  Problem reported by Tim Waugh.
30614
30615         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30616         (xcalloc): Use it to avoid needless tests.
30617         Problem reported by Jim Meyering.
30618
30619 2005-06-20  Derek Price  <derek@ximbiot.com>
30620
30621         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30622         unnecessary for Autoconfs > 2.59c.
30623
30624 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30625
30626         * lib/argp.h (__option_is_short): Check upper limit of
30627         __key. Isprint() requires its argument to have the value
30628         of an unsigned char or EOF.
30629
30630 2005-06-16  Jim Meyering  <jim@meyering.net>
30631
30632         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30633         when either N or S is zero.
30634
30635 2005-06-16  Derek Price  <derek@ximbiot.com>
30636
30637         * m4/bison.m4: Declare YACC & YFLAGS precious.
30638
30639 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30640
30641         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30642         multibyte string or pattern, fall back on unibyte matching.
30643         Problem reported by James Youngman.
30644
30645 2005-06-08  Bruno Haible  <bruno@clisp.org>
30646
30647         * modules/csharpcomp: New file.
30648         * MODULES.html.sh (C#): Add csharpcomp.
30649
30650 2005-06-08  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/csharpcomp.m4: New file, from GNU gettext.
30653
30654 2005-06-08  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/csharpcomp.h: New file, from GNU gettext.
30657         * lib/csharpcomp.c: New file, from GNU gettext.
30658         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30659
30660 2005-06-08  Bruno Haible  <bruno@clisp.org>
30661
30662         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30663         warning on mingw.
30664
30665 2005-06-07  Derek Price  <derek@ximbiot.com>
30666
30667         Sync from CVS.
30668         * lib/glob_.h: Indent nested #ifdef.
30669
30670 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30671
30672         Sync from coreutils.
30673         Use "file name" when talking about file names, instead of "filename"
30674         or "path", as per the GNU coding standards.
30675         * lib/mkdir-p.c: Renamed from makepath.c.
30676         (make_dir_parents): Renamed from make_path.  All callers changed.
30677         * lib/mkdir-p.h: Likewise.  All includers changed.
30678         * lib/filenamecat.c: Renamed from path-concat.c.
30679         (file_name_concat): Renamed from path_concat.  All callers changed.
30680         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30681         * lib/filenamecat.h: Likewise.  All includers changed.
30682         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30683         in comments or local variable names.
30684         * lib/basename.c: Likewise.
30685         * lib/canonicalize.c, canonicalize.h: Likewise.
30686         * lib/dirname.c, dirname.h: Likewise.
30687         * lib/euidaccess.c: Likewise.
30688         * lib/exclude.c: Likewise
30689         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30690         * lib/fsusage.c, fsuage.h: Likewise.
30691         * lib/fts.c, fts_.h: Likewise.
30692         * lib/getcwd.c: Likewise.
30693         * lib/getloadavg.c: Likewise.
30694         * lib/mkstemp.c: Likewise.
30695         * lib/mountlist.c, mountlist.h: Likewise.
30696         * lib/openat.c, openat.h: Likewise.
30697         * lib/readlink-stub.c: Likewise.
30698         * lib/readutmp.c, readutmp.h: Likewise.
30699         * lib/rename.c: Likewise.
30700         * lib/rmdir.c: Likewise.
30701         * lib/same.c: Likewise.
30702         * lib/savedir.c: Likewise.
30703         * lib/stripslash.c: Likewise.
30704         * lib/tempname.c: Likewise.
30705         * lib/xreadlink.c: Likewise.
30706         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30707         All uses changed.
30708         * lib/exclude.h: Likewise.
30709
30710         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30711         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30712         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30713         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30714         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30715         files have been getting away with it for years (MORE/BSD 4.3
30716         is extinct now).
30717         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30718         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30719
30720         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30721         Define to 256, not 255, as per modern POSIX.
30722
30723 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30724
30725         Sync from coreutils.
30726         Use "file name" when talking about file names, instead of "filename"
30727         or "path", as per the GNU coding standards.
30728         * MODULES.html.sh: mkdir-p renamed from makepath.
30729         filenamecat renamed from path-concat.
30730         * modules/filenamecat: Renamed from modules/path-concat.
30731         (Files): filenamecat.h and filenamecat.c renamed from
30732         path-concat.h and path-concat.c.
30733         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30734         (Include): filenamecat.h, not path-concat.h.
30735         * modules/mkdir-p: Renamed from modules/makepath.
30736         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30737         makepath.c.
30738         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30739         (Include): mkdir-p.h, not makepath.h.
30740
30741 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30742
30743         Sync from coreutils.
30744         * m4/mkdir-p.m4: Renamed from makepath.m4.
30745         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30746         Rename files from makepath.c to mkdir-p.c, and from
30747         makepath.h to mkdir-p.h.
30748         * m4/filenamecat.m4: Renamed from path-concat.m4.
30749         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30750         Rename files from path-concat.c to filenamecat.c,
30751         and from path-concat.h to filenamecat.h.
30752         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30753         "file name" in local variables or comments.
30754         * m4/rename.m4: Likewise.
30755
30756 2005-06-01  Bruno Haible  <bruno@clisp.org>
30757
30758         * modules/csharpexec: New file.
30759         * MODULES.html.sh (C#): New section.
30760
30761 2005-06-01  Bruno Haible  <bruno@clisp.org>
30762
30763         * m4/csharp.m4: New file, from GNU gettext.
30764         * m4/csharpexec.m4: New file, from GNU gettext.
30765
30766 2005-06-01  Bruno Haible  <bruno@clisp.org>
30767
30768         * lib/csharpexec.h: New file, from GNU gettext.
30769         * lib/csharpexec.c: New file, from GNU gettext.
30770         * lib/csharpexec.sh.in: New file, from GNU gettext.
30771
30772 2005-05-31  Derek Price  <derek@ximbiot.com>
30773             Paul Eggert  <eggert@cs.ucla.edu>
30774
30775         Sync from cvs.
30776         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30777
30778 2005-05-31  Derek Price  <derek@ximbiot.com>
30779             Paul Eggert  <eggert@cs.ucla.edu>
30780
30781         Sync from cvs.
30782         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30783
30784 2005-05-29  Derek Price  <derek@ximbiot.com>
30785
30786         * config/srclist.txt (glob_.h, glob.c): Add these files.
30787
30788 2005-05-29  Derek Price  <derek@ximbiot.com>
30789
30790         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30791         * modules/glob: New file.
30792         * modules/getlogin_r: Add link to POSIX spec in description.
30793
30794 2005-05-29  Derek Price  <derek@ximbiot.com>
30795             Paul Eggert  <eggert@cs.ucla.edu>
30796
30797         * m4/glob.m4: New file.
30798
30799 2005-05-29  Derek Price  <derek@ximbiot.com>
30800             Paul Eggert  <eggert@cs.ucla.edu>
30801
30802         * lib/glob_.h, lib/glob.c: New files.
30803
30804 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30805
30806         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30807         * modules/fts-lgpl (Depends-on): Remove gettext.
30808
30809 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30810
30811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30812         and don't require gt_INTTYPES_PRI.
30813
30814 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30815
30816         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30817
30818         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30819         the configuration hassle isn't worth it.
30820         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30821         (LONGEST_MODIFIER, PRIuMAX): Remove.
30822
30823 2005-05-27  Bruno Haible  <bruno@clisp.org>
30824
30825         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30826
30827 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30828
30829         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30830         _POSIX_PTHREAD_SEMANTICS for Solaris.
30831
30832 2005-05-25  Derek Price  <derek@ximbiot.com>
30833
30834         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30835
30836 2005-05-25  Derek Price  <derek@ximbiot.com>
30837             Paul Eggert  <eggert@cs.ucla.edu>
30838
30839         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30840         * lib/getlogin_r.c, getlogin_r.h: New files.
30841
30842 2005-05-25  Bruno Haible  <bruno@clisp.org>
30843             Derek Price  <derek@ximbiot.com>
30844
30845         * lib/getlogin_r.h: Simplify API documentation.
30846
30847 2005-05-23  Derek Price  <derek@ximbiot.com>
30848
30849         * modules/minmax (Files): Add m4/minmax.m4.
30850         (configure.ac): Add gl_MINMAX.
30851
30852 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30853
30854         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30855         so that unistd-safer.h (GPL'ed code) need not be included.
30856
30857 2005-05-22  Bruno Haible  <bruno@clisp.org>
30858
30859         * m4/minmax.m4: New file.
30860         Based on a patch by Derek Price <derek@ximbiot.com>.
30861
30862 2005-05-22  Bruno Haible  <bruno@clisp.org>
30863
30864         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30865         (INT64_MIN): Fix definition.
30866         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30867
30868         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30869         NEED_SIGNED_INT_TYPES.
30870
30871         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30872         HAVE_SYSTEM_INTTYPES.
30873
30874 2005-05-22  Bruno Haible  <bruno@clisp.org>
30875
30876         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30877         Also include <sys/param.h> if it defines MIN, MAX.
30878         Based on a patch by Derek Price <derek@ximbiot.com>.
30879
30880 2005-05-21  Jim Meyering  <jim@meyering.net>
30881
30882         * modules/fts (Files): Add m4/inttypes-pri.m4.
30883         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30884
30885 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30886
30887         New fts module.
30888         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30889         (setup_dir, free_dir): New functions.
30890         (enter_dir, leave_dir): Define trivial
30891         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30892         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30893         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30894         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30895         Move to fts-cycle.c.
30896         (fts_open): Use setup_dir.
30897         (fts_close): Use free_dir.
30898         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30899         This adds a label and some gotos, but the alternatives were messier.
30900         Check for memory allocation failure when entering a dir.
30901         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30902         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30903         (FTS): New member fts_cycle, that is a union that contains the
30904         old active_dir_ht and cycle_state.  All uses changed to mention
30905         fts_cycle.ht and fts_cycle.state.
30906         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30907         fts.c, with the following changes:
30908         (setup_dir, free_dir): New functions.
30909         (enter_dir): Now returns bool.  Return true if successful, false
30910         if memory exhausted.  All callers changed.
30911         Do not bother partly cleaning up on
30912         memory allocation failure; that is free_dir's job.
30913         However, free ad if hash_insert fails, to avoid memory leak.
30914         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30915         fts->fts_options to see which union member to use.
30916
30917 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30918
30919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30920         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30921
30922 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30923
30924         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30925
30926 2005-05-20  Jim Meyering  <jim@meyering.net>
30927
30928         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30929         Now a macro, to pacify GCC.
30930
30931 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30932
30933         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30934         of -1.
30935
30936 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30937
30938         * lib/chown.c (rpl_chown): Return -1 on failure.
30939
30940 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30941
30942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30943         Don't check for stddef.h.
30944         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30945         don't use its results.
30946         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30947         since we include them unconditionally.  Don't require
30948         AM_STDBOOL_H, since stdbool is a prerequisite.
30949         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30950         since we assume C89 or better.
30951         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30952         as we don't use their results.
30953         Don't check for fchdir, memmove, memset, strrchr, as we use
30954         them unconditionally.
30955         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30956         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30957
30958 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30959
30960         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30961         Include <stddef.h> unconditionally, since we assume C89 now.
30962         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30963         * lib/fts.c: Include fts_.h first, to check interface.
30964         Do not include intprops.h; no longer needed.
30965         Include cycle-check.h and hash.h, since fts_.h no longer does.
30966         Remove unnecessary casts of closedir to void.
30967         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30968         decide whether to decrement nlinks.
30969         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30970         (FTS): Use struct hash_table * instead of Hash_table, so that
30971         we no longer need to include hash.h here.
30972
30973 2005-05-18  Jim Meyering  <jim@meyering.net>
30974
30975         * modules/dirfd (License): Change to LGPL.  Most of the code
30976         is already in the public domain.
30977
30978 2005-05-18  Jim Meyering  <jim@meyering.net>
30979
30980         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30981         Reported by Yoann Vandoorselaere.
30982
30983 2005-05-17  Jim Meyering  <jim@meyering.net>
30984
30985         * m4/fts.m4: New file, from coreutils.
30986
30987 2005-05-17  Jim Meyering  <jim@meyering.net>
30988
30989         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30990
30991 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30992
30993         Sync from coreutils.
30994         * m4/unlinkdir.m4: New file.
30995
30996 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30997
30998         Sync from coreutils.
30999         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
31000         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
31001         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
31002         White space changes only.
31003         * lib/makepath.c (make_path): Port to hosts where leading "//" is
31004         special.
31005         * lib/yesno.c: Include getline.h, not ctype.h.
31006         (yesno): Don't remove leading white space; POSIX doesn't allow it.
31007         Use getline to remove arbitrary restriction on response length.
31008
31009 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
31010
31011         * config/srclist-update: Spell out "Street" in FSF postal
31012         mail address; this is the style the FSF seems to prefer.
31013
31014         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
31015         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
31016         this updates FSF postal mail address.
31017
31018         Sync from coreutils.
31019         * modules/unlinkdir: New file.
31020         * modules/yesno (Depends-on): Add getline.
31021         * MODULES.html.sh (File system functions): Add unlinkdir.
31022
31023 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
31026         lib/strsep.h:
31027         Change the initial comment to refer to GPL, not LGPL.
31028         gnulib-tool will change it to LGPL as needed.
31029
31030         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
31031         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
31032         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
31033         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
31034         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
31035         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
31036         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
31037         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
31038         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
31039         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
31040         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
31041         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
31042         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
31043         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
31044         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
31045         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
31046         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
31047         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
31048         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
31049         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
31050         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
31051         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
31052         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
31053         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
31054         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
31055         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
31056         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
31057         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
31058         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
31059         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
31060         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
31061         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
31062         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
31063         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
31064         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
31065         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
31066         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
31067         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
31068         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
31069         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
31070         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
31071         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
31072         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
31073         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
31074         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
31075         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
31076         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
31077         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
31078         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
31079         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
31080         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31081         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
31082         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
31083         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
31084         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
31085         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
31086         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
31087         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
31088         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
31089         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
31090         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
31091         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
31092         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
31093         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
31094         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
31095         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
31096         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
31097         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
31098         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
31099         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
31100         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
31101         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
31102         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
31103         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
31104         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
31105         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
31106         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
31107         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
31108         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
31109         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
31110         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
31111         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
31112         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
31113         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
31114         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
31115         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
31116         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
31117         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
31118         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
31119         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
31120         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
31121         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
31122         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
31123         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
31124         lib/yesno.c, lib/yesno.h:
31125         Update FSF postal mail address.
31126
31127 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31128
31129         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
31130         tests/test-memmem.c, tests/test-stpncpy.c:
31131         Update FSF postal mail address.
31132
31133 2005-05-13  Bruno Haible  <bruno@clisp.org>
31134
31135         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
31136         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
31137         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
31138         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
31139         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
31140         Add support for 64-bit integers in the MSVC compiler.
31141
31142 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31143
31144         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
31145
31146 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
31147
31148         * gnulib-tool (func_import): Sort and uniquify recommended includes.
31149
31150 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31151
31152         * doc/getdate.texi (General date syntax): Don't say that date
31153         date --iso-8601=ns generates acceptable dates; it doesn't yet.
31154         Problem reported by Nic Ferrier.
31155
31156 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31157
31158         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
31159         specified in ai_socktype. Fix invalid ai_protocol
31160         check. ai_protocol is usually set to 0 or depending on
31161         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
31162         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
31163         ai_socktype / ai_protocol in the returned addrinfo structure.
31164
31165 2005-05-10  Simon Josefsson  <jas@extundo.com>
31166
31167         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
31168         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31169
31170 2005-05-10  Karl Berry  <karl@gnu.org>
31171
31172         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
31173         (from http://www.gnu.org/licenses).
31174         * doc/COPYING.LIB: also rename to COPYING.LESSER.
31175         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
31176         fdl.texi suffices.
31177
31178 2005-05-10  Karl Berry  <karl@gnu.org>
31179
31180         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
31181         (COPYING.DOC): remove.
31182
31183         * config/srclist-update: new FSF address.
31184
31185 2005-05-10  Derek Price  <derek@ximbiot.com>
31186
31187         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
31188         possible.
31189
31190 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31191             Bruno Haible  <bruno@clisp.org>
31192
31193         * modules/inet_ntop: New file.
31194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31195         inet_ntop.
31196
31197 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31198             Bruno Haible  <bruno@clisp.org>
31199
31200         * m4/inet_ntop.m4: New file.
31201
31202 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31203             Bruno Haible  <bruno@clisp.org>
31204
31205         * lib/inet_ntop.h: New file.
31206         * lib/inet_ntop.c: New file, from glibc with modifications.
31207
31208 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
31209
31210         * modules/time_r (License): Change to LGPL.
31211         * modules/extensions (License): Change to LGPL.  Actually,
31212         the license is more permissive than that, but currently gnulib-tool
31213         doesn't know how to handle more-permissive licenses.
31214
31215         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
31216         Problem reported by Dave Love.
31217
31218 2005-05-08  Jim Meyering  <jim@meyering.net>
31219
31220         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
31221         blank.
31222
31223 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31224
31225         * modules/argmatch (Depends-on): Add stdbool.
31226         * modules/backupfile (Depends-on): Likewise.
31227         * modules/chdir-long (Depends-on): Likewise.
31228         * modules/closeout (Depends-on): Likewise.
31229         * modules/cycle-check (Depends-on): Likewise.
31230         * modules/dirname (Depends-on): Likewise.
31231         * modules/fnmatch (Depends-on): Likewise.
31232         * modules/fsusage (Depends-on): Likewise.
31233         * modules/fwriteerror (Depends-on): Likewise.
31234         * modules/getcwd (Depends-on): Likewise.
31235         * modules/getloadavg (Depends-on): Likewise.
31236         * modules/hard-locale (Depends-on): Likewise.
31237         * modules/makepath (Depends-on): Likewise.
31238         * modules/mountlist (Depends-on): Likewise.
31239         * modules/nanosleep (Depends-on): Likewise.
31240         * modules/posixtm (Depends-on): Likewise.
31241         * modules/quotearg (Depends-on): Likewise.
31242         * modules/readtokens (Depends-on): Likewise.
31243         * modules/readtokens0 (Depends-on): Likewise.
31244         * modules/readutmp (Depends-on): Likewise.
31245         * modules/save-cwd (Depends-on): Likewise.
31246         * modules/strftime (Depends-on): Likewise.
31247         * modules/userspec (Depends-on): Likewise.
31248         * modules/utimecmp (Depends-on): Likewise.
31249         * modules/xgetcwd (Depends-on): Likewise.
31250         * modules/xnanosleep (Depends-on): Likewise.
31251         * modules/xstrtod (Depends-on): Likewise.
31252         * modules/yesno (Depends-on): Likewise.
31253
31254 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31255
31256         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
31257         needless checks.
31258
31259 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31260
31261         Merge from coreutils.  Among other things,
31262         add bulletproofing for cases where stdin, stdout, or stderr are closed.
31263         * lib/fd-safer.c: New file.
31264         * lib/fcntl-safer.h, open-safer.c: Remove.
31265         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
31266         * lib/dup-safer.c: Include unistd-safer.h first.
31267         Don't include errno.h.
31268         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
31269         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
31270         * lib/file-type.c: Rely on file-type.h change.
31271         * lib/getloadavg.c: Include unistd-safer.h.
31272         (getloadavg): Use safer open.
31273         * lib/getusershell.c: Include "stdio-safer.h".
31274         (getusershell): Use safer fopen.
31275         * lib/long-options.c (long_options): Use NULL rather than 0.
31276         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
31277         'free'.
31278         * lib/modechange.c: Likewise.
31279         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
31280         (MODE_DONE): New constant.
31281         (struct mode_change): Remove 'next' member.
31282         (make_node_op_equals): New function; like the old one of the
31283         same name, except it allocates an array.
31284         (mode_compile, mode_create_from_ref): Use it.
31285         (mode_compile): Allocate result as an array, not a linked list.
31286         Parse octal string ourself, so that we catch mistakes like "+0".
31287         (mode_adjust): Arg is an array, not a linked list.
31288         * lib/modechange.c: Include stat-macros.h, xalloc.h.
31289         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
31290         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
31291         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
31292         Remove.  This is now stat-macros.h's job.
31293         (talloc): Remove.  All callers replaced by xalloc, so that
31294         our invokers don't have to worry about reporting memory failures.
31295         (make_node_op_equals): Remove.
31296         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31297         New constants.
31298         (struct mode_change): Moved here from modechange.h.
31299         (mode_append_entry): Remove.
31300         (mode_compile): Remove MASKED_OPS arg, since it encouraged
31301         apps to have incorrect behavior.  Use simpler algorithm for head
31302         and tail.  Don't futz with umask; that's now the job of mode_adjust.
31303         Detect more invalid usages rather than having somewhat-random behavior.
31304         Don't insert an "a=" action, as that leads to incorrect behavior.
31305         (mode_compile, mode_create_from_ref): Return NULL on error instead
31306         of an enum, since now there's only one way to have an error.  All
31307         callers changed.
31308         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
31309         at the correct time.  Simplify calculation of "+u" and its ilk.
31310         Don't mishandle "+X".
31311         (mode_free): Remove "register" and localize decls.
31312         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
31313         (struct mode_change): Move to modechange.c; callers don't
31314         need to see this stuff.
31315         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
31316         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
31317         (mode_change, mode_adjust): Reflect the new signatures noted above.
31318         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
31319         that might redefine system include files.
31320         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
31321         (my_usleep): Use NULL rather than (void *) 0.
31322         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
31323         Use siginterrupt to specify that system calls should be interrupted.
31324         (rpl_nanosleep): Move initialization of suspended closer to call of
31325         my_usleep.
31326         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
31327         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
31328         (desirable_utmp_entry): New function.
31329         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31330         using x2nrealloc, to simplify logic.
31331         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31332         size calculation.  Do not assume utmp file is a regular file.
31333         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31334         (READ_UTMP_CHECK_PIDS): New constant.
31335         * lib/save-cwd.c: Include unistd-safer.h.
31336         (save_cwd): Use fd_safer.
31337         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31338         [!_LIBC] Include "stat-macros.h" instead.
31339         * lib/unistd-safer.h (fd_safer): New decl.
31340
31341 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31342
31343         * modules/getloadavg (Depends-on): Add unistd-safer.
31344         * modules/getusershell (Depends-on): Add stdio-safer.
31345         * modules/lstat (Depends-on): Remove xalloc.
31346         * modules/mkstemp (Depends-on): Add stat-macros.
31347         * modules/modechange (Depends-on): Remove xstrtol.
31348         Add stat-macros, xalloc.
31349         * modules/save-cwd (Depends-on): Add unistd-safer.
31350         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
31351         * modules/unistd-safer (Files): Add lib/fd-safer.c
31352         (Makefile.am): Remove lib_SOURCES.
31353
31354         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
31355         Remove fcntl-safer; unistd-safer supersedes it.
31356
31357 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31358
31359         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
31360         AC_HEADER_STAT.
31361         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
31362         (gl_PREREQ_CHOWN): Remove.
31363         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
31364         it.  Don't require AC_HEADER_STAT.
31365         (gl_PREREQ_LSTAT): Remove.
31366         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
31367         Don't require AC_HEADER_STAT.
31368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
31369         (gl_PREREQ_RMDIR): Remove.
31370         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
31371         mention stat-macros.h or AC_HEADER_STAT, since we'll make
31372         the stat-macros module a prerequisite.
31373         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
31374         * m4/filemode.m4 (gl_FILEMODE): Likewise.
31375         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
31376         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
31377         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
31378         variable names.
31379         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
31380         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
31381         variable prefixes.
31382         * m4/fcntl-safer.m4: Remove.
31383         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
31384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
31385         Invoke gl_PREREQ_FD_SAFER.
31386         (gl_PREREQ_FD_SAFER): New macro.
31387         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
31388         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
31389         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
31390         Remove duplicate call to AC_LIBOBJ(readutmp).
31391         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
31392
31393         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
31394         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
31395
31396 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31397
31398         * MODULES.html.sh (Misc): Add byteswap.
31399
31400 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31401
31402         * modules/getcwd (Depends-on): Add extensions.
31403         * modules/openat (Depends-on): Likewise.
31404
31405 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31406
31407         * modules/byteswap: New file.
31408
31409 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31410
31411         * m4/byteswap.m4: New file.
31412
31413 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31414
31415         * lib/byteswap_.h: New file.
31416
31417 2005-04-25  Karl Berry  <karl@gnu.org>
31418
31419         * m4/gettext.m4: Update from GNU gettext 0.14.4.
31420
31421 2005-04-25  Albert Chin  <china@thewrittenword.com>
31422
31423         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31424         Toolkit C bug.
31425
31426 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
31427
31428         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
31429         (func_ln_if_changed) Remove forcibly for no error message
31430         in case file does not exist.
31431
31432 2005-04-19  Simon Josefsson  <jas@extundo.com>
31433
31434         * gnulib-tool (Options): Make --symlink mean --symbolic.
31435
31436 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
31437
31438         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
31439
31440 2005-04-16  Simon Josefsson  <jas@extundo.com>
31441
31442         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
31443
31444 2005-04-15  Simon Josefsson  <jas@extundo.com>
31445
31446         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
31447
31448 2005-04-15  Simon Josefsson  <jas@extundo.com>
31449
31450         * gnulib-tool: Rename --symlink to --symbolic.
31451
31452 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
31453
31454         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
31455         symbolic links to files instead of copying/moving.  Add --aux-dir,
31456         specifying directory relative --dir where auxiliary build tools
31457         are placed.
31458
31459 2005-04-14  Bruno Haible  <bruno@clisp.org>
31460
31461         * modules/allocsa (License): Change to LGPL.
31462         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31463
31464 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31465
31466         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
31467         that "UTC +1 second" continues to work.  Problem reported
31468         by Dmitry V. Levin.
31469         (relunit_snumber): New rule.
31470         (relunit): Use it.
31471
31472 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31473
31474         * lib/getdate.y (universal_time_zone_table): New constant.
31475         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
31476         universal_time_zone_table.
31477         (lookup_zone): Prefer universal_time_zone_table to
31478         local_time_zone_table, so that "GMT" time stamps are allowed in
31479         London during the summer.  Problem reported by Ian Abbott.
31480
31481 2005-04-12  Jim Meyering  <jim@meyering.net>
31482
31483         * lib/human.c (humblock): Set *options even when returning due to
31484         xstrtoumax conversion failure.  Thanks to a used-uninitialized
31485         warning from gcc-4.
31486
31487 2005-04-09  Jim Meyering  <jim@meyering.net>
31488
31489         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
31490         -Wuninitialized: initialize tm0.tm_year.
31491
31492 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31493
31494         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
31495         count, since there's no maximum.  All uses changed.
31496         Add member dsts_seen.
31497         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
31498         not being INT_MAX.
31499         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
31500         Use pc_rels_seen to decide whther a date is absolute.
31501
31502         * lib/getdate.y (number): Don't overwrite year.
31503         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
31504         check.
31505
31506 2005-04-02  Simon Josefsson  <jas@extundo.com>
31507
31508         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
31509         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
31510
31511 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
31512
31513         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
31514         where no absolute path name can be longer than PATH_MAX.
31515
31516 2005-03-27  Jim Meyering  <jim@meyering.net>
31517
31518         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
31519
31520 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
31521
31522         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
31523         "one's complement" -> "ones' complement" in comment, as per Knuth.
31524         "value of type" -> "type or expression" in comment.
31525         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
31526
31527 2005-03-26  Jim Meyering  <jim@meyering.net>
31528
31529         Comment nits.
31530         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
31531         Correct typos: s/or/of/.
31532
31533 2005-03-26  Jim Meyering  <jim@meyering.net>
31534
31535         * modules/check-include-files: Move to ../ and rename to...
31536         * check-module: ...this.
31537
31538 2005-03-25  Jim Meyering  <jim@meyering.net>
31539
31540         * modules/xvasprintf (Files): Add xalloc.h.
31541
31542 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
31543
31544         * modules/gettext (Files): config/config.rpath ->
31545         build-aux/config.rpath
31546         * modules/iconv (Files): Likewise.
31547         Problem reported by Oskar Liljeblad.
31548
31549 2005-03-23  Jim Meyering  <jim@meyering.net>
31550
31551         * modules/check-include-files: New script to check for
31552         missing dependencies, multiple includes, etc.
31553
31554         * modules/c-strtold (Depends-on): Add xalloc.
31555         * modules/c-strtod (Depends-on): Add xalloc.
31556         * modules/hash (Depends-on): Add xalloc.
31557         (Files): Remove lib/xalloc.h.
31558
31559         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
31560         * modules/userspec (Files): Add lib/inttostr.h.
31561
31562 2005-03-23  Jim Meyering  <jim@meyering.net>
31563
31564         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
31565
31566 2005-03-22  Jim Meyering  <jim@meyering.net>
31567
31568         * modules/stat-macros: New module.
31569         * modules/canonicalize, modules/euidaccess, modules/file-type,
31570         * modules/filemode, modules/lchown, modules/makepath,
31571         * modules/rmdir, modules/stat: Depend on new stat-macros module
31572         rather than listing lib/stat-macros.h manually.
31573         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
31574
31575 2005-03-22  Jim Meyering  <jim@meyering.net>
31576
31577         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
31578
31579 2005-03-22  Bruno Haible  <bruno@clisp.org>
31580
31581         * config/srclist.txt: Replace target directory 'config' with
31582         'build-aux'.
31583         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
31584         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
31585         ../build-aux/.
31586
31587 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31588
31589         * modules/chdir-long (Depends-on): Add mempcpy.
31590
31591         * modules/acl, modules/backupfile, modules/c-strtod,
31592         modules/c-strtold, modules/canon-host, modules/canonicalize,
31593         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31594         modules/exclude, modules/exitfail, modules/file-type,
31595         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31596         modules/getdate, modules/getline, modules/getpagesize,
31597         modules/getpass, modules/getugroups, modules/group-member,
31598         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31599         modules/inttostr, modules/long-options, modules/makepath,
31600         modules/md5, modules/memcasecmp, modules/memcoll,
31601         modules/modechange, modules/mountlist, modules/path-concat,
31602         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31603         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31604         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31605         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31606         modules/strftime, modules/strndup, modules/strverscmp,
31607         modules/timespec, modules/unlocked-io, modules/userspec,
31608         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31609         modules/yesno:
31610         Remove lib_SOURCES line from Makefile.am section, as this is now
31611         done automatically by the corresponding Autoconf macro.
31612
31613 2005-03-21  Jim Meyering  <jim@meyering.net>
31614
31615         Changes imported from coreutils.
31616
31617         * lib/cycle-check.c: Don't include xalloc.h.
31618
31619         * lib/path-concat.c: Don't include assert.h.
31620         (path_concat): Remove assertion that would have triggered
31621         for ABASE starting with more than one slash.
31622         Reported by Andreas Schwab.
31623
31624         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31625         properly when ABASE is an absolute file name.
31626         Correct the description of this function.
31627         Include <assert.h>.
31628         Add an assertion and a test driver.
31629         This fixes a bug introduced on 2004-07-02.
31630         Andreas Schwab reported the resulting failure of cp --parents:
31631         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31632
31633 2005-03-21  Jim Meyering  <jim@meyering.net>
31634
31635         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31637
31638 2005-03-21  Jim Meyering  <jim@meyering.net>
31639         and  Paul Eggert  <eggert@cs.ucla.edu>
31640
31641         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31642         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31643         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31644         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31645         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31646         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31647         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31648         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31649         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31650         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31651         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31652         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31653         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31654         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31655         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31656         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31657         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31658         for these modules.
31659
31660 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31661
31662         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31663         (which shouldn't happen), generate nothing instead of returning 0
31664         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31665
31666 2005-03-16  Bruno Haible  <bruno@clisp.org>
31667
31668         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31669         HAVE_LONGLONG_64BIT.
31670
31671 2005-03-16  Bruno Haible  <bruno@clisp.org>
31672
31673         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31674         HAVE_LONGLONG_64BIT.
31675
31676 2005-03-16  Bruno Haible  <bruno@clisp.org>
31677
31678         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31679         HAVE_LONGLONG_64BIT.
31680
31681 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31682
31683         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31684         reliably distinguish strftime failure from empty output on POSIX
31685         hosts.
31686
31687 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31688
31689         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31690         (iconv_string): Don't guess a size-zero buffer, as that might cause
31691         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31692         result would be 'too large', where 'too large' is (heuristically)
31693         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31694         overflow concerns.  This will prevent some unwanted malloc failures
31695         when the inputs are very large.
31696
31697 2005-03-15  Karl Berry  <karl@gnu.org>
31698
31699         * config/srclist.txt (config.rpath): from gettext.
31700         * config/config.rpath: update.
31701
31702 2005-03-15  Bruno Haible  <bruno@clisp.org>
31703
31704         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31705         to 'negate'.
31706
31707         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31708         variable.
31709
31710         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31711         results.
31712
31713 2005-03-14  Simon Josefsson  <jas@extundo.com>
31714
31715         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31716         <fx@gnu.org>.
31717
31718 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31719
31720         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31721         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31722         intprops.h.
31723         * lib/strtol.c: Likewise.
31724
31725 2005-03-14  Jim Meyering  <jim@meyering.net>
31726
31727         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31728         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31729         to be nonzero so that we (and caller) can detect the difference
31730         between a valid zero-length expansion and an error return, even
31731         when the underlying strftime fails before writing anything into
31732         that location.
31733
31734 2005-03-14  Bruno Haible  <bruno@clisp.org>
31735
31736         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31737         Update from GNU gettext 0.14.3.
31738
31739 2005-03-10  Jim Meyering  <jim@meyering.net>
31740
31741         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31742
31743 2005-03-10  Jim Meyering  <jim@meyering.net>
31744
31745         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31746         so that this module works on systems without fchdir.
31747
31748 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31749
31750         Factor int-properties macros into a single file, except for
31751         glibc-related files.
31752         * lib/intprops.h: New file.
31753         * lib/getloadavg.c: Include it instead of limits.h.
31754         (INT_STRLEN_BOUND): Remove.
31755         * lib/human.c: Include intprops.h.
31756         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31757         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31758         302/1000.
31759         * lib/inttostr.h: Include intprops.h instead of limits.h.
31760         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31761         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31762         for consistency with intprops.h.
31763         (time_t_is_integer, twos_complement_arithmetic): Use them.
31764         * lib/sig2str.h: Include <signal.h>, intprops.h.
31765         (INT_STRLEN_BOUND): Remove.
31766         * lib/strftime.c (TYPE_SIGNED): Remove.
31767         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31768         * lib/strtol.c: Adjust comments to match intprops.h.
31769         * lib/userspec.c: Include intprops.h.
31770         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31771         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31772         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31773         instead of rolling our own expressions.
31774         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31775
31776         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31777         instead of int.
31778         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31779         the right thing even if adding 1900 would overflow.  Similarly
31780         for tm_mon + 1 and tm_yday + 1.
31781         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31782         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31783         (DO_SIGNED_NUMBER): New macro.
31784         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31785
31786 2005-03-07  Bruno Haible  <bruno@clisp.org>
31787
31788         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31789
31790 2005-03-07  Bruno Haible  <bruno@clisp.org>
31791
31792         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31793
31794 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31795
31796         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31797         (func_import): Only replace files via --import when they have actually
31798         changed.
31799
31800 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31801
31802         * m4/mmap-anon.m4: New file.
31803         * m4/pagealign_alloc.m4: New file.
31804
31805 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31806             Bruno Haible  <bruno@clisp.org>
31807
31808         * modules/pagealign_alloc: New file.
31809         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31810
31811 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31812             Bruno Haible  <bruno@clisp.org>
31813
31814         * lib/pagealign_alloc.h: New file.
31815         * lib/pagealign_alloc.c: New file.
31816
31817 2005-03-03  Bruno Haible  <bruno@clisp.org>
31818
31819         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31820         Use an all-permissive copyright notice, recommended by RMS.
31821
31822 2005-03-02  Bruno Haible  <bruno@clisp.org>
31823
31824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31825         of AIX, the replacement has to be done only after <string.h> is
31826         included, therefore not in config.h. stpncpy.h does the replacement,
31827         and stpncpy.c uses it.
31828
31829 2005-03-02  Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31832         stpncpy.c uses it.
31833
31834 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31835
31836         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31837         The workaround isn't strictly needed for POSIX conformance, and
31838         it's too much of a pain to configure and maintain.  We'll ask
31839         people to fix their kernels instead.
31840         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31841         (NANOSLEEP_BUG_WORKAROUND): Remove.
31842         (xnanosleep): Remove the workaround.
31843
31844 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31845
31846         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31847         Reported by Derek Price.
31848         (Include): Add "timespec.h".
31849
31850         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31851
31852 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31853
31854         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31855         to detect nanosleep bug.
31856
31857 2005-03-01  Bruno Haible  <bruno@clisp.org>
31858
31859         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31860
31861 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31862
31863         * modules/gethrxtime: New file.
31864         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31865         (Depends-on): Add gethrxtime.
31866         (configure.ac): Add gl_XNANOSLEEP.
31867         (Makefile.am): Remove lib_SOURCES line.
31868
31869 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31870
31871         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31872         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31873
31874 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31875
31876         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31877         * lib/timespec.h (gettime): Return void, since it always
31878         succeeds now.  All uses changed.
31879         * lib/gettime.c (gettime) Likewise.
31880         [HAVE_NANOTIME]: Prefer nanotime.
31881         Assume gettimeofday succeeds, as POSIX requires.
31882         Assime time () succeeds, since other code already does.
31883         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31884         (timespec_subtract): Remove.
31885         (NANOSLEEP_BUG_WORKAROUND): New constant.
31886         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31887         things considerably.  Use it only on GNU/Linux hosts, since the
31888         workaround shouldn't be needed elsewhere.
31889
31890 2005-02-24  Bruno Haible  <bruno@clisp.org>
31891
31892         * modules/gettext (Files): Add m4/glibc2.m4.
31893
31894 2005-02-24  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31897         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31898         * m4/progtest.m4:
31899         Update from GNU gettext 0.14.2.
31900         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31901
31902 2005-02-24  Bruno Haible  <bruno@clisp.org>
31903
31904         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31905         * lib/config.charset: Update from GNU gettext 0.14.2.
31906
31907 2005-02-24  Bruno Haible  <bruno@clisp.org>
31908
31909         * lib/gettext.h: Update from GNU gettext 0.14.2.
31910
31911 2005-02-23  Simon Josefsson  <jas@extundo.com>
31912
31913         * m4/iconvme.m4: New file.
31914
31915 2005-02-23  Jim Meyering  <jim@meyering.net>
31916
31917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31918         change.
31919         Thanks to Bruno Haible for catching it.
31920
31921 2005-02-22  Simon Josefsson  <jas@extundo.com>
31922
31923         * modules/iconvme: New file.
31924
31925         * MODULES.html.sh: Add iconvme.
31926
31927 2005-02-22  Simon Josefsson  <jas@extundo.com>
31928
31929         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31930
31931 2005-02-22  Simon Josefsson  <jas@extundo.com>
31932
31933         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31934
31935 2005-02-22  Jim Meyering  <jim@meyering.net>
31936
31937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31938         s/ifndef/ifdef/.
31939
31940 2005-02-20  Neil Conway  <neilc@samurai.com>
31941
31942         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31943         returned by OSX/Darwin if the specified buffer is not large
31944         enough for the hostname.
31945
31946 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31947
31948         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31949         pass it to _help, otherwise the latter coredumps trying to
31950         dereference state.root_argp.
31951
31952 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31953
31954         * modules/chdir-long (Depends-on): Add memrchr.
31955         * modules/memrchr (Files): Add lib/memrchr.h.
31956         (Include): "memrchr.h".
31957
31958 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31959
31960         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31961
31962 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31963
31964         * lib/memrchr.h: New file.
31965         * lib/chdir-long.c: Include it.
31966         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31967         Don't bother including stddef.h.
31968
31969 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31970
31971         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31972         inclusion.
31973         Include <sys/types.h>, for dev_t.
31974         (ME_DUMMY, ME_REMOTE): Move from here....
31975         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31976         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31977         Dmitry V. Levin.
31978         Include mountlist.h first, to test the interface.
31979
31980 2005-01-29  Bruno Haible  <bruno@clisp.org>
31981
31982         * lib/progname.c (program_name): Initialize.
31983         Needed when linking statically on MacOS X.
31984
31985 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31986
31987         Sync from coreutils.
31988         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31989         (Depends-on): Add c-strtod.
31990         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31991
31992 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31993
31994         Sync from coreutils.
31995         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31996
31997         Remove files that are specific to coreutils.
31998         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31999
32000 2005-01-28  Bruno Haible  <bruno@clisp.org>
32001
32002         * modules/javacomp: New file.
32003         * MODULES.html.sh (Java): Add javacomp.
32004
32005 2005-01-28  Bruno Haible  <bruno@clisp.org>
32006
32007         * m4/javacomp.m4: New file, from GNU gettext.
32008
32009 2005-01-28  Bruno Haible  <bruno@clisp.org>
32010
32011         * lib/javacomp.sh.in: New file, from GNU gettext.
32012         * lib/javacomp.h: New file, from GNU gettext.
32013         * lib/javacomp.c: New file, from GNU gettext.
32014
32015 2005-01-26  Simon Josefsson  <jas@extundo.com>
32016
32017         * lib/gai_strerror.c: Use GPL in header.
32018
32019 2005-01-26  Bruno Haible  <bruno@clisp.org>
32020
32021         * modules/javaexec: New file.
32022         * MODULES.html.sh (Java): Add javaexec.
32023
32024 2005-01-26  Bruno Haible  <bruno@clisp.org>
32025
32026         * m4/javaexec.m4: New file, from GNU gettext.
32027
32028 2005-01-26  Bruno Haible  <bruno@clisp.org>
32029
32030         * lib/javaexec.sh.in: New file, from GNU gettext.
32031         * lib/javaexec.h: New file, from GNU gettext.
32032         * lib/javaexec.c: New file, from GNU gettext.
32033
32034 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32035
32036         * modules/lchown (Depends-on): Remove lchown.h
32037
32038 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32039
32040         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
32041         must be defined if the header file was not found, in order
32042         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
32043
32044 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32045
32046         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
32047         initializers for struct pentry_state.
32048         (__argp_error): Check return value of __asprintf
32049         (__argp_failure): Translate error message
32050
32051         * lib/argp-parse.c: Removed braces around the expansion of N_()
32052
32053 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32054
32055         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
32056         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
32057         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
32058         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
32059         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
32060         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
32061         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
32062         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
32063         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
32064         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
32065         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
32066         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
32067         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
32068         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
32069         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
32070         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
32071         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
32072         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
32073         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
32074         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
32075         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
32076         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
32077         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
32078         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
32079         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
32080         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
32081         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
32082         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
32083         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
32084         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
32085         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
32086         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
32087         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
32088         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
32089         xstrtol.m4, xstrtoumax.m4, yesno.m4:
32090         Use an all-permissive copyright notice, recommended by RMS.
32091
32092 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32093
32094         * modules/chdir-long (Depends-on): Remove mempcpy.
32095
32096 2005-01-21  Jim Meyering  <jim@meyering.net>
32097
32098         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
32099         same value as for Solaris 9.
32100
32101         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
32102         component length.  This included changing the parameter to be
32103         of type `char *' rather than `char const *'.
32104         * lib/chdir-long.h (chdir_long): Update prototype.
32105
32106         * lib/openat.c (fdopendir, fstatat): New functions.
32107         * lib/openat.h: Include headers required for use of DIR and struct
32108         stat.
32109         [AT_SYMLINK_NOFOLLOW]: Define.
32110         (fdopendir, fstatat): Add prototypes.
32111
32112 2005-01-21  Bruno Haible  <bruno@clisp.org>
32113
32114         * modules/classpath: New file.
32115         * MODULES.html.sh (Java): Add classpath.
32116
32117 2005-01-21  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/classpath.h: New file, from GNU gettext.
32120         * lib/classpath.c: New file, from GNU gettext.
32121
32122 2005-01-20  Simon Josefsson  <jas@extundo.com>
32123
32124         * modules/version-etc-fsf: New file.
32125
32126 2005-01-20  Simon Josefsson  <jas@extundo.com>
32127
32128         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
32129         * lib/version-etc.c: Remove version_etc_copyright.
32130         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
32131         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
32132
32133 2005-01-20  Simon Josefsson  <jas@extundo.com>
32134
32135         * lib/base64.h (isbase64): Add.
32136
32137         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
32138         using a unsigned prototype, don't inline.
32139         (base64_decode): Use it.
32140
32141 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32142
32143         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
32144         it.
32145
32146 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32147
32148         * lib/save-cwd.c (save_cwd): Remove code to support the case
32149         where fchdir is missing or flaky.
32150
32151 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32152
32153         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
32154
32155 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
32156
32157         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
32158         AC_LIBSOURCES now does this.
32159         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
32160         with new ullong_max module.
32161
32162 2005-01-19  Bruno Haible  <bruno@clisp.org>
32163
32164         * modules/sh-quote: New file.
32165         * MODULES.html.sh (Executing programs): Add sh-quote.
32166
32167 2005-01-19  Bruno Haible  <bruno@clisp.org>
32168
32169         * lib/sh-quote.h: New file, from GNU gettext.
32170         * lib/sh-quote.c: New file, from GNU gettext.
32171
32172 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32173
32174         Merge from coreutils.
32175         * m4/ullong_max.m4: New file.
32176         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
32177         (gl_MACROS): Assume localeconv exists.
32178
32179 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32180
32181         Merge changes from coreutils, as described below in several
32182         changelogs dated today.
32183
32184         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
32185         (O_DIRECTORY): Remove; not needed here, since "." must be
32186         a directory.  All uses removed.
32187         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
32188         universal on Suns, and we also need to test for IRIX.
32189         Revamp code to use 'if' rather than '#if'.
32190         Avoid unnecessary comparison of cwd->desc to 0.
32191
32192         * lib/utimens.c (futimens): Robustify the previous patch, by checking
32193         for known valid error numbers rather than observed invalid ones.
32194
32195 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
32196
32197         * modules/ullong_max: New file.
32198
32199         * modules/chdir-long, modules/openat: New files.
32200         * modules/save-cwd (Depends-on): Depend on chdir-long.
32201         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
32202
32203 2005-01-18  Jim Meyering  <jim@meyering.net>
32204
32205         Merge from coreutils.
32206         * m4/chdir-long.m4, m4/openat.m4: New files.
32207         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
32208         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
32209         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
32210         is sane and DOES follow symlinks.  Besides, testing 20 different
32211         systems found no broken chown implementations.
32212         Prompted by a change in rsync's copy of this macro.
32213         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
32214
32215         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
32216
32217         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
32218         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
32219         NULL-means-set-to-current-time semantics.
32220         Remove temporary file immediately, rather than waiting
32221         for configure's at-exit trap code to do it.
32222
32223 2005-01-18  Jim Meyering  <jim@meyering.net>
32224
32225         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32226
32227         * lib/utimens.c (futimens): Account for the fact that futimes
32228         can also fail with errno == ENOSYS or errno == ENOENT.
32229         Patch from Dmitry V. Levin.
32230
32231         Change the name of the robust chdir function from chdir to chdir_long.
32232         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
32233         (restore_cwd): Use chdir_long, not chdir.
32234         * lib/chdir-long.c: Renamed from chdir.c.
32235         * lib/chdir-long.h: Renamed from chdir.h.
32236         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
32237         Hurd.
32238
32239 2005-01-18  Bruno Haible  <bruno@clisp.org>
32240
32241         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
32242         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
32243         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
32244         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
32245         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
32246         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
32247         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
32248         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
32249         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
32250         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
32251         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
32252         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
32253         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
32254         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
32255         Use an all-permissive copyright notice, recommended by RMS.
32256
32257 2005-01-18  Bob Proulx  <bob@proulx.com>
32258
32259         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
32260         simplify offsetof() macro construct to avoid compile failure with
32261         native HP-UX 11.0 ANSI C compiler.
32262
32263 2005-01-17  Bruno Haible  <bruno@clisp.org>
32264
32265         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
32266         redundant because stpncpy.m4 takes care of it.
32267
32268 2005-01-17  Bruno Haible  <bruno@clisp.org>
32269
32270         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
32271
32272 2005-01-17  Bruno Haible  <bruno@clisp.org>
32273
32274         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
32275         used.
32276
32277 2005-01-17  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/fwriteerror.h (fwriteerror): Change specification to include
32280         fclose.
32281         * lib/fwriteerror.c: Include <stdbool.h>.
32282         (fwriteerror): At the end, close the file stream. Record whether
32283         stdout was already closed.
32284
32285 2005-01-17  Bruno Haible  <bruno@clisp.org>
32286
32287         * lib/execute.c (environ): Declare if needed.
32288         * lib/pipe.c (environ): Likewise.
32289         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
32290
32291 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32292
32293         * modules/argp: Depend on vsnprintf
32294
32295 2005-01-10  Jim Meyering  <jim@meyering.net>
32296
32297         * modules/closeout (Depends-on): Add atexit.
32298
32299 2005-01-06  Bruno Haible  <bruno@clisp.org>
32300
32301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
32302
32303 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32304
32305         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
32306         definitions to be after all include files, to avoid collisions.
32307         Problem reported by Bob Proulx.
32308
32309 2005-01-04  Jim Meyering  <jim@meyering.net>
32310
32311         Changes imported from coreutils.
32312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
32313         as the mkstemp template, use a temporary directory and an
32314         8.3-friendly template to avoid trouble on systems like DJGPP.
32315         Reported by Juan M. Guerrero via Stepan Kasal.
32316         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
32317         close. Remove the temporary directory right away, rather than waiting
32318         for configure's at-exit trap code to do it.
32319         Suggestion from Stepan Kasal.
32320
32321 2005-01-01  Simon Josefsson  <jas@extundo.com>
32322
32323         * gnulib-tool: Print #include directives when --import'ing.
32324
32325 2004-12-28  Simon Josefsson  <jas@extundo.com>
32326
32327         * tests/test-base64.c: Include required header files.  Remove
32328         unused variables.
32329
32330 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32331
32332         * modules/error (Depends-on): Remove gettext.
32333
32334 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32335
32336         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32337         not needed.  This removes a dependency on the gettext module.
32338         [defined _LIBC]: Do not include <libintl.h>; not needed.
32339
32340 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32341
32342         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32343         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32344
32345 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32346
32347         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
32348         HAVE_DECL_STRTOLD.
32349
32350 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32351
32352         * modules/getdate (Depends-on): Remove alloca-opt.
32353
32354 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32355
32356         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
32357
32358 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32359
32360         * lib/argp-parse.c: Include <stddef.h>.
32361         (alignof, alignto): New macros.
32362         (parser_init): Don't assume that void * is aligned sufficiently
32363         for struct option.
32364
32365         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
32366         need to extend the stack.
32367         (YYINITDEPTH): New macro, so that the initial stack isn't overly
32368         large.
32369
32370 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32371
32372         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
32373
32374 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32375
32376         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
32377         (2004-10-24) change.  Apparently this was a false alarm.
32378
32379         * modules/getdate: Depend on alloca-opt, not alloca.
32380
32381 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32382
32383         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
32384         Remove now-obsolete comment about AIX.
32385         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
32386         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
32387         (YYMAXDEPTH): New macro.
32388
32389 2004-12-18  Simon Josefsson  <jas@extundo.com>
32390
32391         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
32392
32393 2004-12-18  Bruno Haible  <bruno@clisp.org>
32394
32395         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
32396
32397 2004-12-18  Bruno Haible  <bruno@clisp.org>
32398
32399         * lib/fatal-signal.c (fatal_signals): Make non-const.
32400         (init_fatal_signals): New function.
32401         (uninstall_handlers, install_handlers): Ignore signals that were set to
32402         SIG_IGN.
32403         (at_fatal_signal): Call init_fatal_signals.
32404         (init_fatal_signal_set): Likewise. Ignore signals that were set to
32405         SIG_IGN.
32406         Reported by Paul Eggert.
32407
32408 2004-12-18  Bruno Haible  <bruno@clisp.org>
32409
32410         * doc/alloca.texi: New file.
32411         * doc/alloca-opt.texi: New file.
32412
32413 2004-12-17  Jim Meyering  <jim@meyering.net>
32414
32415         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
32416         Otherwise, install-sh could exit with improper exit status when
32417         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
32418
32419 2004-12-16  Simon Josefsson  <jas@extundo.com>
32420
32421         * tests/test-base64.c: Add license.
32422
32423 2004-12-15  Stepan Kasal  <address@hidden>
32424
32425         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32426
32427 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32428
32429         * modules/getcwd (Files): Add m4/d-ino.m4.
32430         Suggested by Mark D. Baushke.
32431
32432 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32433
32434         * lib/getdate.y (textint): New member "negative".
32435         (time_zone_hhmm): New function.
32436         Expect 14 shift-reduce conflicts, not 13.
32437         (o_colon_minutes): New rule.
32438         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
32439         (yylex): Set the "negative" member of signed numbers.
32440
32441 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32442
32443         * doc/getdate.texi (Time of day items, Time zone items):
32444         Describe new formats +00:00, UTC+00:00.
32445
32446 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32447
32448         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
32449         spurious "-l"s.  Problem reported by Stepan Kasal.
32450
32451 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
32452
32453         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
32454         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
32455
32456 2004-12-04  Simon Josefsson  <jas@extundo.com>
32457
32458         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
32459         Vandoorselaere <yoann@prelude-ids.org>.
32460
32461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32462
32463         Changes imported from coreutils.
32464         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
32465         exist.
32466         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
32467
32468 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32469
32470         Changes imported from coreutils.
32471         * lib/hard-locale.c: Assume <locale.h> exists.
32472         Include "strdup.h".
32473         (GLIBC_VERSION): New macro.
32474         (hard_locale): Assume setlocale exists.
32475         Rewrite to avoid #ifdef.
32476         Use strdup rather than malloc + strcpy.
32477         * lib/human.c: Assume <locale.h> exists.
32478         (human_readable): Assume localeconv exists.
32479
32480 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32481
32482         * modules/hard-locale (Depends-on): Add strdup.
32483
32484 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32485
32486         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
32487         convert T2, not T.  (Imported from libc.)
32488
32489 2004-11-30  Simon Josefsson  <jas@extundo.com>
32490
32491         * modules/restrict (License): Change to LGPL.
32492
32493 2004-11-30  Simon Josefsson  <jas@extundo.com>
32494
32495         * m4/restrict.m4: Add copyright and copying conditions.
32496
32497 2004-11-30  Simon Josefsson  <jas@extundo.com>
32498
32499         * m4/base64.m4: New file.
32500
32501 2004-11-30  Simon Josefsson  <jas@extundo.com>
32502
32503         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
32504         base64.
32505
32506         * tests/test-base64.c: New file.
32507
32508         * modules/base64: New file.
32509
32510 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32511
32512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32513         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
32514
32515         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
32516
32517 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32518
32519         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
32520         (__getcwd.c): Don't restore errno; glibc doesn't.
32521         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
32522         first, falling back to our code only if its results look suspicious.
32523         Ensure that the resulting buffer is only as large as necessary.
32524
32525         * lib/readutmp.c: Include readutmp.h first.
32526         Include <errno.h>, since readutmp.h no longer does that.
32527         * lib/readutmp.h: Don't include <errno.h>,
32528         <sys/param.h>, <time.h>; not needed to establish interface.
32529         (errno): Remove decl.
32530         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
32531         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
32532         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
32533
32534 2004-11-28  Simon Josefsson  <jas@extundo.com>
32535
32536         * lib/base64.h, base64.c: New file.
32537
32538 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
32541
32542 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32543
32544         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
32545         (Depends-on): Remove pathmax, same.  Add mempcpy.
32546         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
32547         (Makefile.am): Append getcwd.h to lib_SOURCES.
32548         (Include): Add getcwd.h.
32549         (Maintainer): Change from Jim Meyering to "all, glibc",
32550         since getdate now uses intended-for-glibc code.
32551         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
32552         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
32553
32554 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32555
32556         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
32557         HP's ANSI C compiler.
32558         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
32559         Declaring int functions causes warnings on some modern systems and
32560         shouldn't be needed to compile on ancient ones.
32561         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
32562         defined.
32563
32564         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
32565         with the following changes.
32566         (__set_errno): Parenthesize properly.
32567         Include <stdbool.h>.
32568         (MIN, MAX, MATCHING_INO): New macros.
32569         (__getcwd): Define with prototype, not K&R form.
32570         Use heuristics to allocate default buffer on stack if possible.
32571         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
32572         behavior, and to avoid the PATH_MAX limit when computing
32573         ../../../../...
32574         Use MATCHING_INO to compare inode number to file.
32575         Check for arithmetic overflow in size calculations.
32576         Fix bug in reallocation of dot array that caused getcwd to fail
32577         on directories nested deeper than 75.
32578         Be more careful about saving errno on error.
32579         Do not use realloc; use only free+malloc, as this is a bit
32580         more flexible and avoids a needless copy operation.
32581         Do not inspect st_dev and st_ino for symbolic links; POSIX
32582         doesn't specify the latter.
32583         Check for closedir errors.
32584         Avoid needless casts.
32585         Use "#ifdef weak_alias" around weak_alias, to be like other
32586         glibc code.
32587         The following changes to getcwd.c have effect only when used in
32588         gnulib; they have no effect inside glibc proper.
32589         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
32590         as alloca isn't used.
32591         (alloca, __alloca): Likewise.
32592         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32593         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32594         unconditionally, as gnulib assumes C89 or better.
32595         Do not include <sys/param.h>.
32596         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32597         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32598         better.
32599         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32600         Include <dirent.h> in a way that is compatible with modern Autoconf.
32601         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32602         New macros, if not already defined.
32603         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32604         Use "_LIBC", not "defined _LIBC", for consistency.
32605         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32606         a mempcpy module.
32607         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32608         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32609         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32610         credit only to Jim Meyering and adjust the copyright dates.
32611         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32612         <stdlib.h>, <unistd.h>, "pathmax.h".
32613         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32614         (INITIAL_BUFFER_SIZE): Remove.
32615         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32616
32617 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32618
32619         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32620         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32621         Use the _ONCE methods, for efficiency.
32622         Check for fcntl.h.  In test program, include <errno.h>
32623         and <fcntl.h> if available.  Remove old K&R cruft from
32624         test program.  Check for common errors in GNU/Linux,
32625         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32626         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32627         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32628         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32629         name accordingly.
32630         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32631         accommodate new getcwd.c.
32632         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32633         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32634         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32635         that's all we need now.
32636
32637 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32638
32639         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32640         argp-parse.c depends on getopt internals, that means we should
32641         always use our getopt, to be on the safe side.
32642         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32643         order not to spoil the result of an eventual previous invocation
32644         of gl_GETOPT_SUBSTITUTE.
32645
32646 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32647
32648         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32649         redefinition warnings. To avoid them, include the defines
32650         in `#if !defined __need_getopt ... #endif'. The only place
32651         where __getopt_argv_const is used is in definitions
32652         of getopt_long and getopt_long_only below, which are as well
32653         protected by `#ifndef __need_getopt'.
32654         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32655         __need_getopt after including <stdio.h> and <unistd.h> These
32656         headers might have defined it.
32657
32658 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32659
32660         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32661
32662 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32663
32664         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32665         (futimens): New function, which uses futimes if available.
32666         (futimens, utimens): Support timespec==NULL, with same semantics
32667         as utime and utimens.
32668         * lib/utimens.h (futimens): New decl.
32669
32670 2004-11-23  Jim Meyering  <jim@meyering.net>
32671
32672         * lib/getopt_.h: Remove trailing blanks.
32673
32674 2004-11-23  Jim Meyering  <jim@meyering.net>
32675
32676         * lib/__fpending.c: Add comment.
32677
32678 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32679
32680         * modules/canonicalize (Depends-on): Add xreadlink.
32681         Problem reported by James Youngman.
32682
32683 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32686         New macros.
32687         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32688         optopt): Use them instead of invoking ## directly; otherwise, the
32689         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32690
32691 2004-11-19  Bruno Haible  <bruno@clisp.org>
32692
32693         * lib/strtok_r.c: Move comments from here...
32694         * lib/strtok_r.h: ... to here.
32695
32696 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32697
32698         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32699         implementations that mishandle size_t overflow.
32700
32701 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32702
32703         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32704         might fail.  Problem reported by Yoann Vandoorselaere.
32705         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32706         implementations that mishandle size_t overflow.
32707
32708 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32709
32710         * modules/canon-host (Depends-on): Add strdup.
32711
32712 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32713
32714         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32715
32716 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32717
32718         * lib/canon-host.c: Include "strdup.h".
32719         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32720         Use strdup instead of malloc/strcpy to duplicate strings.
32721
32722         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32723         (human_space_before_unit): New constant.
32724         * lib/human.c (human_readable): Support it.
32725
32726         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32727         (xgetcwd): Set errno correctly when failing.
32728         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32729         the failure is actually due to a PATH_MAX problem.
32730
32731         Further getopt changes to make it more likely that glibc will
32732         buy the changes back.
32733         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32734         (getopt): Use it, so to preserve glibc semantic
32735         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32736         when compiling for libc.
32737         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32738         (getopt_long, getopt_long_only): Use it.
32739
32740         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32741         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32742         (getopt): Argv is now char * const *, as per standard.
32743         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32744         not char *__getopt_argv_const *.
32745         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32746         _getopt_long_only_r): Likewise.
32747         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32748         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32749         _getopt_long_r, _getopt_long_only_r): Likewise.
32750         * lib/getopt_.h (__getopt_argv_const): Remove.
32751         (getopt): Argv is now char * const *, as per standard.
32752
32753         * lib/getdate.y (tORDINAL): New token.
32754         (day, relunit): Allow it for relative times.
32755         (relative_time_table): Use tORDINAL for ordinals.
32756
32757 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32758
32759         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32760         Document that "second" isn't allowed as an ordinal number.
32761
32762 2004-11-16  Jim Meyering  <jim@meyering.net>
32763
32764         * modules/closeout (Depends-on): Add fpending.
32765
32766 2004-11-15  Jim Meyering  <jim@meyering.net>
32767
32768         * lib/closeout.c: Include "__fpending.h" once again.
32769         Include <stdbool.h>.
32770         (close_stdout): Don't fail just because stdout was closed initially,
32771         since some programs don't write to stdout in the normal course of
32772         operation (other than --version and --help), and we don't want this
32773         function to make e.g. `touch file >&-' fail.
32774         But do fail if it was closed and someone has tried to write to it.
32775         E.g., `printf foo >&-' must fail.
32776
32777 2004-11-13  Jim Meyering  <jim@meyering.net>
32778
32779         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32780
32781 2004-11-12  Simon Josefsson  <jas@extundo.com>
32782
32783         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32784         small doc fix is still pending.
32785
32786 2004-11-11  Simon Josefsson  <jas@extundo.com>
32787
32788         * modules/strtok_r: New file.
32789
32790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32791         strtok_r.
32792
32793 2004-11-11  Simon Josefsson  <jas@extundo.com>
32794
32795         * m4/strtok_r.m4: New file.
32796
32797         * m4/getopt.m4: Replace opterr.
32798
32799 2004-11-11  Simon Josefsson  <jas@extundo.com>
32800
32801         * lib/strtok_r.h, strtok_r.c: New file.
32802
32803 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32806         of replacing opterr, getopt, etc.  This should handle the
32807         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32808
32809 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32810
32811         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32812         we can stop lying to compilers about the constness of argv when we
32813         are compiled outside glibc.
32814         (getopt, getopt_long, getopt_long_only): Use it.
32815         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32816         _getopt_internal, getopt): Likewise.
32817         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32818         _getopt_long_only_r): Likewise.
32819         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32820         _getopt_long_r, _getopt_long_only_r): Likewise.
32821
32822         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32823         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32824         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32825         the other external symbols.
32826         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32827         declaration, since the above renaming now works around collisions.
32828
32829 2004-11-11  Jim Meyering  <jim@meyering.net>
32830
32831         * lib/linebreak.c: Remove trailing blanks.
32832         * lib/alloca_.h: Likewise.
32833         * lib/acosl.c: Likewise.
32834         * lib/euidaccess.c: Likewise.
32835         * lib/allocsa.h: Likewise.
32836
32837 2004-11-10  Simon Josefsson  <jas@extundo.com>
32838
32839         * m4/getaddrinfo.m4: New file.
32840
32841 2004-11-10  Simon Josefsson  <jas@extundo.com>
32842
32843         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32844
32845 2004-11-10  Simon Josefsson  <jas@extundo.com>
32846
32847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32848         getaddrinfo.
32849
32850         * modules/getaddrinfo: New file.
32851
32852 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32853
32854         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32855
32856 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32857
32858         * lib/mktime.c (SHR): New macro, which is a portable
32859         substitute for >> that should work even on Crays.
32860         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32861         Problem reported by Mark D. Baushke in
32862         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32863         * lib/getdate.y (SHR): Likewise.
32864         (tm_diff): Use it.
32865         * lib/strftime.c (SHR): Likewise.
32866         (tm_diff): Use it.
32867         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32868         quote_these_too, so that right shifts are well defined.  All uses
32869         changed.
32870
32871 2004-11-10  Jim Meyering  <jim@meyering.net>
32872
32873         Ensure that no close failure goes unreported.
32874         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32875         return early when it seems there's nothing to flush.
32876         Don't include __fpending.h.
32877
32878 2004-11-10  Jim Meyering  <jim@meyering.net>
32879
32880         * modules/closeout (Depends-on): Remove fpending.
32881
32882 2004-11-10  Jim Meyering  <jim@meyering.net>
32883
32884         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32885
32886 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32887
32888         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32889         gl_FUNC_STRFTIME.
32890         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32891         and AC_REQUIRE when possible, to avoid duplicate checks.
32892         Check for <wchar.h>.
32893
32894 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32895
32896         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32897
32898 2004-11-09  Bruno Haible  <bruno@clisp.org>
32899
32900         * m4/sockpfaf.m4: New file.
32901
32902 2004-11-05  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32905         Reported by Mark D. Baushke <mdb@cvshome.org>.
32906
32907 2004-11-04  Bruno Haible  <bruno@clisp.org>
32908
32909         2004-09-11  Bruno Haible  <bruno@clisp.org>
32910                 * allocsa.valgrind: New file.
32911         2004-02-06  Bruno Haible  <bruno@clisp.org>
32912                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32913                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32914                 Reported by Christopher Seip <chris.seip@hp.com>.
32915
32916 2004-11-04  Bruno Haible  <bruno@clisp.org>
32917
32918         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32919         (Makefile.am): Distribute it.
32920
32921 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32922
32923         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32924         with errno == ERANGE if the buffer is too small.
32925         Problem reported by Mark D. Baushke.
32926
32927 2004-11-03  Albert Chin  <china@thewrittenword.com>
32928             Paul Eggert  <eggert@cs.ucla.edu>
32929
32930         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32931         equivalent, substitute $ac_type for equivalent type rather than
32932         blindly using uint32_t *always* which won't work if uint32_t is not
32933         available.  Define _UINT32_T to work around typedef of uint32_t if
32934         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32935         2.5.1.
32936
32937 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32938
32939         * m4/jm-macros.m4: Sync from coreutils.
32940         (gl_MACROS): Check for mbrlen, for pathchk.
32941         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32942
32943 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32944
32945         * lib/xreadlink.c (MAXSIZE): New macro.
32946         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32947         size does not exceed MAXSIZE.  Avoid cast.
32948         As suggested by Mark D. Baushke in
32949         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32950         if readlink fails with buffer size just under MAXSIZE, try again
32951         with MAXSIZE.
32952
32953 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32954
32955         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32956
32957 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32958         and  Paul Eggert  <eggert@cs.ucla.edu>
32959
32960         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32961         (get_date): Overparenthesize to avoid GCC warning.
32962
32963 2004-11-02  Bruno Haible  <bruno@clisp.org>
32964
32965         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32966         returns void.
32967
32968 2004-11-02  Bruno Haible  <bruno@clisp.org>
32969
32970         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32971         function returns void.
32972
32973 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32974
32975         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32976         fflush_unlocked, flockfile, funlockfile, funlockfile,
32977         fputs_unlocked, putc_unlocked.
32978
32979 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32980
32981         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32982         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32983         already declared.
32984
32985 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32986
32987         * modules/getdate (Files): Add doc/getdate.texi.
32988         (Depends-on): Add setenv, xalloc.
32989
32990 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32991
32992         * lib/getdate.y: Add support for TZ="foo" within a date string.
32993         Fix some bugs near time_t boundaries.  Reject dates with
32994         out-of-range components, e.g., "Sept 31".
32995         Include <stdlib.h>, "setenv.h", "xalloc.h".
32996         (ISDIGIT_LOCALE): Remove; unused.
32997         Note that the TZ and time functions used here are not reentrant.
32998         (mktime_ok, get_tz): New functions.
32999         (TZBUFSIZE): New constant.
33000         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
33001         This requires that we sometimes generate our own TZ="XXX..." setting.
33002
33003 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
33004
33005         * doc/getdate.texi: New file, from coreutils with modifications for
33006         the new TZ parsing.
33007
33008 2004-10-27  Derek R. Price  <derek@ximbiot.com>
33009
33010         * lib/mktime.c (not_equal_tm): Remove redundant check.
33011
33012 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33013
33014         * modules/regex (lib_SOURCES): Add regex.c.
33015         Reported by James Youngman in
33016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
33017
33018 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33019
33020         * lib/getdate.y: Use Bison 1.875 features, and some minor
33021         code cleanups.  This change does not affect semantics.
33022         Don't include <stdlib.h>; no longer needed.
33023         Don't include unlocked-io.h; only the "#if TEST" code uses
33024         stdio, and performance isn't crucial there.
33025         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
33026         Bison 1.875 features as described below.
33027         All uses of "PC." replaced by "pc->".
33028         (YYSTYPE): Add a forward declaration.
33029         (yylex, yyerror): Use full prototypes in forward decls.
33030         Use "%pure-parser" rather than obsolescent "%pure_parser".
33031         Use %parse-param and %lex-param instead of obsolescent
33032         YYPARSE_PARAM and YYLEX_PARAM.
33033         (meridian_table, month_and_day_table, time_units_table,
33034         relative_time_table, time_zone_table, military_table,
33035         lookup_zone, lookup_word, get_date):
33036         Use NULL instead of 0 where appropriate.
33037         (to_hour): Avoid abort (), to avoid a dependency on
33038         stdlib.h.
33039         (yyerror, yylex): Now accepts parser_control * arg.
33040         (main) [TEST]: Use '\0' rather than 0 for char.
33041
33042 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33043
33044         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
33045
33046 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33047
33048         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
33049         It's now the caller's responsibility to handle the case where
33050         !HAVE_GETPAGESIZE && !defined getpagesize.
33051
33052         * lib/mktime.c (leapyear): Arg is long int, not int.
33053
33054 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
33055
33056         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
33057
33058 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33059
33060         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
33061         missing.  Problem reported by James Youngman.
33062
33063 2004-10-16  Simon Josefsson  <jas@extundo.com>
33064
33065         * gnulib-tool: Fix comments.  Fix parse problem.
33066         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
33067
33068 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33069
33070         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
33071         implementation of getopt_long.  Problem reported by Alexander Taler in:
33072         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
33073
33074 2004-10-15  Bruno Haible  <bruno@clisp.org>
33075
33076         * gnulib-tool: Untabify. Initialize supplied_libname.
33077         (func_usage): More homogenous output.
33078         (func_modules_transitive_closure, func_modules_to_filelist,
33079         func_emit_lib_Makefile_am): New functions.
33080         (func_import): New function, extracted from big case statement. Use
33081         func_get_license, func_modules_transitive_closure,
33082         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
33083         opt_lgpl. Don't use test -a, as it's not portable.
33084         (func_create_testdir): Use func_modules_transitive_closure,
33085         func_modules_to_filelist, func_emit_lib_Makefile_am.
33086
33087 2004-10-15  Bruno Haible  <bruno@clisp.org>
33088
33089         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
33090
33091 2004-10-15  Bruno Haible  <bruno@clisp.org>
33092
33093         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
33094         the portions belonging to each module.
33095         Suggested by Derek Robert Price <derek@ximbiot.com>.
33096
33097 2004-10-12  Simon Josefsson  <jas@extundo.com>
33098
33099         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
33100         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
33101         to real functions.
33102
33103 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33104
33105         * modules/vsnprintf: New file.
33106
33107 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33108
33109         * m4/vsnprintf.m4: New file.
33110
33111 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33112
33113         * lib/vsnprintf.h: New file.
33114         * lib/vsnprintf.c: New file.
33115
33116 2004-10-11  Bruno Haible  <bruno@clisp.org>
33117
33118         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
33119         vsnprintf.
33120
33121 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
33124
33125 2004-10-07  Bruno Haible  <bruno@clisp.org>
33126
33127         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
33128         fits into the provided buffer.
33129
33130 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33131
33132         * lib/diacrit.c, diacrit.h: Add GPL notice.
33133
33134         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
33135         notice.
33136         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
33137         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
33138         This avoids a potential constant-folding bug.
33139
33140 2004-10-05  Bruno Haible  <bruno@clisp.org>
33141
33142         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
33143         for the declaration of strsep.
33144
33145 2004-10-05  Bruno Haible  <bruno@clisp.org>
33146
33147         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
33148
33149 2004-10-04  Simon Josefsson  <jas@extundo.com>
33150
33151         * modules/memmem: New file.
33152         * tests/test-memmem.c: New file.
33153         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
33154
33155 2004-10-04  Simon Josefsson  <jas@extundo.com>
33156
33157         * m4/memmem.m4: New file.
33158
33159 2004-10-04  Simon Josefsson  <jas@extundo.com>
33160
33161         * lib/memmem.h: New file.
33162         * lib/memmem.c: New file, taken from glibc.
33163
33164 2004-10-04  Simon Josefsson  <jas@extundo.com>
33165
33166         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
33167         '#ifdef USE_UNLOCKED_IO'.
33168
33169 2004-10-04  Simon Josefsson  <jas@extundo.com>
33170
33171         * config/srclist.txt: Add memmem from glibc.
33172
33173 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33174
33175         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
33176
33177         * modules/argmatch, modules/argp, modules/closeout, modules/error,
33178         modules/exclude, modules/getdate, modules/getline,
33179         modules/getndelim2, modules/getpass, modules/getpass-gnu,
33180         modules/getusershell, modules/linebuffer, modules/md5,
33181         modules/mountlist, modules/posixtm, modules/readtokens,
33182         modules/readutmp, modules/regex, modules/sha1,
33183         modules/version-etc, modules/yesno:
33184         Remove dependency on unlocked-io.
33185
33186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33187
33188         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
33189
33190         * m4/unlocked-io.m4: Add copyright notice.
33191         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
33192
33193 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33194
33195         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
33196         * lib/xmalloc.c (xmemdup): Likewise.
33197         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
33198         XFREE): Remove these long-obsolescent macros.
33199         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
33200         * lib/xstrdup.c: Remove.
33201
33202         * lib/regex.c (re_comp): Cast gettext return value to char *,
33203         Problem reported by Martin Neitzel via Mark D. Baushke.
33204
33205 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33206
33207         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
33208         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
33209         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
33210         regex.c, sha1.c, version-etc.c, yesno.c:
33211         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
33212         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
33213         the includer's responsibility.
33214
33215         Sync from coreutils.
33216
33217         * lib/modechange.c (mode_compile): Don't decrement a pointer that
33218         points to the start of a string, as the C Standard says the
33219         resulting behavior is undefined.
33220
33221         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
33222         simple -> simple_backups, numbered_existing ->
33223         numbered_existing_backups, numbered -> numbered_backups
33224         to avoid shadowing problems.  All uses changed.
33225         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
33226         * lib/backupfile.c (check_extension, numbered_backup):
33227         Rename locals to avoid shadowing 'basename'.
33228         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
33229         once.
33230
33231         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
33232         * lib/.cvsignore: Add getopt.h.
33233
33234 2004-10-04  Bruno Haible  <bruno@clisp.org>
33235
33236         * modules/README: New file.
33237         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
33238         not a module.
33239
33240 2004-10-02  Jim Meyering  <jim@meyering.net>
33241
33242         * lib/dirfd.h, getpagesize.h: Add copyright notice.
33243
33244 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33245
33246         * modules/strsep: New file.
33247
33248 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33249
33250         * m4/strsep.m4: New file.
33251
33252 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33253
33254         * lib/strsep.h: New file.
33255         * lib/strsep.c: New file.
33256
33257 2004-10-01  Simon Josefsson  <jas@extundo.com>
33258
33259         * lib/snprintf.c (snprintf): Handle size==0.
33260
33261 2004-10-01  Simon Josefsson  <jas@extundo.com>
33262             Bruno Haible  <bruno@clisp.org>
33263
33264         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
33265         (snprintf): Declare 'args'.
33266
33267 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
33268
33269         * lib/snprintf.c: Remove comments as to why each header is needed.
33270
33271 2004-10-01  Bruno Haible  <bruno@clisp.org>
33272
33273         * MODULES.html.sh: Add strsep.
33274
33275 2004-09-30  Simon Josefsson  <jas@extundo.com>
33276
33277         * modules/snprintf: New file.
33278
33279 2004-09-30  Simon Josefsson  <jas@extundo.com>
33280
33281         * m4/snprintf.m4: New file.
33282
33283 2004-09-30  Simon Josefsson  <jas@extundo.com>
33284
33285         * lib/snprintf.h, lib/snprintf.c: New files.
33286
33287 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33288
33289         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
33290         (hol_entry_help): Never translate an empty string.
33291         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
33292         * lib/argp.h (OPTION_NO_TRANS): New option.
33293
33294 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33295
33296         * modules/argp (Maintainer): Replace Simon Josefsson
33297         by Sergey Poznyakoff.
33298
33299 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33300
33301         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
33302         changes merged back into glibc.
33303
33304 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33305
33306         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
33307
33308 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
33309
33310         * lib/xvasprintf.c: Include xalloc.h.
33311         (xvasprintf): Use xalloc_die, not xmalloc_die.
33312
33313 2004-09-29  Bruno Haible  <bruno@clisp.org>
33314
33315         * modules/alloca-opt: New file, derived from modules/alloca.
33316         * modules/allocsa: Depend on alloca-opt instead of alloca.
33317         * modules/setenv: Likewise.
33318         * modules/vasnprintf: Likewise.
33319         * MODULES.html.sh: Add alloca-opt.
33320
33321 2004-09-28  Simon Josefsson  <jas@extundo.com>
33322
33323         * gnulib-tool: New parameter --lgpl, to asseert that modules are
33324         LGPL, and to replace license template from GPL to LGPL.
33325
33326 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33327
33328         * modules/dummy: Change license to LGPL.
33329
33330 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33331
33332         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33333
33334 2004-09-24  Simon Josefsson  <jas@extundo.com>
33335
33336         * modules/minmax (License): Change from GPL to LGPL.
33337
33338 2004-09-23  Simon Josefsson  <jas@extundo.com>
33339
33340         * gnulib-tool (--import): Typo.
33341
33342 2004-09-23  Simon Josefsson  <jas@extundo.com>
33343
33344         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33345
33346 2004-09-22  Bruno Haible  <bruno@clisp.org>
33347
33348         * modules/*: Add 'License' field.
33349         * gnulib-tool: Accept --extract-license option.
33350         (func_get_license): New function.
33351
33352 2004-09-21  Bruno Haible  <bruno@clisp.org>
33353
33354         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33355         Reported by Simon Josefsson.
33356
33357 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33358
33359         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
33360         gl_AC_TYPE_LONG_LONG.
33361
33362 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33363
33364         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
33365
33366 2004-09-18  Simon Josefsson  <jas@extundo.com>
33367         and  Paul Eggert  <eggert@cs.ucla.edu>
33368
33369         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
33370         calls with autoreconf.  Define GL_LIB.
33371
33372 2004-09-14  Karl Berry  <karl@gnu.org>
33373
33374         * config/srclist.txt: unsync setenv.c, sigh.
33375
33376 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33377
33378         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
33379         Problem reported by Bruno Haible in:
33380         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
33381
33382 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33383
33384         * config/srclist.txt: Comment out argp-pvh.c.
33385
33386 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
33387
33388         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
33389         in case some system header has #define'd it.  Problem reported by
33390         Soeren D. Schulze in
33391         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
33392
33393 2004-09-09  Karl Berry  <karl@gnu.org>
33394
33395         * regex.[ch]: delete from the root.  These were supposed to be
33396                 synced with emacs cvs, but this has not happened for about
33397                 a year, and anyway nothing else uses emacs regex.[ch].
33398                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
33399                 lib/regex[.ch] is untouched.
33400
33401 2004-09-09  Bruno Haible  <bruno@clisp.org>
33402
33403         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
33404
33405 2004-09-09  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
33408         modifications.
33409         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
33410
33411 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33412
33413         * modules/xvasprintf: New file.
33414         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
33415
33416 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33417
33418         * lib/xvasprintf.h: New file.
33419         * lib/xvasprintf.c: New file.
33420         * lib/xasprintf.c: New file.
33421
33422 2004-09-08  Bruno Haible  <bruno@clisp.org>
33423
33424         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33425
33426 2004-09-08  Bruno Haible  <bruno@clisp.org>
33427
33428         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
33429         length is > INT_MAX.
33430         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
33431         more.
33432
33433 2004-09-08  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/stdint_.h: New file, taken from GNU clisp.
33436
33437 2004-09-08  Bruno Haible  <bruno@clisp.org>
33438             Oskar Liljeblad  <oskar@osk.mine.nu>
33439
33440         * modules/stdint: New file.
33441         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
33442
33443 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33444
33445         Import from coreutils.
33446         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
33447         strings on unbounded length.  alloca's performance benefits aren't
33448         that important here.
33449         (V_STRDUP): Remove.
33450         (parse_with_separator): New function, with most of the internals
33451         of the old parse_user_spec.  Allow user to omit both user and group,
33452         for compatibility with FreeBSD.
33453         Clone only the user name, not the entire spec.
33454         Do not set *uid, *gid unless entirely successful.
33455         Avoid memory leak in some failing cases.
33456         Fix regression for USER.GROUP reported by Dmitry V. Levin in
33457         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
33458         (parse_user_spec): Rewrite to use parse_with_separator.
33459
33460 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33461
33462         * modules/userspec: Don't depend on alloca.
33463
33464 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33465
33466         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
33467
33468 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33469
33470         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
33471         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
33472         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
33473
33474 2004-08-16  Simon Josefsson  <jas@extundo.com>
33475
33476         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
33477         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
33478         Add --dry-run for --import.
33479         Let user provided command line parameters override configure.ac
33480         settings.
33481
33482 2004-08-12  Simon Josefsson  <jas@extundo.com>
33483
33484         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
33485         as discussed with Paul Eggert in threads rooted at
33486         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
33487         and
33488         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
33489         Before, the test was empty, and relied on ELIDE_CODE in source
33490         code.)
33491         (gl_PREREQ_GETOPT): New macro.
33492         (gl_GETOPT): Use them.
33493
33494 2004-08-12  Simon Josefsson  <jas@extundo.com>
33495
33496         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
33497         * lib/getopt_.h: Renamed from getopt.h.
33498
33499 2004-08-12  Simon Josefsson  <jas@extundo.com>
33500
33501         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
33502         Change default library name from libfoo to libgnu.
33503         Now, if you have a configure.ac that says:
33504                 gl_SOURCE_BASE(gl)
33505                 gl_M4_BASE(gl/m4)
33506                 gl_MODULES(error getopt etcetera)
33507                 gl_INIT
33508         you can import all you need by running:
33509                 ../gnulib/gnulib-tool --import
33510
33511         * modules/getopt (Files): Rename getopt.h to getopt_.h.
33512         (Makefile.am): Rewrite, use logic from argz.
33513         (Include): Use <getopt.h> instead of "getopt.h".
33514
33515 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33516
33517         * modules/argp (Files): Add m4/unlocked-io.m4.
33518         (Depends-on): Add extensions.
33519
33520 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33521
33522         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
33523         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
33524         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
33525         Check for program_invocation_name, program_invocation_short_name,
33526         flockfile, funlockfile, features.h, _getopt_long_only_r.
33527
33528 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33529
33530         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
33531         its complicated substitute.
33532         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
33533         and program_invocation_name.
33534         (__argp_basename) [!_LIBC]: Remove; the only use was
33535         replaced by its body.
33536         (__argp_short_program_name): Change condition from
33537         !defined __argp_short_program_name to
33538         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
33539         to match argp-namefrob.h.
33540         (__argp_failure): Don't assume strerror_r returns char *.
33541         * lib/argp-parse.c (N_): Define unconditionally.
33542         (argp_default_options): Fill out initializers with 0 to avoid
33543         gcc warnings.
33544
33545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33546
33547         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
33548         getopt1.c.
33549
33550 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33551
33552         Merge from coreutils.
33553
33554         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
33555
33556         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
33557         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
33558
33559 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33560
33561         Merge from coreutils.
33562
33563         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
33564         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
33565         for Reliant Unix 5.43.
33566
33567         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
33568         (union fooround): Use uintmax_t, not long int.
33569         The rest is a merge from libc:
33570         [defined _LIBC]: Include <shlib-compat.h>.
33571         (_obstack) [defined _LIBC]: Remove after 2.3.4.
33572
33573         * lib/settime.c (settime): Recode to avoid warning with
33574         Sun Forte C 6U2.
33575
33576         * lib/strverscmp.c: Convert to UTF-8.
33577
33578 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33579
33580         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
33581         m4/uintmax_t.m4.
33582
33583 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33584
33585         * modules/xalloc-die: New file.
33586         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
33587
33588         * modules/md5 (Files): Add m4/uint32_t.m4.
33589         * modules/sha1: Renamed from modules/sha.
33590         (Files):
33591         Rename lib/sha.h to lib/sha1.h.
33592         Rename lib/sha.c to lib/sha1.c.
33593         Rename m4/sha.m4 to m4/sha1.m4.
33594         (lib_SOURCES): Likewise.
33595         (configure.ac): Rename gl_SHA to gl_SHA1.
33596         (Include): sha.h -> sha1.h.
33597
33598 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33599
33600         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33601         * m4/sha1.m4: Renamed from sha.m4.
33602         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33603
33604 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33605
33606         * lib/obstack.h (obstack_empty_p):
33607         Don't assume that chunk->contents is suitably aligned.
33608         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33609         Likewise. Problem reported by Benno in
33610         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33611
33612         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33613         readable.  This could be improved further but it'd take some work.
33614
33615 2004-08-08  Simon Josefsson  <jas@extundo.com>
33616
33617         * modules/xgethostname (Depends-on): Remove exit and error (not
33618         used).
33619
33620         * modules/getpass-gnu: Add getpass.h.
33621         (Depends-on): Add stdbool.
33622         * modules/getpass: Add getpass.h.
33623
33624 2004-08-08  Simon Josefsson  <jas@extundo.com>
33625
33626         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33627         Check getpass declaration.
33628
33629 2004-08-08  Simon Josefsson  <jas@extundo.com>
33630
33631         * lib/xgethostname.c: Don't include error.h (not used).
33632
33633         * lib/getpass.h: Add.
33634         * lib/getpass.c: Include getpass.h first.
33635
33636 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33637
33638         * lib/xalloc-die.c: New file.
33639         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33640         All uses removed.
33641         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33642         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33643         xalloc-die.c.
33644         (_, N_, xalloc_die): Move to xalloc-die.c.
33645         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33646         so that we needn't mess with xalloc_msg_memory_exhausted.
33647
33648         * lib/sha1.h: Renamed from sha.h.
33649         (SHA1_H): Renamed from _SHA_H.
33650         (sha1_ctx): Renamed from sha_ctx.
33651         (sha1_init_ctx): Renamed from sha_init_ctx.
33652         (sha1_process_block): Renamed from sha_process_block.
33653         (sha1_process_bytes): Renamed from sha_process_bytes.
33654         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33655         (sha1_read_ctx): Renamed from sha_read_ctx.
33656         (sha1_stream): Renamed from sha_stream.
33657         (sha1_buffer): Renamed from sha_buffer.
33658         * lib/sha1.c: Likewise; renamed from sha.c.
33659         Do not include <sys/types.h>.
33660         Include <stddef.h> rather than <stdlib.h>.
33661
33662 2004-08-08  Bruno Haible  <bruno@clisp.org>
33663
33664         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33665         FILESYSTEM_PREFIX_LEN.
33666         * lib/progreloc.c: Likewise.
33667         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33668
33669 2004-08-06  Simon Josefsson  <jas@extundo.com>
33670
33671         * modules/progname (Depends-on): Don't depend on stdbool.
33672
33673 2004-08-06  Simon Josefsson  <jas@extundo.com>
33674
33675         * modules/getsubopt: New file.
33676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33677         getsubopt.
33678
33679 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33680
33681         More merge from coreutils.
33682
33683         * m4/utimens.m4, m4/utimecmp.m4: New files.
33684         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33685         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33686         prereq.m4, sha.m4: Import changes from coreutils.
33687
33688 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33689
33690         More merge from coreutils.
33691         * modules/raise, modules/readtokens0, modules/utimens:
33692         * modules/utimecmp, module/xnanosleep: New files.
33693         * modules/strftime: Add lib/strftime.h.
33694         Change include from <time.h> to "strftime.h".
33695         * modules/yesno: Add lib/yesno.h.
33696         * modules/backupfile: Remove lib/addext.c.
33697         * modules/euidaccess: Add stat-macros.h.
33698         * modules/canonicalize, modules/euidaccess,
33699         modules/filemode, modules/lchown, modules/makepath,
33700         modules/rmdir, modules/stat: Likewise.
33701
33702 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33703
33704         Merge from tar.
33705         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33706         SIZE_MAX is a valid preprocessor constant.
33707         (__argp_basename): Change from "#ifndef _LIBC"
33708         to "#ifndef __argp_short_program_name", so that
33709         we don't compile these functions for tar.
33710
33711         More merges from coreutils.
33712         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33713         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33714         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33715         * lib/addext.c: Remove; no longer needed.
33716         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33717         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33718         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33719         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33720         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33721         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33722         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33723         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33724         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33725         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33726         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33727         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33728         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33729         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33730         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33731         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33732         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33733         Import changes from coreutils.
33734
33735 2004-08-05  Simon Josefsson  <jas@extundo.com>
33736
33737         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33738
33739 2004-08-05  Simon Josefsson  <jas@extundo.com>
33740
33741         * m4/getsubopt.m4: New file.
33742
33743 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33744
33745         Merge from coreutils.
33746
33747         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33748         * m4/getcwd-path-max.m4: New files.
33749
33750         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33751         FILESYSTEM_PREFIX_LEN ->
33752         FILE_SYSTEM_PREFIX_LEN.
33753         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33754         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33755         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33756         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33757
33758         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33759         prerequisite modules now handle the DOS stuff.
33760         Don't check for unistd.h.
33761
33762 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33763
33764         Merge from coreutils.
33765
33766         * lib/.gdb-history: Remove; this doesn't belong here.
33767
33768         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33769         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33770         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33771         * lib/getcwd.c: New files.
33772
33773         * lib/dirname.h: Include <stdbool.h>.
33774         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33775         for consistency with POSIX terminology.  All uses changed.
33776         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33777         (strip_trailing_slashes): Use bool for booleans.
33778         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33779
33780         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33781         sometimes returns a positive errno value even when it succeeds.
33782         (print_errno_message) [!LIBC]: Fall back on strerror if
33783         __strerror_r fails.
33784
33785         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33786         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33787         (longest_relative_suffix): New function.
33788         (path_concat): Use it.  Assume first argument is not NULL.
33789         Port to DOS.  Omit redundant separators.
33790         Report an error instead of returning NULL.
33791         Use mempcpy instead of memcpy.
33792         (xpath_concat): Remove: not declared or used.
33793
33794         * lib/same.h: Include <stdbool.h>
33795         (same_name): Return bool, not int.
33796         * lib/same.c (same_name): Likewise.
33797         (errno): Don't declare; we assume C89 or better now.
33798
33799         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33800         if not already defined.
33801
33802         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33803         * lib/dup-safer.c (errno): Likewise.
33804
33805 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33806
33807         Merge from coreutils.
33808         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33809         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33810         * modules/path-concat: Don't depend on strdup.
33811
33812 2004-08-03  Simon Josefsson  <jas@extundo.com>
33813
33814         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33815         * lib/progname.h: Don't include stdbool.h.
33816
33817 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33818
33819         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33820         * MODULES.html.sh (func_all_modules): Remove fatal.
33821
33822 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33823
33824         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33825
33826 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33827
33828         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33829         working.
33830
33831 2004-08-02  Simon Josefsson  <jas@extundo.com>
33832
33833         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33834         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33835         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33836
33837 2004-08-01  Simon Josefsson  <jas@extundo.com>
33838
33839         * lib/xgetdomainname.c: Include stdlib.h, for free().
33840
33841 2004-07-19  Bruno Haible  <bruno@clisp.org>
33842
33843         * MODULES.html.sh (func_all_modules): Add dummy.
33844
33845 2004-07-16  Simon Josefsson  <jas@extundo.com>
33846
33847         * modules/dummy: New file.
33848
33849 2004-07-16  Simon Josefsson  <jas@extundo.com>
33850
33851         * lib/dummy.c: New file.
33852
33853 2004-07-16  Bruno Haible  <bruno@clisp.org>
33854
33855         * lib/backupfile.h: Add extern "C" for C++.
33856         * lib/closeout.h: Likewise.
33857         * lib/copy-file.h: Likewise.
33858         * lib/findprog.h: Likewise.
33859         * lib/full-write.h: Likewise.
33860         * lib/pathname.h: Likewise.
33861         * lib/progname.h: Likewise.
33862         * lib/stpcpy.h: Likewise.
33863         * lib/stpncpy.h: Likewise.
33864         * lib/strcase.h: Likewise.
33865         * lib/strstr.h: Likewise.
33866         * lib/xalloc.h: Likewise.
33867
33868         * lib/mbswidth.h: Add extern "C" for C++.
33869         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33870
33871 2004-07-13  Robert Millan  <robertmh@gnu.org>
33872
33873         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33874
33875 2004-07-09  Simon Josefsson  <jas@extundo.com>
33876
33877         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33878         failed without this.)
33879
33880 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33881
33882         * modules/chown (Files): Add lib/fchown-stub.c, since
33883         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33884
33885 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33886
33887         * lib/fchown-stub.c: New file.
33888
33889 2004-06-24  Jim Meyering  <jim@meyering.net>
33890
33891         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33892
33893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33894
33895         * modules/argz: Omit "#include".
33896
33897         * MODULES.html.sh (func_all_modules): Add calloc, to match
33898         2004-06-01 addition of calloc module.
33899
33900 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33901
33902         * m4/argz.m4: New file, which is autoupdated from libtool.
33903
33904 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33905
33906         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33907         libtool.
33908
33909 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33910
33911         * config/srclist-update: Don't insist on "USA." before the
33912         close-comment, as libtool omits the period and puts the */ on a
33913         separate line.
33914         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33915         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33916
33917 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33918
33919         * modules/argz: New file.
33920         * MODULES.html.sh (func_all_modules): Add argz.
33921
33922 2004-06-12  Jim Meyering  <jim@meyering.net>
33923         and  Paul Eggert  <eggert@cs.ucla.edu>
33924
33925         * modules/hash (Files): Add lib/xalloc.h.
33926         * modules/pipe (Depends-on): Add wait-process.
33927         * modules/stat (Depends-on): Add xalloc.
33928         * modules/userspec (Files): Add lib/userspec.h.
33929         * modules/xstrto
33930
33931         Upgrade from gettext-0.13.
33932         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33933         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33934         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33935
33936 2004-06-10  Jim Meyering  <jim@meyering.net>
33937
33938         * lib/calloc.c: New file.
33939
33940 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33941
33942         * lib/getdate.y (yylex): Allow space between sign and number.
33943         Problem reported by Dan Jacobson.
33944
33945 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33946
33947         Merge from coreutils CVS.
33948
33949         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33950         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33951         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33952         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33953         xstrtol.m4: Fix copyright date and/or serial number.
33954
33955         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33956         See if we need an fchown replacement.
33957         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33958         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33959         and use the replacement function if we detect either defect.
33960
33961         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33962         gl_UTIMECMP.
33963
33964 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33965         and  Jim Meyering  <jim@meyering.net>
33966
33967         Merge from coreutils CVS.
33968
33969         * lib/stat-macros.h: New file, with contents from file-type.h
33970         and coreutils' system.h.
33971         * lib/file-type.c: Include "stat-macros.h".
33972         * lib/file-type.h (file_type): Move all macro definitions to new file,
33973         stat-macros.h.
33974
33975         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33976         Wrap old code with this conditional.
33977         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33978         function that does not dereference symlinks.
33979         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33980
33981         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33982         dependency problems.
33983         (xreadlink): Accept new arg SIZE, for efficiency.
33984         All decls and uses changed.
33985         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33986
33987         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33988         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33989
33990         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33991         sysexits.h.
33992
33993 2004-06-01  Jim Meyering  <jim@meyering.net>
33994
33995         * m4/calloc.m4: New file.
33996
33997 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33998
33999         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
34000         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
34001         Also, fix a typo in a diagnostic.
34002
34003 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34004
34005         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
34006         or AC_FUNC_REALLOC.
34007
34008 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34009
34010         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
34011         macros to be defined.
34012         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
34013         the allocator returns NULL because the requested size is zero.
34014
34015 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34016
34017         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
34018         var.  Add comment explaining why libc still defines it.  This
34019         merges the following patch from glibc:
34020         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
34021
34022 2004-05-20  Andreas Schwab  <schwab@suse.de>
34023
34024         * m4/free.m4: Replace free if it not known to work, not the other
34025         way round.
34026
34027 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34028
34029         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
34030         present in glibc since revision 1.1 of this file.
34031         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
34032         obstack_alignment_mask, obstack_alloc, obstack_base,
34033         obstack_blank, obstack_blank_fast, obstack_chunk_size,
34034         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
34035         obstack_grow0, obstack_init, obstack_int_grow,
34036         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
34037         obstack_next_free, obstack_object_size, obstack_ptr_grow,
34038         obstack_ptr_grow_fast, obstack_room): Remove declarations of
34039         nonexistent functions.
34040
34041 2004-05-18  Karl Berry  <karl@gnu.org>
34042
34043         * config/srclist.txt: break link for vasnprintf.c.
34044
34045 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34046
34047         Port obstack to the AS/400, where pointers are 16 bytes wide and
34048         you cannot cast an integer to a valid pointer.  This patch is
34049         currently waiting to be integrated into glibc; see
34050         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
34051
34052         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
34053         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
34054         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
34055         (struct obstack): temp member is now a union of a pointer and
34056         an integer, instead of an integer.  All integer uses changed.
34057         This does not affect the physical layout of struct obstack,
34058         except on hosts (like the AS/400) where the size or alignment of
34059         void * is greater than that of ptrdiff_t.
34060         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
34061         __STDC__)]: Store temporary in pointer member of union, not
34062         integer member.
34063         * lib/obstack.c: Include <stddef.h>, for offsetof.
34064         (struct fooalign): Remove; it doesn't need a name.
34065         (union fooround): Change double to long double, and add void *.
34066         (DEFAULT_ALIGNMENT): Use offsetof to compute.
34067         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
34068         not a macro.  Hence the values are always int; so remove all
34069         casts-to-int in uses.
34070
34071 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34072
34073         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
34074         we can get this patch merged into glibc.
34075
34076 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34077             Paul Eggert  <eggert@cs.ucla.edu>
34078
34079         * m4/argp: Depend on alloca.
34080
34081 2004-05-17  Derek R. Price  <derek@ximbiot.com>
34082             Paul Eggert  <eggert@cs.ucla.edu>
34083
34084         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
34085         freecoding.
34086
34087 2004-05-17  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
34090         precision that consists of a '.' followed by an empty digit string.
34091         Patch by Tor Lillqvist <tml@iki.fi>.
34092
34093 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34094
34095         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
34096         for backward compatibility with older code.  We need our own
34097         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
34098         it under some other name, and our alloca.h will define it.
34099
34100 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34101             Derek Price  <derek@ximbiot.com>
34102
34103         * lib/alloca.c: Include <alloca.h>, to get our interface.
34104         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
34105         include <alloca.h> first.  Use C89 prototype for alloca; this
34106         requires including <stddef.h> for size_t.  Use extern "C" if C++.
34107         Use #elif for simplicity, since we can assume C89 now.
34108         Don't try to source the system alloca.h since it will not be found
34109         and to prevent recursively including its replacement.
34110         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
34111         * lib/regex.c: Likewise.
34112
34113 2004-05-16  Derek Price  <derek@ximbiot.com>
34114             Paul Eggert  <eggert@cs.ucla.edu>
34115
34116         getline cleanup.  This changes the getndelim2 API: both order of
34117         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
34118         no delimiter).
34119
34120         * lib/getline.c: Don't include stddef.h or stdio.h, since our
34121         interface does that.
34122         (getline): Always use getdelim, so that we don't have two
34123         copies of this code.
34124         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
34125         if available.
34126         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
34127         (GETNDELIM2_MAXIMUM): New macro.
34128         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
34129         instead of the old practice of delim2==0.  All callers changed.
34130         Return -1 on overflow, instead of returning junk.
34131         Do not set *linesize unless allocation succeeds.
34132         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
34133         that we include sys/types.h.
34134         * lib/getnline.h: Likewise.
34135         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
34136         (getndelim2): Reorder arguments.
34137         * lib/getnline.c (getnline, getndelim):
34138         Don't discard the NMAX argument.
34139         (getnline): Invoke getndelim, to avoid code duplication.
34140         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
34141         of (size_t) -1 by callers of the getnline family.
34142
34143 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34144
34145         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
34146         Check for gettimeofday.
34147         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
34148         Check for settimeofday, stime.
34149
34150 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34151
34152         * lib/nanosleep.c (suspended): Change its type from int to
34153         sig_atomic_t volatile.
34154         (first_call): Make it private to rpl_nanosleep, and have it
34155         be zero initially as that's a bit faster.
34156         (my_usleep): Round up fractional times instead of truncating them,
34157         as this is the usual meaning for 'sleep'.
34158
34159         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
34160         doesn't work.
34161         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
34162         (ENOSYS): Define if not defined.
34163         (settime): Fall back on stime if it exists and settimeofday fails.
34164         But don't bother with fallbacks if a method fails with errno == EPERM.
34165
34166 2004-05-11  Jim Meyering  <jim@meyering.net>
34167
34168         Prior to this change, the save_cwd caller required read access to the
34169         current directory on most systems (ones with the fchdir function).
34170
34171         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
34172         fails, try write-only, and finally, resort to using xgetcwd.
34173
34174 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34175
34176         * lib/obstack.c, obstack.h: Import changes from libc.
34177
34178 2004-04-28  Bruno Haible  <bruno@clisp.org>
34179
34180         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
34181         also implicitly appends .exe to executables.
34182         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
34183         accepts Windows pathnames.
34184         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34185         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34186         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
34187         Treat Cygwin like Windows, since it now accepts Windows pathnames.
34188         Reported by Derek Robert Price <derek@ximbiot.com>.
34189
34190 2004-04-21  Karl Berry  <karl@gnu.org>
34191
34192         * config/srclist.txt (localcharset.c): break sync.
34193
34194 2004-04-20  Paul Eggert  <eggert@twinsun.com>
34195
34196         * m4/host-os.m4: Add a copyright notice.
34197
34198 2004-04-20  Jim Meyering  <jim@meyering.net>
34199
34200         Change UTILS_ to gl_ in AC_DEFINE'd names.
34201         Change utils_- and jm_-prefixed variables, too.
34202         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
34203         UTILS_FUNC_MKDIR_TRAILING_SLASH.
34204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
34205
34206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
34207         Don't emit trailing blanks.
34208         Also rename jm_-prefixed variables to have gl_ prefix.
34209
34210         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
34211         Also rename jm_-prefixed variables to have gl_ prefix.
34212
34213         * m4/jm-macros.m4: Reflect the renamings.
34214         * m4/prereq.m4: Likewise.
34215
34216 2004-04-20  Jim Meyering  <jim@meyering.net>
34217
34218         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
34219         memory.
34220
34221 2004-04-20  Jim Meyering  <jim@meyering.net>
34222             Bruno Haible  <bruno@clisp.org>
34223
34224         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
34225         memory when realloc fails.
34226
34227 2004-04-19  Jim Meyering  <jim@meyering.net>
34228
34229         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
34230         now that readutmp.c may call `free (0)'.
34231
34232 2004-04-19  Bruno Haible  <bruno@clisp.org>
34233
34234         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
34235         * m4/inttypes_h.m4: Likewise.
34236         * m4/stdint_h.m4: Likewise.
34237         * m4/intmax_t.m4: Likewise.
34238         * m4/uintmax_t.m4: Likewise.
34239
34240 2004-04-18  Jim Meyering  <jim@meyering.net>
34241
34242         * m4/prereq.m4: Don't forbid jm_ prefix.
34243
34244         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
34245         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
34246         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
34247         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
34248         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
34249         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
34250         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
34251         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
34252         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
34253         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
34254         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
34255         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
34256         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
34257         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
34258         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
34259         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
34260         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
34261         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
34262         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
34263
34264 2004-04-18  Jim Meyering  <jim@meyering.net>
34265
34266         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
34267         failure, don't leak memory and do call END_UTMP_ENT.
34268
34269 2004-04-16  Jim Meyering  <jim@meyering.net>
34270
34271         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
34272         coreutils' stat program.
34273         (gl_PREREQ): Don't require jm_PREREQ_STAT.
34274
34275 2004-04-11  Paul Eggert  <eggert@twinsun.com>
34276
34277         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
34278         C89.
34279         (CHAR_BIT): Remove, since we assume C89.
34280         Include <stdint.h> if available, as per current Autoconf CVS advice.
34281
34282 2004-03-31  Jim Meyering  <jim@meyering.net>
34283
34284         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
34285         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
34286         * m4/xalloc.m4: Likewise.
34287
34288 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34289
34290         Merge from coreutils.
34291
34292         * m4/inttostr.m4: New file.
34293         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
34294         Require AM_STDBOOL_H and gl_TIMESPEC instead.
34295         Require gl_CLOCK_TIME.
34296         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
34297
34298 2004-03-30  Paul Eggert  <eggert@twinsun.com>
34299
34300         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
34301         not bool, to be more consistent with Unix conventions.
34302         Suggested by Bruno Haible.
34303
34304         Merge from coreutils.
34305
34306         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
34307         * lib/umaxtostr.c: New files.
34308
34309         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
34310         the usual <time.h> dance.
34311         (get_date): Change signature to support fractional time stamps.
34312         All callers changed.
34313         * lib/getdate.y: Include "getdate.h" first, as we can now
34314         assume C89 and don't need to worry about 'const'.
34315         Similarly, include "unlocked-io.h" near start, not in middle.
34316         Include <limits.h>.
34317         (textint.value): Use long int rather than int.
34318         (textint.digits): Use size_t rather than int.
34319         (BILLION, LOG10_BILLION): New constants.
34320         (parser_control): New member rel_ns.  Members day_ordinal,
34321         time_zone, month, day, hour, minutes, rel_year, rel_month,
34322         rel_day, rel_hour, rel_minutes, rel_seconds
34323         are now long int, not int.  Member seconds is now struct timespec,
34324         not int.  New member timespec_seen.  Members dates_seen, days_seen,
34325         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34326         not int.
34327         (%union.intval): Now long int, not int.
34328         New member timespec.
34329         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34330         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34331         (spec): Now is a timespec or an item list.
34332         (timespec, items): New nonterminals.
34333         (time, rel, relunit, number, get_date):
34334         Add support for fractional seconds.
34335         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34336         (gmtime, localtime, mktime): Remove decls; not needed with C89.
34337         (to_hour): First arg is now long int, not int.
34338         (to_year): Returns long int, not int.
34339         Don't treat year -70 like 70.
34340         (tm_diff): Returns long int, not int.
34341         (lookup_word): Use bool instead of int when appropriate.
34342         (yylex): Use size_t for count, not int.
34343         Detect overflow when parsing large integer constants.
34344         Add support for fractions.
34345         (get_date): Make pointers 'const' if possible.
34346         Use more-portable code to detect integer overflow.
34347         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
34348         Don't use ctime; it's not reliable if the year has >4 digits.
34349
34350         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
34351         This is for compatibility with BSD.
34352
34353         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
34354         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
34355         From coreutils' system.h.
34356
34357         * lib/userspec.c: Don't include "posixver.h".
34358         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
34359         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
34360         compatible extension.  Simplify code by removing a boolean int
34361         that was always nonzero if a string was nonnull.
34362
34363 2004-03-30  Jim Meyering  <jim@meyering.net>
34364
34365         Merge from coreutils.
34366
34367         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
34368         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
34369         on some systems one must include <grp.h> before it.
34370         Reported by Christian Krackowizer.
34371
34372 2004-03-30  Jim Meyering  <jim@meyering.net>
34373
34374         Merge from coreutils.
34375
34376         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
34377
34378         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
34379         an empty input stream.
34380
34381         * lib/readtokens.c: Include <stdbool.h>.
34382         (readtoken): Use `size_t' rather than int/long.
34383         All callers adjusted.
34384         Use `bool' rather than `int' where appropriate.
34385         Use memset rather than an explicit loop.
34386         Use x2nrealloc rather than xrealloc.
34387         Allow the use of `\0' as a delimiter.
34388         (readtokens): Likewise.
34389         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
34390
34391 2004-03-30  Jim Meyering  <jim@meyering.net>
34392
34393         * m4/realloc.m4: Remove file, since now it does no more than
34394         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
34395         the `configure.ac' section of module/realloc.
34396         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
34397
34398 2004-03-30  Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
34401         nonnull.
34402
34403 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34404
34405         Merge changes to getloadavg.c from coreutils and Emacs.
34406
34407         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
34408         Define to an expression, not to the empty string.
34409         Include cloexec.h and xalloc.h.
34410         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
34411         Use set_cloexec_flag rather than rolling our own.
34412         * lib/cloexec.c, lib/cloexec.h: New files.
34413
34414 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34415
34416         * m4/cloexec.m4: New file.
34417
34418 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34419
34420         * lib/getopt.h: Sync with libc CVS.
34421
34422 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34423             Bruno Haible  <bruno@clisp.org>
34424
34425         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
34426         mbswidth.
34427
34428 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34429             Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/mbswidth.h: Include <wchar.h> only if
34432         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
34433         <wchar.h>.
34434         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
34435
34436 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34437
34438         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
34439         Sync with libc CVS.
34440         * lib/getopt_int.h: New file, also synced from libc.
34441
34442 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34443
34444         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
34445         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
34446         Bring back getopt.c, getopt.h, getopt1.c.
34447
34448 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34449
34450         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
34451         All uses changed.  Check for sa_sigaction member; this fixes
34452         a bug first reported by Jason Andrade in
34453         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34454
34455 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34456
34457         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
34458         '#if' expressions.  Unlike the code it replaces, it does not
34459         depend on (defined _SC_PAGESIZE).  However, it does depend on
34460         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
34461         first reported by Jason Andrade in
34462         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34463
34464 2004-02-25  Simon Josefsson  <jas@extundo.com>
34465
34466         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
34467
34468 2004-02-25  Simon Josefsson  <jas@extundo.com>
34469
34470         * lib/strdup.h: New file.
34471         * lib/strdup.c: Include it.
34472         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
34473         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
34474
34475 2004-02-23  Karl Berry  <karl@gnu.org>
34476
34477         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
34478         (from fencepost.gnu.org:/gd/gnuorg).
34479
34480 2004-02-23  Karl Berry  <karl@gnu.org>
34481
34482         * config/srclistvars.sh (GNUORG) [karl]: redefine.
34483         * config/srclist.txt: add maintain/standards documents.
34484
34485 2004-02-18  Bruno Haible  <bruno@clisp.org>
34486
34487         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
34488         Reported by Derek Robert Price <derek@ximbiot.com>.
34489
34490 2004-02-16  Karl Berry  <karl@gnu.org>
34491
34492         * config/mkinstalldirs, install-sh: update from automake.
34493
34494 2004-02-06  Karl Berry  <karl@gnu.org>
34495
34496         * m4/po.m4: update from gettext 0.14.1.
34497
34498 2004-02-06  Karl Berry  <karl@gnu.org>
34499
34500         * lib/config.charset: update from gettext 0.14.1.
34501
34502 2004-02-05  Paul Eggert  <eggert@twinsun.com>
34503
34504         Add comments and code, prompted by suggestions from Bruno Haible
34505         for sh-quote.
34506         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
34507         describing the enum quoting_style values.
34508         * lib/quotearg.c (quotearg_alloc): New function.
34509         (quotearg_buffer_restyled): Treat lone { and } as special.
34510         Treat = as special.  Work around bug with older shells
34511         that "see" a '\' that is really the 2nd byte of a multibyte char.
34512         Quote empty string with shell_quoting_style.
34513
34514 2004-02-03  Bruno Haible  <bruno@clisp.org>
34515
34516         * m4/pipe.m4: New file, from GNU gettext.
34517
34518 2004-02-03  Bruno Haible  <bruno@clisp.org>
34519
34520         * lib/pipe.h: New file, from GNU gettext.
34521         * lib/pipe.c: New file, from GNU gettext.
34522
34523 2004-01-27  Bruno Haible  <bruno@clisp.org>
34524
34525         * m4/execute.m4: New file, from GNU gettext.
34526
34527 2004-01-27  Bruno Haible  <bruno@clisp.org>
34528
34529         * lib/execute.h: New file, from GNU gettext.
34530         * lib/execute.c: New file, from GNU gettext.
34531         * lib/w32spawn.h: New file, from GNU gettext.
34532
34533 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34534
34535         Merge from diffutils.
34536
34537         * lib/file-type.c (file_type): Add typed memory objects.
34538         * lib/file-type.h (S_TYPEISTMO): New macro.
34539
34540         * lib/c-stack.h (c_stack_action): Remove argv argument.
34541         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
34542         (die): Don't calculate message unless segv_action returns.
34543         (get_stack_location, min_address_from_argv, max_address_from_argv,
34544         volatile stack_base, volatile_stack_size): Remove.
34545         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
34546         that every segmentation violation is a stack overflow.  (Ouch!)
34547         See Debian bug 136249 (still outstanding) for more info about why
34548         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
34549
34550 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34551
34552         Exit-status fix from coreutils.
34553
34554         Use exit_failure consistently in place of EXIT_FAILURE,
34555         so that program exit statuses are consistent on failure.
34556
34557         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
34558         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
34559         * lib/argmatch.h: Comment fix to match the above.
34560         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
34561         Now a macro referring to exit_failure, instead of a separate
34562         variable.  Include "exitfail.h" to get it.
34563         * lib/xstrtol.h: Include "exitfail.h".
34564         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
34565
34566         * lib/long-options.c (parse_long_options): Use prototype
34567         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
34568         for clarity.
34569
34570 2004-01-21  Jim Meyering  <jim@meyering.net>
34571
34572         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
34573         so as not to conflict with a different-sized __mktime_internal
34574         function in GNU libc.
34575         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
34576         Problem building statically-linked `ls' reported by Michael Brunnbauer.
34577
34578 2004-01-20  Karl Berry  <karl@gnu.org>
34579
34580         * config/config.guess: update from config.
34581
34582         * config/srclistvars.sh: GNUWWWLICENSES for karl.
34583
34584 2004-01-20  Bruno Haible  <bruno@clisp.org>
34585
34586         Safer stack allocation.
34587         * lib/setenv.c: Include allocsa.h.
34588         (alloca): Remove fallback definition.
34589         (freea): Remove macro.
34590         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
34591         instead of freea.
34592
34593 2004-01-20  Bruno Haible  <bruno@clisp.org>
34594
34595         * m4/eealloc.m4: New file, from GNU gettext.
34596
34597 2004-01-20  Bruno Haible  <bruno@clisp.org>
34598
34599         * m4/allocsa.m4: New file, from GNU gettext.
34600
34601 2004-01-20  Bruno Haible  <bruno@clisp.org>
34602
34603         * lib/xallocsa.h: New file, from GNU gettext.
34604         * lib/xallocsa.c: New file, from GNU gettext.
34605
34606 2004-01-20  Bruno Haible  <bruno@clisp.org>
34607
34608         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34609
34610 2004-01-20  Bruno Haible  <bruno@clisp.org>
34611
34612         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34613         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34614         specially.
34615
34616 2004-01-20  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34619         patch.
34620
34621 2004-01-20  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34624
34625 2004-01-20  Bruno Haible  <bruno@clisp.org>
34626
34627         * lib/eealloc.h: New file.
34628
34629 2004-01-20  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/binary-io.h: Avoid warnings on Cygwin.
34632
34633 2004-01-20  Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/allocsa.h: New file, from GNU gettext.
34636         * lib/allocsa.c: New file, from GNU gettext.
34637
34638 2004-01-18  Karl Berry  <karl@gnu.org>
34639
34640         * doc/gpl.texi, doc/lgpl.texi: new files.
34641
34642 2004-01-18  Karl Berry  <karl@gnu.org>
34643
34644         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34645         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34646
34647 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34648
34649         Merge from coreutils.
34650
34651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34652         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34653         (gl_DEFAULT_POSIX2_VERSION): Move
34654         the documentation from 'configure' into 'config.hin',
34655         so that 'configure --help' isn't burdened by it and
34656         we don't have to worry about its formatting there.
34657         Reword the documentation so that it's more succinct
34658         and can be run together into a single paragraph.
34659         * m4/same.m4 (gl_SAME): Check for pathconf.
34660
34661 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34662
34663         Merge from coreutils.
34664
34665         * lib/posixver.c: Include posixver.h.
34666
34667         * lib/same.c: Include <stdbool.h>, <limits.h>.
34668         (_POSIX_NAME_MAX): Define if not defined.
34669         (MIN): New macro.
34670         (same_name): If file names are silently truncated, report
34671         that the file names are the same if they are the same after
34672         the silent truncation.
34673
34674         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34675         conversion function.
34676         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34677         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34678         longer needed.
34679
34680 2004-01-15  Jim Meyering  <jim@meyering.net>
34681
34682         Merge from coreutils.
34683
34684         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34685         if no library is required.
34686         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34687         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34688         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34689         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34690         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34691         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34692         value, $ac_cv_search_crypt, if it's "none required".
34693         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34694         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34695         not gl_FUNC_GETLOADAVG.
34696         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34697         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34698
34699 2004-01-15  Jim Meyering  <jim@meyering.net>
34700
34701         Merge from coreutils.
34702
34703         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34704         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34705         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34706
34707         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34708         optional configure-time default.
34709
34710         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34711
34712         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34713
34714 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34715
34716         Merge from coreutils.
34717
34718         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34719         value, $ac_cv_search_nanosleep, if it's "none required".
34720
34721 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34722
34723         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34724         with like-named macro in fnmatch.c.
34725         (EXT): Use an internal constant instead.
34726
34727         Merge fnmatch patches from glibc.
34728         * lib/fnmatch.c (mbsinit): Remove define.
34729         Add libc_hidden_ver (__fnmatch, fnmatch).
34730         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34731         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34732
34733 2004-01-14  Karl Berry  <karl@gnu.org>
34734
34735         * config/install-sh: update from automake.
34736
34737 2004-01-13  Karl Berry  <karl@gnu.org>
34738
34739         * config/install-sh: update from automake.
34740
34741 2004-01-09  Karl Berry  <karl@gnu.org>
34742
34743         * config/install-sh: update from automake.
34744
34745 2004-01-05  Karl Berry  <karl@gnu.org>
34746
34747         * config/config.{sub,guess}: update from config.
34748
34749 2003-12-31  Karl Berry  <karl@gnu.org>
34750
34751         * config/depcomp: update from automake.
34752
34753 2003-12-14  Karl Berry  <karl@gnu.org>
34754
34755         * lib/config.charset: update from gettext-runtime.
34756
34757 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34758
34759         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34760         Bug reported by Alfred M. Szmidt.
34761
34762 2003-12-03  Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/gettext.m4: Upgrade from gettext-0.13.
34765         * m4/po.m4: Upgrade from gettext-0.13.
34766         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34767         * m4/intmax.m4: New file, from gettext-0.13.
34768         * m4/printf-posix.m4: New file, from gettext-0.13.
34769
34770 2003-11-29  Karl Berry  <karl@gnu.org>
34771
34772         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34773
34774 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34775             Bruno Haible  <bruno@clisp.org>
34776
34777         * lib/printf-parse.h: Don't include sys/types.h.
34778         (ARG_NONE): New macro.
34779         (char_directive): Change type of *arg_index fields to size_t.
34780         * lib/printf-parse.c: Don't include sys/types.h.
34781         (SSIZE_MAX): Remove macro.
34782         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34783         Remove unnecessary overflow check.
34784         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34785         fields.
34786
34787 2003-11-25  Bruno Haible  <bruno@clisp.org>
34788
34789         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34790
34791 2003-11-25  Bruno Haible  <bruno@clisp.org>
34792
34793         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34794         gt_TYPE_SSIZE_T.
34795
34796 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34797
34798         * modules/alloca: Remove dependency on xalloc.
34799
34800 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34801
34802         * lib/alloca.c: Remove dependency on xalloc module.
34803         (xalloc_die): Remove.
34804         (memory_full) [!defined emacs]: New macro.
34805         [!defined emacs]: Don't include xalloc.h.
34806         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34807         address arithmetic overflows.  Change datatypes a bit to avoid
34808         unnecessary casts.
34809
34810 2003-11-22  Jim Meyering  <jim@meyering.net>
34811
34812         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34813         s/size/size_t/.
34814
34815 2003-11-21  Karl Berry  <karl@gnu.org>
34816
34817         * config/config.{sub,guess}: update from config.
34818
34819 2003-11-18  Karl Berry  <karl@gnu.org>
34820
34821         * config/config.{sub,guess}: update from config.
34822
34823         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34824
34825 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34826
34827         * README: Mention that S+T cannot overflow if S is the size of
34828         an existing object and T is sufficiently small.
34829
34830 2003-11-17  Jim Meyering  <jim@meyering.net>
34831
34832         On systems without utime and without a utimes function capable of
34833         dealing with a NULL struct utimbuf* argument, this utime replacement
34834         could -- in unusual circumstances -- leak a file descriptor.
34835         * lib/utime.c: Include <unistd.h> and <errno.h>.
34836         (utime_null): Be sure to close `fd' and to preserve errno.
34837         Reported by Geoff Collyer via Arnold Robbins.
34838
34839 2003-11-17  Bruno Haible  <bruno@clisp.org>
34840
34841         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34842         (Depends-on): Add xsize.
34843
34844 2003-11-17  Bruno Haible  <bruno@clisp.org>
34845
34846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34847
34848 2003-11-17  Bruno Haible  <bruno@clisp.org>
34849
34850         * lib/vasnprintf.c (alloca): Remove fallback definition.
34851         (freea): Remove definition.
34852         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34853         Reported by Paul Eggert.
34854
34855 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34856             Bruno Haible  <bruno@clisp.org>
34857
34858         Protect against address arithmetic overflow.
34859         * lib/printf-args.h: Include stddef.h.
34860         (arguments): Change type of field 'count' to size_t.
34861         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34862         'unsigned int' where appropriate.
34863         * lib/printf-parse.h: Include sys/types.h.
34864         (char_directive): Change type of *arg_index fields to ssize_t.
34865         (char_directives): Change type of fields 'count', max_*_length to
34866         size_t.
34867         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34868         (SSIZE_MAX): Define fallback value.
34869         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34870         instead of 'int' where appropriate. Check a_allocated, d_allocated
34871         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34872         * lib/vasnprintf.c: Include xsize.h.
34873         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34874         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34875         overflow. Avoid wraparound when converting a width or precision from
34876         decimal to binary.
34877
34878 2003-11-16  Bruno Haible  <bruno@clisp.org>
34879
34880         Update from GNU gettext.
34881         * lib/printf-parse.c: Generalize to it can be compiled for wide
34882         strings.
34883         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34884         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34885         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34886         SNPRINTF): New macros.
34887         Don't include <alloca.h> if the file is used inside libintl.
34888         (local_wcslen): New function, for Solaris 2.5.1.
34889         (VASNPRINTF): Use it instead of wcslen.
34890
34891 2003-11-16  Bruno Haible  <bruno@clisp.org>
34892
34893         * lib/xsize.h (xmax): New function.
34894         (xsum, xsum3, xsum4): Declare as "pure" functions.
34895
34896 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34897
34898         * modules/xalloc (Files): Undo latest change, since xalloc.h
34899         no longer needs SIZE_MAX or PTRDIFF_MAX.
34900
34901 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34902
34903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34904         gl_PTRDIFF_MAX.
34905
34906 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34907
34908         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34909         "return", to pacify some unknown compiler.  Problem reported
34910         by Joerg Schilling.
34911
34912 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34913
34914         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34915         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34916         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34917         heuristic is just as accurate as far as we know, and it removes a
34918         dependency on size_max.m4 and ptrdiff_max.m4.
34919
34920 2003-11-11  Bruno Haible  <bruno@clisp.org>
34921
34922         * modules/xsize (Files): Add m4/size_max.m4.
34923         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34924
34925 2003-11-11  Bruno Haible  <bruno@clisp.org>
34926
34927         * m4/size_max.m4: New file.
34928         * m4/ptrdiff_max.m4: New file.
34929         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34930         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34931         (gl_XALLOC): Invoke it.
34932
34933 2003-11-11  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34936         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34937         defined.
34938
34939 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34940
34941         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34942         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34943         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34944         From Bruno Haible.
34945         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34946         not (size_t) -1, since it's defined here.
34947
34948 2003-11-09  Karl Berry  <karl@gnu.org>
34949
34950         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34951
34952 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34953
34954         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34955         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34956         Reject sizes of exactly SIZE_MAX bytes.
34957         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34958         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34959
34960 2003-11-05  Bruno Haible  <bruno@clisp.org>
34961
34962         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34963         SIZE_MAX defined in <limits.h> on Solaris.
34964
34965 2003-11-04  Jim Meyering  <jim@meyering.net>
34966
34967         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34968         variable names, rather than @VAR@.
34969         * modules/poll: Likewise.
34970
34971 2003-11-04  Bruno Haible  <bruno@clisp.org>
34972
34973         * modules/xsize: New file.
34974         * modules/linebreak: Depend on xsize.
34975         * MODULES.html.sh (func_all_modules): Add xsize.
34976
34977 2003-11-04  Bruno Haible  <bruno@clisp.org>
34978
34979         * m4/xsize.m4: New file.
34980
34981 2003-11-04  Bruno Haible  <bruno@clisp.org>
34982
34983         * lib/xsize.h: New file.
34984         * lib/linebreak.c: Include xsize.h.
34985         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34986         argument for overflow.
34987         Suggested by Paul Eggert.
34988
34989 2003-11-03  Karl Berry  <karl@gnu.org>
34990
34991         * config/config.{guess,sub}: update from config.
34992
34993 2003-11-03  Jim Meyering  <jim@meyering.net>
34994
34995         * modules/userspec (lib_SOURCES): Add userspec.h.
34996         (Include): Add "userspec.h".
34997         Improve description.
34998
34999 2003-11-03  Jim Meyering  <jim@meyering.net>
35000
35001         * lib/userspec.c: Include "userspec.h".
35002         * lib/userspec.h: New file.
35003
35004 2003-11-03  Bruno Haible  <bruno@clisp.org>
35005
35006         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
35007
35008 2003-11-03  Bruno Haible  <bruno@clisp.org>
35009
35010         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
35011         available, to avoid (extremely rare) race condition.
35012         Suggested by Paul Eggert.
35013
35014 2003-11-02  Karl Berry  <karl@gnu.org>
35015
35016         * config/srclist.txt (vasprintf.c): sync broken, sigh.
35017
35018 2003-10-31  Paul Eggert  <eggert@twinsun.com>
35019
35020         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
35021         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
35022         (read_filesystem_list): Set and use me_type_malloced.
35023         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
35024         whatever the type happens to be), for brevity and consistency.
35025         Check for size calculation overflow on Alphas running OSF/1.
35026
35027 2003-10-31  Jim Meyering  <jim@meyering.net>
35028
35029         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
35030
35031         * lib/linebuffer.c: Include <string.h> for declaration of memset.
35032
35033 2003-10-30  Paul Eggert  <eggert@twinsun.com>
35034             Bruno Haible  <bruno@clisp.org>
35035
35036         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
35037         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
35038
35039 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35040
35041         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
35042         netbsd*-gnu*.  Suggested by Robert Millan.
35043
35044 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35045
35046         * modules/group-member: Depend on stdbool.
35047
35048 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35049
35050         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
35051
35052 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35053
35054         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
35055         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
35056         after the 'gnu' in these cases.  This fixes some bugs in the
35057         previous change, and is based on suggestions by Robert Millan.
35058
35059 2003-10-29  Paul Eggert  <eggert@twinsun.com>
35060
35061         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
35062         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
35063         no longer needed.
35064         * lib/quotearg.c (quotearg_n_options): Use it.
35065         * lib/group-member.c: Include <stdbool.h>.
35066         (free_group_info): Arg is now const *; don't free arg.
35067         (get_group_info): Now returns bool and accepts struct group_info *,
35068         rather than returning a malloc'ed struct group_info *.
35069         All uses changed.  Check for overflow in internal size calculation.
35070
35071         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
35072         rather than xmalloc/xrealloc.
35073         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
35074         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
35075         conformance bug: the old code used a pointer after freeing the
35076         storage that it addressed.
35077         * lib/hash.c (hash_initialize): Simplify the code by using
35078         xalloc_oversized rather than doing it by hand.
35079         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
35080         the buffer preserved.  Use free and xmalloc instead.
35081         * lib/quotearg.c (quotearg_n_options): Likewise.
35082         Use a simpler test for size overflow.  Don't use xalloc_oversized
35083         because unsigned int might be wider than size_t (!); this suggests
35084         that we should switch from unsigned int to size_t for slot numbers.
35085
35086 2003-10-28  Paul Eggert  <eggert@twinsun.com>
35087
35088         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
35089         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
35090         NetBSD kernels.  Requested by Richard Stallman.
35091
35092 2003-10-27  Paul Eggert  <eggert@twinsun.com>
35093
35094         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
35095         to allocate the returned structure.  Do not allocate a subarray,
35096         as x2nrealloc will do that.
35097         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
35098         instead of xnrealloc.
35099         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
35100
35101 2003-10-27  Bruno Haible  <bruno@clisp.org>
35102
35103         * lib/stdbool_.h: Better support for BeOS.
35104
35105 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35106
35107         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
35108         now uses inline.
35109
35110 2003-10-26  Paul Eggert  <eggert@twinsun.com>
35111
35112         * lib/xalloc.h (xalloc_oversized): New static inline function, for
35113         callers that want to do their own size-overflow checking.  Include
35114         <stdbool.h>, since xalloc_oversized returns bool.
35115         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
35116         to use xalloc_oversized.
35117
35118         Add two functions x2realloc, x2nrealloc, for programs that grow
35119         arrays dynamically by doubling their sizes.
35120         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
35121         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
35122         New functions.
35123
35124         Port to C99 semantics for 'inline' of external functions.
35125         Bug reported by Bruno Haible.
35126         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
35127         with the old contents of xnmalloc.
35128         (xnmalloc, xmalloc): Use it.
35129         (xnrealloc_inline): New static inline function,
35130         with the old contents of xnrealloc.
35131         (xnrealloc, xrealloc): Use it.
35132
35133         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
35134         that.
35135
35136 2003-10-26  Karl Berry  <karl@gnu.org>
35137
35138         * config/srclist.txt (COPYING.DOC): no longer available from
35139         /gd/gnuorg; don't know where the ultimate source is.
35140
35141 2003-10-25  Paul Eggert  <eggert@twinsun.com>
35142
35143         Fix several address-calculation bugs in the hash modules,
35144         plus some minor code cleanup.
35145
35146         * lib/hash.h: Include <stdbool.h>, for bool.
35147         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
35148         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
35149         hash_get_n_entries, hash_get_max_bucket_length,
35150         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
35151         hash_rehash): Use size_t rather than unsigned.
35152         * lib/hash.c (struct hash_table, hash_get_n_buckets,
35153         hash_get_n_buckets_used, hash_get_n_entries,
35154         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
35155         hash_get_entries, hash_do_for_each, hash_string, is_prime,
35156         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
35157         Likewise.
35158         (SIZE_MAX): Define if not defined.
35159         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
35160         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
35161         hash_print):
35162         Use const * when possible.
35163         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
35164         (check_tuning): Fix bug: if tuning parameters were very close to
35165         0 or 1, rounding errors could have caused subscript violations.
35166         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
35167         (hash_initialize): Add 'fail:' label
35168         to free table and return NULL, and use it to simplify code.
35169         Use calloc rather than clearing the storage ourself.
35170         (hash_initialize, hash_rehash): Check for arithmetic overflow in
35171         buffer size calculations.
35172         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
35173         Include <stddef.h>, for size_t.
35174         * lib/hash-pjw.c (hash_pjw): Likewise.
35175         Switch to method described by Bruno Haible.
35176         Include <limits.h>, for CHAR_BIT.
35177         (SIZE_BITS): New macro.
35178
35179 2003-10-23  Paul Eggert  <eggert@twinsun.com>
35180
35181         * m4/getline.m4 (AM_FUNC_GETLINE):
35182         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
35183         hosts.  Problem reported by Derek Robert Price in
35184         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
35185         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
35186         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
35187
35188 2003-10-21  Paul Eggert  <eggert@twinsun.com>
35189
35190         * lib/getndelim2.c (getndelim2): When size calculation overflows,
35191         ceiling the allocation at NMAX bytes rather than silently
35192         discarding input bytes before NMAX is reached.  This makes
35193         a difference only if NMAX exceeds SIZE_MAX / 2.
35194
35195         * lib/obstack.c: Merge from glibc.
35196         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
35197         Add libc_hidden_def (_obstack_newchunk).
35198         (_obstack_free) [! defined _LIBC]: Remove.
35199         [defined _LIBC]: Make a strong alias from obstack_free, rather than
35200         a clone of the function body.
35201         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
35202         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
35203
35204         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
35205         glibc.
35206         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
35207         arg to memcpy.
35208
35209         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
35210         (obstack_ptr_grow_fast, obstack_int_grow_fast):
35211         Don't use lvalue casts, as GCC plans to remove support for them
35212         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
35213         was also present in the non-GCC version, indicating that this
35214         code had always been buggy and had never been widely used.
35215         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
35216         Use the fast variant of each macro, rather than copying the
35217         definiens of the fast variant; that way, we'll be more likely to
35218         catch future bugs in the fast variants.
35219
35220 2003-10-20  Bruno Haible  <bruno@clisp.org>
35221
35222         * modules/wait-process: New file.
35223         * MODULES.html.sh (func_all_modules): Add wait-process.
35224
35225 2003-10-20  Bruno Haible  <bruno@clisp.org>
35226
35227         * m4/wait-process.m4: New file.
35228
35229 2003-10-20  Bruno Haible  <bruno@clisp.org>
35230
35231         * lib/wait-process.h: New file, from GNU gettext.
35232         * lib/wait-process.c: New file, from GNU gettext.
35233
35234 2003-10-19  Jim Meyering  <jim@meyering.net>
35235
35236         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
35237         HPUX 10.20.
35238
35239 2003-10-18  Karl Berry  <karl@gnu.org>
35240
35241         * config/config.guess: update from config.
35242
35243 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35244
35245         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
35246         (getgroups): First arg is int, not size_t.
35247         Don't let 'free' mangle errno.
35248
35249 2003-10-16  Paul Eggert  <eggert@twinsun.com>
35250
35251         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
35252
35253 2003-10-16  Karl Berry  <karl@gnu.org>
35254
35255         * config/config.{guess,sub}: update from config.
35256
35257 2003-10-16  Jim Meyering  <jim@meyering.net>
35258
35259         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
35260         memcpy.
35261
35262 2003-10-15  Paul Eggert  <eggert@twinsun.com>
35263
35264         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
35265         (SIZE_MAX): Remove.
35266         (new_exclude, add_exclude_file): Initial size no longer needs to
35267         be a power of 2.
35268         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
35269         our own address arithmetic overflow checking.
35270
35271         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
35272         (fnmatch): Do not alloca more than 2000 wide characters;
35273         instead, use malloc for large buffers.
35274         Check for address arithmetic overflow, and return -1
35275         with errno set to ENOMEM in that case.
35276         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
35277         (NEW_PATTERN): Do not alloca more than 8000 bytes;
35278         instead, return -1.  Check for address arithmetic overflow.
35279
35280 2003-10-14  Paul Eggert  <eggert@twinsun.com>
35281
35282         Handle invalid suffixes and overflow independently, so that
35283         callers can treat them independently as needed.  Fix some bugs in
35284         suffix handling, e.g., "100k@" was not diagnosed as an invalid
35285         suffix for a human-readable blocksize.  The major caller-visible
35286         change is the addition of a new
35287         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
35288         that both overflow and suffix chars were found.
35289
35290         * lib/human.c (humblock): Don't check separately for invalid suffix
35291         char; that is xstrtoumax's job (now that its bug is fixed).
35292         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
35293         INTMAX_MAX]: New macros.
35294         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
35295         TYPE_MAXIMUM): New macros.
35296         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
35297         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
35298         if overflow occurs, as it's what __strtol does and it's more useful
35299         in practice.
35300         (__xstrtol): If __strtol reports some error other than ERANGE,
35301         reflect it to the caller as LONGINT_INVALID.  If it reports
35302         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
35303         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
35304         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
35305         value.
35306         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
35307         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
35308         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
35309         [defined UINTMAX_MAX]: New macros.
35310
35311 2003-10-14  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
35314
35315 2003-10-14  Bruno Haible  <bruno@clisp.org>
35316
35317         * m4/sig_atomic_t: New file, from GNU gettext.
35318         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
35319
35320 2003-10-14  Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
35323         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
35324         Also use volatile where needed.
35325
35326 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35327
35328         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
35329         Change maintainer from Bruno Haible to 'all'.
35330
35331 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35332
35333         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35334
35335 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35336
35337         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35338         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35339         and define in terms of the other primitives.
35340         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35341         (SIZE_MAX): Define if not already defined.
35342         (array_size_overflow): New function.
35343         (xalloc_die): Abort instead of exiting if 'error' returns.
35344         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35345         (xmalloc, xrealloc): Use them.
35346         (xcalloc): Check for address arithmetic overflow.
35347         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
35348         a bit faster than strcpy.
35349
35350 2003-10-10  Simon Josefsson  <jas@extundo.com>
35351
35352         * modules/argp (Depends-on): Add restrict and strcase.
35353
35354 2003-10-10  Simon Josefsson  <jas@extundo.com>
35355
35356         * m4/argp.m4: Add AC_C_INLINE.
35357
35358 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35359
35360         Merge getpass from libc, plus a few fixes.
35361
35362         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
35363         Include <stdbool.h>.
35364         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
35365         __fsetlocking to empty.
35366         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
35367         do include <bits/libc-lock.h>.
35368         Do not include <fcntl.h>; not needed.
35369         [_LIBC]: Include <wchar.h>.
35370         (NOTCANCEL_MODE): New macro.
35371         (flockfile, funlockfile) [_LIBC]: New macros.
35372         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
35373         [!_LIBC]: New macros.
35374         (call_fclose): New function.
35375         (getpass): Use it.  Save tty stream separately; this simplifies the
35376         code and makes it more reliable if stdin happens to equal stdout.
35377         Invoke __fsetlocking on tty.
35378         Handle thread cancellation if needed.
35379         Namespace cleanup (use __tcgetattr, __getline).
35380         Use bool for Booleans.
35381         [USE_IN_LIBIO]: Handle wide streams.
35382         [!_LIBC]: Unconditionally do the fseek, since we don't know what
35383         stream might go where.
35384
35385         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
35386         doesn't have to include <stdio.h> before us.
35387         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
35388         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
35389         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
35390         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
35391         if not declared, so that we can use getpass.c code from libc without
35392         rewriting it.
35393         (flockfile, ftrylockfile, funlockfile): New macros.
35394
35395 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35396
35397         * modules/getpass: Depend on stdbool.
35398
35399 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35400
35401         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
35402
35403 2003-10-07  Karl Berry  <karl@gnu.org>
35404
35405         * config/config.{guess,sub}: update from config.
35406
35407 2003-10-06  Jim Meyering  <jim@meyering.net>
35408             Bruno Haible  <bruno@clisp.org>
35409
35410         This lets translators provide better translations for the
35411         "Written by ..." part of --version output.
35412         * lib/version-etc.h: Include stdarg.h.
35413         (version_etc_copyright): Declare as readonly.
35414         (version_etc): Make this function variadic with a NULL-terminated list
35415         of author name strings.
35416         (version_etc_va): New declaration.
35417         * lib/version-etc.c: Include stdarg.h, stdlib.h.
35418         (version_etc_copyright): Declare as readonly.
35419         (version_etc_va): New function. Provide a different translatable string
35420         for each possible number of authors < 10. Abbreviate when there are 10
35421         authors or more.
35422         (version_etc): Make this function variadic. Call version_etc_va.
35423         Suggestion from Gary V. Vaughan.
35424
35425         * lib/long-options.h (parse_long_options): Change prototype: the
35426         authors string is moved to the end and becomes variadic.
35427         * lib/long-options.c: Include stdarg.h.
35428         (parse_long_options): Make this function variadic, too.
35429         Call version_etc_va, not version_etc.
35430
35431 2003-10-06  Bruno Haible  <bruno@clisp.org>
35432
35433         * modules/version-etc-2: Remove file.
35434         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
35435
35436 2003-10-06  Bruno Haible  <bruno@clisp.org>
35437
35438         * modules/fatal-signal: New file.
35439         * MODULES.html.sh (func_all_modules): Add fatal-signal.
35440
35441 2003-10-06  Bruno Haible  <bruno@clisp.org>
35442
35443         * m4/fatal-signal.m4: New file.
35444         * m4/signalblocking.m4: New file, from GNU gettext.
35445
35446 2003-10-06  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/version-etc-2.h: Remove file.
35449         * lib/version-etc-2.c: Remove file.
35450
35451 2003-10-06  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/fatal-signal.h: New file, from GNU gettext.
35454         * lib/fatal-signal.c: New file, from GNU gettext.
35455
35456 2003-10-05  Paul Eggert  <eggert@twinsun.com>
35457
35458         * README: Rework advice for preventing empty .o files.
35459         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
35460         not <sys/types.h>.
35461
35462 2003-10-04  Karl Berry  <karl@gnu.org>
35463
35464         * lib/argp*: update from libc.
35465
35466 2003-10-04  Karl Berry  <karl@gnu.org>
35467
35468         * config/config.{guess,sub}: update from config.
35469
35470 2003-10-02  Bruno Haible  <bruno@clisp.org>
35471
35472         * modules/lchown (Include): Add lchown.h.
35473         * modules/time_r (Include): Use "..." syntax.
35474         * modules/xgetdomainname (Include): Add xgetdomainname.h.
35475
35476 2003-10-01  Simon Josefsson  <jas@extundo.com>
35477
35478         * MODULES.html.sh (func_all_modules): Move gethostname from section
35479         'based on' to section 'lacking' POSIX:2001.
35480
35481 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
35482
35483         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
35484         to output mode on the same stream.
35485
35486 2003-09-29  Paul Eggert  <eggert@twinsun.com>
35487
35488         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
35489         Fix arg typo in previous patch.
35490
35491 2003-09-28  Jim Meyering  <jim@meyering.net>
35492
35493         * lib/error.c: Correct cpp indentation.
35494
35495 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35496
35497         * modules/free: New file.
35498
35499 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35500
35501         * m4/free.m4: New file.
35502
35503 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35504
35505         * lib/minmax.h (MIN, MAX)
35506         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
35507         Omit the special code that used __typeof__, since we worry that
35508         it could be more trouble than it's worth.  See:
35509         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
35510         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
35511
35512         * lib/free.c: New file.
35513
35514 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
35515
35516         Trivial fixes to Makefile.am parts of module listings.
35517         * modules/strstr: Append strstr.h to lib_SOURCES.
35518         * modules/strcase: Likewise, for strcase.h.
35519
35520 2003-09-27  Karl Berry  <karl@gnu.org>
35521
35522         * config/mkinstalldirs: update from automake.
35523
35524 2003-09-26  Paul Eggert  <eggert@twinsun.com>
35525
35526         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
35527         (error_tail): Do not loop, reallocating temporary buffer, since
35528         the output cannot contain more wide characters than the input
35529         contains bytes, the size must be big enough already.  This avoids
35530         one potential size overflow calculation.  Check for size overflow
35531         when calculating temporary buffer size.  Free temporary buffer
35532         when done, if it was allocated with malloc; this plugs a memory
35533         leak.  Remove casts from void * to pointers, that are no longer
35534         needed now that we're assuming C89 or better.
35535
35536         Merge error changes from glibc.
35537
35538         * lib/error.c, error.h: Update copyright notice header to match glibc.
35539         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
35540         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
35541         Disable cancellation while printing error.
35542         * lib/error.h: Prepend __ to parameter names.
35543
35544 2003-09-26  Jim Meyering  <jim@meyering.net>
35545
35546         * lib/error.c (error_tail): Move some declarations
35547         into inner scope where the local variables are used.
35548
35549 2003-09-26  Bruno Haible  <bruno@clisp.org>
35550
35551         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
35552         stpncpy().
35553         Don't define stpncpy through config.h; it's now done through stpncpy.h.
35554
35555 2003-09-26  Bruno Haible  <bruno@clisp.org>
35556
35557         * lib/stpncpy.h (gnu_stpncpy): New declaration.
35558         (stpncpy): Define as alias for gnu_stpncpy.
35559         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
35560
35561 2003-09-25  Simon Josefsson  <jas@extundo.com>
35562
35563         * lib/xgetdomainname.h: New file.
35564         * lib/xgetdomainname.c: New file.
35565
35566 2003-09-25  Simon Josefsson  <jas@extundo.com>
35567             Bruno Haible  <bruno@clisp.org>
35568
35569         * modules/getdomainname: New file.
35570         * modules/xgetdomainname: New file.
35571         * MODULES.html.sh (func_all_modules): Add getdomainname,
35572         xgetdomainname.
35573
35574 2003-09-25  Simon Josefsson  <jas@extundo.com>
35575             Bruno Haible  <bruno@clisp.org>
35576
35577         * m4/getdomainname.m4: New file.
35578
35579 2003-09-25  Simon Josefsson  <jas@extundo.com>
35580             Bruno Haible  <bruno@clisp.org>
35581
35582         * lib/getdomainname.h: New file.
35583         * lib/getdomainname.c: New file.
35584
35585 2003-09-25  Karl Berry  <karl@gnu.org>
35586
35587         * lib/argp-fmtstream.c, argp-help.c: update from libc.
35588
35589 2003-09-25  Karl Berry  <karl@gnu.org>
35590
35591         * config/install-sh: update from automake.
35592
35593 2003-09-25  Bruno Haible  <bruno@clisp.org>
35594
35595         * modules/version-etc-2: New file, from modules/version-etc with
35596         modifications.
35597         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35598
35599 2003-09-25  Bruno Haible  <bruno@clisp.org>
35600
35601         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35602         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35603
35604 2003-09-24  Simon Josefsson  <jas@extundo.com>
35605
35606         * modules/xgethostname: Add xgethostname.h.
35607
35608 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35609
35610         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35611         the buffer associated with the argument.  Bug reported by
35612         Simon Josefsson.
35613
35614 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35615
35616         * README: Document assumptions that 'int' is at least 32 bits
35617         wide, that integer arithmetic is 2's complement without overflow,
35618         that there are no holes in integer values, that adding sizes of
35619         two nonoverlapping objects can't overflow, and that all-bits-zero
35620         yields scalar zero.  Fix spelling and capitalization typos.
35621
35622 2003-09-19  Karl Berry  <karl@gnu.org>
35623
35624         * lib/argp.h: update from libc.
35625
35626 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35627
35628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35629         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35630         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35631
35632 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35633
35634         * gnulib-tool: Use "test -h", not "test -L", for portability
35635         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35636         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35637         (sed_extract_prog): Issue s commands one-by-one, rather than
35638         using \| in one s command.
35639
35640 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35641
35642         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35643         input error, instead of returning NULL the next time we are called
35644         (and therefore losing track of errno).
35645
35646 2003-09-16  Bruno Haible  <bruno@clisp.org>
35647
35648         * gnulib-tool (func_create_testdir): Warn about duplicated
35649         dependencies.
35650
35651 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35652
35653         * modules/argmatch, modules/fatal, modules/obstack,
35654         modules/xalloc, modules/xgethostname: Sort dependencies by
35655         importance, not alphabetically.
35656
35657 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35658
35659         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35660         fails, so that the caller gets the proper errno.
35661
35662         * lib/readutmp.c (read_utmp): Likewise.
35663         Check for fstat error.  Close stream and free storage
35664         when failing.
35665
35666 2003-09-14  Karl Berry  <karl@gnu.org>
35667
35668         * config/srclist.txt (strdup.c): disable for c89 changes.
35669
35670 2003-09-14  Jim Meyering  <jim@meyering.net>
35671
35672         * lib/getloadavg.c: Correct cpp indentation.
35673         * lib/strdup.c: Likewise.
35674         * lib/vasnprintf.c: Likewise.
35675
35676 2003-09-14  Bruno Haible  <bruno@clisp.org>
35677
35678         * modules/fwriteerror: New file.
35679         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35680
35681 2003-09-14  Bruno Haible  <bruno@clisp.org>
35682
35683         * lib/fwriteerror.h: New file.
35684         * lib/fwriteerror.c: New file.
35685
35686 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35687
35688         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35689         modules/xgethostname, modules/xalloc: Depend on exit.
35690
35691 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35692
35693         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35694
35695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35696         and AC_MINIX, too, so that their extensions are available.
35697
35698         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35699         This macro has been superseded by gl_BACKUPFILE.
35700
35701         More patches to assume C89 or better.
35702
35703         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35704
35705         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35706         unconditionally.
35707         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35708         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35709         Include <string.h>, <stdlib.h> unconditionally.
35710         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35711         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35712         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35713         headers or for string.h.
35714         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35715         or strtoul.
35716
35717         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35718         headers.
35719         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35720         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35721         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35722         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35723         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35724         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35725         memcpy, memset.
35726         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35727         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35728         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35729         strtol.
35730         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35731         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35732         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35733         strtoul.
35734
35735 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35736
35737         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35738         * lib/obstack.c [!defined _LIBC]: Likewise.
35739         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35740         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35741         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35742
35743         More changes to assume C89 or better.
35744
35745         * lib/error.c (error_tail): Assume vprintf.
35746
35747         * lib/argmatch.c (getenv): Remove decl.
35748         * lib/progreloc.c (get_full_program_name): Define via prototype.
35749         * lib/setenv.c (clearenv): Likewise.
35750         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35751         needed.
35752         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35753         (malloc, memcpy): Remove decls.
35754         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35755         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35756         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35757         (memcpy): Remove macro.
35758         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35759         (__P): Remove.  All uses removed.
35760         (PTR): Remove.  All uses changed to void *.
35761         (CHAR_BIT, NULL): Remove.
35762         (spaces, zeros, memset_space, memset_zero)
35763         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35764         Remove.
35765         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35766         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35767         Define with prototype.
35768         Remove now-unnecessary prototype decl.
35769         (extra_args_spec): Assume ANSI C.  All uses changed.
35770         (extra_args_spec_iso): Remove.
35771         (my_strftime, emacs_strftimeu): Define via prototype.
35772         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35773         unconditionally.
35774         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35775         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35776         (strtoul, strtol): Remove decls.
35777         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35778         LONG_MAX): Remove.
35779         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35780         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35781         (LOCALE_PARAM_PROTO): New macro.
35782         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35783         (INTERNAL (strtol), strtol): Define with a prototype.
35784         (PARAMS): Remove.  All uses removed.
35785         * lib/tempname.c: Include <string.h> unconditionally.
35786         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35787         * lib/xgethostname.c (main): Define with a prototype.
35788         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35789         Include <stdlib.h> unconditionally.
35790         (calloc, malloc, realloc, free): Remove decls.
35791         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35792         Include <stdlib.h> unconditionally.  Sort include file names.
35793         (strtod): Remove.
35794         (xstrtod): Define with a prototype.
35795         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35796         (strtol, strtoul): Remove decls.
35797
35798 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35799
35800         More patches to assume C89 or better.
35801         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35802         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35803         string.h, memchr, STDC_HEADERS.
35804
35805 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35806
35807         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35808         Include <stdlib.h>, <string.h> unconditionally.
35809         Remove now-unnecessary cast to char *.
35810         * lib/strnlen.c: Include <string.h> unconditionally.
35811         * lib/yesno.c (yesno): Define with a prototype.
35812
35813 2003-09-11  Bruno Haible  <bruno@clisp.org>
35814
35815         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35816
35817 2003-09-10  Jim Meyering  <jim@meyering.net>
35818
35819         * lib/error.c: Correct indentation of cpp directives.
35820
35821 2003-09-10  Bruno Haible  <bruno@clisp.org>
35822
35823         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35824         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35825         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35826         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35827         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35828         <stdlib.h> and <string.h> checks.
35829         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35830         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35831
35832 2003-09-10  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/strcspn.c: Include <string.h> unconditionally.
35835         * lib/strpbrk.c: Include <string.h> unconditionally.
35836         * lib/strstr.c: Include <string.h> unconditionally.
35837         * lib/unicodeio.c: Include <string.h> unconditionally.
35838         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35839         * lib/unsetenv.c: Likewise.
35840         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35841         * lib/yesno.c: Include <stdlib.h> unconditionally.
35842         (rpmatch): Add prototype.
35843
35844 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35845
35846         More patches to assume C89 or better.
35847         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35848         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35849         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35850         or for string.h.
35851         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35852         stdlib.h.
35853         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35854         C headers.
35855         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35856         string.h.
35857         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35858         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35859         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35860         or for string.h.
35861         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35862         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35863         C headers.
35864         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35865         memcpy.
35866         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35867         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35868         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35869         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35870         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35871         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35872         string.h, free.
35873         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35874         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35875         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35876         C headers, or for string.h.
35877         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35878         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35879         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35880         headers, memory.h, stdlib.h, string.h, strings.h.
35881         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35882         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35883         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35884         strchr.
35885         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35886         headers, memory.h, string.h.
35887         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35888         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35889         free.
35890         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35891         headers.
35892         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35893         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35894         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35895         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35896         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35897
35898 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35899
35900         More K&R removal.
35901
35902         * lib/acosl.c (main): Use a prototype.
35903         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35904         tanl.c: Likewise.
35905
35906         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35907
35908         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35909         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35910         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35911         with a prototype.
35912         * lib/getopt.c (const): Remove macro.
35913         Include <string.h> unconditionally.
35914         (my_index): Remove; all uses changed to strchr.
35915         (strlen): Remove decl.
35916         (exchange): Remove forward decl; no longer needed.
35917         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35918         Define with prototype.
35919         * lib/getopt1.c (const): Remove macro.
35920         (getopt_long, getopt_long_only, main): Define with prototype.
35921
35922         * lib/getugroups.c: Include <string.h> unconditionally.
35923
35924         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35925         (getusershell, setusershell, endusershell, readname, main):
35926         Define with prototypes.
35927
35928         * lib/group-member.c: Include group-member.h first.
35929         Include <stdlib.h> unconditionally.
35930
35931         * lib/hard-locale.c: Include hard-locale.h first.
35932         Include <stdlib.h>, <string.h> unconditionally.
35933
35934         * lib/hash.c (free, malloc): Remove decls.
35935         Include <stdlib.h> unconditionally.
35936
35937         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35938         (getenv): Do not declare.
35939
35940         * lib/idcache.c: Include <string.h> unconditionally.
35941
35942         * lib/long-options.c: Include long-options.h first, to test interface.
35943         Include <stdlib.h> unconditionally.
35944
35945         * lib/makepath.c: Include makepath.h first, to test interface.
35946         Include <stdlib.h> and <string.h> unconditionally.
35947
35948         * lib/linebuffer.c: Include <stdlib.h>.
35949         (free): Remove decl.
35950
35951         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35952         stddef.h. rpl_malloc returns void *, not char *.
35953         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35954         prototype.
35955
35956         * lib/md5.h: Include <limits.h> unconditionally.
35957         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35958         (__P): Remove; all uses removed.
35959         * lib/md5.c: Include "md5.h" first.
35960         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35961         md5_buffer, md5_process_bytes, md5_process_block):
35962         Define with prototypes.
35963         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35964         * lib/sha.c: Include "sha.h" first.
35965         Include <stdlib.h>, <string.h> unconditionally.
35966
35967         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35968         * lib/memcmp.c (__ptr_t): Likewise.
35969         * lib/memrchr.c (__ptr_t): Likewise.
35970         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35971         Include <string.h> unconditionally.
35972         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35973         * lib/memchr.c: Include <stdlib.h> unconditionally.
35974         * lib/memchr.c (LONG_MAX): Remove.
35975         * lib/memrchr.c (LONG_MAX): Likewise.
35976         * lib/memchr.c (__memchr): Define via a prototype.
35977         * lib/memrchr.c (__memrchr): Likewise.
35978         * lib/memcmp.c (__P): Remove, and remove all uses.
35979         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35980         Remove forward decls; no longer needed.
35981         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35982         Use types required by C89 in prototype.
35983
35984         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35985         * lib/savedir.c: Likewise.
35986         * lib/mkdir.c (free): Remove decl.
35987         * lib/rmdir.c (rmdir): Define with a prototype.
35988         * lib/savedir.c: Include savedir.h first, to test interface.
35989
35990         * lib/mktime.c (STDC_HEADERS): Remove.
35991         Include <stdlib.h>, <string.h> unconditionally.
35992
35993         * lib/modechange.c: Include <stdlib.h> unconditionally.
35994         (malloc): Remove decl.
35995
35996         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35997         (free): Remove decl.
35998
35999         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
36000         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
36001         (This type really should be intptr_t, but that's a C99ism.)
36002         (_obstack_memcpy): Remove: all uses changed to memcpy.
36003         Include <string.h> unconditionally.
36004         (struct obstack): Assume __STDC__ for types of members
36005         chunkfun, freefun, extra_arg.
36006         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
36007         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
36008         obstack_begin, obstack_specify_allocation,
36009         obstack_specify_allocation_with_arg, obstack_chunkfun,
36010         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
36011         Remove unprototyped decls and the macros that use them.
36012         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
36013         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
36014         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
36015         (defined __STDC__ && __STDC__)]:
36016         Remove nonprototyped code.
36017         Include <stdlib.h> unconditionally.
36018         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
36019         _obstack_allocated_p, _obstack_free, obstack_free,
36020         _obstack_memory_used, print_and_abort):
36021         Define using prototypes.
36022         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
36023         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
36024         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
36025         obstack_next_free, obstack_object_size, obstack_room) [0]:
36026         Remove unused, unprototyped code.
36027
36028         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
36029
36030         * lib/physmem.c (physmem_total, physmem_available, main): Define
36031         with prototypes.
36032
36033         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
36034         (main): Define with a prototype.
36035
36036         * lib/posixver.c (getenv): Remove decl.
36037
36038         * lib/putenv.c (malloc): Returns void *, not char *.
36039         Include <string.h> unconditionally.
36040         (strchr, memcpy, NULL): Do not define.
36041
36042         * lib/readtokens.c: Include readtokens.h first, to test interface.
36043         Include <stdlib.h>, <string.h> unconditionally.
36044         (init_tokenbuffer): Define with a prototype.
36045
36046         * lib/regex.c (PARAMS): Remove.  All uses removed.
36047         All uses of _RE_ARGS removed, too.
36048         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
36049         unconditionally.
36050         (bzero): Assume memset exists.
36051         (memcmp, memcpy, NULL): Remove.
36052         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
36053         char, or assignments to local vars of type signed char.
36054         (init_syntax_once, PREFIX(extract_number_and_incr),
36055         PREFIX(print_partial_compiled_pattern),
36056         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
36057         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
36058         PREFIX(regex_grow_registers), PREFIX(regex_compile),
36059         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
36060         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
36061         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
36062         wcs_compile_range, byte_compile_range, truncate_wchar,
36063         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
36064         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
36065         count_mbs_length, wcs_re_match_2_internal,
36066         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
36067         PREFIX(alt_match_null_string_p),
36068         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
36069         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
36070         regfree, PREFIX(extract_number)): Define with prototype.  Remove
36071         now-unnecessary declaration, if any.
36072         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
36073         regcomp, regexec):
36074         Remove now-unnecessary casts among pointer types.
36075         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
36076
36077         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
36078         (free): Remove decl.
36079
36080         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
36081
36082         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
36083         (free): Remove decl.
36084
36085         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
36086         * lib/xgetcwd.c: Likewise.
36087
36088         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
36089         (free): Remove decl.
36090
36091         * lib/strchrnul.c (strchrnul): Define with a prototype.
36092         Fix bug: c_in was not converted to char before searching.
36093
36094         The following changes are not K&R related:
36095
36096         * lib/group-member.h: Include <sys/types.h>, so that this file is
36097         self-contained.
36098         * lib/makepath.h: Likewise.
36099
36100         * lib/getusershell.c (readname, default_index, line_size, readname):
36101         Use size_t, not int, for sizes.
36102         (readname): If the size overflows, report an error instead of
36103         looping forever.
36104
36105 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36106
36107         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
36108         libc.
36109
36110 2003-09-09  Paul Eggert  <eggert@twinsun.com>
36111
36112         * README: New section: portability guidelines.
36113
36114 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36115
36116         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
36117         C89 spec.
36118
36119 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
36120
36121         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
36122
36123 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36124
36125         Assume C89 or better; remove K&R cruft.
36126         A few of these changes were first proposed by Derek Robert Price
36127         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
36128
36129         * lib/addext.c: Include <string.h> unconditionally.
36130         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
36131         Don't declare getenv or malloc.
36132
36133         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
36134         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
36135         (NULL): Remove.
36136         (find_stack_direction, alloca): Use prototypes.
36137
36138         * lib/atexit.c (atexit): Define using a prototype.
36139
36140         * lib/basename.c, dirname.c, stripslash.c:
36141         Include <string.h> unconditionally.
36142
36143         * lib/bcopy.c: Include <stddef.h>.
36144         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
36145
36146         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
36147
36148         * lib/error.h (error, error_at_line, error_print_progname)
36149         [! (defined (__STDC__) && __STDC__)]: Remove decls.
36150         * lib/error.c: Include error.h first, to check interface.
36151         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36152         (VA_START): Remove; all uses changeed to va_start.
36153         (exit, strerror): Remove decls.
36154         (error_print_progname): Prototype uncondionally.
36155         Don't include <errno.h>; no longer needed.
36156         (private_strerror): Remove.
36157         (error_tail): Always define.
36158         (error, error_at_line): Assume C89 or better; always use prototypes.
36159         * lib/fatal.c: Include "fatal.h" first, to test interface.
36160         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
36161         (VA_START): Remove; all uses changed to va_start.
36162         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
36163         this case.
36164         (exit): Remove decl.
36165         (fatal): Prototype unconditionally.  Assume va_start works.
36166         Abort at end, to pacify gcc.
36167
36168         * lib/euidaccess.c (main): Define with a prototype.
36169
36170         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
36171
36172         * lib/exitfail.c: Include <stdlib.h> unconditionally.
36173
36174         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
36175         prototypes.
36176         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
36177         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
36178         (getenv): Remove decl.
36179         (fnmatch): Define using a prototype.
36180         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
36181         (FCT): Define using a prototype.
36182
36183         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
36184
36185         * lib/gethostname.c: Include <stddef.h>.
36186         (gethostname): Define with prototype.  Length is size_t, not int.
36187
36188 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36189
36190         Assume C89 or better; remove K&R cruft.
36191         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
36192         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
36193         string.h, getenv, malloc.
36194         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
36195         headers.
36196         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
36197         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
36198         do not check for strerror.
36199         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
36200         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
36201         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
36202         do not check for doprnt or vprintf.
36203         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
36204         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
36205
36206 2003-09-08  Paul Eggert  <eggert@twinsun.com>
36207
36208         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
36209         getversion.c should have been removed then, but was accidentally
36210         preserved.
36211
36212         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
36213         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
36214
36215 2003-09-08  Karl Berry  <karl@gnu.org>
36216
36217         * config/config.sub, config.guess, srclistvars.sh: update from savannah
36218                 config, forget about prep.
36219
36220         * config/depcomp, missing: update from automake.
36221
36222 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36223
36224         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
36225         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36226
36227 2003-09-07  Paul Eggert  <eggert@twinsun.com>
36228
36229         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
36230         copy_tm_result.  Bug reported by Simon Josefsson in
36231         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
36232
36233 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36234
36235         * m4/time_r.m4: New file.
36236         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
36237         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
36238         is. Check for timegm declaration.
36239         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
36240         Do not check for gmtime_r.
36241         Replace mktime if __mktime_internal does not exist and if mktime
36242         hasn't been replaced already.
36243
36244 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36245
36246         * lib/time_r.c, lib/time_r.h: New files.
36247
36248         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
36249         __localtime_r.
36250         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
36251         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
36252
36253         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
36254         __gmtime_r.
36255         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
36256         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
36257         Include <time_r.h>.
36258
36259         * lib/timegm.c: Switch to glibc implementation, with the following
36260         changes:
36261         [defined HAVE_CONFIG_H]: Include <config.h>.
36262         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
36263         (__mktime_internal) [!defined _LIBC]: New decl.
36264         (__gmtime_r) [!defined _LIBC]: New macro and function.
36265         (timegm): Use a prototype, since gnulib assumes C89.
36266         Do not bother declaring tmp to be const, as it's not really usefu.
36267         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
36268         (timegm): Declare only if HAVE_DECL_TIMEGM.
36269
36270 2003-09-06  Paul Eggert  <eggert@twinsun.com>
36271
36272         * MODULES.html.sh (func_all_modules): Add time_r.
36273         * modules/time_r: New file.
36274         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
36275         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
36276
36277 2003-09-03  Paul Eggert  <eggert@twinsun.com>
36278
36279         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
36280         Bug reported by Lute Kamstra in
36281         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
36282
36283         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
36284         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
36285         course with correspondingly smaller numbers for tomorrow and
36286         yesterday.  From Tadayoshi Funaba.  Originally installed into
36287         sh-utils on 1999-08-07, but the patch got lost (I guess during the
36288         coreutils merge?).
36289
36290 2003-08-31  Simon Josefsson  <jas@extundo.com>
36291
36292         * modules/timegm: New file.
36293         * MODULES.html.sh (func_all_modules): Add timegm.
36294
36295 2003-08-31  Simon Josefsson  <jas@extundo.com>
36296
36297         * m4/timegm.m4: New file.
36298
36299 2003-08-31  Simon Josefsson  <jas@extundo.com>
36300
36301         * lib/timegm.h: New file.
36302         * lib/timegm.c: New file.  Based on
36303         wget-1.8.2/src/http.c:mktime_from_utc.
36304
36305 2003-08-31  Karl Berry  <karl@gnu.org>
36306
36307         * lib/argp.h: update from libc.
36308
36309 2003-08-28  Bruno Haible  <bruno@clisp.org>
36310
36311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
36312         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
36313         followed by '#define fnmatch fnmatch_posix' gives an error.
36314
36315 2003-08-28  Bruno Haible  <bruno@clisp.org>
36316
36317         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
36318         warning on QNX, which defines O_BINARY to 000000.
36319
36320 2003-08-27  Jim Meyering  <jim@meyering.net>
36321
36322         * m4/mkstemp.m4: Require that the system mkstemp be able to create
36323         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
36324         would fail after 32.  Reported by Danny Levinson.  Details here:
36325         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36326
36327 2003-08-24  Bruno Haible  <bruno@clisp.org>
36328
36329         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36330         MSVC7 <stdio.h> is included later.
36331
36332 2003-08-22  Simon Josefsson  <jas@extundo.com>
36333
36334         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36335
36336 2003-08-20  Karl Berry  <karl@gnu.org>
36337
36338         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36339
36340 2003-08-20  Bruno Haible  <bruno@clisp.org>
36341
36342         * modules/progname: New file.
36343         * MODULES.html.sh (func_all_modules): Add progname.
36344
36345 2003-08-20  Bruno Haible  <bruno@clisp.org>
36346
36347         * lib/progname.h: New file, from GNU gettext.
36348         * lib/progname.c: New file, from GNU gettext.
36349         * lib/progreloc.c: New file, from GNU gettext.
36350
36351 2003-08-19  Jim Meyering  <jim@meyering.net>
36352
36353         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
36354         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
36355
36356 2003-08-19  Bruno Haible  <bruno@clisp.org>
36357
36358         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
36359         more.
36360
36361 2003-08-19  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/xstrdup.c: Assume <string.h> exists.
36364
36365 2003-08-18  Paul Eggert  <eggert@twinsun.com>
36366
36367         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
36368         in makefile rules.
36369
36370 2003-08-18  Jim Meyering  <jim@meyering.net>
36371
36372         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
36373         * m4/lib-ld.m4: Likewise.
36374
36375 2003-08-18  Jim Meyering  <jim@meyering.net>
36376
36377         * lib/setenv.h: Indent nested cpp directive.
36378         * lib/vasnprintf.c: Remove trailing blanks.
36379
36380 2003-08-17  Simon Josefsson  <jas@extundo.com>
36381
36382         * modules/xstrndup: New file.
36383         * MODULES.html.sh (func_all_modules): Add xstrndup.
36384
36385 2003-08-17  Simon Josefsson  <jas@extundo.com>
36386
36387         * modules/argp: Fix autoconf macro name. Add more dependencies.
36388
36389 2003-08-17  Simon Josefsson  <jas@extundo.com>
36390
36391         * m4/xstrndup.m4: New file.
36392
36393 2003-08-17  Simon Josefsson  <jas@extundo.com>
36394
36395         * m4/argp.m4: New file.
36396
36397 2003-08-17  Simon Josefsson  <jas@extundo.com>
36398             Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/xstrndup.h: New file.
36401         * lib/xstrndup.c: New file.
36402
36403 2003-08-17  Bruno Haible  <bruno@clisp.org>
36404
36405         * modules/strndup (Files, Include): Add lib/strndup.h.
36406
36407 2003-08-17  Bruno Haible  <bruno@clisp.org>
36408
36409         * modules/euidaccess (Files): Add lib/euidaccess.h.
36410
36411 2003-08-17  Bruno Haible  <bruno@clisp.org>
36412
36413         * lib/strndup.h: New file.
36414
36415 2003-08-17  Bruno Haible  <bruno@clisp.org>
36416
36417         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
36418         like AC_GNU_SOURCE.
36419         * modules/extensions (configure.ac): Comment out the invocation of
36420         gl_USE_SYSTEM_EXTENSIONS.
36421
36422 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36423
36424         Merges from coreutils, etc.
36425         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36426         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
36427         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
36428         fixing a typo.
36429         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
36430         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
36431
36432 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36433
36434         Document merge from coreutils.
36435         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
36436         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
36437         * modules/utime: Add m4/utimes-null.m4.
36438
36439 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36440
36441         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
36442         space, undoing this 2003-08-12 change:
36443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36444
36445 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36446
36447         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
36448         strtoul.c from libc, undoing this 2003-08-12 change:
36449         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36450
36451 2003-08-16  Jim Meyering  <jim@meyering.net>
36452
36453         Merges from coreutils.
36454         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
36455         prefix.  Adjust cache variables similarly.  Create 500 rather than
36456         just 300 files, to exercise bug on Darwin6.5, too.
36457         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
36458         $missing_dir.
36459         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
36460         AM_SYS_POSIX_TERMIOS.
36461         Reported by mkc@mathdogs.com.
36462         Also change use of $am_cv_sys_posix_termios
36463         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
36464         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
36465         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
36466         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
36467         in /proc/mounts until it finds one with matching device number.  This
36468         is unnecessary when the FILE argument *is* a mount point.  No stat call
36469         is necessary in that case.  So, disable the statvfs-testing code on
36470         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
36471         as RedHat bug# 84846.
36472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36473         to 1MB, so as not to render systems with no stack size limit (e.g.,
36474         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36475         Include <unistd.h>.  On some systems,
36476         it is required for the definition of _SC_PAGESIZE.
36477
36478 2003-08-16  Jim Meyering  <jim@meyering.net>
36479
36480         Merge from coreutils.
36481         * lib/xstrtoimax.c: #else #if -> #elif.
36482         * lib/xstrtoumax.c: Likewise.
36483
36484 2003-08-16  Jim Meyering  <jim@meyering.net>
36485
36486         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
36487         * m4/utimes.m4: Removed.
36488         * m4/utimes-null.m4: Renamed from utimes.m4.
36489
36490         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36491         to 1MB, so as not to render systems with no stack size limit (e.g.,
36492         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36493         Include <unistd.h>.  On some systems,
36494         it is required for the definition of _SC_PAGESIZE.
36495
36496 2003-08-16  Jim Meyering  <jim@meyering.net>
36497         and Paul Eggert  <eggert@cs.ucla.edu>
36498
36499         Merges from coreutils, etc.
36500
36501         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
36502         using the latest version from cvs.  This avoids problems with #line
36503         directives using a vendor (Sun) compiler.
36504         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
36505         Don't set GETGROUPS_LIB here; now it's
36506         done via getgroups.m4's wrapper function.
36507         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
36508         rather than just in sh-util/configure.in, so that the
36509         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
36510         same.
36511         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
36512         AC_FUNC_GETLOADAVG where to find getloadavg.c.
36513         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
36514         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
36515         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
36516         Remove code that is now done by the newly-required macros.
36517         Append $(EXEEXT) to DF_PROG.
36518         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
36519         Do not invoke or require the following here,
36520         since prereq.m4 or some gnulib .m4 now does this for us:
36521         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
36522         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
36523         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
36524         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
36525         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
36526         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
36527         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
36528         AC_FUNC_OBSTACK.
36529         Do not replace the following functions, as this is now the job
36530         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
36531         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
36532         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
36533         atexit getpass, strdup, getpagesize.
36534         Replace 'raise'.
36535         Do not check for the following functions, as this is now the job
36536         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
36537         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
36538         setregid.
36539         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
36540         Check for sys/sysctl.h.
36541         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
36542         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
36543         of checking for ssize_t ourselves.
36544
36545         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
36546         Require every macro that gnulib/modules/* suggests for us.
36547         (jm_PREREQ_ADDEXT): New macro.
36548         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
36549         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
36550
36551         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
36552         (gl_PHYSMEM): Use it.
36553         Also check for `table' function.
36554         Check for new headers and functions.
36555         Add check for sys/sysmp.h.
36556         With suggestions from Kaveh Ghazi.
36557         Ignore headers that are present but cannot be compiled.  This
36558         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
36559         C 5.4.
36560
36561 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36562
36563         Document merge from coreutils.
36564         * modules/userspec: Depend on posixver.
36565         * modules/strftime: Depend on tzset.
36566
36567 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36568
36569         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
36570         rather than tab, after '#' in shell-script copyright notices.
36571         Suggested by Bruno Haible.
36572
36573 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36574
36575         * config/srclist-update: Use three spaces, rather than tab, after '#'
36576         in shell-script copyright notices.  Suggested by Bruno Haible.
36577         Remove unnecessary parenthesization in regular expression.
36578
36579 2003-08-15  Jim Meyering  <jim@meyering.net>
36580
36581         Merge from coreutils.
36582         * lib/xgethostname.c: Include <stdlib.h>.
36583         (xghostname): Don't exit for anything other than memory-related
36584         failure; just return NULL.
36585         * lib/userspec.c: Include "posixver.h".
36586         (parse_user_spec): Accept `.' as a separator only
36587         in pre-POSIX-200112 mode.
36588         * lib/strtoimax.c: Use #elif rather than #else #if.
36589         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
36590         Remove function, now that we can rely on a working tzset function.
36591         [!_LIBC]: Ensure that the required autoconf test has been run.
36592         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36593         Use underlying_strftime for %r.
36594         * lib/sha.c: Merge in some clean-up and optimization changes from
36595         glibc.
36596         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36597         Ensure that it is a multiple of 64.
36598         Rearrange loop exit tests so as to avoid performing an
36599         additional fread after encountering an error or EOF.
36600         * lib/realloc.c: Update copyright date.
36601
36602 2003-08-15  Jim Meyering  <jim@meyering.net>
36603         and Paul Eggert  <eggert@twinsun.com>
36604
36605         Merge from coreutils.
36606         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36607         member but strut utmpx does not.  Needed for AIX 4.3.3.
36608         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36609
36610 2003-08-15  Jim Meyering  <jim@meyering.net>
36611         and Paul Eggert  <eggert@cs.ucla.edu>
36612
36613         Merges from coreutils, etc.
36614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36615         Require gl_FUNC_TZSET_CLOBBER.
36616         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36617         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36618         members.
36619
36620 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36621
36622         Help the merge from coreutils.
36623         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36624         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36625         * m4/tzset.m4: Use it too.
36626
36627 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36628
36629         * modules/tzset: New file.
36630
36631 2003-08-14  Jim Meyering  <jim@meyering.net>
36632
36633         Merges from coreutils.
36634         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36635         variable names, rather than @FNMATCH_H@.
36636         * modules/alloca: Likewise for $(ALLOCA_H).
36637
36638         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36639         the three copies of the literal target, `fnmatch.h'.
36640         * modules/alloca (alloca.h): Likewise.
36641
36642 2003-08-14  Jim Meyering  <jim@meyering.net>
36643
36644         Merge from coreutils.
36645         * m4/tzset.m4: New file.
36646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36647         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36648         otherwise, AIX 5.1 systems would end up using the latter.
36649         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36650         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36651         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36652         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36653
36654 2003-08-14  Jim Meyering  <jim@meyering.net>
36655
36656         Merge from coreutils.
36657         * lib/obstack.h: Whitespace changes.
36658         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36659         and xcalloc return values.
36660         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36661         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36662         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36663         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36664         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36665         error from mntctl.
36666         Use mntctl's return value to drive the entry-processing loop, since
36667         we can't rely on the value of the vmt_length member in the last
36668         entry.  On some systems doing so could result in exhausting
36669         virtual memory.  Based in part on a patch from Mike Jetzer.
36670
36671 2003-08-14  Jim Meyering  <jim@meyering.net>
36672         and Paul Eggert  <eggert@twinsun.com>
36673
36674         Merges from coreutils, plus other fixes.
36675         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36676         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36677         for credits and details.  Thanks to Kaveh Ghazi for helping
36678         to keep these files in sync.
36679         (ARRAY_SIZE): Define it.
36680         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36681         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36682         (memcasecmp): Don't assume size_t fits in unsigned int.
36683         Remove casts and duplicate code.
36684         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36685         (memcpy): Remove definition.
36686         Merge in some clean-up and optimization changes from glibc.
36687         [BLOCKSIZE]: Move definition to top of file.
36688         Ensure that it is a multiple of 64.
36689         Rearrange loop exit tests so as to avoid performing an
36690         additional fread after encountering an error or EOF.
36691         * lib/md5.h (md5_uintptr): Define.
36692         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36693         return to the initial working directory.  Preserve errno
36694         for caller.
36695         * lib/idcache.c: Include "xalloc.h".
36696         (xmalloc, xrealloc): Remove decls.
36697         (getuser): Remove casts no longer required in C89.
36698         * lib/human.c: Include stdio.h, for sprintf.
36699         * lib/group-member.c: Include "xalloc.h".
36700         (xmalloc, xrealloc): Remove decls.
36701         (get_group_info): Remove casts no longer required in C89.
36702         * lib/getusershell.c (readname): Remove casts no longer required in
36703         C89.
36704         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36705         * lib/getline.c: Whitespace fix, from coreutils.
36706
36707 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36708
36709         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36710         Check for isascii.
36711
36712         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36713         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36714         Undo previous (whitespace-only) change.
36715
36716 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36717
36718         * lib/exclude.c: Include <ctype.h>
36719         (IN_CTYPE_DOMAIN): New macro.
36720         (is_space): New fn.
36721         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36722         and empty lines.
36723
36724         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36725         Undo previous (whitespace-only) change.
36726
36727 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36728
36729         * config/srclist-update: Change update back to the old behavior,
36730         leaving whitespace alone.  Use one 'sed' command rather than a
36731         pipeline.
36732         (fixlicense): Now a variable, not a function.
36733         (remove_trailing_blanks): Remove.
36734         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36735         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36736         Undo previous (whitespace-only) change.
36737
36738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36739
36740         Merge from coreutils.
36741         * modules/euidaccess: Add lib_SOURCES, include for new
36742         file euidaccess.h
36743
36744 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36745
36746         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36747         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36748         Normalize leading white space and remove trailing white space.
36749
36750         Merge from coreutils
36751         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36752
36753         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36754         0.12.1.  These files are now being upgraded automatically by
36755         ../config/srclist-update.
36756
36757 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36758
36759         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36760         Normalize leading white space and remove trailing white space.
36761         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36762         notice, as per ../config/srclist-update.
36763
36764         Merge from coreutils.
36765         * lib/euidaccess.h: New file.
36766         * lib/euidaccess.c: Include it.
36767         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36768         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36769         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36770
36771 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36772
36773         * config/srclist-update: Add copyright notice.
36774         (remove_id_lines, remove_trailing_blanks): New constants.
36775         (fixfile): Use them to normalize spacing a bit in copied files.
36776         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36777         Normalize leading white space and remove trailing white space.
36778
36779         * config/texinfo.tex: Sync with texinfo.
36780
36781         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36782         strtoul.c from libc, to merge coreutils whitespace changes.
36783
36784         * config/srclist.txt: Get the following m4 files from gettext:
36785         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36786         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36787         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36788         wint_t.m4.
36789
36790 2003-08-12  Karl Berry  <karl@gnu.org>
36791
36792         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36793         been made.
36794
36795 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36796
36797         * modules/gnu-source, m4/gnu-source.m4:
36798         Remove; we're assuming Autoconf 2.54 or later now.
36799         Suggested by Bruno Haible.
36800         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36801
36802 2003-08-11  Bruno Haible  <bruno@clisp.org>
36803
36804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36805
36806 2003-08-11  Bruno Haible  <bruno@clisp.org>
36807
36808         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36809         (vasnprintf): Use it instead of wcslen.
36810
36811 2003-08-11  Bruno Haible  <bruno@clisp.org>
36812
36813         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36814         value to ensure that _Bool promotes to int. Use #define for _Bool when
36815         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36816
36817 2003-08-10  Karl Berry  <karl@gnu.org>
36818
36819         * lib/regex.h: update from libc (whitespace fix).
36820
36821 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36822
36823         Merge some files from coreutils.  These changes were
36824         originally made by Jim Meyering.
36825         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36826         many older Unixes require this.
36827         * lib/alloca.c (alloca): Remove cast to argument of free;
36828         no longer needed in C89.
36829         * lib/alloca_.h, regex.h: Fix white space to match
36830         what GNU indent does.
36831
36832 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36833
36834         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36835         apparently Emacs's Unicode mode got confused before my 2003-08-05
36836         checkin.
36837
36838 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36839
36840         * m4/extensions.m4: New file.
36841         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36842         Require gl_USE_SYSTEM_EXTENSIONS.
36843         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36844         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36845
36846 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36847
36848         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36849         * modules/extensions, modules/gnu-source: New files.
36850         * modules/timespec, modules/unlocked-io: Depend on extensions.
36851
36852 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36853
36854         * modules/restrict: New file.
36855         * MODULES.html.sh (func_all_modules): Add restrict.
36856         * modules/regex: Depend on restrict.
36857
36858 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36859
36860         * m4/restrict.m4: New file.
36861         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36862
36863 2003-08-07  Bruno Haible  <bruno@clisp.org>
36864
36865         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36866         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36867
36868 2003-08-07  Bruno Haible  <bruno@clisp.org>
36869
36870         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36871         makes the module 'getndelim2' compatible with the module 'getline'.
36872
36873 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36874
36875         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36876         byte with "\201" to avoid glitches when editing that source file
36877         with multi-gnome-terminal.
36878
36879 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36880
36881         * lib/bumpalloc.h: Remove.
36882
36883 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36884
36885         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36886         * modules/bumpalloc: Remove.
36887
36888 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36889
36890         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36891         GNU coding style.
36892
36893         Merge from coreutils.
36894         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36895         1. From glibc.
36896         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36897         from Karl Berry, implemented by Jim Meyering.
36898         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36899         from Dmitry V. Levin.
36900         Remove anachronistic cast of xrealloc.
36901         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36902         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36903         type. Otherwise, it wouldn't compile with at least /bin/cc on
36904         ymp-cray-unicos9.0.2.X.
36905         Combine two mostly-identical uses of alloca into one.
36906         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36907
36908 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36909
36910         [From Emacs.]
36911
36912         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36913         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36914         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36915         obsolete NLIST_NAME_UNION.
36916         [__GNU__]: Undef BSD and FSCALE.
36917         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36918
36919 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36920
36921         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36922         an enum type, so that it's guaranteed to promote to int.  See:
36923         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36924
36925 2003-08-03  Karl Berry  <karl@gnu.org>
36926
36927         * config/depcomp: update from automake.
36928
36929 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36930
36931         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36932         (strerror): Don't assume that a printable int fits in 14 bytes.
36933
36934 2003-07-31  Bruno Haible  <bruno@clisp.org>
36935
36936         * modules/getpass-gnu: New file.
36937         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36938
36939 2003-07-31  Bruno Haible  <bruno@clisp.org>
36940
36941         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36942
36943 2003-07-24  Karl Berry  <karl@gnu.org>
36944
36945         * config/missing: update from automake.
36946
36947 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36948             Bruno Haible  <bruno@clisp.org>
36949
36950         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36951         * lib/getline.c (getline, getdelim): Likewise.
36952         Remove _GNU_SOURCE define; now it's defined in config.h through
36953         m4/getline.m4.
36954
36955 2003-07-23  Karl Berry  <karl@gnu.org>
36956
36957         * config/config.sub: update from prep.
36958
36959 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36960
36961         * modules/xalloc (Depends-on): Add exitfail.
36962         * modules/xmemcoll: Likewise.
36963
36964 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36965
36966         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36967         over-parenthesization in macros.
36968
36969         Sync with coreutils.
36970
36971         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36972         required by C99.
36973
36974         Use `exit_failure' for xalloc and xmemcoll instead of their own
36975         private exit-failure variables.
36976         * lib/xalloc.h (xalloc_exit_failure): Remove.
36977         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36978         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36979         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36980         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36981         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36982
36983 2003-07-20  Jim Meyering  <jim@meyering.net>
36984
36985         * modules/closeout (Depends-on): Add exitfail.
36986         Suggestion from Bruno Haible.
36987
36988 2003-07-19  Karl Berry  <karl@gnu.org>
36989
36990         * config/config.sub: update from prep.
36991
36992 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36993
36994         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36995         Remove.
36996         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36997         to test that it can stand by itself.  Include "exitfail.h".
36998         Clients should set exit_failure instead.
36999         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
37000
37001 2003-07-18  Bruno Haible  <bruno@clisp.org>
37002
37003         * modules/getndelim2: New file.
37004         * modules/getline: Share files with module getndelim2.
37005         * modules/getnline: Depend on getndelim2 instead of sharing files with
37006         it. Add getnline.c to lib_SOURCES.
37007         * MODULES.html.sh (func_all_modules): Add getndelim2.
37008
37009 2003-07-18  Bruno Haible  <bruno@clisp.org>
37010
37011         * m4/getndelim2.m4: New file.
37012         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
37013         invoke gl_PREREQ_GETNDELIM2.
37014         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
37015         gl_PREREQ_GETNDELIM2.
37016         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
37017         gl_GETNDELIM2.
37018
37019 2003-07-18  Bruno Haible  <bruno@clisp.org>
37020
37021         * lib/getndelim2.h: New file.
37022         * lib/getndelim2.c: Make into a module of its own. Include config.h,
37023         getndelim2.h.
37024         (getndelim2): Make non-static. Change return type to ssize_t.
37025         * lib/getline.h: Change argument names.
37026         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
37027         * lib/getnline.c: Include getndelim2.h.
37028
37029 2003-07-18  Andreas Schwab  <schwab@suse.de>
37030
37031         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
37032
37033 2003-07-17  Karl Berry  <karl@gnu.org>
37034
37035         * config/config.sub: update from prep.
37036
37037 2003-07-17  Bruno Haible  <bruno@clisp.org>
37038
37039         * modules/getnline: New file.
37040         * modules/getline: Add lib/getndelim2.c to source file list.
37041         * MODULES.html.sh (func_all_modules): Add getnline.
37042
37043 2003-07-17  Bruno Haible  <bruno@clisp.org>
37044
37045         * m4/getnline.m4: New file.
37046
37047 2003-07-17  Bruno Haible  <bruno@clisp.org>
37048
37049         * m4/Makefile.am.in: Remove file.
37050         * m4/Makefile.am: Remove file.
37051         * m4/Makefile.in: Remove file.
37052
37053 2003-07-17  Bruno Haible  <bruno@clisp.org>
37054
37055         * lib/getnline.h: New file.
37056         * lib/getnline.c: New file.
37057         * lib/getndelim2.c: New file, extracted from getline.c.
37058         (getndelim2): Renamed from getdelim2, with added nmax argument.
37059         * lib/getline.c: Include getndelim2.c.
37060         (getdelim2): Moved out to getndelim2.c.
37061         (getline, getdelim): Update.
37062
37063 2003-07-17  Bruno Haible  <bruno@clisp.org>
37064
37065         * lib/Makefile.am: Remove file.
37066         * lib/Makefile.in: Remove file.
37067
37068 2003-07-17  Bruno Haible  <bruno@clisp.org>
37069
37070         * configure.in: Remove file.
37071         * Makefile.in: Remove file.
37072
37073 2003-07-17  Bruno Haible  <bruno@clisp.org>
37074
37075         * MODULES.html.sh: Put the </BODY> right before </HTML>.
37076
37077 2003-07-16  Karl Berry  <karl@gnu.org>
37078
37079         * config/srclist-update: was running fixlicense twice, which caused
37080                 texinfo.tex to be nullified for some reason.  Simplify,
37081                 $gplsrc is no longer needed as far as I can see?
37082
37083 2003-07-16  Jim Meyering  <jim@meyering.net>
37084
37085         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
37086
37087 2003-07-15  Paul Eggert  <eggert@twinsun.com>
37088
37089         * config/srclist.txt: Get the following files from gettext-runtime/intl
37090         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
37091         ref-del.sin.  From Bruno Haible.
37092         * config/srclist-update (fixfile): Change grep pattern again, since the
37093         previous fix didn't work (there was another trailing $).  Use
37094         '[$]' to escape the $s.
37095
37096 2003-07-15  Karl Berry  <karl@gnu.org>
37097
37098         * lib/vasnprintf.c: update from gettext.
37099
37100 2003-07-15  Karl Berry  <karl@gnu.org>
37101
37102         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
37103         gets expanded when surrounded by '$'.
37104
37105 2003-07-15  Jim Meyering  <jim@meyering.net>
37106
37107         * modules/save-cwd: Don't depend on error.  From Derek Price.
37108
37109 2003-07-15  Jim Meyering  <jim@meyering.net>
37110
37111         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
37112
37113 2003-07-14  Simon Josefsson  <jas@extundo.com>
37114
37115         * modules/mempcpy: New file.
37116         * MODULES.html.sh (func_all_modules): Add mempcpy.
37117
37118 2003-07-14  Simon Josefsson  <jas@extundo.com>
37119
37120         * m4/mempcpy.m4: New file.
37121
37122 2003-07-14  Simon Josefsson  <jas@extundo.com>
37123
37124         * lib/mempcpy.h: New file.
37125         * lib/mempcpy.c: New file.
37126
37127 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37128
37129         * modules/getdate, modules/posixtm: Depend on mktime.
37130
37131 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37132
37133         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
37134         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
37135         unicodeio.c, unicodeio.h, unlocked-io.h:
37136         Switch from LGPL to GPL.
37137
37138 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37139
37140         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
37141         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
37142         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
37143         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
37144         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
37145         updated automatically by ../config/srclist-update.  This changes
37146         their license from LPGL to GPL.
37147
37148 2003-07-14  Paul Eggert  <eggert@twinsun.com>
37149
37150         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
37151         assumed to refer to the root of the most recent stable gettext version.
37152         * config/srclistvars.sh: Add defaults for eggert.
37153         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
37154         Match "This program" as well as "The program".  This is needed
37155         for gettext.
37156
37157 2003-07-14  Jim Meyering  <jim@meyering.net>
37158
37159         Don't emit diagnostics.  Let callers do that.
37160         * lib/save-cwd.c: Don't include "error.h".
37161         (save_cwd): Don't call error.  Ensure that errno is valid
37162         when returning nonzero.
37163
37164         * lib/save-cwd.h (restore_cwd): Update prototype.
37165         * lib/save-cwd.c (restore_cwd): Remove two parameters.
37166         Simplify.  Don't call error upon failure.  Let callers do that.
37167         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
37168         when auditing is enabled.  But don't bother updating the #if.
37169
37170 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
37171
37172         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
37173         it breaks C++ compilation.
37174         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
37175
37176 2003-07-10  Simon Josefsson  <jas@extundo.com>
37177
37178         * modules/strchrnul (Makefile.am): Add strchrnul.h.
37179
37180 2003-07-10  Jim Meyering  <jim@meyering.net>
37181
37182         * m4/clock_time.m4: Remove trailing blank.
37183         * m4/intmax_t.m4: Likewise.
37184
37185 2003-07-10  Jim Meyering  <jim@meyering.net>
37186
37187         * lib/vasnprintf.c: Remove trailing blanks.
37188         Make cpp indentation consistent.
37189
37190 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37191
37192         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
37193         posixver.c, strftime.c, strnlen.c, strverscmp.c:
37194         Switch from LGPL to GPL.
37195
37196 2003-07-09  Paul Eggert  <eggert@twinsun.com>
37197
37198         * config/srclist.txt: Sort sublists.  Add
37199         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
37200         that differ from gnulib for one reason or another; we'd like this list
37201         to be smaller but for now let's document what we have.
37202
37203 2003-07-08  Paul Eggert  <eggert@twinsun.com>
37204
37205         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
37206         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
37207         and sweeter "eval x=$x".
37208         * config/srclist.txt: Get lib/argp* from glibc.
37209
37210 2003-07-07  Paul Eggert  <eggert@twinsun.com>
37211
37212         * lib/mktime.c: Fix some boundary cases and remove need for floating
37213         point.
37214
37215         Issue a compile-time diagnostic if time_t is floating point, or if
37216         two's complement arithmetic is not in effect, or if arithmetic
37217         right shift does not propagate the sign.  These assumptions were
37218         all in the original code but they weren't checked.
37219
37220         (TIME_T_MIDPOINT, verify): New macros.
37221         (__isleap): Remove; it has integer overflow problems.
37222         (leapyear): New function, without those problems.
37223         (ydhms_tm_diff): Remove; splitting into two parts.
37224         (ydhms_diff): New function, containing the arithmetic part of
37225         the old ydhms_tm_diff function.  Issue a compile-time
37226         diagnostic if we are not using C99 integer division.
37227         Avoid casts when possible.
37228         (guess_time_tm): New function, containing the checking part of
37229         the old ydhms_tm_diff function.  Return the new value, rather than
37230         the difference between it and the old.  Accept a new argument T
37231         so that *T specifies the old value.  Check for overflow in the result.
37232
37233         (__mktime_internal): Use a time_t offset, not a long int offset.
37234         This undoes the 2003-06-04 change, which is no longer needed now
37235         that we have better overflow checking.
37236         (localtime_offset): Likewise.
37237
37238         (__mktime_internal): Avoid harmful overflow on hosts where time_t
37239         and long are 64-bit but int is only 32-bit.
37240         (ydhms_diff): Use long int to store year1 and yday1.
37241         Issue a compile-time diagnostic if long int is not wide enough.
37242
37243         (__mktime_internal): Use long int to store adjusted year and yday.
37244         Use plain C rather than preprocessor commands, if that doesn't
37245         affect efficiency.
37246         Check for overflow (and try to repair) after each probe
37247         rather than checking only at the very end.  This avoids some bugs
37248         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
37249         does not equal GMT offset at maximum time).
37250         Use integer to check for overflow rather than floating point; this
37251         is more portable to non-IEEE hosts, and is a tad faster.
37252         When we detect that we are oscillating between two values,
37253         don't check whether tm_isdst has the requested value, since
37254         we already know the answer.  When tm_isdst has the wrong value,
37255         use a different heuristic to find the right one, based on the
37256         extreme values actually observed in practice in tz2003a,
37257         rather than the (overly optimistic) "previous 3 calendar quarters".
37258
37259         (not_equal_tm, print_tm, check_result): Use "const T" rather than
37260         "T const" to accommodate glibc style.
37261         (check_result): Use less-confusing report format.  "long" -> "long int.
37262         (main): Likewise.
37263         Don't loop if the iteration overflows time_t.
37264         Allow a negative step in the iteration.
37265
37266 2003-07-06  Karl Berry  <karl@gnu.org>
37267
37268         * config/depcomp: update from automake.
37269         * config/config.sub: update from prep.
37270
37271 2003-07-03  Karl Berry  <karl@gnu.org>
37272
37273         * config/config.guess: update from prep.
37274
37275 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37276
37277         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
37278         xreadlink.c now includes it unconditionally.
37279
37280 2003-07-01  Paul Eggert  <eggert@twinsun.com>
37281
37282         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
37283         having it depend on HAVE_SYS_TYPES_H.
37284
37285 2003-07-01  Bruno Haible  <bruno@clisp.org>
37286
37287         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
37288         <sys/types.h> should be sufficient.
37289         Reported by Paul Eggert.
37290
37291 2003-06-26  Karl Berry  <karl@gnu.org>
37292
37293         * config/depcomp: update from automake.
37294
37295 2003-06-26  Bruno Haible  <bruno@clisp.org>
37296
37297         * modules/human: Depend on module stdbool.
37298
37299 2003-06-25  Bruno Haible  <bruno@clisp.org>
37300
37301         * modules/readlink: New file.
37302         * modules/xreadlink: Depend on it.
37303         * MODULES.html.sh (func_all_modules): Add readlink.
37304
37305 2003-06-25  Bruno Haible  <bruno@clisp.org>
37306
37307         * m4/readlink.m4: New file.
37308
37309 2003-06-25  Bruno Haible  <bruno@clisp.org>
37310
37311         * lib/readlink.c: New file.
37312
37313 2003-06-22  Karl Berry  <karl@gnu.org>
37314
37315         * config/srclist.txt: update mkinstalldirs from automake.
37316         * config/mkinstalldirs: update.
37317
37318 2003-06-22  Bruno Haible  <bruno@clisp.org>
37319
37320         Portability to mingw32.
37321         * m4/ssize_t.m4: New file, from GNU gettext.
37322         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
37323         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
37324
37325 2003-06-22  Bruno Haible  <bruno@clisp.org>
37326
37327         * modules/safe-read: Add m4/ssize_t.m4.
37328         * modules/xreadlink: Add m4/ssize_t.m4.
37329
37330 2003-06-20  Bruno Haible  <bruno@clisp.org>
37331
37332         Assume C89, so PARAMS isn't needed.
37333         * lib/unicodeio.h (PARAMS): Remove.
37334         * lib/unicodeio.c: Don't use PARAMS.
37335
37336 2003-06-18  Karl Berry  <karl@gnu.org>
37337
37338         * config/config.{guess,sub}: update from prep.
37339
37340 2003-06-18  Jim Meyering  <jim@meyering.net>
37341
37342         Merge changes from coreutils.
37343         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37344         Remove explicit declarations of xmalloc and realloc.
37345         Include xalloc.h.
37346         (read_utmp): Remove anachronistic cast of xmalloc.
37347
37348 2003-06-17  Paul Eggert  <eggert@twinsun.com>
37349
37350         Assume C89, so PARAMS isn't needed.
37351         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
37352         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
37353         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
37354         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
37355         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
37356         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
37357         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
37358         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
37359         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
37360         lib/xstrtod.h, lib/xstrtol.h: Likewise.
37361         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
37362         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
37363         no longer needed. Anyway, config.h should always be included before any
37364         other file.
37365
37366 2003-06-11  Simon Josefsson  <jas@extundo.com>
37367
37368         * modules/sysexits: New file.
37369         * MODULES.html.sh (func_all_modules): Add sysexits.
37370
37371 2003-06-11  Simon Josefsson  <jas@extundo.com>
37372
37373         * lib/sysexit_.h: New file.
37374
37375 2003-06-11  Derek Price  <derek@ximbiot.com>
37376
37377         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
37378         necessary.
37379
37380 2003-06-11  Bruno Haible  <bruno@clisp.org>
37381
37382         * m4/sysexits.m4: New file.
37383
37384 2003-06-10  Simon Josefsson  <jas@extundo.com>
37385
37386         * lib/argp.h: New file, from glibc.
37387         * lib/argp-ba.c: New file, from glibc.
37388         * lib/argp-eexst.c: New file, from glibc.
37389         * lib/argp-fmtstream.c: New file, from glibc.
37390         * lib/argp-fmtstream.h: New file, from glibc.
37391         * lib/argp-fs-xinl.c: New file, from glibc.
37392         * lib/argp-help.c: New file, from glibc.
37393         * lib/argp-namefrob.h: New file, from glibc.
37394         * lib/argp-parse.c: New file, from glibc.
37395         * lib/argp-pv.c: New file, from glibc.
37396         * lib/argp-pvh.c: New file, from glibc.
37397         * lib/argp-xinl.c: New file, from glibc.
37398
37399 2003-06-10  Simon Josefsson  <jas@extundo.com>
37400
37401         * modules/strchrnul: New file.
37402
37403 2003-06-10  Simon Josefsson  <jas@extundo.com>
37404
37405         * modules/argp: New file.
37406
37407 2003-06-10  Simon Josefsson  <jas@extundo.com>
37408
37409         * m4/strchrnul.m4: New file.
37410
37411 2003-06-10  Simon Josefsson  <jas@extundo.com>
37412
37413         * lib/strchrnul.h: New file.
37414         * lib/strchrnul.c: New file.
37415
37416 2003-06-10  Bruno Haible  <bruno@clisp.org>
37417
37418         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
37419
37420 2003-06-07  Karl Berry  <karl@gnu.org>
37421
37422         * config/config.{guess,sub}: update from prep.
37423
37424 2003-06-07  Jim Meyering  <jim@meyering.net>
37425
37426         * modules/strtod: Use $(...) notation, not @...@ for
37427         AC_REPLACE'd variables.
37428         * modules/localcharset: Likewise.
37429
37430 2003-06-07  Jim Meyering  <jim@meyering.net>
37431
37432         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
37433         in place of my name in the copyright comment.
37434         Remove definition and uses of __P.
37435
37436         From coreutils.
37437         * lib/stat.c: Don't declare xmalloc explicitly.
37438         Instead, include "xalloc.h".
37439         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
37440         xrealloc, and xcalloc return values.
37441         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
37442         Improve comment.
37443         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
37444
37445 2003-06-07  Bruno Haible  <bruno@clisp.org>
37446
37447         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
37448         avoid AC_CONFIG_LINKS.
37449         * modules/fnmatch (Makefile.am): Use explicit creation rule for
37450         fnmatch.h, to avoid AC_CONFIG_LINKS.
37451         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
37452
37453 2003-06-07  Bruno Haible  <bruno@clisp.org>
37454
37455         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
37456         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
37457         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37458         directory.
37459         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
37460         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37461         directory.
37462
37463 2003-06-06  Jim Meyering  <jim@meyering.net>
37464
37465         Merge from coreutils.
37466         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
37467         Consolidate declarations and initializations of *_base* locals.
37468
37469         Merge from coreutils.
37470         This avoids a core dump on systems without GNU putenv,
37471         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
37472         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
37473         (unsetenv): New static function, from GNU libc.
37474         (rpl_putenv): Use it.
37475
37476         * lib/modechange.c: Remove trailing blanks.
37477
37478         Merge from coreutils.
37479         * lib/fsusage.c: Remove declaration of statfs.
37480         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
37481
37482         * lib/posixtm.c: Include <stdbool.h> unconditionally.
37483
37484 2003-06-06  Jim Meyering  <jim@meyering.net>
37485
37486         * lib/stdbool_.h: Renamed from stdbool.h.in.
37487
37488 2003-06-06  Jim Meyering  <jim@meyering.net>
37489             Bruno Haible  <bruno@clisp.org>
37490
37491         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
37492         Adjust Makefile.am snippet not to redirect directly to target.
37493         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
37494
37495 2003-06-05  Paul Eggert  <eggert@twinsun.com>
37496
37497         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
37498         mismatch, look in future quarters as well as past.  This fixes a
37499         bug when processing fall-backwards gaps immediately after a long
37500         period of daylight-saving time.
37501
37502         * lib/mktime.c: Assume freestanding C89 or better.
37503         (HAVE_LIMITS_H): Remove.  Assume it's 1.
37504         (__P): Remove; not used.
37505         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
37506         (mktime, not_equal_tm, print_tm, check_result,
37507         main): Use prototypes.  Use const * where appropriate.
37508         (main): Fix typo in testing code that uncovered by above changes.
37509         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
37510
37511 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37512
37513         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
37514         locale.h, localeconv.  This merges changes from coreutils.
37515
37516         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
37517         It can be removed after the next Autoconf is released.
37518         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
37519         needed.
37520
37521 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37522
37523         * lib/mktime.c: Fix Debian bug 177940
37524         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
37525         (localtime_offset): Now long int, not time_t, because we want it
37526         to be guaranteed to be signed.  All uses changed.
37527         (__mktime_internal): If overflow would occur when adding offset,
37528         don't add it.
37529
37530         Merge 'human' changes from coreutils.  Rewrite to support
37531         locale-specific notations like thousands separators.
37532         * lib/human.c: Simplify authorship notice.
37533         Include human.h immediately after config.h.
37534         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
37535         <limits.h>: Do not include, since human.h does.
37536         (SIZE_MAX, UINTMAX_MAX): New macros.
37537         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
37538         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
37539         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
37540         (power_letter): Renamed from suffixes.
37541         (generate_suffix_backwards): Remove.
37542         (adjust_value): Now takes int style (because of human.h changes)
37543         and long double value (for greater precision on some platforms).
37544         (group_number): New function.
37545         (human_readable): Use it.  Use integer options, not enum.
37546         Put the options before the sizes in the arg list.
37547         Support all the new options.
37548         The old human_readable function has been removed;
37549         use inttostr.h instead.
37550         (human_readable, default_block_size, humblock):
37551         Use uintmax_t, not int, for block sizes.
37552         (human_readable_inexact, block_size_types): Remove.
37553         (block_size_opts): New constant.
37554         (human_options): Renamed from human_block_size, with new signature
37555         that allows block sizes up to UINTMAX_MAX.  All callers changed.
37556         * lib/human.h: Add copyright and authorship notice.
37557         Include <limits.h> and <stdbool.h> unconditionally.
37558         (PARAMS): Remove.  All uses removed.
37559         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
37560         (enum human_inexact_style): Remove tag; now a nameless enum.
37561         (human_floor, human_ceiling, human_round_to_even): Now have
37562         values 2, 0, 1 rather than -1, 1, 0.
37563         (human_group_digits, human_suppress_point_zero, human_autoscale,
37564         human_base_1024, human_SI, human_B): New constants.
37565         (human_readable_inexact, human_block_size): Remove.
37566         (human_readable): Size args are now uintmax_t, not int.
37567         (human_options): New decl.
37568
37569         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
37570         unnecessary now that we assume C89 or better.  This change
37571         imported from coreutils.
37572
37573         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37574         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
37575         in the 2003-05-30 sync from glibc.
37576
37577         .h files should stand alone, but we shouldn't include <sys/types.h>
37578         if we can get away with just <stddef.h>.
37579
37580         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
37581         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
37582         rather than <sys/types.h>, as we merely need size_t.
37583         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
37584         to get size_t.
37585         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
37586         Include <stdio.h>, to get FILE.
37587         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
37588         memcasecmp.h has included <stddef.h> and all we need is size_t.
37589         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
37590         our interface, instead of including <sys/types.h>
37591
37592 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37593
37594         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37595         now, as glibc mktime is buggy on non-glibc systems.
37596
37597 2003-06-03  Karl Berry  <karl@gnu.org>
37598
37599         * config/config.sub: update from prep.
37600
37601 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37602
37603         [from coreutils]
37604         Fix some minor time-related bugs with POSIX time arguments.
37605         Some valid time stamps were being rejected (notably -1, and
37606         time stamps before 1900 on 64-bit hosts).  And some invalid
37607         time stamps were being accepted, e.g. September 31.
37608
37609         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37610         that we can return (time_t) -1 successfully.
37611         * lib/posixtm.c: Likewise.
37612         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37613         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37614         (t): Remove static var.
37615         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37616         of static var.  All uses changed.
37617         (year): Do not reject years before 1900; they can occur with
37618         64-bit time_t.
37619         (posix_time_parse): Do not check for out-of-range components;
37620         that is now the caller's responsibility, since our checks were
37621         only approximations.
37622         (posixtime): Use mktime to check for out-of-range components,
37623         since it knows them exactly.
37624         If mktime returns (time_t) -1, check whether an error actually occurred
37625         by invoking localtime on -1.
37626         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37627         posixtime failures better.
37628         Improve the test data (in comments only).
37629
37630 2003-06-02  Karl Berry  <karl@gnu.org>
37631
37632         * config/mkinstalldirs (version): new variable.
37633         (--version): new option.
37634         (usage): improve message.
37635
37636 2003-05-30  Karl Berry  <karl@gnu.org>
37637
37638         * lib/mktime.c: update from libc.
37639
37640 2003-05-30  Bruno Haible  <bruno@clisp.org>
37641
37642         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37643         * config/config.rpath: Upgrade to gettext-0.12.1.
37644
37645 2003-05-30  Bruno Haible  <bruno@clisp.org>
37646
37647         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37648         * m4/nls.m4: New file, from gettext-0.12.1.
37649         * m4/po.m4: New file, from gettext-0.12.1.
37650         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37651
37652 2003-05-30  Bruno Haible  <bruno@clisp.org>
37653
37654         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37655         * lib/localcharset.h: Likewise.
37656         * lib/localcharset.c: Likewise.
37657
37658 2003-05-29  Karl Berry  <karl@gnu.org>
37659
37660         * config/config.rpath: update from gettext.
37661
37662 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37663
37664         Assume the headers required for C89 freestanding compilers.
37665         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37666         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37667         * m4/human.m4 (gl_HUMAN): Likewise.
37668         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37669         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37670         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37671         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37672         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37673         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37674
37675 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37676
37677         Assume the headers required for C89 freestanding compilers.
37678         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37679         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37680         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37681         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37682         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37683         define, since <limits.h> is guaranteed to do that.
37684         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37685         * lib/exclude.c: Include <stdbool.h> unconditionally.
37686         * lib/tempname.c: Include <stddef.h> unconditionally.
37687         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37688         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37689         <stddef.h> does that.
37690         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37691         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37692         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37693         needed.
37694         * lib/xstrtol.c: Likewise.
37695         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37696         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37697
37698         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37699         warnings on some platforms.
37700
37701         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37702         arbitrarily.
37703
37704 2003-05-26  Jim Meyering  <jim@meyering.net>
37705
37706         Merge in a change from coreutils:
37707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37708         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37709         that condition, rather than `-1' which is slightly misleading.
37710         Change the name of the cache variable to have the gl_ prefix.
37711         Prompted by a patch from Richard Dawe for DJGPP.
37712
37713 2003-05-24  Karl Berry  <karl@gnu.org>
37714
37715         * config/config.guess: update from prep.
37716
37717 2003-05-22  Karl Berry  <karl@gnu.org>
37718
37719         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37720
37721 2003-05-20  Karl Berry  <karl@gnu.org>
37722
37723         * config/config.guess: update from prep.
37724
37725 2003-05-18  Karl Berry  <karl@gnu.org>
37726
37727         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37728         might actually be set by the user.
37729
37730         * config/depcomp, install-sh, mdate-sh: update from automake.
37731
37732 2003-05-17  Bruno Haible  <bruno@clisp.org>
37733
37734         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37735         invalid expansion for AC_EGREP_CPP.
37736         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37737         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37738         Suggested by Akim Demaille <akim@epita.fr> in
37739         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37740
37741 2003-05-12  Jim Meyering  <jim@meyering.net>
37742
37743         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37744         the space-padded-by-default conversion specifiers, %e, %k, %l.
37745
37746 2003-05-12  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37749         the string is longer than 4 KB.
37750
37751 2003-05-11  Karl Berry  <karl@gnu.org>
37752
37753         * config/config.{guess,sub}: update from prep.
37754
37755 2003-05-09  Bruno Haible  <bruno@clisp.org>
37756
37757         * modules/error: Add m4/strerror_r.m4 to file list.
37758
37759 2003-05-03  Bruno Haible  <bruno@clisp.org>
37760
37761         Upgrade to Unicode-4.0.
37762         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37763         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37764         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37765         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37766         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37767         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37768         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37769         Change width of U+E0100..U+E01EF from 1 to 0.
37770
37771 2003-04-25  Jim Meyering  <jim@meyering.net>
37772
37773         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37774         of type size_t, not int.
37775
37776 2003-04-25  Bruno Haible  <bruno@clisp.org>
37777
37778         * lib/copy-file.c: Include <stddef.h>, for size_t.
37779
37780 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37781
37782         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37783         code which expansion is under static control.  Patch imported from
37784         Akim Demaille's patch to Bison; see
37785         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37786
37787 2003-04-14  Bruno Haible  <bruno@clisp.org>
37788
37789         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37790
37791 2003-04-11  Jim Meyering  <jim@meyering.net>
37792
37793         Merge changes from Coreutils.
37794
37795         2003-03-22  Jim Meyering  <jim@meyering.net>
37796
37797         * lib/strftime.c (widen): Cast alloca return value to proper type.
37798
37799         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37800
37801         From GNU libc.
37802         * lib/strftime.c (my_strftime): Handle very large width
37803         specifications for numeric values correctly.  Improve checks for
37804         overflow.
37805
37806         2003-01-19  Jim Meyering  <jim@meyering.net>
37807
37808         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37809         definitions.
37810         (nl_get_alt_digit) [! defined my_strftime]: Define.
37811         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37812         _nl_get_alt_digit and _nl_get_walt_digit.
37813
37814         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37815         libc. These changes have no effect outside of _LIBC.
37816
37817 2003-04-10  Bruno Haible  <bruno@clisp.org>
37818
37819         * modules/findprog: New file.
37820         * MODULES.html.sh (func_all_modules): Add it.
37821
37822 2003-04-10  Bruno Haible  <bruno@clisp.org>
37823
37824         * m4/findprog.m4: New file.
37825         * m4/eaccess.m4: New file.
37826
37827 2003-04-10  Bruno Haible  <bruno@clisp.org>
37828
37829         * lib/findprog.h: New file, from GNU gettext.
37830         * lib/findprog.c: New file, from GNU gettext.
37831
37832 2003-04-05  Jim Meyering  <jim@meyering.net>
37833
37834         Merge changes from Coreutils.
37835
37836         * lib/exclude.h (PARAMS): Remove definition and uses.
37837         * lib/exclude.c: Remove uses of `PARAMS'.
37838
37839         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37840         Add test-cases for DOS filenames. Declare program_name.
37841         (main): Set up program_name.  Patch by Rich Dawe.
37842
37843         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37844         error from mntctl.
37845         Use mntctl's return value to drive the entry-processing loop, since
37846         we can't rely on the value of the vmt_length member in the last
37847         entry.  On some systems doing so could result in exhausting
37848         virtual memory.  Based in part on a patch from Mike Jetzer.
37849
37850 2003-04-04  Bruno Haible  <bruno@clisp.org>
37851
37852         * modules/linebreak: New file.
37853         * MODULES.html.sh (func_all_modules): Add it.
37854
37855 2003-04-04  Bruno Haible  <bruno@clisp.org>
37856
37857         * m4/linebreak.m4: New file.
37858
37859 2003-04-04  Bruno Haible  <bruno@clisp.org>
37860
37861         * lib/linebreak.h: New file, from GNU gettext.
37862         * lib/linebreak.c: New file, from GNU gettext with slight
37863         modifications.
37864         * lib/lbrkprop.h: New file, from GNU gettext.
37865
37866 2003-04-03  Bruno Haible  <bruno@clisp.org>
37867
37868         * modules/utf8-ucs4: New file.
37869         * modules/utf16-ucs4: New file.
37870         * modules/ucs4-utf8: New file.
37871         * modules/ucs4-utf16: New file.
37872         * MODULES.html.sh (func_all_modules): Add them.
37873
37874 2003-04-03  Bruno Haible  <bruno@clisp.org>
37875
37876         * m4/utf-ucs4.m4: New file.
37877         * m4/ucs4-utf.m4: New file.
37878
37879 2003-04-03  Bruno Haible  <bruno@clisp.org>
37880
37881         * lib/utf8-ucs4.h: New file, from GNU gettext.
37882         * lib/utf16-ucs4.h: New file, from GNU gettext.
37883         * lib/ucs4-utf8.h: New file, from GNU gettext.
37884         * lib/ucs4-utf16.h: New file, from GNU gettext.
37885
37886 2003-04-02  Bruno Haible  <bruno@clisp.org>
37887
37888         * modules/binary-io: New file.
37889         * MODULES.html.sh (func_all_modules): Add it.
37890
37891 2003-04-02  Bruno Haible  <bruno@clisp.org>
37892
37893         * lib/binary-io.h: New file, from GNU gettext.
37894
37895 2003-04-01  Bruno Haible  <bruno@clisp.org>
37896
37897         * modules/pathname: New file.
37898         * MODULES.html.sh (func_all_modules): Add it.
37899
37900 2003-04-01  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/pathname.h: New file, from GNU gettext.
37903         * lib/concatpath.c: New file, from GNU gettext.
37904
37905 2003-03-30  Bruno Haible  <bruno@clisp.org>
37906
37907         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37908
37909 2003-03-30  Bruno Haible  <bruno@clisp.org>
37910
37911         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37912         function chown() doesn't exist.
37913
37914 2003-03-28  Bruno Haible  <bruno@clisp.org>
37915
37916         * modules/copy-file: New file.
37917         * MODULES.html.sh (func_all_modules): Add it.
37918
37919 2003-03-28  Bruno Haible  <bruno@clisp.org>
37920
37921         * m4/copy-file.m4: New file.
37922
37923 2003-03-28  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/copy-file.h: New file, from GNU gettext.
37926         * lib/copy-file.c: New file, from GNU gettext.
37927
37928 2003-03-18  Jim Meyering  <jim@meyering.net>
37929
37930         * lib/quote.c (quote_n): Fix typo in comment.
37931
37932 2003-03-18  Bruno Haible  <bruno@clisp.org>
37933
37934         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37935         checking.
37936         * m4/onceonly_2_57.m4: Likewise.
37937
37938 2003-03-17  Bruno Haible  <bruno@clisp.org>
37939
37940         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37941         (m4_quote): Remove macro.
37942         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37943
37944 2003-03-14  Jim Meyering  <jim@meyering.net>
37945
37946         Merge changes from Coreutils.
37947         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37948         to be const, in order to avoid warnings.
37949         (obstack_room): Likewise.
37950         (obstack_empty_p): Likewise.
37951
37952 2003-03-14  Bruno Haible  <bruno@clisp.org>
37953
37954         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37955         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37956
37957 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37958
37959         Merge changes from Bison.
37960         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37961         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37962         when compiling Bison 1.875's `bitset bset = obstack_alloc
37963         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37964         * lib/hash.c: Include <stdbool.h> unconditionally.
37965
37966 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37967
37968         * m4/onceonly.m4 (m4_quote): New macro.
37969         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37970         Quote AC_FOREACH variable-expansions properly.
37971
37972 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37973
37974         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37975
37976 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37977
37978         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37979         Reported by Bruce Becker; see:
37980         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37981
37982 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37983             Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37986         Reported by John Hughes, see
37987         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37988
37989 2003-02-20  Bruno Haible  <bruno@clisp.org>
37990
37991         * MODULES.html.sh (func_all_modules): Add poll.
37992
37993 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37994
37995         * modules/poll: New file.
37996
37997 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37998
37999         * lib/poll_.h: New file.
38000         * lib/poll.c: New file.
38001
38002 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
38003
38004         * m4/poll.m4: New file.
38005
38006 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38007
38008         * modules/mathl: New file.
38009
38010 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38011
38012         * lib/mathl.h: New file.
38013         * lib/acosl.c: New file.
38014         * lib/asinl.c: New file.
38015         * lib/atanl.c: New file.
38016         * lib/ceill.c: New file.
38017         * lib/cosl.c: New file.
38018         * lib/expl.c: New file.
38019         * lib/floorl.c: New file.
38020         * lib/frexpl.c: New file.
38021         * lib/ldexpl.c: New file.
38022         * lib/logl.c: New file.
38023         * lib/sincosl.c: New file.
38024         * lib/sinl.c: New file.
38025         * lib/sqrtl.c: New file.
38026         * lib/tanl.c: New file.
38027         * lib/trigl.c: New file.
38028         * lib/trigl.h: New file.
38029
38030 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
38031
38032         * m4/mathl.m4: New file.
38033
38034 2003-02-18  Bruno Haible  <bruno@clisp.org>
38035
38036         * MODULES.html.sh (func_all_modules): Add mathl.
38037
38038 2003-02-17  Bruno Haible  <bruno@clisp.org>
38039
38040         * modules/mkdtemp: New module.
38041         * MODULES.html.sh (func_all_modules): Add it.
38042
38043 2003-02-17  Bruno Haible  <bruno@clisp.org>
38044
38045         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
38046
38047 2003-02-17  Bruno Haible  <bruno@clisp.org>
38048
38049         * lib/mkdtemp.h: New file, from GNU gettext.
38050         * lib/mkdtemp.c: New file, from GNU gettext.
38051
38052 2003-02-02  Jim Meyering  <jim@meyering.net>
38053
38054         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
38055         e.g. glibc-2.2.93.
38056
38057 2003-01-31  Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
38060         'rpl_rename'.
38061         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
38062         'rpl_strnlen'.
38063         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
38064         'rpl_strtod'.
38065         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
38066         'rpl_utime'.
38067
38068 2003-01-31  Bruno Haible  <bruno@clisp.org>
38069
38070         * lib/rename.c: #undef rename before defining rpl_rename.
38071         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
38072
38073 2003-01-30  Bruno Haible  <bruno@clisp.org>
38074
38075         * modules/vasnprintf, modules/vasprintf: New modules.
38076         * MODULES.html.sh (func_all_modules): Add them.
38077
38078 2003-01-30  Bruno Haible  <bruno@clisp.org>
38079
38080         * m4/signed.m4: New file, from GNU gettext.
38081         * m4/longdouble.m4: New file, from GNU gettext.
38082         * m4/wchar_t.m4: New file, from GNU gettext.
38083         * m4/wint_t.m4: New file, from GNU gettext.
38084         * m4/vasnprintf.m4: New file.
38085         * m4/vasprintf.m4: New file.
38086
38087 2003-01-30  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/printf-args.h: New file, from GNU gettext.
38090         * lib/printf-args.c: New file, from GNU gettext.
38091         * lib/printf-parse.h: New file, from GNU gettext.
38092         * lib/printf-parse.c: New file, from GNU gettext.
38093         * lib/vasnprintf.h: New file, from GNU gettext.
38094         * lib/vasnprintf.c: New file, from GNU gettext.
38095         * lib/asnprintf.c: New file, from GNU gettext.
38096         * lib/vasprintf.h: New file, from GNU gettext with modifications.
38097         * lib/vasprintf.c: New file, from GNU gettext.
38098         * lib/asprintf.c: New file, from GNU gettext.
38099
38100 2003-01-29  Bruno Haible  <bruno@clisp.org>
38101
38102         * modules/stpncpy: New module.
38103         * MODULES.html.sh (func_all_modules): Add it.
38104
38105 2003-01-29  Bruno Haible  <bruno@clisp.org>
38106
38107         * m4/stpncpy.m4: New file.
38108
38109 2003-01-29  Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/stpncpy.h: New file, from GNU gettext with modifications.
38112         * lib/stpncpy.c: New file, from GNU gettext with modifications.
38113
38114 2003-01-28  Bruno Haible  <bruno@clisp.org>
38115
38116         * modules/c-ctype: New module.
38117         * MODULES.html.sh (func_all_modules): Add it.
38118
38119 2003-01-28  Bruno Haible  <bruno@clisp.org>
38120
38121         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
38122         Paul Eggert.
38123         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
38124         Paul Eggert.
38125
38126 2003-01-27  Bruno Haible  <bruno@clisp.org>
38127
38128         * modules/xsetenv: New module.
38129         * MODULES.html.sh (func_all_modules): Add it.
38130
38131 2003-01-27  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/xsetenv.h: New file, from GNU gettext.
38134         * lib/xsetenv.c: New file, from GNU gettext.
38135
38136 2003-01-23  Jim Meyering  <jim@meyering.net>
38137
38138         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
38139         from working on systems without dirfd (at least Irix and OSF1/Tru64).
38140
38141 2003-01-23  Bruno Haible  <bruno@clisp.org>
38142
38143         * modules/minmax: New module.
38144         * MODULES.html.sh (func_all_modules): Add it.
38145
38146 2003-01-23  Bruno Haible  <bruno@clisp.org>
38147
38148         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
38149         Eggert.
38150
38151 2003-01-22  Bruno Haible  <bruno@clisp.org>
38152
38153         * modules/exit: New module.
38154         * MODULES.html.sh (func_all_modules): Add it.
38155
38156 2003-01-22  Bruno Haible  <bruno@clisp.org>
38157
38158         * lib/exit.h: New file, from GNU gettext.
38159
38160 2003-01-19  Bruno Haible  <bruno@clisp.org>
38161
38162         * gnulib-tool: Recognize option --extract-maintainer.
38163         (func_get_maintainer): New function.
38164         * modules/*: Add Maintainer entry.
38165
38166 2003-01-16  Jim Meyering  <jim@meyering.net>
38167
38168         * m4/regex.m4: The `regex' struct is both input and output.
38169         Initialize it before each use.  Patch by Tim Waugh.
38170
38171 2003-01-16  Bruno Haible  <bruno@clisp.org>
38172
38173         * MODULES.html.sh: Add a table of contents. Add the module name as
38174         leftmost column. Add hyperlinks.
38175
38176 2003-01-15  Bruno Haible  <bruno@clisp.org>
38177
38178         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
38179
38180 2003-01-15  Bruno Haible  <bruno@clisp.org>
38181
38182         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
38183         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
38184         suffix.
38185
38186 2003-01-15  Bruno Haible  <bruno@clisp.org>
38187
38188         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
38189
38190 2003-01-15  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
38193         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
38194
38195 2003-01-14  Jim Meyering  <jim@meyering.net>
38196
38197         * lib/same.c (same_name): Tweak a comment.
38198
38199 2003-01-14  Bruno Haible  <bruno@clisp.org>
38200
38201         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
38202         when a string comparison is sufficient.
38203
38204 2003-01-14  Bruno Haible  <bruno@clisp.org>
38205
38206         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
38207         'unsigned int'.
38208
38209 2003-01-14  Bruno Haible  <bruno@clisp.org>
38210
38211         * lib/hash-pjw.c: Add comment about low quality of this function.
38212
38213 2003-01-13  Bruno Haible  <bruno@clisp.org>
38214
38215         * modules/stpcpy: Distribute lib/stpcpy.h.
38216         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
38217
38218 2003-01-13  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/*: Add a description.
38221         * modules/strpbrk: Fix Makefile.am snippet.
38222         * modules/strtoimax: Fix dependencies.
38223         * modules/strtoumax: Likewise.
38224
38225 2003-01-13  Bruno Haible  <bruno@clisp.org>
38226
38227         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
38228         * modules/alloca (Makefile.am): All object files depend on alloca.h.
38229         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
38230
38231 2003-01-13  Bruno Haible  <bruno@clisp.org>
38232
38233         * gnulib-tool (func_create_testdir): Store config/* files in the main
38234         directory.
38235         * config.rpath: Move to ...
38236         * config/config.rpath: ... here.
38237         * modules/gettext: Contains config/config.rpath, not config.rpath.
38238         * modules/iconv: Likewise.
38239
38240 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38241
38242         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38243         to avoid collisions with libcurses and libreadline.
38244
38245         * m4/getstr.m4: Remove.
38246         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
38247
38248 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38249
38250         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38251         to avoid collisions with libcurses and libreadline.
38252
38253         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
38254         * lib/getstr.h, getstr.c: Remove.
38255         * lib/getline.c: Include "getline.h", to check interface.
38256         Move body of old getstr.c here: this defines MIN_CHUNK and
38257         declares getdelim2, which is renamed from getstr.
38258         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
38259
38260         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
38261         All uses changed.
38262         * lib/linebuffer.h: Likewise.
38263         (readline): Remove backward-compatibility macro.
38264
38265 2003-01-12  Paul Eggert  <eggert@twinsun.com>
38266
38267         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
38268         to avoid collisions with libcurses and libreadline.
38269         * getstr: Remove.
38270         * MODULES.html.sh: Remove getstr.
38271         * modules/getline: Depend on unlocked-io, not getstr.
38272
38273 2003-01-12  Jim Meyering  <jim@meyering.net>
38274
38275         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
38276
38277 2003-01-10  Bruno Haible  <bruno@clisp.org>
38278
38279         * modules/alloca: Change Makefile.am requirements. Simplify Include
38280         requirements. Add lib/alloca_.h to file list.
38281
38282 2003-01-10  Bruno Haible  <bruno@clisp.org>
38283
38284         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
38285
38286 2003-01-10  Bruno Haible  <bruno@clisp.org>
38287
38288         * lib/alloca_.h: New file.
38289         * lib/getdate.y: Unconditionally include alloca.h.
38290         * lib/makepath.c: Likewise.
38291         * lib/setenv.c: Likewise.
38292         * lib/userspec.c: Likewise.
38293
38294 2003-01-09  Karl Berry  <karl@gnu.org>
38295
38296         * MODULES.html.sh: include `dirname $0` in PATH, to find
38297         gnulib-tool.
38298
38299 2003-01-09  Bruno Haible  <bruno@clisp.org>
38300
38301         * modules/stdbool: Change configure.ac, Makefile.am requirements.
38302         Simplify Include requirements. Add lib/stdbool.h.in to file list.
38303
38304 2003-01-09  Bruno Haible  <bruno@clisp.org>
38305
38306         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
38307
38308 2003-01-09  Bruno Haible  <bruno@clisp.org>
38309
38310         * lib/stdbool.h.in: New file.
38311
38312 2003-01-09  Bruno Haible  <bruno@clisp.org>
38313
38314         * gnulib-tool (func_all_modules): Ignore files ending in ~.
38315         * MODULES.html.sh: Likewise.
38316
38317 2003-01-08  Jim Meyering  <jim@meyering.net>
38318
38319         * lib/full-write.c: Undefine and define-away `const' after inclusion
38320         of errno.h, not before.  Suggestion from Bruno Haible.
38321
38322 2003-01-08  Bruno Haible  <bruno@clisp.org>
38323
38324         * modules/full-read: Depend on full-write.
38325
38326 2003-01-08  Bruno Haible  <bruno@clisp.org>
38327
38328         * lib/safe-read.c: Include specification header first, to ensure its
38329         selfcontainedness.
38330         * lib/full-write.c: Likewise.
38331
38332 2003-01-07  Jim Meyering  <jim@meyering.net>
38333
38334         * lib/full-write.c: Rework so that it may serve to define full_read,
38335         too.
38336         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38337
38338 2003-01-07  Bruno Haible  <bruno@clisp.org>
38339
38340         * lib/strtoimax.c: Include <stdint.h> as an alternative to
38341         <inttypes.h>.
38342         * lib/xstrtol.h: Likewise.
38343         * lib/xstrtoimax.c: Likewise.
38344         * lib/xstrtoumax.c: Likewise.
38345         * lib/human.h: Likewise.
38346
38347         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
38348         on systems that have <inttypes.h> but not <stdint.h>.
38349
38350 2003-01-07  Bruno Haible  <bruno@clisp.org>
38351
38352         * MODULES.html.sh: Add copyright notice.
38353         (missed_files): Omit CVS directory entries.
38354         (func_module): Make it work with sed-3.02.
38355         * MODULES.txt: Remove file.
38356
38357 2003-01-06  Jim Meyering  <jim@meyering.net>
38358
38359         * lib/version-etc.c: Update year in translatable copyright string.
38360
38361 2003-01-03  Karl Berry  <karl@gnu.org>
38362
38363         * config/config.{guess,sub}: update from prep.
38364
38365 2003-01-02  Karl Berry  <karl@gnu.org>
38366
38367         * doc/COPYING.DOC: belatedly updated to 1.2.
38368
38369 2003-01-01  Karl Berry  <karl@gnu.org>
38370
38371         * gnulib-tool (func_verify_module): report module name $module in
38372         error message, not $1.
38373         * gnulib-tool (create-testdir): don't complain if destdir couldn't
38374         be created, only if it doesn't exist.
38375         * gnulib-tool (last_checkin_date): don't expand the $Date here.
38376
38377 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38378
38379         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
38380
38381 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38382
38383         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
38384         memcmp if strcoll doesn't work.
38385
38386 2002-12-31  Bruno Haible  <bruno@clisp.org>
38387
38388         * lib/utime.c (utime_null): No need to call ftruncate if the file was
38389         nonempty.
38390
38391 2002-12-31  Bruno Haible  <bruno@clisp.org>
38392
38393         * lib/memcoll.c (STRCOLL): New macro.
38394         (memcoll): Use it.
38395
38396 2002-12-31  Bruno Haible  <bruno@clisp.org>
38397
38398         * lib/localcharset.h: New file.
38399         * lib/localcharset.c: Include it.
38400         * lib/unicodeio.c: Likewise.
38401
38402 2002-12-31  Bruno Haible  <bruno@clisp.org>
38403
38404         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
38405         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
38406
38407 2002-12-31  Bruno Haible  <bruno@clisp.org>
38408
38409         * lib/getline.h: Include <stddef.h>, for size_t.
38410
38411         * lib/unicodeio.h: Include <stddef.h>, for size_t.
38412         * lib/unicodeio.c: Don't include <stddef.h>.
38413
38414 2002-12-31  Bruno Haible  <bruno@clisp.org>
38415
38416         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
38417         HAVE_TM_ZONE.
38418
38419 2002-12-24  Karl Berry  <karl@gnu.org>
38420
38421         * config/config.guess: update from prep.
38422
38423 2002-12-24  Bruno Haible  <bruno@clisp.org>
38424
38425         General infrasructure.
38426         * m4/README: Rewritten.
38427         * m4/onceonly.m4: New file.
38428         * m4/onceonly_2_57.m4: New file.
38429
38430         Module atexit.
38431         * m4/atexit.m4: New file.
38432
38433         Module strtod.
38434         * m4/strtod.m4: New file.
38435
38436         Module strtol.
38437         * m4/strtol.m4: New file.
38438
38439         Module strtoul.
38440         * m4/strtoul.m4: New file.
38441
38442         Module memchr.
38443         * m4/memchr.m4: New file.
38444
38445         Module memcmp.
38446         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
38447         (jm_FUNC_MEMCMP): Invoke it.
38448
38449         Module memcpy.
38450         * m4/memcpy.m4: New file.
38451
38452         Module memmove.
38453         * m4/memmove.m4: New file.
38454
38455         Module memset.
38456         * m4/memset.m4: New file.
38457
38458         Module strcspn.
38459         * m4/strcspn.m4: New file.
38460
38461         Module strpbrk.
38462         * m4/strpbrk.m4: New file.
38463
38464         Module strstr.
38465         * m4/strstr.m4: New file.
38466
38467         Module strerror.
38468         * m4/strerror.m4: New file.
38469
38470         Module mktime.
38471         * m4/mktime.m4: Renamed from jm-mktime.m4.
38472         (gl_PREREQ_MKTIME): New macro.
38473         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
38474
38475         Module malloc.
38476         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
38477         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
38478         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
38479
38480         Module realloc.
38481         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
38482         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
38483         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
38484
38485         Module strftime.
38486         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
38487         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
38488         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
38489         gl_TM_GMTOFF.
38490         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
38491
38492         Module xalloc.
38493         * m4/xalloc.m4: New file.
38494
38495         Module alloca.
38496         * m4/alloca.m4: New file.
38497
38498         Module putenv.
38499         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
38500         (jm_FUNC_PUTENV): Invoke it.
38501
38502         Module setenv.
38503         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
38504         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
38505         when invoked twice.
38506         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
38507         gt_FUNC_SETENV.
38508
38509         Module memrchr.
38510         * m4/memrchr.m4: New file.
38511
38512         Module stpcpy.
38513         * m4/stpcpy.m4: New file.
38514
38515         Module strcase.
38516         * m4/strcase.m4: New file.
38517
38518         Module strdup.
38519         * m4/strdup.m4: New file.
38520
38521         Module strnlen.
38522         * m4/strnlen.m4: New file.
38523
38524         Module strndup.
38525         * m4/strndup.m4: New file.
38526
38527         Module xstrtod.
38528         * m4/xstrtod.m4: New file.
38529
38530         Module xstrtol.
38531         * m4/xstrtol.m4: New file.
38532
38533         Module getdate.
38534         * m4/getdate.m4: New file.
38535
38536         Module unlocked-io.
38537         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
38538         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
38539         * m4/jm-glibc-io.m4n: Remove file.
38540
38541         Module long-options.
38542         * m4/long-options.m4: New file.
38543
38544         Module md5.
38545         * m4/md5.m4: New file.
38546
38547         Module sha.
38548         * m4/sha.m4: New file.
38549
38550         Module getstr.
38551         * m4/getstr.m4: New file.
38552
38553         Module getline.
38554         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
38555         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
38556         <sys/types.h>, for size_t. Use the function name gnu_getline, not
38557         simply getline. Infoke gl_PREREQ_GETLINE.
38558
38559         Module obstack.
38560         * m4/obstack.m4: New file.
38561
38562         Module hash.
38563         * m4/hash.m4: New file.
38564
38565         Module readtokens.
38566         * m4/readtokens.m4: New file.
38567
38568         Module strverscmp.
38569         * m4/strverscmp.m4: New file.
38570
38571         Module stdbool.
38572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
38573         OSF/1.
38574
38575         Module strtoll.
38576         * m4/strtoll.m4: New file.
38577
38578         Module strtoull.
38579         * m4/strtoull.m4: New file.
38580
38581         Module strtoimax.
38582         * m4/strtoimax.m4: New file.
38583
38584         Module strtoumax.
38585         * m4/strtoumax.m4: New file.
38586
38587         Module xstrtoimax.
38588         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
38589         jm_AC_PREREQ_XSTRTOIMAX.
38590         Moved the strtol prerequisites to strtol.m4.
38591         Moved the strtoll prerequisites to strtoll.m4.
38592         Moved the strtoimax prerequisites to strtoimax.m4.
38593
38594         Module xstrtoumax.
38595         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38596         jm_AC_PREREQ_XSTRTOUMAX.
38597         Moved the strtoul prerequisites to strtoul.m4.
38598         Moved the strtoull prerequisites to strtoull.m4.
38599         Moved the strtoumax prerequisites to strtoumax.m4.
38600
38601         Module chown.
38602         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38603         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38604
38605         Module dup2.
38606         * m4/dup2.m4: New file.
38607
38608         Module ftruncate.
38609         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38610         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38611
38612         Module getgroups.
38613         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38614         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38615
38616         Module gettimeofday.
38617         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38618         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38619         gl_PREREQ_GETTIMEOFDAY.
38620
38621         Module mkdir.
38622         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38623         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38624
38625         Module mkstemp.
38626         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38627         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38628         jm_AC_TYPE_UINTMAX_T.
38629         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38630
38631         Module stat.
38632         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38633         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38634
38635         Module lstat.
38636         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38637         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38638
38639         Module timespec.
38640         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38641         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38642         * m4/st_mtim.m4: Indentation.
38643
38644         Module nanosleep.
38645         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38646         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38647         gl_PREREQ_NANOSLEEP.
38648
38649         Module regex.
38650         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38651         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38652         (gl_REGEX): New macro.
38653
38654         Module rename.
38655         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38656         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38657
38658         Module rmdir.
38659         * m4/rmdir.m4: New file.
38660
38661         Module utime.
38662         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38663         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38664         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38665
38666         Module dirname.
38667         * m4/dirname.m4: New file.
38668
38669         Module getopt.
38670         * m4/getopt.m4: New file.
38671
38672         Module unistd-safer.
38673         * m4/unistd-safer.m4: New file.
38674
38675         Module fnmatch.
38676         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38677         declaration.
38678         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38679         (gl_FUNC_FNMATCH_POSIX): New macro.
38680         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38681         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38682         simply fnmatch.
38683
38684         Module exclude.
38685         * m4/exclude.m4: New file.
38686
38687         Module human.
38688         * m4/human.m4: New file.
38689
38690         Module acl.
38691         * m4/acl.m4: Nop.
38692
38693         Module backupfile.
38694         * m4/backupfile.m4: New file.
38695         * m4/d-ino.m4: Indentation.
38696
38697         Module fsusage.
38698         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38699         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38700         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38701
38702         Module dirfd.
38703         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38704         requirements.
38705
38706         Module euidaccess.
38707         * m4/euidaccess.m4: New file.
38708
38709         Module file-type.
38710         * m4/file-type.m4: New file.
38711
38712         Module fileblocks.
38713         * m4/fileblocks.m4: New file.
38714
38715         Module filemode.
38716         * m4/filemode.m4: New file.
38717
38718         Module isdir.
38719         * m4/isdir.m4: New file.
38720
38721         Module lchown.
38722         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38723         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38724
38725         Module makepath.
38726         * m4/makepath.m4: New file.
38727
38728         Module modechange.
38729         * m4/modechange.m4: New file.
38730
38731         Module mountlist.
38732         * m4/mountlist.m4: New file.
38733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38734         Indentation.
38735
38736         Module path-concat.
38737         * m4/path-concat.m4: New file.
38738
38739         Module pathmax.
38740         * m4/pathmax.m4: New file.
38741
38742         Module same.
38743         * m4/same.m4: New file.
38744
38745         Module save-cwd.
38746         * m4/save-cwd.m4: New file.
38747
38748         Module savedir.
38749         * m4/savedir.m4: New file.
38750
38751         Module xgetcwd.
38752         * m4/xgetcwd.m4: New file.
38753         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38754
38755         Module xreadlink.
38756         * m4/xreadlink.m4: New file.
38757
38758         Module safe-read.
38759         * m4/safe-read.m4: New file.
38760
38761         Module safe-write.
38762         * m4/safe-write.m4: New file.
38763
38764         Module closeout.
38765         * m4/closeout.m4: New file.
38766
38767         Module stdio-safer.
38768         * m4/stdio-safer.m4: New file.
38769
38770         Module getpass.
38771         * m4/getpass.m4: New file.
38772
38773         Module getugroups.
38774         * m4/getugroups.m4: New file.
38775
38776         Module group-member.
38777         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38778         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38779
38780         Module idcache.
38781         * m4/idcache.m4: New file.
38782
38783         Module userspec.
38784         * m4/userspec.m4: New file.
38785
38786         Module gettime.
38787         * m4/clock_time.m4: New file.
38788         * m4/gettime.m4: New file.
38789
38790         Module settime.
38791         * m4/settime.m4: New file.
38792
38793         Module posixtm.
38794         * m4/posixtm.m4: New file.
38795
38796         Module gethostname.
38797         * m4/gethostname.m4: New file.
38798
38799         Module canon-host.
38800         * m4/canon-host.m4: New file.
38801
38802         Module gettext.
38803         * m4/codeset.m4: New file, from gettext-0.11.5.
38804         * m4/gettext.m4: New file, from gettext-0.11.5.
38805         * m4/glibc21.m4: New file, from gettext-0.11.5.
38806         * m4/iconv.m4: New file, from gettext-0.11.5.
38807         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38808         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38809         * m4/inttypes.m4: New file, from gettext-0.11.5.
38810         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38811         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38812         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38813         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38814         * m4/lib-link.m4: New file, from gettext-0.11.5.
38815         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38816         * m4/progtest.m4: New file, from gettext-0.11.5.
38817         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38818         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38819         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38820
38821         Module localcharset.
38822         * m4/localcharset.m4: New file.
38823
38824         Module hard-locale.
38825         * m4/hard-locale.m4: New file.
38826
38827         Module mbswidth.
38828         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38829         onceonly macros.
38830         * m4/mbrtowc.m4: Add comment.
38831
38832         Module memcasecmp.
38833         * m4/memcasecmp.m4: New file.
38834
38835         Module memcoll.
38836         * m4/memcoll.m4: New file.
38837
38838         Module unicodeio.
38839         * m4/unicodeio.m4: New file.
38840
38841         Module rpmatch.
38842         * m4/rpmatch.m4: New file.
38843
38844         Module yesno.
38845         * m4/yesno.m4: New file.
38846
38847         Module exitfail.
38848         * m4/exitfail.m4: New file.
38849
38850         Module c-stack.
38851         * m4/c-stack.m4 (gl_C_STACK): New macro.
38852         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38853
38854         Module error.
38855         * m4/error.m4 (gl_ERROR): New macro.
38856         (jm_PREREQ_ERROR): Use onceonly macros.
38857
38858         Module fatal.
38859         * m4/fatal.m4: New file.
38860
38861         Module getloadavg.
38862         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38863         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38864
38865         Module getpagesize.
38866         * m4/getpagesize.m4: New file.
38867
38868         Module getusershell.
38869         * m4/getusershell.m4: New file.
38870
38871         Module physmem.
38872         * m4/physmem.m4: New file.
38873
38874         Module posixver.
38875         * m4/posixver.m4: New file.
38876
38877         Module quotearg.
38878         * m4/quotearg.m4: New file.
38879
38880         Module quote.
38881         * m4/quote.m4: New file.
38882
38883         Module readutmp.
38884         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38885
38886         Module sig2str.
38887         * m4/sig2str.m4: New file.
38888
38889         Other.
38890         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38891         ulonglong.m4.
38892         * m4/intmax_t.m4: New file.
38893         * m4/d-type.m4: Indentation.
38894         * m4/jm-macros.m4: Update.
38895         * m4/prereq.m4 (jm_PREREQ): Update.
38896         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38897         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38898         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38899         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38900         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38901         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38902         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38903         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38904         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38905         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38906         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38907         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38908         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38909         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38910         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38911         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38912         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38913         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38914         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38915
38916 2002-12-24  Bruno Haible  <bruno@clisp.org>
38917
38918         * MODULES.txt: Update according to m4/ changes.
38919
38920         Module gettext.
38921         * config.rpath: New file, from gettext-0.11.5.
38922
38923         * modules/*: New module descriptions.
38924         * gnulib-tool: New file.
38925         * MODULES.html.sh: New file.
38926
38927 2002-12-21  Karl Berry  <karl@gnu.org>
38928
38929         * doc/fdl.texi: update to version 1.2.
38930
38931 2002-12-19  Karl Berry  <karl@gnu.org>
38932
38933         * config/config.guess: update from prep.
38934
38935 2002-12-18  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38938         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38939
38940 2002-12-17  Bruno Haible  <bruno@clisp.org>
38941
38942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38943         stdlib.h, string.h.
38944
38945 2002-12-17  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/canon-host.c (strdup): Remove unused declaration.
38948
38949         * lib/fsusage.c: Include full_read.h.
38950         (get_fs_usage): Use full_read instead of safe_read.
38951
38952         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38953
38954 2002-12-12  Karl Berry  <karl@gnu.org>
38955
38956         * config/config.guess: update from prep.
38957
38958 2002-12-11  Bruno Haible  <bruno@clisp.org>
38959
38960         * m4/setenv.m4: New file, from gettext-0.11.5.
38961
38962 2002-12-11  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38965         not unsetenv().
38966         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38967         modifications:
38968
38969         2002-12-11  Bruno Haible  <bruno@clisp.org>
38970
38971                 * setenv.c (alloca): Fall back to malloc.
38972                 (freea): New macro.
38973                 (setenv): Use freea() to free memory allocated with alloca().
38974
38975         2002-11-13  Bruno Haible  <bruno@clisp.org>
38976
38977                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38978                 function declarations.
38979                 * unsetenv.c (unsetenv): Likewise.
38980
38981         2002-03-04  Bruno Haible  <bruno@clisp.org>
38982
38983                 Portability to AIX 4.3.3.
38984                 * unsetenv.c: New file, extracted from setenv.c.
38985                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38986
38987         2001-12-20  Bruno Haible  <bruno@clisp.org>
38988
38989                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38990                 use malloc instead. For SunOS 4.
38991
38992         2001-12-11  Bruno Haible  <bruno@clisp.org>
38993
38994                 * setenv.c: Declare alloca.
38995                 (compar_fn_t): New typedef.
38996                 (KNOWN_VALUE, STORE_VALUE): Use it.
38997
38998         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38999         setenv.h.
39000
39001 2002-12-10  Paul Eggert  <eggert@twinsun.com>
39002
39003         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
39004         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
39005         Choose values that are less likely to collide with system fnmatch
39006         options.
39007         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
39008         defined (e.g., a pure POSIX system).
39009         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
39010         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
39011
39012 2002-12-06  Paul Eggert  <eggert@twinsun.com>
39013
39014         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
39015         a pain in practice to deal with generated m4 files.  This change
39016         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
39017
39018         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
39019         and jm-glibc-io.m4, as they are no longer a special case.
39020         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
39021         kludge and the auto-generation stuff.  Check only whether the
39022         functions are declared, not whether they exist, since older hosts
39023         that don't declare the functions can't use the optimization anyway.
39024
39025 2002-12-06  Jim Meyering  <jim@meyering.net>
39026
39027         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
39028
39029         Merge in changes from libc's misc/error.c, in preparation
39030         for the merge of gnulib's changes back into libc.
39031
39032         * lib/error.c (_): Define only if not already defined.
39033         Move definition to follow all #include directives.
39034         Include unlocked-io.h only if !_LIBC.
39035         [_LIBC]: Include <libio/libioP.h>.
39036         [USE_IN_LIBIO]: Include <libio/iolibio.h>
39037         (fflush): Tweak definition to use INTUSE.
39038         (putc): Define.
39039
39040 2002-12-05  Paul Eggert  <eggert@twinsun.com>
39041
39042         * lib/alloca.c [defined emacs]: Include "lisp.h".
39043         (xalloc_die) [defined emacs]: New macro.
39044         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
39045         [! defined emacs]: Include <xalloc.h>.
39046         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
39047         (pointer): Typedef to POINTER_TYPE *.
39048         (malloc): Remove decl; we now always use xmalloc.
39049         (alloca): Use old-style definition, since Emacs needs this.
39050         Check for arithmetic overflow when computing combined size.
39051
39052 2002-12-04  Paul Eggert  <eggert@twinsun.com>
39053
39054         Do not generate unlocked-io.h automatically, since it's easier to
39055         maintain it by hand.
39056
39057         * lib/unlocked-io.h: New file, from GNU diffutils,
39058         but with proper copyright notice and attribution.
39059         * lib/gen-uio: Remove.
39060         * lib/Makefile.am: Add copyright notice.
39061         (libfetish_a_SOURCES): Add unlocked-io.h.
39062         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
39063         (DISTCLEANFILES, io_functions): Remove macros.
39064         (EXTRA_DIST): Remove gen_uio.
39065         (unlocked-io.h): Remove rule.
39066
39067 2002-12-04  Jim Meyering  <jim@meyering.net>
39068
39069         Reflect the fact that stat.c and lstat.c are no longer generated.
39070         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
39071         (DISTCLEANFILES): Likewise.
39072         (EXTRA_DIST): Likewise.
39073         (all_local): Don't depend on stat.c or lstat.c.
39074         (stat.c, lstat.c): Remove rules.
39075         (EXTRA_DIST): Remove xstat.in.
39076
39077         * lib/xstat.in: Remove file.  Contents moved into stat.c.
39078         * lib/stat.c: New file.  Contents mostly from xstat.in.
39079         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
39080         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
39081
39082         * lib/safe-read.c: Rework so that it may serve to define safe_write,
39083         too.
39084         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
39085
39086 2002-12-03  Jim Meyering  <jim@meyering.net>
39087
39088         * lib/safe-read.c, safe-write.c: Change variable names and comments,
39089         but not semantics, to minimize the differences between these two files.
39090         (safe_read): Change comment to mention SAFE_READ_ERROR.
39091
39092         * lib/safe-read.c (IS_EINTR): Define.
39093         (safe_read): Use IS_EINTR in place of in-function cpp directives.
39094
39095 2002-12-02  Jim Meyering  <jim@meyering.net>
39096
39097         * lib/safe-read.c (EINTR): Define.
39098         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39099         (INT_MAX): Provide fallback.
39100         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
39101
39102         * lib/safe-read.h (SAFE_READ_ERROR): Define.
39103
39104 2002-12-02  Bruno Haible  <bruno@clisp.org>
39105
39106         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
39107         Define, taken from safe-read.c.
39108         (INT_MAX): Provide fallback.
39109         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
39110         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
39111
39112         * lib/safe-read.c (EINTR): Remove definition.
39113         (safe_read): Don't use EINTR if it is absent.
39114
39115 2002-12-01  Jim Meyering  <jim@meyering.net>
39116
39117         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
39118         zero.
39119         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
39120
39121 2002-11-27  Paul Eggert  <eggert@twinsun.com>
39122
39123         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
39124         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
39125         with `if (! (value < limit)) abort ();', for readability.
39126
39127 2002-11-26  Karl Berry  <karl@gnu.org>
39128
39129         * lib/strdup.c: copy from libc again, with jim's ok.
39130         * lib/.cppi-disable: re-add strdup.c
39131
39132 2002-11-25  Karl Berry  <karl@gnu.org>
39133
39134         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
39135         instead of "strtol.c".
39136
39137 2002-11-25  Karl Berry  <karl@gnu.org>
39138
39139         * config/install-sh: update from automake for variable quoting, $0 in
39140         error msgs, etc.
39141
39142         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
39143         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
39144         entry.
39145
39146 2002-11-25  Jim Meyering  <jim@meyering.net>
39147
39148         * lib/mktime.c: Sync from libc, now that it has the latest fix.
39149
39150 2002-11-24  Karl Berry  <karl@gnu.org>
39151
39152         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
39153         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
39154
39155 2002-11-24  Jim Meyering  <jim@meyering.net>
39156
39157         Update from coreutils:
39158
39159         * lib/mktime.c: Merge in changes from libc.
39160
39161         Avoid a link-time failure on some Linux systems.
39162         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
39163         (otherwise).
39164         (__mon_yday): Declare with the STATIC attribute.
39165         (__mktime_internal): Likewise.
39166         Based on a report from Greg Schafer.
39167
39168 2002-11-23  Jim Meyering  <jim@meyering.net>
39169
39170         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
39171         Use `unsigned', not `int', as type of index.
39172
39173         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
39174
39175         * lib/fsusage.c: Remove unneeded parentheses around operands of
39176         `defined'.
39177
39178 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39179
39180         * lib/quotearg.h: Allow multiple inclusion by surrounding with
39181         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
39182         so that we can be included first.
39183         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
39184         * lib/quotearg.c: Include quotearg.h immediately after config.h.
39185         No need to include stddef.h or sys/types.h any more.
39186         Surround local include files with "", not "<>".
39187         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
39188         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
39189         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
39190         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
39191         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
39192         (ISPRINT): Remove; no longer needed now that we assume C89.
39193
39194         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
39195         Preserve errno.
39196
39197         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
39198         quotearg_char): Use SIZE_MAX rather than
39199         (size_t) -1 when we are talking about "infinity".
39200
39201         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
39202
39203 2002-11-22  Paul Eggert  <eggert@twinsun.com>
39204
39205         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
39206         hint that one should use `if (! x) abort ();' rather than `assert
39207         (x);', and anyway it's one less thing to worry about configuring.
39208         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
39209         hash_rehash, hash_insert): Use abort rather than assert.
39210
39211 2002-11-22  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/safe-read.h: Assume C89. Add comments.
39214         (safe_read): Change return type to size_t.
39215         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
39216         byte counts > SSIZE_MAX correctly.
39217         * lib/safe-write.h: New file.
39218         * lib/safe-write.c: New file.
39219         * lib/full-read.h: New file.
39220         * lib/full-read.c: New file.
39221         * lib/full-write.h: Assume C89. Add comments.
39222         * lib/full-write.c: Include safe-write.h.
39223         (full_write): Rewritten to use safe_write.
39224         Suggested by Jim Meyering and Paul Eggert.
39225
39226 2002-11-21  Jim Meyering  <jim@meyering.net>
39227
39228         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
39229
39230         Merge in changes from the coreutils.
39231
39232         2002-09-25  Paul Eggert  <eggert@twinsun.com>
39233         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
39234         <stdint.h>.
39235         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
39236         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
39237         int.  Work more efficiently if X is the same width as uintmax_t.
39238         Do not compare X to -1, to avoid bogus compiler warning.
39239         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
39240         Don't assume that f_frsize and f_bsize are the same type.
39241
39242         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
39243         warning on FreeBSD.
39244
39245         * lib/makepath.c (make_path): Restore umask *before* creating the final
39246         component.
39247         (make_path): Minor reformatting.
39248
39249         * lib/xmalloc.c: Adjust to work with new autoconf macros,
39250         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
39251         HAVE_MALLOC/HAVE_REALLOC.
39252
39253         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
39254         dummy ones.  At least on GNU/Linux systems, `auto' means something
39255         else.
39256         From Michael Stone.
39257
39258 2002-11-21  Bruno Haible  <bruno@clisp.org>
39259
39260         Remove case insensitive option matching.
39261         * lib/argmatch.h (argcasematch): Remove declaration.
39262         (ARGCASEMATCH): Remove macro.
39263         (__xargmatch_internal): Remove case_sensitive argument.
39264         (XARGMATCH): Update.
39265         (XARGCASEMATCH): Remove macro.
39266         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
39267         case_sensitive argument.
39268         (argcasematch): Remove function.
39269         (__xargmatch_internal): Remove case_sensitive argument.
39270         (main): Use XARGMATCH instead of XARGCASEMATCH.
39271
39272         * lib/xmalloc.c: Change compile-time error message. Add comment about
39273         required autoconf version.
39274
39275 2002-11-20  Paul Eggert  <eggert@twinsun.com>
39276
39277         Merge argmatch cleanups from Bison.  Assume C89.
39278
39279         * lib/argmatch.c: Include config.h here, not in argmatch.h.
39280         Include stdlib.h, for EXIT_FAILURE.
39281         Always include <string.h>, since we assume C89.
39282         (EXIT_FAILURE): Remove pre-C89 bug workaround.
39283         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
39284         Include <stddef.h> instead, since it's all we need for size_t.
39285         (PARAMS): Remove.  All uses removed.
39286         (ARRAY_CARDINALITY): Do not bother to #undef.
39287         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
39288         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39289         Remove unnecessary parentheses.
39290         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
39291         Insert necessary parentheses.
39292         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
39293         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
39294
39295 2002-11-19  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
39298         * lib/mbswidth.h: Include <stddef.h>, for size_t.
39299
39300         * lib/mbswidth.h (PARAMS): Remove macro.
39301         (mbswidth, mbsnwidth): Use ANSI C function declarations.
39302         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
39303
39304         * lib/gcd.h (PARAMS): Remove macro.
39305         (gcd): Use ANSI C function declarations.
39306         * lib/gcd.c (gcd): Likewise.
39307
39308 2002-11-15  Bruno Haible  <bruno@clisp.org>
39309
39310         * lib/strcspn.c: Include <stddef.h>.
39311         (strcspn): Use ANSI C function declaration. Change return type to
39312         size_t. Use NULL.
39313         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
39314         (strpbrk): Use NULL.
39315         * lib/strpbrk.h (PARAMS): Remove macro.
39316         (strpbrk): Use ANSI C function declaration.
39317         * lib/strstr.c: Don't include <sys/types.h>.
39318         * lib/strstr.h (PARAMS): Remove macro.
39319         (strstr): Use ANSI C function declarations.
39320
39321 2002-11-14  Karl Berry  <karl@gnu.org>
39322
39323         * config/mkinstalldirs: `do' on separate line, instead of
39324         `for var; do'.
39325
39326 2002-11-06  Bruno Haible  <bruno@clisp.org>
39327
39328         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39329         * lib/gcd.c (gcd): Likewise.
39330
39331 2002-11-05  Bruno Haible  <bruno@clisp.org>
39332
39333         * lib/gcd.h: New file, from gettext-0.11.5.
39334         * lib/gcd.c: New file, from gettext-0.11.5.
39335
39336 2002-11-05  Bruno Haible  <bruno@clisp.org>
39337
39338         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39339         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39340         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39341         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39342
39343         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39344         <libintl.h>.
39345         * lib/makepath.c: Include gettext.h instead of <locale.h> and
39346         <libintl.h>.
39347
39348         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
39349         * lib/human.c: Include gettext.h instead of <libintl.h>.
39350         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
39351         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
39352         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
39353         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
39354         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
39355         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
39356         (textdomain): Remove definition.
39357         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
39358
39359         * lib/long-options.c: Remove include of <libintl.h> and definition of
39360         _.
39361         * lib/same.c: Remove include of <libintl.h> and definition of _.
39362
39363 2002-11-04  Owen Taylor  <otaylor@redhat.com>
39364
39365         * lib/config.charset: A few additions for Solaris.
39366
39367 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39368
39369         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
39370         * lib/localcharset.c (locale_charset): Declare as extern "C".
39371
39372 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39373
39374         * lib/config.charset: msdos in uk_UA uses CP1125.
39375
39376 2002-11-04  Bruno Haible  <bruno@clisp.org>
39377
39378         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
39379         * lib/strcase.h: New file, from GNU gettext-0.11.5.
39380         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
39381         * lib/strstr.h: New file, from GNU gettext-0.11.5.
39382         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
39383
39384 2002-11-04  Bruno Haible  <bruno@clisp.org>
39385
39386         * lib/localcharset.c (locale_charset): Don't return an empty string.
39387
39388 2002-11-04  Bruno Haible  <bruno@clisp.org>
39389
39390         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
39391         aliases.
39392
39393 2002-11-04  Bruno Haible  <bruno@clisp.org>
39394
39395         * lib/config.charset: Update for newest glibc. Add canonical names
39396         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
39397
39398 2002-11-04  Bruno Haible  <bruno@clisp.org>
39399
39400         * lib/config.charset: Add support for NetBSD.
39401
39402 2002-11-04  Bruno Haible  <bruno@clisp.org>
39403
39404         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
39405
39406 2002-11-01  Bruno Haible  <bruno@clisp.org>
39407
39408         * configure.in: Add AC_CONFIG_AUX_DIR call.
39409         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
39410         test/Makefile.
39411         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
39412
39413 2002-09-28  Karl Berry  <karl@gnu.org>
39414
39415         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
39416         installed automake until the next release, since changes have been
39417         made.
39418
39419 2002-09-25  Karl Berry  <karl@gnu.org>
39420
39421         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39422         * lib/getopt*: copy from libc/posix.
39423         * lib/gettext.h: copy from gettext.
39424         * lib/.cppi-disable: add strdup.c, gettext.h.
39425
39426 2002-09-25  Karl Berry  <karl@gnu.org>
39427
39428         * config/srclist.txt: enable gettext.h check.
39429         * config/config.{guess,sub}: update from prep.
39430         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
39431                 from automake 1.6.3.
39432         See srclist*.
39433
39434 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
39435
39436         * regex.c (PATFETCH): Remove the translating fetch.
39437         (PATFETCH_RAW): Rename to PATFETCH.
39438         (set_image_of_range): New fun.
39439         (SET_RANGE_TABLE_WORK_AREA): Use it.
39440         (regex_compile): Don't translate the pattern chars so eagerly.
39441         Only do it when inserting an `exactn' bytecode or when handling
39442         a char-range.
39443         (mutually_exclusive_p): Avoid empty statement.
39444
39445 2002-07-06  Jim Meyering  <meyering@lucent.com>
39446
39447         * m4/README: Don't mention Makefile.am.in.
39448         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
39449
39450 2002-07-01  Jim Meyering  <meyering@lucent.com>
39451
39452         * lib/c-stack.c: Include sys/time.h.
39453         From Volker Borchert.
39454
39455 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39456
39457         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
39458
39459 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39460
39461         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
39462         New macro.  Use it uniformly instead of
39463         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
39464         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
39465         reported by Vin Shelton.
39466
39467 2002-06-22  Paul Eggert  <eggert@twinsun.com>
39468
39469         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
39470         Do not assume SA_SIGINFO behavior.
39471         Bug reported by Jim Meyering on NetBSD 1.5.2.
39472
39473 2002-06-22  Jim Meyering  <meyering@lucent.com>
39474
39475         * m4/c-stack.m4: New file, from diffutils-2.8.2.
39476         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
39477
39478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
39479         now that configure.ac uses AC_GNU_SOURCE.
39480         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
39481         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
39482
39483         Update to latest tools.  Suggestions from Paul Eggert.
39484         * m4/stdbool.m4: New file, from diffutils-2.8.2.
39485         * m4/gnu-source.m4: Update from diffutils-2.8.2.
39486         * m4/fnmatch.m4: Likewise.
39487         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
39488         to AC_HEADER_STDBOOL
39489
39490 2002-06-22  Jim Meyering  <meyering@lucent.com>
39491
39492         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
39493         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
39494
39495 2002-06-22  Jim Meyering  <meyering@lucent.com>
39496
39497         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
39498
39499         * lib/exitfail.c, exitfail.h: Likewise.
39500         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
39501
39502         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
39503         of fnmatch.h.
39504         (EXTRA_DIST): Add fnmatch_loop.c.
39505         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
39506
39507         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
39508         * lib/fnmatch.c: Update from diffutils-2.8.2.
39509         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
39510         * lib/fnmatch.h: Remove file.
39511
39512 2002-06-21  Jim Meyering  <meyering@lucent.com>
39513
39514         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
39515         * m4/mbrtowc.m4: Likewise.
39516
39517         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
39518         * m4/mbswidth.m4: Reflect name change:
39519         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
39520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39521
39522         * m4/lib-link.m4: Update from gettext-0.11.2.
39523         * m4/gettext.m4: Likewise.
39524
39525         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
39526         From Alfred M. Szmidt.
39527
39528 2002-06-18  Paul Eggert  <eggert@twinsun.com>
39529
39530         * lib/file-type.h: Report an error if neither S_ISREG nor
39531         S_IFREG is defined, instead of using a test specific to glibc
39532         2.2.  This should be safe, since POSIX requires S_ISREG and
39533         Unix Version 7 had S_IFREG.  We don't need to check for
39534         <sys/types.h> since we don't use any symbols that it defines.
39535
39536 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
39537
39538         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
39539         $@-t, so that each temporary file name is unique and valid in the first
39540         8 characters, for operation under DOS.
39541
39542 2002-06-15  Paul Eggert  <eggert@twinsun.com>
39543
39544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
39545
39546 2002-06-15  Jim Meyering  <meyering@lucent.com>
39547
39548         Work even with DJGPP 2.03, which lacks support for symlinks.
39549         From Richard Dawe.
39550         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
39551         is defined.
39552         * lib/lchown.c (S_ISLNK): Likewise.
39553
39554 2002-06-15  Jim Meyering  <meyering@lucent.com>
39555
39556         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
39557         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
39558         have been included before this file.
39559
39560 2002-06-14  Jim Meyering  <meyering@lucent.com>
39561
39562         * lib/file-type.h: Use the version from diffutils-2.8.2.
39563         * lib/file-type.c: Likewise.
39564
39565 2002-06-07  Jim Meyering  <meyering@lucent.com>
39566
39567         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
39568         They're needed at least for NetBSD 1.5.2.
39569         ($statxfs_includes): Include those same headers.
39570         ($statxfs_includes): Include sys/vfs.h if available.
39571         ($statxfs_includes): Likewise for sys/statvfs.h.
39572         Check for the following members in both structs statfs and statvfs:
39573         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
39574
39575 2002-06-01  Jim Meyering  <meyering@lucent.com>
39576
39577         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
39578         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
39579
39580 2002-05-28  Jim Meyering  <meyering@lucent.com>
39581
39582         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
39583         Reported by Volker Borchert.
39584
39585 2002-05-27  Jim Meyering  <meyering@lucent.com>
39586
39587         Fix a problem seen only on nonconforming systems whereby ls.c's
39588         use of localtime, and then of gettimeofday would cause trouble:
39589         the localtime call used to initialize rpl_gettimeofday's save
39590         mechanism would clobber ls's current local time information so
39591         that in any long listing the first file would always be listed
39592         with date 1970-01-01.  Analysis by Volker Borchert.
39593
39594         * lib/gettimeofday.c (localtime): Undefine.
39595         (rpl_localtime): New function.
39596
39597 2002-05-27  Jim Meyering  <meyering@lucent.com>
39598
39599         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39600         localtime.
39601
39602         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39603         use the replacement function; it wouldn't resolve at link time.
39604         Reported by Volker Borchert.
39605
39606 2002-05-22  Jim Meyering  <meyering@lucent.com>
39607
39608         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39609         file-type.h.
39610         * lib/file-type.h: New file.
39611         * lib/file-type.c (file_type): New file/function.  Extracted from
39612         diffutils.
39613
39614 2002-04-30  Jim Meyering  <meyering@lucent.com>
39615
39616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39617
39618 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39619
39620         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39621
39622 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39623
39624         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39625         Do not check for alloca.h (no longer used) or stdbool.h (was never
39626         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39627
39628 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39629
39630         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39631
39632 2002-04-29  Jim Meyering  <meyering@lucent.com>
39633
39634         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39635         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39636         Use AC_FUNC_STRNLEN here instead.
39637
39638         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39639         With autoconf-2.53a, it's part of AC_PROG_CC.
39640
39641 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39642
39643         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39644         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39645
39646 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39647
39648         * lib/sig2str.h, lib/sig2str.c: New files.
39649         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39650
39651 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39652
39653         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39654         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39655         of 127, since 64 is the largest conceivable number for ancient
39656         nonstandard hosts.
39657         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39658
39659 2002-04-28  Jim Meyering  <meyering@lucent.com>
39660
39661         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39662
39663 2002-04-24  Jim Meyering  <meyering@lucent.com>
39664
39665         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39666         (jm_PREREQ): Use it.
39667
39668         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39669         mach/mach.h fcntl.h.
39670         Check for this function: setlocale.
39671
39672 2002-04-24  Jim Meyering  <meyering@lucent.com>
39673
39674         * lib/gettext.h: New file, from Gettext.
39675         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39676         (libfetish_a_SOURCES): Add gettext.h.
39677
39678 2002-04-16  Jim Meyering  <meyering@lucent.com>
39679
39680         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39681         ut_pid, ut_id, ut_exit.
39682
39683 2002-04-16  Jim Meyering  <meyering@lucent.com>
39684
39685         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39686         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39687         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39688
39689 2002-04-12  Jim Meyering  <meyering@lucent.com>
39690
39691         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39692         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39693         existence of the getmntinfo function.  Needed for Darwin 5.3.
39694
39695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39696         This is necessary at least on Darwin 5.3.
39697
39698         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39699         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39700         strnlen.o in the library, and that makes some versions of ranlib
39701         object.
39702
39703 2002-04-12  Jim Meyering  <meyering@lucent.com>
39704
39705         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39706
39707 2002-04-09  Jim Meyering  <meyering@lucent.com>
39708
39709         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39710         to be more precise.  Rather than saying we're checking whether the
39711         function `works', say what we're testing.
39712         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39713         Reported by Bruno Haible.
39714
39715 2002-03-10  Jim Meyering  <meyering@lucent.com>
39716
39717         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39718         Suggestion from Santiago Vila.
39719
39720 2002-03-08  Jim Meyering  <meyering@lucent.com>
39721
39722         * lib/rename.c: Mention that this wrapper is needed also on
39723         mips-dec-ultrix4.4 systems.
39724
39725 2002-03-02  Jim Meyering  <meyering@lucent.com>
39726
39727         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39728         not HAVE_CLOCK_SETTIME.
39729
39730 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39731
39732         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39733         Check for clock_settime.
39734
39735 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39736
39737         * lib/nanosleep.h: Rename to....
39738         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39739
39740         * lib/gettime.c: New file.
39741         * lib/settime.c: New file.
39742         * lib/stime.c: Remove.
39743
39744         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39745         timespec.h.  Remove nanosleep.h.
39746
39747 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39748
39749         * m4/acl.m4: New file.
39750         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39751         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39752
39753 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39754
39755         * lib/acl.c, lib/acl.h: New files.
39756         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39757
39758 2002-02-24  Jim Meyering  <meyering@lucent.com>
39759
39760         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39761         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39762         cause trouble.  Reported by Nelson Beebe.
39763
39764 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39765
39766         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39767         compilers that don't know that xalloc_die never returns.
39768
39769 2002-02-20  Jim Meyering  <meyering@lucent.com>
39770
39771         * lib/getdate.c: Regenerate using bison-1.33.
39772
39773 2002-02-17  Jim Meyering  <meyering@lucent.com>
39774
39775         * config/config.guess (main): Don't use `head -1'; it's no longer
39776         portable. Use `sed 1q' instead.
39777
39778 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39779
39780         * m4/codeset.m4: Upgrade to gettext-0.11.
39781         * m4/gettext.m4: Upgrade to gettext-0.11.
39782         * m4/glibc21.m4: Upgrade to gettext-0.11.
39783         * m4/iconv.m4: Upgrade to gettext-0.11.
39784         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39785         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39786         * m4/lib-ld.m4: New file, from gettext-0.11.
39787         * m4/lib-link.m4: New file, from gettext-0.11.
39788         * m4/lib-prefix.m4: New file, from gettext-0.11.
39789         * m4/progtest.m4: Upgrade to gettext-0.11.
39790
39791 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39792
39793         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39794         (jm_PREREQ): Use it.
39795
39796 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39797
39798         * lib/posixver.c, lib/posixver.h: New files.
39799         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39800
39801 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39802             Bruno Haible  <bruno@clisp.org>
39803
39804         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39805         (fwrite_success_callback): New declaration.
39806         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39807         print_unicode_char. Call failure callback instead of error.
39808         (fwrite_success_callback): New function.
39809         (exit_failure_callback): New function.
39810         (fallback_failure_callback): New function.
39811         (print_unicode_char): Call unicode_to_mb.
39812
39813 2002-01-26  Jim Meyering  <meyering@lucent.com>
39814
39815         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39816         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39817
39818 2002-01-26  Jim Meyering  <meyering@lucent.com>
39819
39820         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39821
39822 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39823
39824         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39825
39826 2002-01-22  Jim Meyering  <meyering@lucent.com>
39827
39828         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39829         Otherwise, some versions of automake would omit the rule that makes
39830         Makefile from Makefile.in.
39831
39832 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39833
39834         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39835         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39836         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39837         (memcoll): Set errno to zero if there is no error.
39838
39839         * lib/quotearg.c (quotearg_buffer_restyled):
39840         Fix bug with quoting buffers containing NUL when backslashing escapes.
39841         This bug was exposed by the other changes in this patch.
39842         (quotearg_n_options): New arg ARGSIZE.
39843         All callers changed.
39844         (quoting_options_from_style): New function.
39845         (quotearg_n_style): Use it.
39846         (quotearg_n_style_mem): New function.
39847
39848         * lib/quotearg.h (quotearg_n_style_mem): New function.
39849
39850 2002-01-19  Jim Meyering  <meyering@lucent.com>
39851
39852         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39853         Remove useless quotes: DF_PROG="df".
39854         * m4/strnlen.m4: New file.
39855
39856 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39857
39858         * lib/backupfile.c (ISDIGIT): Comment fix.
39859         * lib/getdate.y (ISDIGIT): Likewise.
39860         * lib/posixtm.c (ISDIGIT, year): Likewise.
39861         * lib/strverscmp.c (ISDIGIT): Likewise.
39862         * lib/userspec.c (ISDIGIT): Likewise.
39863
39864 2002-01-16  Jim Meyering  <meyering@lucent.com>
39865
39866         * lib/getdate.y: Add three semicolons, each just before a closing
39867         brace. Bison (as of version 1.31) no longer papers over that mistake.
39868
39869 2002-01-05  Jim Meyering  <meyering@lucent.com>
39870
39871         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39872
39873 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39874
39875         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39876         not silently exit merely because the output buffer happens to
39877         have nothing pending.
39878
39879 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39880
39881         See the big note in ../ChangeLog.
39882         * lib/human.c (suffixes): Prefer K to k for 1024.
39883         (generate_suffix_backwards): New function.
39884         (human_readable_inexact): Use it.
39885         * lib/xstrtol.c (__xstrtol): If there is no number but there
39886         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39887         Accept 'K' as well as 'k'.
39888
39889 2001-12-15  Jim Meyering  <meyering@lucent.com>
39890
39891         * lib/regex.h (__restrict_arr): Update from libc.
39892
39893         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39894         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39895         (STREQ): Define.
39896
39897 2001-12-14  Jim Meyering  <meyering@lucent.com>
39898
39899         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39900         Suggestion from Bruno Haible.
39901
39902 2001-12-10  Jim Meyering  <meyering@lucent.com>
39903
39904         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39905         xrealloc, Instead, include "xalloc.h".
39906         (initbuffer): Don't cast xmalloc return value to char*.
39907         (readline): Reword comment.
39908         Don't cast xrealloc return value to char*
39909         Return NULL, not 0.
39910
39911 2001-12-09  Jim Meyering  <meyering@lucent.com>
39912
39913         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39914         about `signed and unsigned type in conditional expression'.
39915         * lib/posixtm.c (posix_time_parse): Likewise.
39916
39917         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39918
39919         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39920         to avoid a pedantic warning.
39921
39922         * lib/getstr.c: Don't include assert.h.
39923         (getstr): Remove warning-evoking assertions.
39924         Return -1 if offset parameter is out of bounds.
39925         Change the type of a local from int to size_t.
39926
39927         * lib/strftime.c (my_strftime_localtime_r): Include this function
39928         definition in the `#if ! HAVE_TM_GMTOFF' block.
39929
39930         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39931         Include xalloc.h instead.
39932
39933 2001-12-02  Jim Meyering  <meyering@lucent.com>
39934
39935         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39936         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39937         included.
39938
39939         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39940         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39941
39942 2001-11-30  Akim Demaille  <akim@epita.fr>
39943
39944         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39945         before being defined.
39946
39947 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39948
39949         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39950         First arg is int, not unsigned.
39951         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39952         (SIZE_MAX, UINT_MAX): New macros.
39953         (quotearg_n_options): Abort if N is negative.
39954         Avoid overflow check on hosts where size_t is 64 bits and int
39955         is 32 bits, as overflow is impossible there.
39956         Fix off-by-one typo that caused unnecessary reallocation.
39957
39958 2001-11-27  Jim Meyering  <meyering@lucent.com>
39959
39960         * lib/tempname.c: Merge with version from libc.
39961         * lib/regex.c: Likewise.
39962
39963         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39964         systems for which STDC_HEADERS is 0, it was not included, resulting in
39965         a warning about an integer-to-pointer conversion problem with getenv.
39966         Reported by Volker Borchert.
39967
39968 2001-11-26  Jim Meyering  <meyering@lucent.com>
39969
39970         * lib/gtod.h: Remove file.
39971         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39972         * lib/gettimeofday.c: Don't include gtod.h.
39973         (GTOD_init): Remove function.
39974         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39975         Suggestion from Volker Borchert.
39976
39977 2001-11-23  Jim Meyering  <meyering@lucent.com>
39978
39979         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39980         it.
39981         * lib/hash.c (struct hash_table): Define it here instead.
39982
39983 2001-11-22  Jim Meyering  <meyering@lucent.com>
39984
39985         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39986
39987 2001-11-20  Jim Meyering  <meyering@lucent.com>
39988
39989         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39990         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39991
39992 2001-11-19  Jim Meyering  <meyering@lucent.com>
39993
39994         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39995         directory.  Use "conftestXXXXXX" as the template.
39996         Suggestion from Paul Eggert.
39997
39998         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39999         immediately, so the test doesn't mistakenly hit the max-open-files
40000         limit.
40001
40002 2001-11-18  Paul Eggert  <eggert@twinsun.com>
40003
40004         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
40005         (TEMPORARIES): New macro.
40006         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
40007         removes an artificial limitation (e.g. HP-UX 10.20, where
40008         TMP_MAX is 17576).
40009
40010 2001-11-18  Jim Meyering  <meyering@lucent.com>
40011
40012         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
40013
40014 2001-11-18  Jim Meyering  <meyering@lucent.com>
40015
40016         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
40017         on SunOS 4.
40018
40019         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
40020         files will be created before anything else.
40021
40022 2001-11-17  Paul Eggert  <eggert@twinsun.com>
40023
40024         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
40025         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
40026
40027 2001-11-17  Jim Meyering  <meyering@lucent.com>
40028
40029         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
40030         Prompted by a report from Bob Proulx.
40031
40032         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
40033         Instead, require UTILS_FUNC_MKSTEMP.
40034
40035 2001-11-17  Jim Meyering  <meyering@lucent.com>
40036
40037         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
40038         Now, that's done as part of AC_FUNC_STRTOD.
40039
40040 2001-11-17  Jim Meyering  <meyering@lucent.com>
40041
40042         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
40043         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
40044         rather than group writable.  Patch by Juan F. Codagnone.
40045
40046         * lib/readtokens.c: Remove explicit declarations of xmalloc and
40047         xrealloc, Instead, include "xalloc.h".
40048
40049         * lib/mountlist.c: Include unlocked-io.h after all system headers.
40050         Remove explicit declarations of xmalloc, xrealloc,
40051         and xstrdup.  Instead, include "xalloc.h".
40052
40053         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
40054         unlocked-io.h.
40055         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
40056         Likewise.
40057         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
40058
40059         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
40060         Reported by Padraig Brady.
40061
40062         * lib/mkstemp.c: #undef mkstemp.
40063         Include config.h.
40064         (rpl_mkstemp): Rename from mkstemp.
40065         Protoize.
40066
40067 2001-11-16  Jim Meyering  <meyering@lucent.com>
40068
40069         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
40070         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
40071         determine the amount of total physical memory, use pstat_getstatic.
40072         HPUX-11 doesn't define _SC_PHYS_PAGES.
40073         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
40074         If sysconf couldn't be used to determine the amount of available
40075         physical memory, use both pstat_getstatic and pstat_getdynamic.
40076         Based on a patch from Bob Proulx.
40077
40078 2001-11-10  Jim Meyering  <meyering@lucent.com>
40079
40080         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
40081         (jm_PREREQ): Use it.
40082
40083 2001-11-09  Jim Meyering  <meyering@lucent.com>
40084
40085         * m4/jm-macros.m4: Require autoconf-2.52f.
40086         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
40087         Use these AC_-prefixed names, not the AM_-prefixed ones.
40088
40089         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
40090
40091 2001-11-05  Jim Meyering  <meyering@lucent.com>
40092
40093         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
40094
40095 2001-11-04  Jim Meyering  <meyering@lucent.com>
40096
40097         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
40098         $DEFS.
40099
40100 2001-11-03  Jim Meyering  <meyering@lucent.com>
40101
40102         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
40103         of AC_DEFUN.
40104
40105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
40106         know the name of the variable in the macro definition.
40107
40108 2001-11-03  Jim Meyering  <meyering@lucent.com>
40109
40110         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
40111         in argmatch_to_argument call.
40112
40113         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
40114         argument.
40115
40116         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
40117         e.g., a fault due to an attempt to free a NULL pointer.
40118
40119 2001-11-01  Jim Meyering  <meyering@lucent.com>
40120
40121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
40122         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
40123
40124 2001-11-01  Jim Meyering  <meyering@lucent.com>
40125
40126         * lib/dirfd.c, lib/dirfd.h: New files.
40127         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
40128
40129         * lib/hash.c (hash_print) [TESTING]: Clean up.
40130
40131 2001-10-22  Paul Eggert  <eggert@twinsun.com>
40132
40133         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
40134         to avoid a warning if -Wall.
40135
40136 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
40137
40138         * README: New file
40139         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
40140         (per RMS's instructions, this is now the canonical source)
40141         * lgpl/, gpl/: New directories.
40142
40143 2001-10-21  Paul Eggert  <eggert@twinsun.com>
40144
40145         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
40146
40147 2001-10-21  Jim Meyering  <meyering@lucent.com>
40148
40149         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
40150         this code would end up calling gettext even in packages built
40151         with --disable-nls.
40152         * lib/getopt.c (_): Likewise.
40153         * lib/regex.c (_): Likewise.
40154
40155 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40156
40157         * m4/error.m4 (jm_PREREQ_ERROR):
40158         Do not invoke AC_CHECK_FUNCS with strerror_r, as
40159         AC_FUNC_STRERROR_R does that.
40160         Check for strerror declaration.
40161
40162         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
40163         are supposed to have them these days.
40164         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
40165         Merge changes from latest Autoconf CVS.
40166         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
40167         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
40168         POSIX decided to standardize on the int flavor of strerror_r.
40169
40170 2001-10-20  Paul Eggert  <eggert@twinsun.com>
40171
40172         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
40173         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
40174         Use strerror_r that is only a macro, even if it is not a function.
40175         (strerror): Check for HAVE_DECL_STRERROR before declaring.
40176         (private_strerror): Use prototypes, not old-style function definition.
40177         (print_errno_message): New function.
40178         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
40179         char*-flavored one.
40180         (error_tail, error, error_at_line): Use it.
40181
40182 2001-10-11  Jim Meyering  <meyering@lucent.com>
40183
40184         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
40185         and quote_n (1, ... to avoid clobbering a buffer.
40186
40187 2001-10-05  Jim Meyering  <meyering@lucent.com>
40188
40189         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
40190         hash-pjw.h.
40191         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
40192         * lib/hash-pjw.h: New file.
40193
40194 2001-09-30  Jim Meyering  <meyering@lucent.com>
40195
40196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
40197         `struct fsstat' has the `f_fstypename' member.
40198         Use that to define FS_TYPE, which is now used to make
40199         the getfsstat link test tighter.
40200
40201 2001-09-30  Jim Meyering  <meyering@lucent.com>
40202
40203         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
40204         Include <sys/ucred.h>, for Apple Darwin.
40205         Include sys/mount.h and sys/fs_types.h only if available.
40206         (FS_TYPE): Define.
40207         (read_filesystem_list): Use FS_TYPE.
40208
40209 2001-09-29  Paul Eggert  <eggert@twinsun.com>
40210
40211         * lib/exclude.c (excluded_filename): 0 -> false, since it's
40212         a boolean context.
40213
40214 2001-09-29  Jim Meyering  <meyering@lucent.com>
40215
40216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40217         [one-argument getmntent function]): Include stdio.h before mntent.h.
40218         SunOS 4.1.x needs it for the declaration of `FILE'.
40219         Patch by Volker Borchert.
40220
40221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
40222         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
40223         sys/fs_types.h, and make the link-test for getfsstat guard #include
40224         directives with appropriate #if HAVE_*_H tests so that we can
40225         detect getfsstat on Apple Darwin1.3.7 systems.
40226         Reported by Nelson Beebe.
40227         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
40228
40229 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40230
40231         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40232         #defines strtoimax.  Also treat the other strto* functions
40233         like strtoimax.
40234
40235         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40236         Check for strtoul and strtoumax,
40237         as those declarations are made even in the signed case.
40238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
40239         Likewise, for strtol and strtoimax.
40240
40241 2001-09-28  Paul Eggert  <eggert@twinsun.com>
40242
40243         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
40244         #defines strtoimax.  Also treat the other strto* functions
40245         like strtoimax.
40246
40247         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
40248         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
40249         (strtoimax, strtoumax): Do not declare if already defined as a macro.
40250
40251 2001-09-26  Jim Meyering  <meyering@lucent.com>
40252
40253         Most macros in unlocked-io.h had the wrong number of arguments.
40254         * lib/gen-uio: New script.
40255         (USE_UNLOCKED_IO): Define to 1 if not already defined.
40256         * lib/unlocked-io.hin: Remove file.
40257         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
40258         rather than trying to embed it here.
40259         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
40260         Reported by Padraig Brady.
40261
40262 2001-09-25  Volker Borchert  <bt@teknon.de>
40263
40264         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
40265         `result'.
40266
40267 2001-09-24  Jim Meyering  <meyering@lucent.com>
40268
40269         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
40270
40271 2001-09-23  Jim Meyering  <meyering@lucent.com>
40272
40273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
40274         instead of the mere test for existence of mntent.h.  The latter
40275         would get a false-positive on AIX 3.4 systems.
40276         In the outer getmntent if-block, don't die if neither of the getmntent
40277         tests succeeds.  Instead, just fall through and continue with the
40278         remaining tests.
40279
40280 2001-09-23  Jim Meyering  <meyering@lucent.com>
40281
40282         * lib/mountlist.c: Remove useless parentheses in #if directives.
40283         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
40284         the deprecated MOUNTED symbol is no longer defined in mntent.h.
40285
40286 2001-09-22  Jim Meyering  <meyering@lucent.com>
40287
40288         * m4/gettext.m4: New file.  From gettext.
40289         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
40290         * m4/progtest.m4: Likewise
40291         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
40292         * m4/glibc21.m4: Likewise.
40293
40294         * m4/libintl.m4: Remove.  No longer used.
40295
40296 2001-09-22  Jim Meyering  <meyering@lucent.com>
40297
40298         * lib/localcharset.c: Update from latest gettext.
40299         * lib/config.charset: Likewise.
40300
40301 2001-09-20  Jim Meyering  <meyering@lucent.com>
40302
40303         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
40304         strtoimax.
40305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
40306         strtoumax.
40307
40308 2001-09-20  Jim Meyering  <meyering@lucent.com>
40309
40310         * lib/xstrtol.c (strtoimax): Guard declaration with
40311         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
40312         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
40313         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
40314         (strtoumax): Likewise, for completeness (it wasn't necessary).
40315
40316 2001-09-17  Paul Eggert  <eggert@twinsun.com>
40317
40318         * lib/strtoimax.c (HAVE_LONG_LONG):
40319         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
40320         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
40321         to work around bug in IBM C compiler.
40322
40323 2001-09-17  Jim Meyering  <meyering@lucent.com>
40324
40325         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40326         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40327         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40328         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40329         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40330         whenever the right hand side need not be expanded by the shell.
40331
40332 2001-09-16  Paul Eggert  <eggert@twinsun.com>
40333
40334         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40335         library.  It's not correct, as some older glibcs are buggy.
40336         fnmatch wasn't fixed until glibc 2.2.
40337
40338         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40339         special shell magic here.
40340
40341 2001-09-16  Jim Meyering  <meyering@lucent.com>
40342
40343         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40344         * m4/jm-macros.m4: Require it.
40345
40346 2001-09-16  Jim Meyering  <meyering@lucent.com>
40347
40348         * lib/mkdir.c: New file.
40349
40350 2001-09-15  Jim Meyering  <meyering@lucent.com>
40351
40352         * m4/jm-macros.m4: Check for help2man.
40353
40354 2001-09-11  Jim Meyering  <meyering@lucent.com>
40355
40356         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
40357         The body, by Paul Eggert, was moved here from configure.in.
40358         * m4/jm-macros.m4: Require UTILS_HOST_OS.
40359
40360 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40361
40362         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
40363         (jm_PREREQ): Use it.
40364
40365 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40366
40367         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
40368         Use ssize_t, not int, to store result of readlink.
40369         Check for ssize_t overflow as well as size_t overflow,
40370         as POSIX says the result of readlink is implementation-defined
40371         when ssize_t overflows.
40372         Remove unnecessary cast to char*.
40373         Use free+malloc instead of realloc, as the storage doesn't need
40374         to be preserved and it's clearer and can be more efficient that way.
40375         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
40376         * lib/xreadlink.h (xreadlink): Update prototype.
40377
40378 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40379
40380         * lib/xgetcwd.c: Revert some of the previous change; intead,
40381         fix the HAVE_GETCWD_NULL code to behave more like the
40382         !HAVE_GETCWD_NULL code used to.
40383
40384         Include "xalloc.h".
40385         (xgetcwd): Do not return NULL when memory is exhausted; instead,
40386         invoke xalloc_die.
40387
40388 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40389
40390         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
40391         sys/param.h, as pathmax.h includes them.
40392
40393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40394
40395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
40396         (jm_PREREQ_XGETCWD): New macro.
40397
40398         * m4/getcwd.m4: New file.
40399
40400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40401
40402         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
40403         like the HAVE_GETCWD_NULL code.
40404         Include pathmax.h if not HAVE_GETCWD.
40405         Do not include xalloc.h.
40406         (INITIAL_BUFFER_SIZE): New symbol.
40407         Do not use xmalloc / xrealloc, since the caller is responsible for
40408         handling errors.  Preserve errno around `free' during failure.
40409         Do not overrun buffer when using getwd.
40410
40411 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40412
40413         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
40414         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
40415         getcwd (NULL, 0).
40416
40417 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40418
40419         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
40420         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
40421         spotted by Jim Meyering.
40422
40423 2001-09-03  Jim Meyering  <meyering@lucent.com>
40424
40425         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
40426         failure.
40427
40428 2001-09-02  Jim Meyering  <meyering@lucent.com>
40429
40430         * lib/error.c: Update from GNU libc.
40431
40432 2001-09-01  Jim Meyering  <meyering@lucent.com>
40433
40434         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
40435         Used by df.
40436
40437 2001-09-01  Jim Meyering  <meyering@lucent.com>
40438
40439         * lib/xreadlink.c: New file.
40440         * lib/xreadlink.h: New file.
40441         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
40442         xreadlink.h.
40443
40444         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
40445         doesn't conflict with sparc Solaris 7's definition in
40446         /usr/include/sys/int_types.h.
40447
40448         * lib/exclude.c: Use `""', not `<>' to #include non-system header
40449         files.
40450         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
40451         and strncasecmp as r-values.  Unixware didn't have declarations.
40452
40453 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40454
40455         * lib/xstrtol.h: Add copyright notice.
40456         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
40457         LONGINT_INVALID_SUFFIX_CHAR.
40458
40459 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40460
40461         * lib/xstrtol.c (strtoimax): New decl.
40462
40463 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40464
40465         * lib/xgetcwd.c: Don't include pathmax.h.
40466         Include stdlib.h and unistd.h if available.
40467         Include xalloc.h.
40468         (xmalloc, xstrdup, free): Remove decls.
40469         (xgetcwd): Don't assume sizes fit in unsigned.
40470         Check for overflow when computing sizes.
40471         Simplify reallocation code.
40472
40473 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40474
40475         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
40476         a directory's st_size can have an arbitrary value, so the old
40477         usage could waste an arbitrary amount of memory.  All uses
40478         changed.
40479         * lib/savedir.h: Update prototype.
40480
40481 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40482
40483         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
40484
40485         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
40486         old strtoimax.c.
40487
40488         Also, make the following further changes to make this file's
40489         configuration more similar to that of strtol.c:
40490         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
40491         (strtoumax, uintmax_t, strtoull, strtol): Remove.
40492         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
40493         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
40494         changed to signed values.
40495
40496         And make the following changes as well:
40497         Fix copyright notice, as 1999 was missing.
40498         (verify): New macro.
40499         (strtoimax): Check sizes at compile-time, not run-time.
40500         Prefer strtol to strtoll if both work.
40501         (main): Remove; it was not that useful and was a pain to maintain.
40502
40503         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
40504
40505 2001-08-31  Jim Meyering  <meyering@lucent.com>
40506
40507         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
40508         Use an initial, malloc'd, buffer of length 128 rather than
40509         a statically allocated one of length 1024.
40510
40511 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40512
40513         Simplify code, partly by assuming autoconf 2.52 semantics.
40514
40515         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
40516
40517         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
40518         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
40519         All uses removed.
40520         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
40521         Move AC_REQUIRE to next-to-top level, to avoid confusion.
40522         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
40523         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
40524         jm_AC_HEADER_INTTYPES_H.
40525         * m4/jm-macros.m4 (jm_MACROS): Likewise.
40526
40527         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
40528
40529         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40530         Quote first arg of AC_DEFUN.
40531         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
40532         since they are needed to parse the include file even if we need
40533         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
40534         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
40535         but with opposite signedness.
40536
40537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40538
40539         Merge 'exclude' changes from tar 1.13.22.
40540         This fixes one or two unlikely storage allocation overflow bugs,
40541         but doesn't change user-visible behavior otherwise.
40542
40543 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40544
40545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
40546         (jm_PREREQ_EXCLUDE): New macro.
40547
40548 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40549
40550         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
40551         tm to be declared.
40552
40553 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40554
40555         * lib/hash.c: Remove '2001' from copyright notice.
40556
40557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40558
40559         * lib/full-write.h: New file.
40560         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
40561         * lib/full-write.c: Correct credits, as cccp.c no longer
40562         exists and anyway it was so heavily changed from the old cccp
40563         code as to be unrecognizable.  Include full-write.h.
40564         (full_write) Return size_t, with short writes meaning failure.
40565         All callers changed.  This fixes a bug with large buffers
40566         on 64-bit hosts.
40567         * lib/utime.c: Include full-write.h.
40568
40569 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40570
40571         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
40572         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
40573         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
40574         Include if available.
40575         (<xalloc.h>): Include
40576         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
40577         (verify): New macro.  Use it to verify that EXCLUDE macros do not
40578         collide with FNM macros.
40579         (struct patopts): New struct.
40580         (struct exclude): Use it, as exclude patterns now come with options.
40581         (new_exclude): Support above changes.
40582         (new_exclude, add_exclude_file):
40583         Initial size must now be a power of two to simplify overflow checking.
40584         (free_exclude, fnmatch_no_wildcards): New function.
40585         (excluded_filename): No longer requires options arg, as the options
40586         are determined by add_exclude.  Now returns bool, not int.
40587         (excluded_filename, add_exclude):
40588         Add support for the fancy new exclusion options.
40589         (add_exclude, add_exclude_file): Now takes int options arg.
40590         Check for arithmetic overflow when computing sizes.
40591         (add_exclude_file): xrealloc might modify errno, so don't
40592         realloc until after errno might be used.
40593
40594         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40595         New macros.
40596         (free_exclude): New decl.
40597         (add_exclude, add_exclude_file): Now takes int options arg.
40598         (excluded_filename): No longer requires options arg, as the options
40599         are determined by add_exclude.  Now returns bool, not int.
40600
40601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40602
40603         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40604
40605 2001-08-27  Jim Meyering  <meyering@lucent.com>
40606
40607         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40608
40609         * lib/version-etc.c (N_): Remove definition.
40610         Revert most of last change.
40611         Instead, simply don't mark the `Copyright...' string for translation.
40612         Based on advice from Paul Eggert.
40613
40614         * lib/strtoxmax.c: Tweak comment.
40615
40616 2001-08-26  Jim Meyering  <meyering@lucent.com>
40617
40618         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40619
40620         * m4/xstrtoimax.m4: New file.
40621         * m4/xstrtoumax.m4: Add comments explaining why we
40622         AC_REPLACE_FUNCS(strtol).
40623
40624 2001-08-26  Jim Meyering  <meyering@lucent.com>
40625
40626         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40627         of copyright with `%s' so translators don't get an untranslated
40628         message in 2002.
40629         (COPYRIGHT_YEAR): Define.
40630         (version_etc): Use fprintf rather than fputs.
40631         Suggestion from Ulrich Drepper.
40632
40633         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40634
40635         * lib/strtoll.c: New file, from GNU libc.
40636         * lib/xstrtoimax.c: New file.
40637
40638         * lib/xstrtol.h: Add xstrtoimax.
40639         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40640         * lib/strtoimax.c: New file.  Likewise, but first define
40641         STRTOUXMAX_SIGNED.
40642
40643         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40644         ...
40645         * lib/strtoxmax.c: ... then renamed to this.
40646
40647 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40648
40649         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40650         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40651         (jm_AC_TYPE_INTMAX_T): New macro.
40652         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40653
40654         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40655
40656         * m4/longlong.m4: Renamed from ulonglong.m4.
40657         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40658         * m4/uintmax_t.m4: Removed.
40659
40660 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40661
40662         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40663         Port to Solaris 8, where 'sed' requires a space after the 'r'
40664         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40665         Redirect output to $tmp just once.
40666
40667 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40668
40669         * lib/addext.c (<errno.h>): Include.
40670         (errno): Declare if not defined.
40671         (addext): Work correctly when pathconf returns -1 and leaves
40672         errno alone because there is no limit.  Also, work even if
40673         pathconf returns a value greater than SIZE_MAX.
40674
40675 2001-08-12  Jim Meyering  <meyering@lucent.com>
40676
40677         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40678         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40679         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40680         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40681         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40682         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40683         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40684         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40685         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40686         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40687         utime.m4, utimes.m4, xstrtoumax.m4:
40688         Quote the first argument in each use of AC_DEFUN.
40689
40690 2001-08-12  Jim Meyering  <meyering@lucent.com>
40691
40692         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40693         Simply `return getcwd (NULL, 0);'.
40694         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40695         Use 1300 as initial value for length, not PATH_MAX.
40696
40697         * lib/pathmax.h: Clean up cpp syntax.
40698
40699 2001-08-12  Jim Meyering  <meyering@lucent.com>
40700
40701         * lib/gettimeofday.c: New file.
40702         * lib/gtod.h: New file.
40703         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40704
40705 2001-08-05  Jim Meyering  <meyering@lucent.com>
40706
40707         * m4/jm-macros.m4: Require autoconf-2.52.
40708
40709 2001-08-04  Jim Meyering  <meyering@lucent.com>
40710
40711         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40712         stmt, to get in sync with glibc.
40713
40714 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40715
40716         The following changes are from gettext 0.10.39 as maintained by
40717         Bruno Haible.
40718
40719         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40720         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40721         with inverted sense.  All uses changed.
40722
40723         * lib/mbswidth.c: Don't include <limits.h>.
40724         Include <stdlib.h> and <string.h> unconditionally.
40725         (iswcntrl, mbsinit, ISCNTRL): New macros.
40726         (mbsnwidth): Use K&R style function declarations.
40727         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40728         can optimize it when MB_CUR_MAX == 1.
40729         The width of control characters is zero, not 1.
40730
40731 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40732
40733         The following changes are from gettext 0.10.39 as maintained by
40734         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40735
40736         * m4/codeset.m4: Upgrade to serial AM1.
40737         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40738         all uses changed.  Quote first arg of AC_DEFUN.
40739         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40740
40741         * m4/iconv.m4: Upgrade to serial AM2.
40742         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40743         Add --with-libconv-prefix.
40744         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40745         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40746         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40747         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40748         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40749
40750         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40751         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40752         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40753         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40754         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40755         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40756         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40757         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40758         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40759
40760         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40761         string.h any more.
40762
40763         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40764         not the default value.
40765
40766         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40767         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40768         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40769         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40770         Also check for iswcntrl, used for wcwidth fallback.
40771         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40772         to Autoconf 2.13.
40773
40774 2001-08-03  Jim Meyering  <meyering@lucent.com>
40775
40776         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40777         as it was in the original.  Reported by Paul Eggert.
40778
40779 2001-07-16  Jim Meyering  <meyering@lucent.com>
40780
40781         * m4/gettimeofday.m4: New file.
40782         Prompted by a report from Bernhard Baehr.
40783
40784 2001-07-15  Jim Meyering  <meyering@lucent.com>
40785
40786         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40787         stuff. Now it's in ../Makefile.cfg.
40788
40789 2001-07-15  Jim Meyering  <meyering@lucent.com>
40790
40791         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40792         (BUILT_SOURCES): Add unlocked-io.h.
40793         (io_functions): Define.
40794         (unlocked-io.h): New rule.
40795         (DISTCLEANFILES): Add unlocked-io.h.
40796         (all-local): Depend on unlocked-io.h, to ensure it is created.
40797
40798         * lib/unlocked-io.hin: New file
40799
40800         * lib/regex.c: Update from glibc.
40801
40802 2001-07-05  Jim Meyering  <meyering@lucent.com>
40803
40804         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40805         recommendation.
40806         (libfetish_a_SOURCES): Put all .h files here instead.
40807         Remove a thus-exposed (better checks in automake) duplicate and
40808         two unnecessary .h files.
40809
40810 2001-07-04  Jim Meyering  <meyering@lucent.com>
40811
40812         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40813         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40814         distcheck failure.
40815
40816 2001-07-02  Jim Meyering  <meyering@lucent.com>
40817
40818         The following changes were prompted by suggestions from Bruno Haible.
40819
40820         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40821         is now generated.
40822         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40823         definition of EXTRA_DIST.
40824         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40825         ensure that the generated file is created/updated whenever the list
40826         of $(unlocked_functions) is changed.
40827         (jm-glibc-io.m4): New rule.
40828         (unlocked-io.h): New rule -- currently unused.
40829
40830 2001-06-24  Jim Meyering  <meyering@lucent.com>
40831
40832         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40833         unmatched right bracket, rather than kludging it with an extra,
40834         falsely-matching quote in a comment.  Patch by Akim Demaille.
40835
40836 2001-06-11  Jim Meyering  <meyering@lucent.com>
40837
40838         * lib/regex.c: Update from GNU libc.
40839
40840 2001-05-27  Jim Meyering  <meyering@lucent.com>
40841
40842         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40843         Check for ut_type in struct utmp.
40844
40845 2001-05-27  Jim Meyering  <meyering@lucent.com>
40846
40847         * lib/readutmp.h (UT_TYPE): Define.
40848
40849 2001-05-24  Jim Meyering  <meyering@lucent.com>
40850
40851         * lib/argmatch.c: Include "quote.h".
40852         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40853         quote function.  Reported by Göran Uddeborg.
40854
40855 2001-05-22  Jim Meyering  <meyering@lucent.com>
40856
40857         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40858         now that we use the package-supplied version unconditionally.
40859         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40860
40861 2001-05-21  Jim Meyering  <meyering@lucent.com>
40862
40863         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40864         shell syntax errors.
40865
40866 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40867
40868         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40869
40870 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40871
40872         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40873         Don't bother to check library strftime, since
40874         we'll be using our own my_strftime function anyway.
40875         Define my_strftime instead of strftime.
40876
40877 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40878
40879         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40880         which is not yet declared.
40881
40882 2001-05-15  Jim Meyering  <meyering@lucent.com>
40883
40884         * m4/regex.m4: Use proper quoting so brackets appear in the test
40885         program.
40886         Reported by, and with help from, Bruno Haible.
40887
40888 2001-05-13  Jim Meyering  <meyering@lucent.com>
40889
40890         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40891         undefined.
40892
40893 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40894
40895         dirname code cleanup.  base_name now behaves more compatibly
40896         with POSIX basename when given file names that have trailing
40897         slashes, and similarly for dir_name.  Add new primitives
40898         base_len and dir_len.  Put the directory-name-related decls
40899         into dirname.h.
40900
40901         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40902         * lib/backupfile.c (base_name): Likewise.
40903         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40904         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40905         * lib/makepath.c (strip_trailing_slashes): Likewise.
40906         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40907         ISSLASH): Likewise.
40908         * lib/rename.c (strip_trailing_slashes): Likewise.
40909         * lib/same.c (base_name): Likewise.
40910         * lib/stripslash.c (ISSLASH): Likewise.
40911
40912         * lib/addext.c: Include <dirname.h> after size_t is defined.
40913         * lib/backupfile.c: Likewise.
40914
40915         * lib/addext.c (addext): Use base_len to trim redundant
40916         trailing slashes instead of doing it ourselves.
40917         But do not trim the last slash if it is not redundant.
40918
40919         * lib/backupfile.c (find_backup_file_name,
40920         max_backup_version): Use base_len instead of rolling it ourselves.
40921         Handle the case of "" and (on DOS) "C:" correctly.
40922
40923         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40924         needed. Include <string.h>, <dirname.h>.
40925         (base_name): Allow file names ending in slashes, other than names
40926         that are all slashes.  In this case, return the basename followed
40927         by the slashes.  This is more general, and can be used in places
40928         where the original base_name purposely had an assertion failure.
40929         (base_len): New function.
40930
40931         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40932         Do not include <assert.h>; no longer needed.
40933         Include xalloc.h.
40934         (memrchr): Remove decl.
40935         (dir_name_r): Remove.
40936         (dir_len): Renamed from dirlen.  All callers changed.
40937         Rewrite in terms of base_name, for simplicity and consistency.
40938         (dir_name): Never return NULL.  All callers changed.
40939         Do not include <stdlib.h> in test program; no longer needed.
40940         return 0; is fine for test program.
40941
40942         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40943         New macros.
40944         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40945
40946         * lib/path-concat.c (path_concat): Use base_len to compute
40947         base length, not strlen; this means we cannot rely on memcpy
40948         to null-terminate.
40949
40950         * lib/same.c (STREQ): Remove.
40951         (same_name): Handle the case where the basename ends in trailing '/'.
40952
40953         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40954         a slash was stripped.  Do not strip the last slash after a
40955         file system prefix.
40956
40957 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40958
40959         * lib/Makefile.am (libfetish_a_SOURCES):
40960         Add strftime.c, since we now compile it on all hosts.
40961
40962         * lib/strftime.c (my_strftime):
40963         Define to nstrftime if emacs, but only if my_strftime is not defined.
40964         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40965         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40966         Add one more extra argument: a nanoseconds value.
40967         All uses changed.
40968         (ns): New macro.
40969         (my_strftime function): Add %N format.
40970         (emacs_strftimeu): Renamed from emacs_strftime,
40971         with extra ut argument.
40972
40973 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40974
40975         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40976
40977 2001-04-21  Jim Meyering  <meyering@lucent.com>
40978
40979         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40980         doesn't interfere.
40981
40982 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40983
40984         * m4/ftruncate.m4: Check for chsize.
40985         Link with ftruncate.o unconditionally if ftruncate is missing.
40986         This was required when cross-compiling to i586-mingw32msvc.
40987
40988 2001-04-08  Jim Meyering  <meyering@lucent.com>
40989
40990         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40991         recomputed; that's necessary when the offset spans a DST transition.
40992         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40993
40994 2001-04-02  Jim Meyering  <meyering@lucent.com>
40995
40996         * lib/regex.h, regex.c: Update from GNU libc.
40997
40998 2001-03-24  Jim Meyering  <meyering@lucent.com>
40999
41000         * m4/jm-macros.m4: Require autoconf-2.49d.
41001
41002 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
41003
41004         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
41005
41006 2001-03-19  Paul Eggert  <eggert@twinsun.com>
41007
41008         * lib/version-etc.c (version_etc_copyright): Update to 2001.
41009
41010 2001-03-17  Jim Meyering  <meyering@lucent.com>
41011
41012         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
41013         now that the version in autoconf is equivalent.
41014         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
41015
41016         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
41017         Suggestion from Akim Demaille.
41018
41019         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
41020         (jm_PREREQ_TEMPNAME): New function.
41021
41022 2001-03-16  Paul Eggert  <eggert@twinsun.com>
41023
41024         * lib/tempname.c (uint64_t): Define to uintmax_t if
41025         not defined, and if UINT64_MAX is not defined.
41026         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
41027         Reported by John David Anglin.
41028
41029 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
41030
41031         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
41032         resolve alias if codeset is empty.
41033         * lib/config.charset (BeOS): Use wildcard syntax.
41034
41035 2001-03-13  Jim Meyering  <meyering@lucent.com>
41036
41037         * lib/path-concat.c (path_concat)
41038         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
41039         concatenating e.g., `C:' and `foo'.
41040         From Bruno Haible.
41041
41042 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41043
41044         * lib/localcharset.c (locale_charset): Don't use
41045         setlocale(LC_CTYPE,NULL). Don't return NULL.
41046         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
41047
41048 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
41049
41050         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
41051         support for DOS/DJGPP.
41052
41053 2001-03-01  Paul Eggert  <eggert@twinsun.com>
41054
41055         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
41056         lacks mkstemp.  Compile our own tempname.c if we compile our own
41057         mkstemp.c, as mkstemp relies on tempname.
41058
41059 2001-03-01  Jim Meyering  <meyering@lucent.com>
41060
41061         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
41062         AH_VERBATIM really does output its argument verbatim.
41063
41064 2001-02-28  Paul Eggert  <eggert@twinsun.com>
41065
41066         * lib/Makefile.am (libfetish_a_SOURCES):
41067         Add dup-safer.c, fopen-safer.c.
41068         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
41069
41070         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
41071         * lib/unistd-safer.h: New files.
41072
41073 2001-02-25  Paul Eggert  <eggert@twinsun.com>
41074
41075         The mkstemp replacement is taken from glibc 2.2.2, with some
41076         portability fixes for use outside glibc, as follows:
41077
41078         * lib/tempname.c (struct_stat64): New macro.
41079         (direxists, __gen_tempname): Use it.
41080         This avoids a portability problem with Solaris 8.
41081
41082         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
41083         (<stddef.h>, <stdint.h>, <string.h>):
41084         Include only if STDC_HEADERS || _LIBC.
41085         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
41086         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
41087         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
41088         (__set_errno): Define this macro if <errno.h> doesn't.
41089         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
41090         Define these macros if <stdio.h> doesn't.
41091         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
41092         Define these macros if <sys/stat.h>
41093         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
41094         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
41095         __xstat64): Define if not _LIBC.
41096         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
41097         (__gen_tempname): Invoke gettimeofday only if
41098         HAVE_GETTIMEOFDAY || _LIBC;
41099         otherwise, fall back on plain "time".
41100         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
41101
41102         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
41103
41104         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
41105
41106 2001-02-18  Paul Eggert  <eggert@twinsun.com>
41107
41108         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
41109
41110 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41111
41112         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
41113         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
41114         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
41115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41116
41117 2001-02-17  Paul Eggert  <eggert@twinsun.com>
41118
41119         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
41120         Remove workaround macros for hosts that have mbrtowc but not
41121         mbstate_t, as we now insist on proper declarations for both
41122         before using mbrtowc.
41123
41124 2001-02-17  Jim Meyering  <meyering@lucent.com>
41125
41126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
41127         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
41128         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
41129         UnixWare 7.1.1.
41130
41131         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
41132         rather than AC_CACHE_VAL.
41133
41134 2001-02-17  Jim Meyering  <meyering@lucent.com>
41135
41136         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
41137         around included file name.
41138
41139         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
41140
41141         * lib/strftime.c: Update from GNU libc (the only changes were to
41142         comments).
41143
41144 2001-02-17  Jim Meyering  <meyering@lucent.com>
41145
41146         * lib/regex.c: Update from libc.
41147
41148 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
41149
41150         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
41151         clash.
41152
41153 2001-02-16  Paul Eggert  <eggert@twinsun.com>
41154
41155         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
41156         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
41157         Reported by Mark Hounschell via Paul Eggert.
41158
41159 2001-02-07  Jim Meyering  <meyering@lucent.com>
41160
41161         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
41162
41163 2001-02-05  Jim Meyering  <meyering@lucent.com>
41164
41165         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
41166         it includes the patch required for `large file' support with at least
41167         HP-UX's 10.20 /bin/cc.
41168
41169 2001-02-03  Jim Meyering  <meyering@lucent.com>
41170
41171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
41172         AS_IF, now that it works once again (mysteriously).
41173         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41174
41175 2001-01-30  Jim Meyering  <meyering@lucent.com>
41176
41177         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
41178         * m4/chown.m4: Rename conftestchown to conftest.chown.
41179         * m4/rename.m4: s/conftestdir/conftest.d1/ and
41180         s/conftestdir2/conftest.d2/.
41181         * m4/utimes.m4: s/conftestdata/conftest.data/
41182         Inspired by Pavel Roskin's change in autoconf.
41183
41184 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
41185
41186         * lib/config.charset: Update for FreeBSD 4.2.
41187
41188 2001-01-27  Jim Meyering  <meyering@lucent.com>
41189
41190         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
41191         a use of AS_IF.
41192         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
41193
41194 2001-01-26  Jim Meyering  <meyering@lucent.com>
41195
41196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
41197         quotearg.c includes it.
41198
41199 2001-01-26  Jim Meyering  <meyering@lucent.com>
41200
41201         * lib/quotearg.c: Include stddef.h.
41202         * lib/quote.c: Include stddef.h.
41203         Reported by Axel Kittenberger.
41204
41205         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
41206         line in double quotes so that it evokes a better diagnostic.
41207         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
41208         Reported by Axel Kittenberger.
41209
41210 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
41211
41212         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
41213         as if it was a `charset'.
41214
41215 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41216
41217         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
41218         has const.
41219
41220 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
41221
41222         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
41223         to avoid a warning.  Add back 'const' to inptr.
41224
41225 2001-01-20  Jim Meyering  <meyering@lucent.com>
41226
41227         Be sure that headers are checked before used in code compiled
41228         for the type checks.
41229         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
41230         In place of that, invoke jm_CHECK_ALL_TYPES.
41231         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
41232         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
41233         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
41234         The check for ssize_t was mistakenly run before the test for unistd.h.
41235
41236         The configure-time check for stdbool.h was missing.
41237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
41238         (jm_PREREQ_HASH): New function.
41239
41240 2001-01-17  Jim Meyering  <meyering@lucent.com>
41241
41242         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
41243         for autoconf-2.49c.
41244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
41245
41246 2001-01-16  Jim Meyering  <meyering@lucent.com>
41247
41248         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
41249         From Bruno Haible.
41250
41251 2001-01-14  Jim Meyering  <meyering@lucent.com>
41252
41253         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
41254         foo and bar.  Create conftestdir/ in the script, not in the C code.
41255         Remove directories in the script, not in the C code.
41256         Remove conftestdir{,2} before trying to create the directory.
41257         Make the entire configure script fail if the mkdir fails.
41258
41259 2001-01-14  Jim Meyering  <meyering@lucent.com>
41260
41261         * lib/rename.c: New file.  From Volker Borchert.
41262         Include stdlib.h, string.h or strings.h, and xalloc.h.
41263         Use strip_trailing_slashes rather than open-coding it.
41264
41265 2001-01-03  Paul Eggert  <eggert@twinsun.com>
41266
41267         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
41268
41269 2001-01-03  Jim Meyering  <meyering@lucent.com>
41270
41271         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
41272         of local `inptr' to avoid warning with some system declarations of
41273         iconv.
41274
41275 2001-01-02  Volker Borchert  <bt@teknon.de>
41276
41277         * m4/rename.m4: New file.
41278         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
41279
41280 2001-01-01  Jim Meyering  <meyering@lucent.com>
41281
41282         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
41283         even on systems with utmpx.h.  It's necessary for the declaration of
41284         utmp's ut_user member.  Reported by Andreas Jaeger.
41285
41286         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
41287         available. They are required for the declarations of getgrgid and
41288         getpwuid resp.
41289         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
41290         Reported by Andreas Jaeger.
41291
41292 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
41293
41294         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
41295         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
41296         so `make install' also works in VPATH builds.
41297
41298 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
41299
41300         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
41301         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
41302         can be used in subdirectories.
41303
41304 2000-12-29  Paul Eggert  <eggert@twinsun.com>
41305
41306         * lib/modechange.c: Do not assume that mode_t uses the
41307         traditional octal encoding.  E.g. "chmod 1 FOO" should set
41308         the other-execute bit of FOO even if S_IXOTH != 1.
41309
41310         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
41311         WOTH, XOTH, ALLM): New macros.
41312         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
41313          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
41314         Use them.
41315         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
41316         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
41317         (mode_compile):
41318         No need to use uintmax_t; unsigned long is long enough.
41319         Don't bother to get suffix since we don't use it.
41320
41321 2000-12-26  Jim Meyering  <meyering@lucent.com>
41322
41323         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
41324         better with autoheader.
41325
41326 2000-12-24  Jim Meyering  <meyering@lucent.com>
41327
41328         * lib/hash.c (is_prime): Return explicit boolean values.
41329         (hash_get_first): Return NULL to appease Irix5.6's 89.
41330         Reported by Nelson Beebe.
41331
41332 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
41333
41334         * lib/localcharset.c (locale_charset): Add support for Win32.
41335
41336 2000-12-18  Paul Eggert  <eggert@twinsun.com>
41337
41338         * lib/physmem.h, lib/physmem.c: New files.
41339
41340         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41341         (noinst_HEADERS): Add physmem.h.
41342
41343         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41344         't' for compatibility with Solaris 8 sort.
41345
41346 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
41347
41348         * lib/config.charset: Add support for BeOS.
41349
41350 2000-12-17  Jim Meyering  <meyering@lucent.com>
41351
41352         * m4/dos.m4 (jm_AC_DOS): New file and macro.
41353         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
41354
41355 2000-12-16  Jim Meyering  <meyering@lucent.com>
41356
41357         This bug had a serious impact on chown: `chown N:M FILE' (for integer
41358         N and M) would have treated it like `chown N:N FILE'.
41359
41360         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
41361
41362 2000-12-16  Jim Meyering  <meyering@lucent.com>
41363
41364         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
41365         SHELLS_FILE to a file name that's useful on djgpp systems.
41366         Include stdlib.h.
41367         (ADDITIONAL_DEFAULT_SHELLS): Define.
41368         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
41369         Based mostly on a patch from Prashant TR.
41370
41371 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
41372
41373         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
41374         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
41375         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
41376
41377 2000-12-08  Andreas Schwab  <schwab@suse.de>
41378
41379         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
41380         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
41381
41382 2000-12-07  Jim Meyering  <meyering@lucent.com>
41383
41384         * lib/stripslash.c (ISSLASH): Define.
41385         (strip_trailing_slashes): Use ISSLASH rather than comparing against
41386         `/'.
41387         From Prashant TR.
41388
41389         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
41390         (dir_name_r): Declare this function as static.
41391         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
41392         manifest itself on a name containing a mix of slashes and
41393         backslashes.
41394         Make this function work with names starting with a DOS-style
41395         drive letter and colon prefix.
41396         (dir_name): Append `.' if necessary.
41397         Based mostly on patches from Prashant TR and Eli Zaretskii.
41398
41399         * lib/dirname.h (dir_name_r): Remove prototype.
41400
41401 2000-12-06  Paul Eggert  <eggert@twinsun.com>
41402
41403         * m4/off_t-format.m4: Remove this file.
41404         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
41405
41406 2000-12-06  Jim Meyering  <meyering@lucent.com>
41407
41408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
41409         replacement strtoull, we may well need the replacement strtoul, too.
41410         Check for declarations of strtoul and strtoull.
41411         Check for strtol.  Mainly as a cue to cause automake to include
41412         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
41413         Check for limits.h -- strtol.c needs it.
41414
41415 2000-12-05  Jim Meyering  <meyering@lucent.com>
41416
41417         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
41418
41419 2000-12-04  Jim Meyering  <meyering@lucent.com>
41420
41421         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41422         Also include memory.h, stdlib.h, unistd.h if appropriate.
41423         Reported by Andreas Jaeger (conflicting declaration of malloc).
41424
41425 2000-12-02  Jim Meyering  <meyering@lucent.com>
41426
41427         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
41428         * m4/jm-macros.m4 (jm_MACROS): require it.
41429
41430 2000-12-02  Jim Meyering  <meyering@lucent.com>
41431
41432         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
41433
41434 2000-12-01  Paul Eggert  <eggert@twinsun.com>
41435
41436         * lib/memrchr.c: Include <config.h> before any system include file.
41437
41438 2000-11-30  Jim Meyering  <meyering@lucent.com>
41439
41440         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
41441
41442 2000-11-30  Jim Meyering  <meyering@lucent.com>
41443
41444         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
41445
41446 2000-11-29  Paul Eggert  <eggert@twinsun.com>
41447
41448         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
41449
41450 2000-11-26  Jim Meyering  <meyering@lucent.com>
41451
41452         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
41453
41454 2000-11-22  Paul Eggert  <eggert@twinsun.com>
41455
41456         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
41457         size of (size_t) -1; it's not portable.
41458
41459 2000-11-17  Jim Meyering  <meyering@lucent.com>
41460
41461         * lib/strstr.c: Update from GNU libc.
41462
41463 2000-11-17  Akim Demaille  <akim@epita.fr>
41464
41465         * lib/obstack.h: Formatting changes.
41466         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
41467         prevent type checking.
41468         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
41469         cast the value to (void *): assigning a `foo *' to a `void *'
41470         variable is valid.
41471         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
41472
41473 2000-11-16  Jim Meyering  <meyering@lucent.com>
41474
41475         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
41476
41477 2000-11-11  Jim Meyering  <meyering@lucent.com>
41478
41479         * lib/error.c: Add a couple #includes, merging from GNU libc version.
41480
41481 2000-11-10  Jim Meyering  <meyering@lucent.com>
41482
41483         * lib/obstack.h: Update from GNU libc.
41484         * lib/obstack.c: Likewise.
41485
41486 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
41487
41488         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
41489
41490 2000-11-06  Paul Eggert  <eggert@twinsun.com>
41491
41492         * lib/getusershell.c (setusershell): Use rewind rather than
41493         fseek/fseeko, to avoid configuration hassles with fseeko.
41494         Don't bother opening SHELLS_FILE if shellstream is NULL;
41495         it's not necessary.
41496
41497 2000-11-05  Jim Meyering  <meyering@lucent.com>
41498
41499         * lib/makepath.h (make_dir): Declare.
41500         * lib/makepath.c (make_dir): Remove `static' attribute.
41501         Tweak a comment.
41502
41503 2000-11-04  Jim Meyering  <meyering@lucent.com>
41504
41505         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
41506
41507 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
41508
41509         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
41510         last one in a bucket, advance to the next bucket.
41511
41512 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
41513
41514         * lib/fnmatch.c: Do not comment out all the code if we are using
41515         the GNU C library, because in some cases we are replacing buggy
41516         code in the GNU C library itself.
41517
41518 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
41519
41520         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
41521         (regex_compile): Catch bogus \(\1\).
41522
41523 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41524
41525         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
41526         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
41527         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
41528
41529 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41530
41531         * lib/error.h, getline.h, modechange.h:
41532         Remove "2000" from Copyright line, as the file hasn't been
41533         changed this year other than in the copyright notice.
41534
41535         * lib/xalloc.h: Add "2000" to Copyright line, as this file
41536         was changed this year.
41537
41538 2000-10-29  Jim Meyering  <meyering@lucent.com>
41539
41540         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
41541         renaming.
41542         * m4/ls-mntd-fs.m4: Likewise
41543
41544 2000-10-29  Jim Meyering  <meyering@lucent.com>
41545
41546         * lib/xstat.in: Fix grammar in comment.
41547
41548 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
41549
41550         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
41551         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
41552         doesn't define __restrict_arr.
41553
41554 2000-10-28  Jim Meyering  <meyering@lucent.com>
41555
41556         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
41557         (jm_PREREQ_MEMCHR): New function.
41558
41559 2000-10-28  Jim Meyering  <meyering@lucent.com>
41560
41561         * lib/memchr.c: Update from libc.
41562         Adjust for portability:
41563         [HAVE_STDLIB_H]: Include stdlib.h.
41564         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
41565         Undef __memchr, too.
41566         [!weak_alias]: Define __memchr to memchr.
41567
41568         * lib/regex.c: Update from libc.
41569         * lib/regex.h: Likewise.
41570         * lib/getopt1.c: Likewise.
41571         * lib/memcmp.c: Likewise.
41572
41573         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
41574         Avoid using fseek, when possible -- it's broken by design.
41575         Patch by Ulrich Drepper.
41576
41577 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
41578
41579         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
41580         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
41581         Giving in to popular pressure to shut up the compiler with casts.
41582
41583 2000-10-26  Jim Meyering  <meyering@lucent.com>
41584
41585         * lib/strftime.c: Update from libc.
41586
41587 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
41588
41589         * regex.c: More `unsigned char' -> `re_char' changes.
41590         Also change several `int' into `re_wchar_t'.
41591         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41592         (PUSH_FAILURE_POINTER): Don't cast any more.
41593         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41594         We want GCC to complain, since this piece of code makes
41595         re_match non-reentrant, which *should* be fixed.
41596         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41597         (EXTEND_BUFFER): Use RETALLOC.
41598         (SET_LIST_BIT): Don't cast.
41599         (re_wchar_t): New type.
41600         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41601         that those two functions will always properly return.
41602         (IMMEDIATE_QUIT_CHECK): Cast to void.
41603         (analyse_first): Use recursion rather than an explicit stack.
41604         (re_compile_fastmap): Can't fail anymore.
41605         (re_search_2): Don't check re_compile_fastmap for failure.
41606         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41607         Now also sets the new value (passed in a new argument).
41608         (re_match_2_internal): Use it.
41609         Also, use a new var `reg' of type size_t when looping through regs
41610         rather than reuse the inappropriate `mcnt'.
41611
41612 2000-10-25  Jim Meyering  <meyering@lucent.com>
41613
41614         * lib/obstack.c: Update from libc.
41615
41616 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41617
41618         * regex.c (regex_compile): Change the way of handling a range from
41619         a char less than 256 to a char not less than 256.
41620
41621 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41622
41623         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41624         NT-Emacs only.
41625         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41626         so that re_search functions only quit when callers expect them to.
41627
41628 2000-10-23  Jim Meyering  <meyering@lucent.com>
41629
41630         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41631         wrong.  That set_locale call must not have any side effects.
41632         From Paul Eggert.
41633
41634 2000-10-22  Jim Meyering  <meyering@lucent.com>
41635
41636         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41637         [CYCLIC]: Remove now-unused definition.
41638
41639         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41640         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41641         Suggestion from Ulrich Drepper.
41642
41643 2000-10-21  Jim Meyering  <meyering@lucent.com>
41644
41645         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41646         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41648
41649 2000-10-21  Jim Meyering  <meyering@lucent.com>
41650
41651         * lib/dirname.c (memrchr): Declare if necessary.
41652         (dir_name): Remove the restriction that there be no
41653         trailing slashes.  Now, this code skips past them, effectively
41654         ignoring them.
41655         [TEST_DIRNAME] (main): New unit tests.
41656
41657         * lib/memrchr.c: New file from GNU libc.
41658         Undef __memrchr, too.
41659         [!weak_alias]: Define __memrchr to memrchr.
41660         Guard weak_alias use with `#ifdef weak_alias'.
41661
41662 2000-10-21  Jim Meyering  <meyering@lucent.com>
41663
41664         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41665         (dir_name): Use dir_name_r.
41666         * lib/dirname.h (dir_name_r): Declare it.
41667
41668 2000-10-17  Jim Meyering  <meyering@lucent.com>
41669
41670         * lib/quote.h (PARAMS): Define and use.
41671         Reported by Akim Demaille.
41672
41673         * lib/getopt.c: Update from libc.
41674
41675 2000-10-16  Jim Meyering  <meyering@lucent.com>
41676
41677         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41678         setlocale.
41679         From Jan Fedak.
41680
41681 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41682
41683         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41684
41685 2000-09-25  Jim Meyering  <meyering@lucent.com>
41686
41687         * lib/md5.h (rol): Define (from GnuPG).
41688
41689         * lib/sha.c: Give credit (GnuPG) where due.
41690         (M): Use rol rather than open-coding it.
41691         Add a FIXME comment.
41692
41693 2000-09-21  Jim Meyering  <meyering@lucent.com>
41694
41695         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41696         Reported by Michael Stone.
41697
41698 2000-09-20  Jim Meyering  <meyering@lucent.com>
41699
41700         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41701         (noinst_HEADERS): Add sha.h.
41702         Based on code from Scott G. Miller and from GnuPG.
41703
41704 2000-09-18  Jim Meyering  <meyering@lucent.com>
41705
41706         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41707         LIBS. Otherwise, everyone ends up linking with -lelf for some
41708         configurations.
41709         Reported by Mike Stone.
41710
41711 2000-09-15  Jim Meyering  <meyering@lucent.com>
41712
41713         * lib/regex.c: Update from libc.
41714
41715 2000-09-10  Jim Meyering  <meyering@lucent.com>
41716
41717         * lib/getopt.c (_getopt_internal): Update from glibc.
41718
41719 2000-09-09  Jim Meyering  <meyering@lucent.com>
41720
41721         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41722         think it should be used as a general replacement for isascii.
41723         * lib/fnmatch.c: Likewise.
41724         * lib/mbswidth.c: Likewise
41725         * lib/regex.c: Likewise.
41726
41727         Don't use atoi.
41728         * lib/userspec.c: Include sys/param.h and limits.h.
41729         Include xstrtol.h.
41730         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41731         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41732         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41733         UID, GID.  Check range.
41734
41735 2000-09-06  Jim Meyering  <meyering@lucent.com>
41736
41737         * lib/getopt.c (_getopt_internal): Update from glibc.
41738
41739 2000-08-30  Jim Meyering  <meyering@lucent.com>
41740
41741         * lib/strftime.c: Merge in changes from GNU libc.
41742
41743 2000-08-26  Jim Meyering  <meyering@lucent.com>
41744
41745         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41746         * m4/fpending.m4: New file.
41747
41748 2000-08-26  Jim Meyering  <meyering@lucent.com>
41749
41750         * lib/closeout.c: Include "__fpending.h".
41751         (close_stdout_status): Return right away if there's nothing to flush.
41752
41753         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41754         * lib/__fpending.c: New file.
41755         * lib/__fpending.h: New file.
41756
41757 2000-08-20  Jim Meyering  <meyering@lucent.com>
41758
41759         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41760         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41761         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41762
41763 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41764
41765         Improve fileutils installation on systems where running
41766         programs (like install) can't be unlinked.
41767         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41768         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41769
41770 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41771
41772         Standardize on "memory exhausted" instead of "Memory exhausted"
41773         or "virtual memory exhausted".
41774         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41775         "virtual memory exhausted".
41776         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41777         our own message.
41778         * lib/userspec.c (parse_user_spec): Likewise.
41779         * lib/bumpalloc.h: comment fix
41780         * lib/same.c, userspec.c: Include xalloc.h.
41781
41782         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41783         not char *const and pointing to a constant array.
41784         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41785         (xrealloc): Comment fix.
41786
41787         * lib/userspec.c (parse_user_spec):
41788         Don't translate a message until just before returning,
41789         to avoid unnecessary translation.
41790
41791 2000-08-07  Jim Meyering  <meyering@lucent.com>
41792
41793         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41794         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41795         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41796         getgroups.c, gethostname.c, getopt.h, group-member.c,
41797         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41798         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41799         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41800         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41801         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41802         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41803         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41804         yesno.c: Back out Copyright date changes for each file with no change
41805         this year.  This eases coordination with other programs using the same
41806         source code modules.  From Paul Eggert.
41807
41808 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41809
41810         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41811         not char, for compatibility with glibc 2.1.3 strftime.c.
41812
41813 2000-08-03  Greg McGary  <greg@mcgary.org>
41814
41815         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41816         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41817         (EXTEND_BUFFER): Use them.
41818
41819 2000-08-01  Jim Meyering  <meyering@lucent.com>
41820
41821         * lib/dirname.c (ISSLASH): Define.
41822         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41823         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41824         both `\' and `/' may be use as path separators.
41825         Based on a patch from Prashant TR.
41826
41827 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41828
41829         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41830         slot vector a constant, since it might get modified.
41831
41832 2000-07-31  Jim Meyering  <meyering@lucent.com>
41833
41834         * lib/xmalloc.c: Use `virtual memory exhausted', not
41835         `Memory exhausted'.
41836         * lib/obstack.c (print_and_abort): Likewise.
41837
41838 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41839
41840         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41841         buffer, so that the caller can always quote one small
41842         component of a "memory exhausted" message in slot 0.
41843         From a suggestion by Jim Meyering.
41844
41845 2000-07-30  Jim Meyering  <meyering@lucent.com>
41846
41847         * lib/makepath.c (make_path): Quote the other instance, too.
41848
41849         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41850         (STATIC_BUF_SIZE): Define.
41851         (quotearg_n_options): Use only statically allocated storage when
41852         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41853         than STATIC_BUF_SIZE.
41854
41855 2000-07-29  Jim Meyering  <meyering@lucent.com>
41856
41857         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41858         * lib/dirname.c (dir_name): Likewise.
41859
41860         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41861         `/'.
41862
41863         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41864         (dir_name): Assert that there are no trailing slashes.
41865
41866 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41867
41868         * lib/mbswidth.h (mbswidth): Add a flags argument.
41869         (mbswidth): New declaration.
41870         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41871         * lib/mbswidth.c (mbswidth): Add a flags argument.
41872         (mbsnwidth): New function.
41873
41874 2000-07-24  Jim Meyering  <meyering@lucent.com>
41875
41876         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41877
41878 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41879
41880         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41881
41882 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41883
41884         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41885         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41886         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41887         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41888         invoke multibyte primitives.
41889
41890 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41891
41892         * lib/quotearg.c:
41893         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41894         so that mbstate_t is always defined.
41895
41896         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41897         be 1 in at least one GCC installation, and this configuration
41898         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41899         performance on hosts that have mbrtowc but have only unibyte
41900         locales, but I assume these hosts are rare.
41901
41902 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41903
41904         * lib/mbswidth.c (_XOPEN_SOURCE):
41905         Don't define; this causes problems on Solaris 7.
41906         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41907
41908 2000-07-23  Jim Meyering  <meyering@lucent.com>
41909
41910         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41911         too: getgrgid, getpwuid, getuid.
41912
41913 2000-07-23  Jim Meyering  <meyering@lucent.com>
41914
41915         * lib/basename.c (base_name): Add an assertion.
41916
41917 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41918
41919         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41920         shadow its mbsinit function.
41921
41922 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41923
41924         * lib/mbswidth.h: New file.
41925         * lib/mbswidth.c: New file.
41926         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41927         (noinst_HEADERS): Add mbswidth.h.
41928
41929 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41930
41931         * lib/config.charset: Add support for FreeBSD. Improve support for
41932         HP-UX and IRIX 6.
41933
41934 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41935
41936         * m4/mbswidth.m4: New file.
41937         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41938
41939 2000-07-15  Jim Meyering  <meyering@lucent.com>
41940
41941         * lib/makepath.c: Include quote.h.
41942         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41943         corresponding argument in a `quote (...)' call.
41944         Give better diagnostics.
41945
41946         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41947         (noinst_HEADERS): Add quote.h.
41948
41949         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41950         from tar's src/misc.c.
41951         * lib/quote.h: New file.  Prototypes for same.
41952
41953 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41954
41955         From a suggestion by Bruno Haible.
41956         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41957         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41958         to decide whether to define the BeOS workaround macro;
41959         this adjusts to the change to AC_MBSTATE_T.
41960
41961 2000-07-14  Jim Meyering  <meyering@lucent.com>
41962
41963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41964         jm_AC_TYPE_UINTMAX_T.
41965
41966 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41967
41968         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41969
41970         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41971         quotearg_buffer_restyled): Add support for
41972         clocale_quoting_style.  Undo previous change to
41973         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41974         and "{RIGHT QUOTATION MARK}" msgids.
41975
41976 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41977
41978         From a suggestion by Bruno Haible.
41979         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41980         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41981         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41982         and mbstate_t, to a single-part test that simply defines mbstate_t.
41983         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41984         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41985
41986 2000-07-10  Jim Meyering  <meyering@lucent.com>
41987
41988         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41989
41990         * m4/gnu-source.m4: Output to confdefs.h directly.
41991         Suggestion from Akim Demaille.
41992
41993 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41994
41995         The old behavior of quoting `like this' doesn't look good with
41996         newer, ISO-style fonts.  See:
41997         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41998
41999         Instead, quote "like this" by default.  Let the translator
42000         tailor the locale-specific quoting behavior by providing
42001         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
42002
42003         * lib/quotearg.c (N_): New macro.
42004         (gettext_default): New function.
42005         (quotearg_buffer_restyled): Use
42006         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
42007         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
42008
42009 2000-07-09  Jim Meyering  <meyering@lucent.com>
42010
42011         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
42012         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
42013
42014         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
42015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
42016
42017 2000-07-09  Jim Meyering  <meyering@lucent.com>
42018
42019         * lib/Most files: Update copyright dates to include 2000.
42020
42021 2000-07-08  Jim Meyering  <meyering@lucent.com>
42022
42023         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
42024         if not defined.
42025         (xgethostname): Remove now-unnecessary #ifdef.
42026         Move declaration of `err' into loop where it's used.
42027
42028 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42029         and Bruno Haible  <haible@clisp.cons.org>
42030
42031         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
42032         only if the test for an object-type mbstate_t fails.  This
42033         prevents us from mistakenly reporting that mbstate_t is a
42034         system object type after we "#define mbstate_t int" to work
42035         around its lack.
42036
42037 2000-07-05  Paul Eggert  <eggert@twinsun.com>
42038         and Bruno Haible  <haible@clisp.cons.org>
42039
42040         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
42041
42042 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42043
42044         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
42045         to strerror_r.
42046         Include <ctype.h> for use of isalpha.
42047
42048 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42049
42050         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
42051         by allocating a larger buffer. Test the gethostname return value for
42052         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
42053         returns an error and ENAMETOOLONG isn't defined.
42054
42055 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
42056
42057         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
42058         dimension.
42059
42060 2000-07-04  Jim Meyering  <meyering@lucent.com>
42061
42062         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
42063         of the deprecated AC_CHECKING.
42064
42065 2000-07-04  Jim Meyering  <meyering@lucent.com>
42066
42067         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
42068         Reported by Bruno Haible.
42069
42070 2000-07-04  Jim Meyering  <meyering@lucent.com>
42071
42072         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
42073         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
42074         lacks mbrtowc.
42075
42076 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42077
42078         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
42079         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
42080
42081 2000-07-03  Paul Eggert  <eggert@twinsun.com>
42082         and Bruno Haible  <haible@clisp.cons.org>
42083
42084         * lib/quotearg.c (mbrtowc):
42085         Assign to *pwc, and return 1 only if result is nonzero.
42086         (iswprint): Use ISPRINT when substituting our own mbrtowc.
42087
42088 2000-07-03  Jim Meyering  <meyering@lucent.com>
42089
42090         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
42091
42092 2000-07-03  Jim Meyering  <meyering@lucent.com>
42093
42094         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
42095         This is necessary to get a definition of e.g., UTMP_FILE on
42096         HP-UX 10.20.
42097         From Bob Proulx.
42098
42099 2000-07-02  Jim Meyering  <meyering@lucent.com>
42100
42101         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
42102
42103         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
42104         AC_LIBOBJ(function_name).
42105         * m4/chown.m4: Likewise.
42106         * m4/fnmatch.m4: Likewise.
42107         * m4/ftruncate.m4: Likewise.
42108         * m4/getgroups.m4: Likewise.
42109         * m4/getline.m4: Likewise.
42110         * m4/group-member.m4: Likewise.
42111         * m4/jm-macros.m4: Likewise.
42112         * m4/lstat.m4: Likewise.
42113         * m4/malloc.m4: Likewise.
42114         * m4/memcmp.m4: Likewise.
42115         * m4/nanosleep.m4: Likewise.
42116         * m4/putenv.m4: Likewise.
42117         * m4/realloc.m4: Likewise.
42118         * m4/regex.m4: Likewise.
42119         * m4/stat.m4: Likewise.
42120         * m4/strftime.m4: Likewise.
42121
42122 2000-07-02  Jim Meyering  <meyering@lucent.com>
42123
42124         * lib/quotearg.c (mbstate_t): Don't define here.
42125
42126 2000-07-02  Jim Meyering  <meyering@lucent.com>
42127
42128         * lib/nanosleep.c (SIGCONT): Define if not already defined.
42129
42130 2000-07-01  Jim Meyering  <meyering@lucent.com>
42131
42132         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
42133
42134 2000-07-01  Jim Meyering  <meyering@lucent.com>
42135
42136         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
42137         problem.
42138
42139 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42140
42141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
42142         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
42143
42144 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
42145
42146         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
42147         per change in ../m4/ls-mntd-fs.m4.
42148         (read_filesystem_list): Ignore symbolic links.
42149
42150 2000-06-29  Jim Meyering  <meyering@lucent.com>
42151
42152         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
42153         for declaration of strcmp.
42154
42155         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
42156
42157         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
42158         Avoid warning by casting result to `char *' to remove `const'.
42159
42160 2000-06-28  Jim Meyering  <meyering@lucent.com>
42161
42162         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
42163         included by quotearg.c, for which we perform this test.  From
42164         Bruno Haible.
42165
42166 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42167
42168         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
42169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
42170         <utmpx.h> exists, put readutmp.o into LIBOBJS.
42171
42172 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
42173
42174         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
42175
42176 2000-06-26  Paul Eggert  <eggert@twinsun.com>
42177
42178         savedir now sets errno on failure and invokes xmalloc to get memory.
42179         Fix a couple of other minor bugs while we're at it.
42180
42181         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
42182         (NAMLEN): Remove macro.
42183         (malloc, realloc): Remove decls.
42184         (stpcpy): Likewise.
42185         ("xalloc.h"): Include.
42186         (NAME_SIZE_DEFAULT): New macro.
42187         (savedir): Use xmalloc / xrealloc to allocate memory.
42188         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
42189         Skip "" directory entries.
42190         Use strlen to calculate directory entry length, since the old method
42191         is rarely used these days and isn't worth supporting.
42192         Don't use a pointer after freeing it.
42193         Check for integer overflow when calculating allocation size.
42194         Use memcpy to copy entries, instead of stpcpy.
42195         Set errno properly when returning NULL.
42196         Check for readdir error.
42197
42198 2000-06-26  Jim Meyering  <meyering@lucent.com>
42199
42200         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
42201
42202 2000-06-25  Jim Meyering  <meyering@lucent.com>
42203
42204         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
42205         Linux header bug when _XOPEN_SOURCE is defined to 500.
42206
42207 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42208
42209         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
42210         deficiency.
42211
42212 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
42213
42214         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
42215         Include xalloc.h.
42216         Don't include <stdlib.h>.  Don't declare malloc, realloc.
42217
42218 2000-06-24  Jim Meyering  <meyering@lucent.com>
42219
42220         * m4/strerror_r.m4: Revive this file -- to try out an experimental
42221         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
42222         for which strerror does return char*, but which lacks a conveniently
42223         accessible declaration of the function.  If the compile-test says
42224         strerror_r doesn't work, then resort to a `run'-test that works on
42225         BeOS and segfaults on DEC Unix.
42226
42227 2000-06-24  Jim Meyering  <meyering@lucent.com>
42228
42229         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
42230
42231 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42232
42233         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
42234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
42235
42236 2000-06-23  Paul Eggert  <eggert@twinsun.com>
42237
42238         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
42239         (mbrtowc, mbstate_t): Define substitutes if
42240         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
42241         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
42242         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
42243
42244 2000-06-23  Jim Meyering  <meyering@lucent.com>
42245
42246         * m4/afs.m4: Add missing AC_MSG_RESULT.
42247         Reported by Bruno Haible.
42248
42249         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
42250         Suggestion from Bruno Haible.
42251
42252 2000-06-23  Jim Meyering  <meyering@lucent.com>
42253
42254         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
42255
42256 2000-06-21  Jim Meyering  <meyering@lucent.com>
42257
42258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
42259
42260 2000-06-21  Jim Meyering  <meyering@lucent.com>
42261
42262         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
42263         (noinst_HEADERS): Add getstr.h.
42264
42265         * lib/getline.c (getstr): Move into a separate file.
42266         * lib/getstr.c (getstr): New file, extracted from getline.c, with
42267         the following changes: new parameter, delim2; both delim[12]
42268         parameters have type `int', not `char'.  The latter would lose
42269         with 8-bit delimiters.
42270         * lib/getstr.h: New file.
42271
42272 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42273
42274         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
42275         than 1024, return a memory chunk of least possible size, instead
42276         of size PATH_MAX + 2. In the loop, increment the size proportionally.
42277         Use free/xmalloc instead of xrealloc to avoid copying for very long
42278         paths.
42279
42280 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42281
42282         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
42283         the empty string.
42284
42285 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
42286
42287         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
42288         address, not strdup.  Include <stdlib.h> and don't declare free().
42289
42290 2000-06-19  Jim Meyering  <meyering@lucent.com>
42291
42292         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
42293
42294 2000-06-18  Jim Meyering  <meyering@lucent.com>
42295
42296         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
42297
42298         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
42299         `checking whether...' message to be consistent with that of the
42300         lstat test.
42301
42302 2000-06-18  Jim Meyering  <meyering@lucent.com>
42303
42304         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
42305         Besides, these days every porting target provides a mkdir function.
42306
42307         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
42308         needed. (this snippet comes from src/system.h).
42309
42310 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
42311
42312         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
42313
42314 2000-06-15  Paul Eggert  <eggert@twinsun.com>
42315
42316         * lib/human.c (adjust_value): New function.
42317         (human_readable_inexact): Apply rounding style even when
42318         printing approximate values.
42319
42320 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42321
42322         * lib/human.c (human_readable_inexact): Allow an input block
42323         size that is not a multiple of the output block size, and vice versa.
42324         Reported by Piergiorgio Sartor.
42325
42326 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42327
42328         * lib/getdate.y (get_date): Apply relative times after time
42329         zone indicator, not before.  Reported by Todd A. Jacobs.
42330
42331 2000-06-13  Jim Meyering  <meyering@lucent.com>
42332
42333         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42334
42335         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42336
42337 2000-06-12  Paul Eggert  <eggert@twinsun.com>
42338
42339         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42340
42341 2000-06-12  Jim Meyering  <meyering@lucent.com>
42342
42343         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42344         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42345         optional argument.
42346         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42347         the optional argument, `lib'.
42348
42349 2000-06-08  Jim Meyering  <meyering@lucent.com>
42350
42351         * m4/largefile.m4: Remove file (now that it's part of autoconf).
42352
42353 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42354
42355         Rewrite largefile configuration so that we don't need to run
42356         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
42357         AC_CANONICAL_HOST in configure.in -- jmm]
42358
42359         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
42360         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
42361         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
42362         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
42363         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
42364         All uses changed.
42365         Instead of inspecting the output of getconf, try to compile the
42366         test program without and with the macro definition.
42367         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
42368         for getconf.  Instead, check for the needed flags by compiling
42369         test programs.
42370
42371 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42372
42373         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
42374
42375 2000-06-04  Jim Meyering  <meyering@lucent.com>
42376
42377         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
42378         SunOS 4.1.4 for which gid_t is an unsigned type.
42379
42380 2000-06-03  Jim Meyering  <meyering@lucent.com>
42381
42382         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
42383         now that autoconf requires that.
42384
42385         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
42386         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
42387         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
42388
42389 2000-06-03  Jim Meyering  <meyering@lucent.com>
42390
42391         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
42392
42393 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42394
42395         * m4/glibc21.m4: New file.
42396         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
42397
42398 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42399
42400         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
42401         newer, don't install charset.alias.
42402         * lib/config.charset: Change the Linux/glibc rules so they become empty
42403         on glibc-2.1 or newer.
42404
42405 2000-06-02  Jim Meyering  <meyering@lucent.com>
42406
42407         * lib/mountlist.c: Back out last change.  Instead, do this...
42408         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
42409         me_dummy member using the same `ignore'-testing code.
42410         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
42411         fs_type strings.
42412         From Mark D. Roth.
42413
42414 2000-05-29  Jim Meyering  <meyering@lucent.com>
42415
42416         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
42417         mounts with the `ignore' attribute.  Based on a patch from
42418         Mark D. Roth.
42419
42420 2000-05-28  Jim Meyering  <meyering@lucent.com>
42421
42422         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42423         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42424         * m4/stat.m4: Likewise.
42425         * m4/lstat.m4: Likewise.
42426         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
42427
42428         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
42429         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
42430
42431 2000-05-26  Jim Meyering  <meyering@lucent.com>
42432
42433         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
42434
42435 2000-05-24  Jim Meyering  <meyering@lucent.com>
42436
42437         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
42438         autoconf requires that.
42439         * m4/lib-check.m4: Likewise.
42440         * m4/jm-macros.m4: Likewise.
42441         * m4/strftime.m4: Likewise.
42442
42443         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
42444         AC_CHECK_DECLS, now that autoconf requires that.
42445
42446 2000-05-22  Jim Meyering  <meyering@lucent.com>
42447
42448         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42449         * m4/lstat.m4: Likewise.
42450
42451 2000-05-22  Jim Meyering  <meyering@lucent.com>
42452
42453         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
42454
42455 2000-05-20  Jim Meyering  <meyering@lucent.com>
42456
42457         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
42458         (jm_PREREQ): Use it.
42459
42460 2000-05-18  Jim Meyering  <meyering@lucent.com>
42461
42462         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
42463         back, too, since it may have been modified by allocate_entry.
42464         (hash_delete): Rewrite to use neither the assignment operator
42465         nor the comma operator in an if-expression.
42466
42467 2000-05-15  Paul Eggert  <eggert@twinsun.com>
42468
42469         * lib/closeout.c:
42470         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
42471         Remove; no longer needed.
42472         "quotearg.h": Add include.
42473         (file_name): Do not bother to explicitly initialize to NULL; it's less
42474         efficient on some hosts.
42475         (close_stdout_status): Remove test as to whether stdout was already
42476         closed; it breaks for the case "echo x | sort >&-".
42477         Quote file name colons.
42478         Do not assume that _("write error") lacks format strings.
42479
42480 2000-05-15  Jim Meyering  <meyering@lucent.com>
42481
42482         * lib/version-etc.c (version_etc_copyright): Update the copyright
42483         string used in all --version output.
42484
42485 2000-05-14  Jim Meyering  <meyering@lucent.com>
42486
42487         * lib/closeout.c (close_stdout_set_file_name): New function.
42488         (close_stdout_status): Use new file-scoped global.
42489         Return right away if fstat says the stdout file descriptor is invalid.
42490         * lib/closeout.h (close_stdout_set_file_name): Declare.
42491
42492 2000-05-10  Jim Meyering  <meyering@lucent.com>
42493
42494         * lib/closeout.c [default_exit_status]: New file-scoped variable.
42495         (close_stdout_set_status): New function.
42496         * lib/closeout.h (close_stdout_set_status): Declare.
42497
42498 2000-05-09  Jim Meyering  <meyering@lucent.com>
42499
42500         * m4/gettext.m4: Rename this...
42501         * m4/libintl.m4: ...to this.
42502
42503 2000-05-08  Jim Meyering  <meyering@lucent.com>
42504
42505         * lib/long-options.c: Don't include closeout.h.
42506         (parse_long_options): Don't call close_stdout for --version.
42507
42508 2000-05-06  Paul Eggert  <eggert@twinsun.com>
42509
42510         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
42511         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
42512         2.1.3 bug.  This avoids a clash when files like regex.c define
42513         _GNU_SOURCE.
42514
42515 2000-05-06  Jim Meyering  <meyering@lucent.com>
42516
42517         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
42518         (AC_REPLACE_FUNCS): Add strnlen.
42519
42520         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
42521         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
42522
42523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
42524         AC_SEARCH_LIBS call for nanosleep.
42525         (LIB_NANOSLEEP): Set and AC_SUBST.
42526
42527 2000-05-06  Jim Meyering  <meyering@lucent.com>
42528
42529         * lib/strnlen.c: Undefine __strnlen and strnlen.
42530         [!weak_alias]: Define __strnlen to strnlen.
42531
42532         * lib/atexit.c: New file, from libiberty.
42533
42534 2000-05-06  Jim Meyering  <meyering@lucent.com>
42535
42536         * lib/closeout.c (close_stdout_status): Also check for errors on the
42537         stderr stream.
42538
42539 2000-05-05  Jim Meyering  <meyering@lucent.com>
42540
42541         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
42542         AC_SEARCH_LIBS call for clock_gettime.
42543         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
42544
42545         * m4/search-libs.m4: Update from autoconf.
42546
42547         su doesn't work on Solaris 2.6.
42548         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
42549         <shadow.h>.  Reported by Dragos Harabor.
42550
42551 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
42552
42553         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
42554         memcpy instead of xmalloc, xrealloc, path_concat.
42555         (locale_charset): Treat empty environment variables as absent.
42556         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
42557
42558 2000-05-04  Jim Meyering  <meyering@lucent.com>
42559
42560         * lib/getopt.c: Update from glibc.
42561         * lib/obstack.c: Likewise.
42562         * lib/obstack.h: Likewise.
42563         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
42564         file
42565
42566         * lib/regex.h: Likewise.
42567         * lib/strndup.c: Likewise.
42568         * lib/strnlen.c: New file, from glibc.
42569
42570 2000-05-03  Jim Meyering  <meyering@lucent.com>
42571
42572         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
42573
42574 2000-05-02  Paul Eggert  <eggert@twinsun.com>
42575
42576         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
42577         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
42578         compile-time test, rather than inspecting host and OS, to
42579         decide whether to define _LARGEFILE_SOURCE.
42580
42581 2000-05-01  Jim Meyering  <meyering@lucent.com>
42582
42583         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
42584
42585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
42586         Based on a patch from Bruno Haible.
42587
42588 2000-05-01  Jim Meyering  <meyering@lucent.com>
42589
42590         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
42591
42592 2000-04-29  Jim Meyering  <meyering@lucent.com>
42593
42594         * lib/path-concat.c: Declare strdup only if it's not defined.
42595         * lib/canon-host.c: Likewise.
42596
42597 2000-04-28  Jim Meyering  <meyering@lucent.com>
42598
42599         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42600         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42601         is included first, then limits.h is included by locale.h by libintl.h.
42602         From John David Anglin.
42603
42604 2000-04-25  Jim Meyering  <meyering@lucent.com>
42605
42606         * lib/makepath.c (S_IRWXUGO): Define.
42607         (make_path): Always perform explicit chmod if MODE specifies any
42608         of the `special' permission bits.  Prompted by a bug report against
42609         install from Mate Wierdl and Joost van Baal.
42610
42611 2000-04-18  Jim Meyering  <meyering@lucent.com>
42612
42613         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42614         (jm_PREREQ): Use it.
42615
42616 2000-04-18  Jim Meyering  <meyering@lucent.com>
42617
42618         * lib/README: New file.
42619
42620         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42621         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42622
42623 2000-04-17  Jim Meyering  <meyering@lucent.com>
42624
42625         Get it right :-)
42626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42627         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42628         Suggestion from Akim Demaille.
42629
42630 2000-04-17  Jim Meyering  <meyering@lucent.com>
42631
42632         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42633         the definition of it to rpl_strftime also defined-away the system's
42634         declaration.
42635
42636 2000-04-15  Jim Meyering  <meyering@lucent.com>
42637
42638         Use `C' to denote so-called `contiguous' files, the same way
42639         that tar does.
42640         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42641         (ftypelet): Use S_ISCTG.
42642         From Michael Deutschmann.
42643
42644 2000-04-14  Jim Meyering  <meyering@lucent.com>
42645
42646         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42647         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42648         clobbered.
42649
42650 2000-04-14  Jim Meyering  <meyering@lucent.com>
42651
42652         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42653
42654 2000-04-13  Jim Meyering  <meyering@lucent.com>
42655
42656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42657         AH_VERBATIM to insert required #ifndef into config.h.in.
42658         Suggestion from Akim Demaille.
42659
42660 2000-04-12  Jim Meyering  <meyering@lucent.com>
42661
42662         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42663         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42664         Christian Krackowizer.
42665
42666         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42667         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42668         (AC_SYS_LARGEFILE): Require.
42669         (AM_C_PROTOTYPES): Require.
42670
42671 2000-04-08  Jim Meyering  <meyering@lucent.com>
42672
42673         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42674         names don't conflict.  Reported by Eli Zaretskii.
42675
42676 2000-04-07  Jim Meyering  <meyering@lucent.com>
42677
42678         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42679         sys/types.h, to work around system header problems on AIX 3.2.5.
42680         From Bruno Haible.
42681
42682 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42683
42684         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42685         bug.  Deal with the different error behavior of Irix iconv.
42686
42687 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42688
42689         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42690         IRIX if the installer said otherwise.
42691
42692 2000-04-05  Jim Meyering  <meyering@lucent.com>
42693
42694         Portability tweaks required for ultrix4.3.
42695         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42696         (jm_CHECK_DECLS): Add getutent to the list of functions.
42697         (_jm_DECL_HEADERS): Add utmpx.h.
42698         From John David Anglin.
42699
42700         * m4/strftime.m4: Back out the 2000-04-02 change.
42701         Instead of that change, simply undefine putenv in the test program.
42702
42703 2000-04-05  Jim Meyering  <meyering@lucent.com>
42704
42705         Portability tweaks required for ultrix4.3.
42706         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42707         getutent.
42708         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42709         * lib/canon-host.c: Declare strdup.
42710         * lib/path-concat.c: Likewise.
42711         From John David Anglin.
42712
42713 2000-04-04  Jim Meyering  <meyering@lucent.com>
42714
42715         Be more DOS 8.3-friendly.
42716         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42717         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42718         * lib/Makefile.am: Reflect renaming.
42719         Reported by Eli Zaretskii.
42720
42721         Use a temporary file name that won't clash with `charset.alias'
42722         in the DOS 8.3 name space.
42723         * lib/Makefile.am (charset_tmp): Define.
42724         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42725         (uninstall-local): Likewise.
42726         Reported by Eli Zaretskii.
42727
42728 2000-04-03  Jim Meyering  <meyering@lucent.com>
42729
42730         * m4/gettext.m4: Fix typo in comment.
42731
42732         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42733         textutils/configure.in).  Suggestion from Paul Eggert.
42734         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42735
42736 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42737
42738         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42739         variable in the shell rather than using putenv, which isn't
42740         portable.  This avoids the configure-time inter-test dependency
42741         on the potentially-renamed putenv function.
42742
42743 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42744
42745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42746         before checking struct stat.st_blksize, so that
42747         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42748
42749 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42750
42751         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42752         since strftime.c uses HAVE_STRFTIME to decide whether to use
42753         the underlying strftime.
42754
42755 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42756
42757         * lib/time/strftime.c (my_strftime): Make sure we call the system
42758         strftime, not ourselves, when invoking the underlying strftime.
42759
42760 2000-03-24  Jim Meyering  <meyering@lucent.com>
42761
42762         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42763         (charset_alias): Define.
42764         (install-exec-local): Factor out common code.
42765         (uninstall-local): Split lines longer than 80.
42766         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42767         (SUFFIXES): Define.
42768         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42769         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42770
42771 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42772
42773         * lib/config.charset: Output a line containing "Packages using this
42774         file".
42775         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42776         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42777         ref-del.sed): New rules.
42778
42779 2000-03-17  Jim Meyering  <meyering@lucent.com>
42780
42781         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42782         Otherwise, include <strings.h>
42783
42784 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42785
42786         * lib/unicodeio.c (utf8_wctomb): New function.
42787         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42788         format instead of in UCS-4 with platform dependent endianness.
42789
42790 2000-03-10  Jim Meyering  <meyering@lucent.com>
42791
42792         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42793         From Marco Franzen.
42794
42795 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42796
42797         * lib/savedir.c (savedir): Work even if directory size is
42798         negative; this can happen with some screwy NFS configurations.
42799
42800 2000-03-06  Jim Meyering  <meyering@lucent.com>
42801
42802         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42803         if it's NULL (because we ran out of memory).  From Bruno Haible.
42804
42805 2000-03-05  Jim Meyering  <meyering@lucent.com>
42806
42807         * lib/localcharset.c ("path-concat.h"): Include.
42808         (get_charset_aliases): Use path_concat instead of ANSI string
42809         concatenation.
42810
42811         * lib/unicodeio.h (PARAMS): Define.
42812         Use it to guard prototype.
42813
42814 2000-03-04  Jim Meyering  <meyering@lucent.com>
42815
42816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42817         for lib/localcharset.c.
42818
42819 2000-03-04  Jim Meyering  <meyering@lucent.com>
42820
42821         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42822         installing into it.
42823         (uninstall-local): Uncomment this rule so `make distcheck' works
42824         once again.
42825
42826         * lib/unicodeio.c (<errno.h>): Include it.
42827         (errno): Declare if not defined.
42828
42829         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42830
42831         * lib/config.charset: New version, incorporating remarks from a linux
42832         i18n mailing list.  From Bruno Haible.
42833
42834 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42835
42836         * m4/codeset.m4: New file.
42837         * m4/iconv.m4: New file.
42838         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42839
42840 2000-03-03  Jim Meyering  <meyering@lucent.com>
42841
42842         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42843
42844 2000-03-02  Jim Meyering  <meyering@lucent.com>
42845
42846         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42847         the messages come out on separate lines.
42848
42849         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42850         rather than jm_CHECK_DECLARATIONS.
42851         * m4/decl.m4: Remove now-unused file.
42852
42853         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42854         geteuid.
42855
42856 2000-03-02  Jim Meyering  <meyering@lucent.com>
42857
42858         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42859
42860 2000-03-01  Jim Meyering  <meyering@lucent.com>
42861
42862         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42863         * lib/unicodeio.c: Likewise.
42864
42865 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42866
42867         * lib/config.charset: New file.
42868         * lib/localcharset.c: New file.
42869         * lib/unicodeio.h, lib/unicodeio.c: New files.
42870         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42871         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42872         (noinst_HEADERS): Add unicodeio.h.
42873         (all-local, install-exec-local, charset.alias): New targets.
42874
42875 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42876
42877         * lib/quotearg.c (ALERT_CHAR): New macro.
42878         (quotearg_buffer_restyled): Use it.
42879
42880 2000-02-27  Jim Meyering  <meyering@lucent.com>
42881
42882         * m4/check-decl.m4: Add getenv to the list.
42883
42884 2000-02-27  Jim Meyering  <meyering@lucent.com>
42885
42886         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42887         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42888
42889         * lib/backupfile.c: Guard inclusion of stdlib.h with
42890         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42891         Declare malloc if needed.
42892
42893         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42894         `#ifndef HAVE_DECL..'
42895         now that autoconf always defines the HAVE_DECL_ symbols.
42896         * lib/human.c: Likewise.
42897         * lib/same.c: Likewise.
42898         * lib/strtoumax.c: Likewise.
42899
42900         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42901         declaration check was not run.
42902         * lib/hash.c: Likewise.
42903         * lib/human.c: Likewise.
42904         * lib/same.c: Likewise.
42905         * lib/strtoumax.c: Likewise.
42906
42907         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42908         `.', then first look up the entire `.'-containing string as a login
42909         name.
42910
42911 2000-02-23  Jim Meyering  <meyering@lucent.com>
42912
42913         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42914         in place of my hack.
42915
42916 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42917
42918         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42919         (textint): New typedef.
42920         (parser_control): Member year changed from int to textint.
42921         All uses changed.
42922         (YYSTYPE): Removed; replaced by %union with int and textint members.
42923         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42924         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42925         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42926         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42927         (date, number, to_year): Use width of number in digits, not its value,
42928         to determine whether it's a 2-digit year, or a 2-digit time.
42929         (yylex): Store number of digits of numeric tokens.
42930         Reported by John Kendall.
42931
42932         (parser_control): Changed from struct parser_control to typedef (for
42933         consistency).  All uses changed.
42934
42935         (tID): Removed; not used.
42936         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42937
42938 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42939
42940         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42941         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42942
42943 2000-02-12  Jim Meyering  <meyering@lucent.com>
42944
42945         * lib/userspec.c (ISDIGIT): Define it.
42946         (isdigit): Remove definition.
42947         (is_number): Use ISDIGIT, not isdigit.
42948         <libintl.h>: Include.
42949         (_ and N_): Define.
42950         (parse_user_spec): Mark translatable strings.
42951
42952 2000-02-10  Jim Meyering  <meyering@lucent.com>
42953
42954         With these changes, nanosleep.[ch] are finally enough like the other
42955         lib/* replacement files to compile on a few more losing systems.
42956
42957         * lib/nanosleep.h: Don't include config.h.
42958         Remove prototype from declaration of nanosleep.
42959         (PARAMS): Remove now-unneeded definition.
42960         * lib/nanosleep.c: #undef nanosleep.
42961         (rpl_nanosleep): Rename from nanosleep.
42962
42963 2000-02-10  Jim Meyering  <meyering@lucent.com>
42964
42965         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42966         gnu_nanosleep to rpl_nanosleep.
42967
42968 2000-02-09  Jim Meyering  <meyering@lucent.com>
42969
42970         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42971         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42972
42973 2000-02-08  Akim Demaille  <akim@epita.fr>
42974
42975         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42976         `[' and `]' and remove uses of `changequote'.
42977         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42978         (AC_SYS_LARGEFILE): Likewise.
42979         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42980         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42981         of changequote.
42982         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42983         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42984         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42985         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42986
42987 2000-02-05  Jim Meyering  <meyering@lucent.com>
42988
42989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42990         Remove explicit use of AC_HEADER_TIME.  It is required by
42991         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42992         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42993         in autoconf whereby the expansion of the latter ended up preceding
42994         the expansion of its prerequisite, AC_HEADER_TIME.
42995         Reported by Volker Borchert.
42996
42997 2000-02-03  Jim Meyering  <meyering@lucent.com>
42998
42999         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
43000
43001 2000-02-03  Jim Meyering  <meyering@lucent.com>
43002
43003         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
43004         rather than with `#if HAVE_UTMPNAME'.
43005
43006 2000-02-02  Jim Meyering  <meyering@lucent.com>
43007
43008         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
43009         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
43010         Reported by Eli Zaretskii.
43011
43012 2000-02-01  Jim Meyering  <meyering@lucent.com>
43013
43014         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
43015
43016 2000-01-31  Jim Meyering  <meyering@lucent.com>
43017
43018         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
43019         functions.  Add the time.h and sys/time.h headers along with the
43020         AC_REQUIRE'ment of AC_HEADER_TIME.
43021
43022 2000-01-31  Jim Meyering  <meyering@lucent.com>
43023
43024         * lib/nanosleep.h (nanosleep): Guard declaration with
43025         `#if ! HAVE_DECL_NANOSLEEP'.
43026         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
43027         the declaration in that vendor's sys/timers.h.
43028         Reported by Christian Krackowizer.
43029
43030         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
43031         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
43032         (ISPRINT): Likewise.
43033         Reported by Tom Tromey.
43034
43035 2000-01-30  Jim Meyering  <meyering@lucent.com>
43036
43037         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
43038
43039         * m4/prereq.m4 (utmp_includes): Define.
43040         Check for ut_user and ut_name members in both struct utmpx
43041         and struct utmp.
43042
43043 2000-01-30  Jim Meyering  <meyering@lucent.com>
43044
43045         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
43046         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
43047         header files where only utmpx.ut_user is declared.
43048
43049         * lib/readutmp.h (UT_USER): Define.
43050
43051 2000-01-29  Jim Meyering  <meyering@lucent.com>
43052
43053         * m4/lib-check.m4: New file containing library-related checks from
43054         fileutils and sh-utils (textutils had none).
43055
43056 2000-01-28  Jim Meyering  <meyering@lucent.com>
43057
43058         * m4/perl.m4: Change format of warning message to look more like that
43059         from the missing script.  Suggestion from François Pinard.
43060
43061 2000-01-25  Jim Meyering  <meyering@lucent.com>
43062
43063         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
43064         well as time.h in the compile check.
43065         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
43066         Fix typo in cross-compiling case: s/yes/no/.
43067
43068 2000-01-23  Jim Meyering  <meyering@lucent.com>
43069
43070         * m4/jm-macros.m4: Move df-related tests here from
43071         fileutils/configure.in
43072
43073         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
43074         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
43075
43076         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
43077         s/space/ac_fsusage_space/.
43078         (jm_FILE_SYSTEM_USAGE): Take two parameters.
43079
43080         * m4/ftruncate.m4: New file (derived from part of
43081         fileutils/configure.in).
43082         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
43083         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
43084
43085         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
43086         AC_SUBST these here, rather than just in sh-util/configure.in, so
43087         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
43088         all the same.
43089         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
43090         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
43091         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
43092         (AC_SUBST(POW_LIBM)): Likewise.
43093         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
43094
43095 2000-01-23  Jim Meyering  <meyering@lucent.com>
43096
43097         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
43098         obstack.c.
43099
43100 2000-01-22  Jim Meyering  <meyering@lucent.com>
43101
43102         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
43103
43104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
43105
43106         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
43107         configure.in
43108         (AC_CHECK_HEADERS): Likewise for sh-utils.
43109         (AC_CHECK_HEADERS): Likewise for textutils.
43110         Merge the three lists of headers.
43111
43112         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
43113         from fileutils' configure.in.
43114
43115         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
43116         code. Moved tests into their own function (_jm_DECL_HEADERS) in
43117         check-decl.m4.
43118
43119         * m4/check-decl.m4: Use #if rather than #ifdef.
43120         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
43121         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
43122         (_jm_DECL_HEADERS): Define new function.
43123         (jm_CHECK_DECLARATIONS): Require it.
43124
43125 2000-01-22  Jim Meyering  <meyering@lucent.com>
43126
43127         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
43128         [! HAVE_DECL_STRTOULL]: Declare strtoull.
43129         Required for some AIX systems.  Reported by Christian Krackowizer.
43130         [TESTING] (main): New function.
43131
43132         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
43133         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
43134         letters.
43135
43136         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
43137         iswprint.
43138
43139         * lib/strverscmp.c (ISDIGIT): Define.
43140         (strverscmp): Use ISDIGIT, not isdigit.
43141
43142 2000-01-19  Jim Meyering  <meyering@lucent.com>
43143
43144         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
43145         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
43146         defines `struct timespec' in <sys/time.h>
43147
43148         * m4/c-bs-a.m4: Remove uses of changequote altogether.
43149         Thanks to Akim for explaining.
43150
43151 2000-01-17  Paul Eggert  <eggert@twinsun.com>
43152
43153         * lib/nanosleep.c (nanosleep):
43154         Don't use SA_INTERRUPT to decide whether to call sigaction, as
43155         POSIX.1 doesn't require SA_INTERRUPT and some systems
43156         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
43157         it's been part of POSIX.1 since day 1 (in 1988).
43158
43159 2000-01-17  Jim Meyering  <meyering@lucent.com>
43160
43161         * lib/interlock: Remove unused file.  Reported by François Pinard.
43162
43163 2000-01-16  Paul Eggert  <eggert@twinsun.com>
43164
43165         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
43166         alert, backslash, formfeed, and vertical tab unnecessarily in
43167         shell quoting style.
43168
43169 2000-01-16  Jim Meyering  <meyering@lucent.com>
43170
43171         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
43172         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
43173         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
43174         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
43175
43176 2000-01-16  Jim Meyering  <meyering@lucent.com>
43177
43178         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
43179         because the latter didn't work.
43180
43181 2000-01-15  Jim Meyering  <meyering@lucent.com>
43182
43183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
43184         (AC_REPLACE_FUNCS): Add memcpy and memset.
43185         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
43186         Add strpbrk.
43187         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
43188
43189 2000-01-12  Jim Meyering  <meyering@lucent.com>
43190
43191         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
43192         (jm_PREREQ): Use it.
43193         (jm_PREREQ_READUTMP): New macro.
43194         (jm_PREREQ): Use it.
43195
43196 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43197
43198         Quote multibyte characters correctly.
43199         * m4/c-bs-a.m4: New file.
43200         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
43201         (jm_PREREQ): Use it.
43202
43203 2000-01-11  Paul Eggert  <eggert@twinsun.com>
43204
43205         * m4/uintmax_t.m4: Port to autoconf 2.13.
43206
43207 2000-01-08  Jim Meyering  <meyering@ascend.com>
43208
43209         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
43210         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
43211
43212 2000-01-04  Jim Meyering  <meyering@ascend.com>
43213
43214         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
43215         jm_STRUCT_DIRENT_D_TYPE.
43216         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
43217         jm_STRUCT_DIRENT_D_INO.
43218         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
43219         jm_STRUCT_UTIMBUF.
43220         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
43221         renamings.
43222         * m4/utime.m4: Likewise.
43223
43224         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
43225         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
43226
43227 2000-01-03  Paul Eggert  <eggert@twinsun.com>
43228
43229         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
43230         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
43231
43232 2000-01-02  Jim Meyering  <meyering@ascend.com>
43233
43234         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
43235         remember if this is necessary.
43236
43237 1999-12-26  Jim Meyering  <meyering@ascend.com>
43238
43239         * m4/jm-macros.m4: Use it here.
43240         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
43241
43242 1999-12-23  Jim Meyering  <meyering@ascend.com>
43243
43244         * m4/jm-macros.m4: Check for clock_gettime (moved from
43245         fileutils/configure.in)
43246         Check for gettimeofday.
43247
43248 1999-12-20  Jim Meyering  <meyering@ascend.com>
43249
43250         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
43251         autoconf-2.14a-1999-12-20.
43252
43253 1999-12-19  Jim Meyering  <meyering@ascend.com>
43254
43255         * m4/lstat-slash.m4: New file.
43256         * m4/jm-macros.m4: Use the new macro:
43257         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43258
43259 1999-12-07  Jim Meyering  <meyering@ascend.com>
43260
43261         * m4/perl.m4: Require that File::Compare be available, too.
43262         Too many systems seem to lack it.
43263
43264         * m4/strftime.m4: Add checks for most of the cpp macros tested in
43265         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
43266
43267 1999-11-18  Paul Eggert  <eggert@twinsun.com>
43268
43269         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
43270         problem with the QNX 4.25 shell, which doesn't propagate exit
43271         status of failed commands inside shell assignments.
43272
43273 1999-11-17  Jim Meyering  <meyering@ascend.com>
43274
43275         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
43276
43277 1999-11-07  Jim Meyering  <meyering@ascend.com>
43278
43279         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
43280
43281 1999-11-06  Jim Meyering  <meyering@ascend.com>
43282
43283         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
43284         * m4/jm-macros.m4 (jm_MACROS): Use it here.
43285
43286 1999-11-05  Jim Meyering  <meyering@ascend.com>
43287
43288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
43289         configure.in of textutils, fileutils, and sh-utils into this one
43290         (shared between those packages) file.
43291         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
43292         AC_STRUCT_ST_BLKSIZE.
43293
43294 1999-11-03  Jim Meyering  <meyering@ascend.com>
43295
43296         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
43297         of AC_CHECK_TYPE checks includes unistd.h.
43298         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
43299         Suggestion from Akim Demaille.
43300
43301 1999-10-30  Jim Meyering  <meyering@ascend.com>
43302
43303         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
43304         m4-quoted string.
43305         * m4/ls-mntd-fs.m4: Likewise.
43306         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
43307         * m4/jm-winsz1.m4: Likewise.
43308
43309         * m4/const.m4: Remove file, since the fix made it into the experimental
43310         version of autoconf.
43311         * m4/mktime.m4: Likewise.
43312
43313         * m4/check-type.m4: Remove file, now that the latest version of
43314         AC_CHECK_TYPE takes a third arg to specify additional #includes.
43315
43316         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
43317         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
43318         AC_CHECK_TYPE.
43319
43320 1999-10-04  Jim Meyering  <meyering@ascend.com>
43321
43322         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
43323
43324 1999-09-22  Paul Eggert  <eggert@twinsun.com>
43325
43326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43327         2.95.1 bug with HP-UX 10.20.
43328
43329 1999-09-17  Jim Meyering  <meyering@ascend.com>
43330
43331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43332         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43333         due to missing strdup (against sh-utils-2.0).
43334
43335 1999-08-29  Jim Meyering  <meyering@ascend.com>
43336
43337         * m4/jm-macros.m4: Require jm_BISON.
43338         * m4/bison.m4: New file.
43339
43340 1999-08-17  Paul Eggert  <eggert@twinsun.com>
43341
43342         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43343         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43344
43345 1999-08-05  Jim Meyering  <meyering@ascend.com>
43346
43347         * m4/getline.m4: Rename test file from conftestdata to conftest.data
43348         to avoid conflicts with `conftest' on 8+3 filesystems.
43349         Suggestion from Eli Zaretskii.
43350
43351 1999-08-04  Jim Meyering  <meyering@ascend.com>
43352
43353         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
43354         fileutils and sh-utils (textutils's getline test was inadequate).
43355         (AM_FUNC_GETLINE): Run this test.
43356         (AC_CHECK_FUNCS): Check for getdelim.
43357         Reported by Bob Proulx.
43358
43359 1999-08-02  Jim Meyering  <meyering@ascend.com>
43360
43361         * m4/jm-macros.m4: Add a comment.
43362
43363 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43364
43365         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
43366         <inttypes.h> defines strtoumax as a macro (and not as a
43367         function).
43368
43369 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43370
43371         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
43372         that we can shift, multiply and divide unsigned long long
43373         values; Ultrix cc can't do it.
43374
43375 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43376
43377         * m4/mktime.m4: New file, which is a preview of what should appear
43378         in the next public autoconf release.
43379
43380 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43381
43382         * m4/lfs.m4: Remove this file.
43383         * m4/largefile.m4: New file.  It contains the old contents of
43384         lfs.m4, except that all names with prefix AC_LFS have been
43385         changed to use the prefix AC_SYS_LARGEFILE instead, to be
43386         compatible with future autoconf versions.  Also, some minor m4
43387         quoting problems have been fixed.
43388
43389 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43390
43391         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
43392         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
43393         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
43394         and simplify the shell code.
43395
43396 1999-08-01  Jim Meyering  <meyering@ascend.com>
43397
43398         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
43399         m4.
43400
43401 1999-07-20  Jim Meyering  <meyering@ascend.com>
43402
43403         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
43404
43405 1999-07-15  Jim Meyering  <meyering@ascend.com>
43406
43407         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
43408
43409 1999-05-22  Jim Meyering  <meyering@ascend.com>
43410
43411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
43412
43413 1999-05-20  Jim Meyering  <meyering@ascend.com>
43414
43415         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
43416         Add a colon after each `then' in case $4 is empty.
43417
43418 1999-05-16  Jim Meyering  <meyering@ascend.com>
43419
43420         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
43421
43422 1999-05-10  Jim Meyering  <meyering@ascend.com>
43423
43424         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43425
43426         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
43427         AC_FUNC_MKTIME.
43428
43429 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43430
43431         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
43432
43433 1999-05-04  Paul Eggert  <eggert@twinsun.com>
43434
43435         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
43436         not CPPFLAGS, so that linking works correctly in IRIX.
43437
43438 1999-04-30  Paul Eggert  <eggert@twinsun.com>
43439
43440         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
43441
43442 1999-04-20  Paul Eggert  <eggert@twinsun.com>
43443
43444         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
43445         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
43446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
43447         jm_AC_TYPE_UNSIGNED_LONG_LONG.
43448         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
43449
43450         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
43451
43452 1999-04-20  Jim Meyering  <meyering@ascend.com>
43453
43454         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
43455         AC_REPLACE xstroull if necessary.  From Paul Eggert.
43456         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
43457
43458 1999-04-18  Jim Meyering  <meyering@ascend.com>
43459
43460         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
43461         * m4/jm-macros.m4: Use it.
43462
43463 1999-04-06  Jim Meyering  <meyering@ascend.com>
43464
43465         * m4/strftime.m4: Remove test for %f.
43466
43467 1999-03-29  Jim Meyering  <meyering@ascend.com>
43468
43469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
43470         superset of the AC_TYPE_* checks in the textutils, fileutils,
43471         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
43472         AC_TYPE_PID_T.
43473
43474 1999-03-28  Jim Meyering  <meyering@ascend.com>
43475
43476         * m4/jm-macros.m4: Define GNU_PACKAGE here.
43477         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
43478         replaced e.g., in the *.sh files of the sh-utils.
43479
43480 1999-03-20  Jim Meyering  <meyering@ascend.com>
43481
43482         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
43483         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
43484         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
43485
43486 1999-03-19  Jim Meyering  <meyering@ascend.com>
43487
43488         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
43489
43490 1999-03-12  Jim Meyering  <meyering@ascend.com>
43491
43492         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
43493
43494 1999-03-07  Jim Meyering  <meyering@ascend.com>
43495
43496         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
43497         declared.
43498
43499 1999-02-17  Jim Meyering  <meyering@ascend.com>
43500
43501         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
43502         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
43503
43504 1999-02-07  Jim Meyering  <meyering@ascend.com>
43505
43506         * m4/group-member.m4: New file -- extracted from sh-utils'
43507         configure.in.
43508
43509         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
43510         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
43511
43512 1999-02-06  Jim Meyering  <meyering@ascend.com>
43513
43514         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
43515         * m4/fnmatch.m4: Likewise.
43516         * m4/getgroups.m4: Likewise.
43517         * m4/lstat.m4: Likewise.
43518         * m4/malloc.m4: Likewise.
43519         * m4/putenv.m4: Likewise.
43520         * m4/realloc.m4: Likewise.
43521         * m4/regex.m4: Likewise.
43522         * m4/stat.m4: Likewise.
43523         * m4/strftime.m4: Likewise.
43524         Suggestion from Alain Magloire.
43525
43526         * m4/chown.m4: Use `.$ac_objext', not `.o'.
43527         * m4/fnmatch.m4: Likewise.
43528         * m4/getgroups.m4: Likewise.
43529         * m4/getline.m4: Likewise.
43530         * m4/lstat.m4: Likewise.
43531         * m4/malloc.m4: Likewise.
43532         * m4/memcmp.m4: Likewise.
43533         * m4/putenv.m4: Likewise.
43534         * m4/realloc.m4: Likewise.
43535         * m4/regex.m4: Likewise.
43536         * m4/stat.m4: Likewise.
43537         * m4/strftime.m4: Likewise.
43538         Suggestion from Alain Magloire.
43539
43540         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
43541         an argument.
43542
43543         * m4/regex.m4: Add a run-time Test for proper operation of
43544         re_compile_pattern.
43545
43546 1999-01-31  Jim Meyering  <meyering@ascend.com>
43547
43548         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
43549
43550 1999-01-30  Jim Meyering  <meyering@ascend.com>
43551
43552         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
43553
43554         * m4/jm-mktime.m4: Make this a wrapper around the official
43555         AM_FUNC_MKTIME rather than my private copy, now that the official one
43556         is up to date.
43557         * m4/mktime.m4: Remove file.
43558
43559         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
43560         * m4/uptime.m4: Likewise.
43561         * m4/uintmax_t.m4: Likewise.
43562
43563 1999-01-28  Jim Meyering  <meyering@ascend.com>
43564
43565         * m4/jm-macros.m4: Use jm_AFS.
43566         * m4/afs.m4: New file (from fileutils' configure.in).
43567
43568         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
43569         * m4/chown.m4: Likewise.
43570         * m4/d-ino.m4: Likewise.
43571         * m4/d-type.m4: Likewise.
43572         * m4/fnmatch.m4: Likewise.
43573         * m4/getgroups.m4: Likewise.
43574         * m4/gettext.m4: Likewise.
43575         * m4/jm-mktime.m4: Likewise.
43576         * m4/jm-winsz2.m4: Likewise.
43577         * m4/lcmessage.m4: Likewise.
43578         * m4/ls-mntd-fs.m4: Likewise.
43579         * m4/malloc.m4: Likewise.
43580         * m4/memcmp.m4: Likewise.
43581         * m4/putenv.m4: Likewise.
43582         * m4/realloc.m4: Likewise.
43583         * m4/st_mtim.m4: Likewise.
43584         * m4/strftime.m4: Likewise.
43585
43586 1999-01-16  Jim Meyering  <meyering@ascend.com>
43587
43588         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
43589         (ARGMATCH_DIE_DECL): Define.
43590
43591 1999-01-12  Jim Meyering  <meyering@ascend.com>
43592
43593         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43594         Reported by Lars Hecking.
43595
43596 1999-01-10  Jim Meyering  <meyering@ascend.com>
43597
43598         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43599         gross kludge.
43600         * m4/inttypes_h.m4: Likewise.
43601         * m4/lstat.m4: Likewise.
43602         * m4/malloc.m4: Likewise.
43603         * m4/readdir.m4: Likewise.
43604         * m4/realloc.m4: Likewise.
43605         * m4/st_dm_mode.m4: Likewise.
43606         * m4/stat.m4: Likewise.
43607         * m4/utimbuf.m4: Likewise.
43608         * m4/utimes.m4: Likewise.
43609
43610         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43611         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43612         comments in config.h.in are meaningful.
43613
43614         * m4/jm-macros.m4: Require autoconf-2.13 here.
43615
43616         * m4/regex.m4: By default, don't use the included regex.c on systems
43617         with glibc 2.  Suggestion from Uli Drepper.
43618
43619 1999-01-02  Jim Meyering  <meyering@ascend.com>
43620
43621         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43622
43623 1998-12-18  Jim Meyering  <meyering@ascend.com>
43624
43625         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43626         Based on a suggestion from Lars Hecking.
43627
43628 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43629
43630         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43631
43632 1998-11-16  Jim Meyering  <meyering@ascend.com>
43633
43634         * m4/lfs.m4: Double-quote the `uname...` expression.
43635
43636 1998-11-14  Jim Meyering  <meyering@ascend.com>
43637
43638         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43639         * m4/stat.m4: Likewise.
43640
43641 1998-11-03  Jim Meyering  <meyering@ascend.com>
43642
43643         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43644         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43645
43646 1998-10-18  Jim Meyering  <meyering@ascend.com>
43647
43648         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43649
43650 1998-10-17  Jim Meyering  <meyering@ascend.com>
43651
43652         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43653         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43654         calls for those previously hard-coded headers.  Instead, take a new
43655         parameter.
43656         (jm_CHECK_DECLARATIONS): Reflect interface change.
43657         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43658         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43659
43660         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43661
43662 1998-10-14  Jim Meyering  <meyering@ascend.com>
43663
43664         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43665         instead of "TZ=America/Vancouver".  From Paul Eggert.
43666
43667 1998-10-11  Jim Meyering  <meyering@ascend.com>
43668
43669         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43670         This adds a test for a recently added compatibility fix for mktime.c.
43671         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43672
43673 1998-09-27  Jim Meyering  <meyering@ascend.com>
43674
43675         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43676
43677         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43678         ../configure.in, including a change from Gordon Matzigkeit to allow
43679         cross-compiling for the Hurd.
43680
43681         * m4/glibc.m4: New file/macro to test for the GNU C Library
43682         versions 1 and 2.  From Gordon Matzigkeit.
43683         Indent.
43684
43685 1998-09-21  Jim Meyering  <meyering@ascend.com>
43686
43687         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43688
43689 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43690
43691         Port nanosecond-resolution times to UnixWare 2.1.2 and
43692         pedantic Solaris 2.6.
43693
43694         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43695         AC_STRUCT_ST_MTIM.
43696         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43697         Generate name of ns member, instead of just 1 or undef.
43698         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43699
43700 1998-08-15  Jim Meyering  <meyering@ascend.com>
43701
43702         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43703         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43704         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43705         instead of jm_TYPE_SSIZE_T.
43706
43707 1998-08-12  Jim Meyering  <meyering@ascend.com>
43708
43709         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43710
43711 1998-08-02  Jim Meyering  <meyering@ascend.com>
43712
43713         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43714         in acconfig.h manually.
43715
43716 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43717
43718         * m4/st_mtim.m4: New file.
43719
43720 1998-07-28  Jim Meyering  <meyering@ascend.com>
43721
43722         * m4/utimes.m4: Undef stat.
43723
43724 1998-07-25  Jim Meyering  <meyering@ascend.com>
43725
43726         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43727         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43728
43729 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43730
43731         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43732         uid and gid actually remain unchanged.
43733
43734 1998-07-07  Jim Meyering  <meyering@ascend.com>
43735
43736         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43737
43738 1998-07-04  Jim Meyering  <meyering@ascend.com>
43739
43740         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43741         to prove that this macro can be used in packages without regex.c.
43742
43743 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43744
43745         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43746         is to be used.
43747
43748 1998-07-03  Jim Meyering  <meyering@ascend.com>
43749
43750         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43751
43752         * m4/gettext.m4: New file -- from gettext-0.10.35.
43753         * m4/lcmessage.m4: Likewise.
43754         * m4/progtest.m4: Likewise.
43755
43756         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43757         * m4/jm-macros.m4: Require the new macro.
43758
43759 1998-06-29  Jim Meyering  <meyering@ascend.com>
43760
43761         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43762         for the definition of NGROUPS (used in a system header included
43763         by sys/mount.h).
43764
43765 1998-06-28  Jim Meyering  <meyering@ascend.com>
43766
43767         * m4/ls-mntd-fs.m4: New file.
43768         * m4/fstypename.m4: New file.
43769
43770         * m4/jm-macros.m4: Require the new macro.
43771         * m4/jm-glibc-io.m4: New file.
43772
43773 1998-05-19  Jim Meyering  <meyering@ascend.com>
43774
43775         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43776         * m4/lchown.m4: New file.
43777
43778         * m4/Makefile.am.in: New file.
43779         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43780
43781 1998-05-14  Jim Meyering  <meyering@ascend.com>
43782
43783         * m4/Makefile.am (EXTRA_DIST): Add them.
43784         * m4/jm-macros.m4: New file.
43785         * m4/utimbuf.m4: New file.
43786
43787 1998-05-12  Jim Meyering  <meyering@ascend.com>
43788
43789         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43790
43791 1998-05-11  Jim Meyering  <meyering@ascend.com>
43792
43793         * m4/isc-posix.m4: New file.
43794
43795 1998-05-10  Jim Meyering  <meyering@ascend.com>
43796
43797         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43798
43799 1998-05-09  Jim Meyering  <meyering@ascend.com>
43800
43801         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43802         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43803         with automake.
43804
43805         * m4/ssize_t.m4: New file.
43806         * m4/mktime.m4: Remove file -- the new automake has this now.
43807
43808 1998-04-26  Jim Meyering  <meyering@ascend.com>
43809
43810         * m4/assert.m4: New file.
43811         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43812
43813 1998-04-05  Jim Meyering  <meyering@ascend.com>
43814
43815         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43816         (jm_PREREQ): Use it here.
43817
43818 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43819
43820         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43821         in acconfig.h.
43822
43823 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43824
43825         * m4/prereq.m4: New file.
43826         * m4/error.m4: New file.
43827         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43828
43829 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43830
43831         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43832         cache-check for the same variable -- that defeated the purpose of
43833         the test; the test program was never run.  This was a problem only
43834         on systems with losing getline functions -- HP-UX 10.20 is one.
43835         Reported by Bjorn Helgaas.
43836
43837 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43838
43839         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43840
43841 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43842
43843         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43844
43845         * m4/const.m4: New file.  Use an initializer in this declaration
43846         typedef int charset[2]; const charset x;
43847         Reported by Bob Glickstein.
43848
43849 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43850
43851         * m4/chown.m4: Fix reversed types on -1 args to chown.
43852         From Kaveh Ghazi.
43853
43854 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43855
43856         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43857         Add lseek and memchr.
43858
43859         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43860         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43861         have a 20-character limit on names.
43862
43863 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43864
43865         * m4/inttypes_h.m4: New file.
43866         * m4/uintmax_t.m4: New file.
43867         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43868
43869
43870         -----
43871
43872         Local Variables:
43873         coding: utf-8
43874         End:
43875
43876         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43877
43878         Copying and distribution of this file, with or without
43879         modification, are permitted provided the copyright notice
43880         and this notice are preserved.